*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #FF6B35;
  --c-primary-dark: #E85A24;
  --c-primary-light: #FFF0EB;
  --c-secondary: #4ECDC4;
  --c-secondary-dark: #35B8AF;
  --c-secondary-light: #E8FAF9;
  --c-accent: #FFD93D;
  --c-accent-dark: #F0C325;
  --c-violet: #9B59B6;
  --c-violet-light: #F4ECF7;
  --c-blue: #3498DB;
  --c-blue-light: #EBF5FB;
  --c-green: #27AE60;
  --c-green-light: #E9F7EF;
  --c-text: #1A1A2E;
  --c-text-muted: #5A6272;
  --c-text-light: #8C95A6;
  --c-bg: #FAFAF8;
  --c-white: #FFFFFF;
  --c-border: #E8E8E4;
  --c-border-light: #F2F2EE;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --font-body: 'Nunito', sans-serif;
  --font-display: 'Baloo 2', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
}

/* Keep Elementor from forcing extra widths in some setups */
.site-main { width: 100%; }

/* ── HEADER ── */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--c-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* WordPress Custom Logo */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.custom-logo-link img.custom-logo {
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.site-nav a.active { color: var(--c-primary); }
.nav-cta {
  background: var(--c-primary) !important;
  color: var(--c-white) !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
}
.nav-cta:hover { background: var(--c-primary-dark) !important; color: var(--c-white) !important; }

/* WordPress menu markup */
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav li { margin: 0; padding: 0; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--c-primary); }

/* ── BREADCRUMB (optional area) ── */
.breadcrumb-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border-light);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 13px;
  color: var(--c-text-light);
}
.breadcrumb li a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb li a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--c-text); font-weight: 600; }
.breadcrumb-sep { color: var(--c-border); font-size: 11px; }

/* ── COMMON ── */
.section { padding: 56px 0; }
.section-alt { background: var(--c-white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #FFF8F5 0%, #FFF5F0 50%, #FFF0EB 100%);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 16px;
}
.hero-text h1 span { color: var(--c-primary); }
.hero-desc {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid;
}
.badge-green { background: var(--c-green-light); color: var(--c-green); border-color: #A9DFBF; }
.badge-blue { background: var(--c-blue-light); color: var(--c-blue); border-color: #AED6F1; }
.badge-violet { background: var(--c-violet-light); color: var(--c-violet); border-color: #D7BDE2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,53,0.30);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,0.38); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  border: 1.5px solid var(--c-border);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }

.stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1.1;
}
.stat-label { font-size: 13px; color: var(--c-text-muted); font-weight: 600; margin-top: 3px; }

/* ── QUICK NAV ── */
.quick-nav { background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.quick-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  gap: 4px;
  scrollbar-width: none;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }
.qnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.qnav-link:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 36px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-sub { font-size: 16px; color: var(--c-text-muted); max-width: 580px; line-height: 1.65; }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--c-primary));
  transform: scaleX(0);
  transition: transform 0.2s;
}
.cat-card:hover { border-color: var(--card-accent, var(--c-primary)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--card-bg, var(--c-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cat-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--c-text); line-height: 1.3; }
.cat-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; flex: 1; }
.cat-link { font-size: 13px; font-weight: 700; color: var(--card-accent, var(--c-primary)); display: flex; align-items: center; gap: 4px; }

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  z-index: 0;
}
.step-box {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.step-box:hover { box-shadow: var(--shadow-md); }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.step-box h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
.step-box p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

/* ── BENEFITS / 2-COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.section-header--tight { margin-bottom: 28px; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
}
.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--c-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.benefit-icon--teal { background: var(--c-secondary-light); }
.benefit-icon--violet { background: var(--c-violet-light); }
.benefit-icon--blue { background: var(--c-blue-light); }
.benefit-item h3 { font-size: 15px; font-weight: 900; color: var(--c-text); margin-bottom: 4px; font-family: var(--font-display); }
.benefit-item p { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; }

.content-section { max-width: 780px; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0 0 12px;
}
.content-section p {
  font-size: 15.5px;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ── RESPONSIVE ADDONS ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--c-white); margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; margin-bottom: 16px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--c-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--c-accent); }

/* Basic content defaults (Elementor will override when used) */
.entry-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 16px;
}
.entry-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.entry-content--narrow { max-width: 880px; }

.content-article {
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px;
}
.content-header { margin-bottom: 18px; }
.content-meta { font-size: 13px; color: var(--c-text-light); font-weight: 600; }

/* WP content typography */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  color: var(--c-text);
  line-height: 1.25;
}
.entry-content h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; margin: 0 0 12px; }
.entry-content h2 { font-size: 22px; font-weight: 800; margin: 28px 0 10px; }
.entry-content h3 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.entry-content p { color: var(--c-text-muted); font-size: 15.5px; line-height: 1.8; margin: 0 0 14px; }
.entry-content a { color: var(--c-primary); text-decoration: none; font-weight: 700; }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul,
.entry-content ol { margin: 0 0 16px 20px; color: var(--c-text-muted); }
.entry-content li { margin: 6px 0; }
.entry-content strong { color: var(--c-text); }

/* Make sure header never overlaps content */
.site-header + * { scroll-margin-top: 80px; }

/* ── ARCHIVES: POSTS GRID ── */
.archive-desc {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 820px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.post-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(255,107,53,0.35); }
.post-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.post-card__thumb { aspect-ratio: 4 / 3; background: var(--c-primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__placeholder { font-size: 40px; opacity: 0.8; }
.post-card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 900; line-height: 1.25; margin: 0; }
.post-card__excerpt { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; margin: 0; flex: 1; }
.post-card__cta { font-size: 13px; font-weight: 800; color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; }

.pagination { margin-top: 22px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* FAQ (if you build it in Elementor using these classes) */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--c-white); border: 1.5px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--c-bg); }
.faq-q[aria-expanded="true"] { color: var(--c-primary); background: var(--c-primary-light); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.25s;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--c-text-muted); line-height: 1.7; }
.faq-a.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ── UNIFIED NAVIGATION / CONTENT POLISH ── */
.site-nav .menu-item-has-children > a::after {
  content: '▾';
  margin-left: 6px;
  font-size: 10px;
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 20;
}
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu a { white-space: normal; }

.content-article {
  padding: 32px;
}
.content-body > *:first-child { margin-top: 0; }
.content-body > *:last-child { margin-bottom: 0; }
.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.content-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-weight: 800;
}
.entry-featured-image {
  margin: 0 0 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  background: var(--c-primary-light);
}
.entry-featured-image__img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content blockquote,
.wp-block-quote,
blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--c-primary);
  background: #fff7f3;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  background: var(--c-white);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--c-border);
  padding: 12px 14px;
  text-align: left;
}
.entry-content th,
.wp-block-table th {
  background: var(--c-primary-light);
  color: var(--c-text);
  font-weight: 800;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.entry-content figure {
  margin: 20px 0;
}
.entry-content figcaption,
.wp-caption-text,
.blocks-gallery-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-text-light);
  text-align: center;
}
.entry-content .wp-block-button__link,
.entry-content .button,
.entry-content button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-white);
  text-decoration: none;
  font-weight: 800;
  border: 0;
  box-shadow: 0 4px 16px rgba(255,107,53,0.25);
}
.entry-content .wp-block-button__link:hover,
.entry-content .button:hover,
.entry-content button:hover,
input[type="submit"]:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
  text-decoration: none;
}
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 28px 0;
}
.entry-content .wp-block-separator {
  border-bottom-color: var(--c-border);
}
.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
}

/* Orange navigation styling across site */
.pagination .page-numbers:hover,
.post-navigation a:hover,
.navigation a:hover,
.nav-links a:hover,
.page-links a:hover,
.wp-block-query-pagination a:hover,
.wp-block-categories a:hover,
.wp-block-archives a:hover,
.widget_nav_menu a:hover,
.widget_recent_entries a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.post-navigation {
  margin: 22px 0 10px;
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}
.post-navigation a,
.navigation a,
.nav-links a,
.page-links a,
.wp-block-query-pagination a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,107,53,0.22);
  background: #fff8f5;
  color: var(--c-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.post-navigation .post-nav__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--c-primary);
}
.post-navigation .post-nav__title {
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}

/* Listing cards */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.posts-grid {
  align-items: stretch;
}
.post-card {
  display: flex;
}
.post-card__thumb {
  border-bottom: 1px solid var(--c-border-light);
}
.post-card__body {
  padding: 16px;
  gap: 10px;
}
.post-card__title {
  color: var(--c-text);
}
.post-card__excerpt {
  font-size: 14px;
}

/* Related posts always 3 cols on desktop */
.related-posts {
  margin-top: 18px;
}
.related-posts__header {
  margin-bottom: 20px;
}
.posts-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Generic related blocks from content/plugins */
.related-posts,
.related-articles,
.jp-relatedposts,
ul.wp-block-latest-posts,
.wp-block-post-template,
.related {
  clear: both;
}
.related-articles .posts-grid,
.jp-relatedposts-items,
.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.jp-relatedposts-post,
.wp-block-post-template > li,
.related-articles article {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 12px;
}

/* Widgets / blocks / lists */
.wp-block-categories,
.wp-block-archives,
.widget ul,
.entry-content .wp-block-latest-posts {
  list-style: none;
  margin-left: 0;
}
.wp-block-categories li,
.wp-block-archives li,
.widget li,
.entry-content .wp-block-latest-posts li {
  margin: 0 0 10px;
}
.wp-block-categories a,
.wp-block-archives a,
.widget_nav_menu a,
.widget_recent_entries a,
.entry-content .wp-block-latest-posts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,107,53,0.2);
  background: #fff9f6;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
}

/* Better forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

@media (max-width: 1024px) {
  .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .content-article {
    padding: 22px;
  }
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
  .site-nav .sub-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}


/* ── V3: SINGLE POST / ANCHORS / RELATED POLISH ── */
.header-inner {
  height: 96px;
}
.custom-logo-link img.custom-logo {
  max-height: 80px;
}
.logo-link {
  font-size: 32px;
  gap: 12px;
}
.logo-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: 16px;
}

.entry-content--narrow {
  max-width: 1120px;
  padding-top: 34px;
  padding-bottom: 56px;
}
.content-article {
  border-radius: 28px;
  padding: 42px 46px;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 34px rgba(26,26,46,0.05);
}
.content-header {
  margin-bottom: 24px;
}
.content-header .entry-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.content-body {
  color: var(--c-text-muted);
}
.content-body > p:first-child {
  font-size: 20px;
  line-height: 1.8;
  color: #586178;
  max-width: 960px;
  margin-bottom: 20px;
}
.content-body h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 34px;
  margin-bottom: 14px;
}
.content-body h3 {
  font-size: 28px;
  margin-top: 28px;
  margin-bottom: 12px;
}
.content-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 24px 0 10px;
  color: var(--c-text);
}
.content-body p,
.content-body li {
  font-size: 18px;
  line-height: 1.9;
}
.content-body ul,
.content-body ol {
  margin-left: 1.2rem;
}
.content-body ul li::marker,
.content-body ol li::marker {
  color: var(--c-primary);
  font-weight: 800;
}

/* Anchor links / in-post navigation styled like homepage pills */
.content-body a[href^="#"],
.content-body a[href*="#"]:not([href="#"]):not(.wp-block-button__link),
.content-body .wp-block-buttons a,
.content-body .page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  border-radius: 999px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  border: 1.5px solid rgba(255,107,53,0.18);
  text-decoration: none;
  box-shadow: none;
}
.content-body a[href^="#"]:hover,
.content-body a[href*="#"]:not([href="#"]):not(.wp-block-button__link):hover,
.content-body .page-links a:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  text-decoration: none;
}
/* Avoid pill styling for text links inside main prose paragraphs except direct menu-like rows */
.content-body p a[href^="http"],
.content-body li a[href^="http"],
.content-body p a:not([href*="#"]),
.content-body li a:not([href*="#"]) {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--c-primary);
}
.content-body p a[href^="http"]:hover,
.content-body li a[href^="http"]:hover,
.content-body p a:not([href*="#"]):hover,
.content-body li a:not([href*="#"]):hover {
  color: var(--c-primary-dark);
  background: none;
}
/* Menu-like line of links generated by content editors */
.content-body p:has(> a + a),
.content-body p:has(> a + br + a) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.content-body p:has(> a + a) a,
.content-body p:has(> a + br + a) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--c-primary-light);
  border: 1.5px solid rgba(255,107,53,0.18);
  color: var(--c-primary);
  font-weight: 800;
  text-decoration: none;
}
.content-body p:has(> a + a) a:hover,
.content-body p:has(> a + br + a) a:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

/* Image grids inside posts similar to homepage cards */
.content-body .wp-block-gallery,
.content-body .gallery,
.content-body .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.content-body .wp-block-image,
.content-body .gallery-item {
  margin: 0;
}
.content-body .wp-block-image img,
.content-body .gallery-item img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--c-border);
  background: radial-gradient(circle at 50% 60%, var(--c-primary) 0 36%, transparent 37%);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

/* Better related cards */
.related-posts {
  margin-top: 26px;
  padding-top: 8px;
}
.related-posts .section-title,
.related-articles h2,
.jp-relatedposts h3 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 16px;
}
.related-posts .posts-grid--related,
.related-articles .posts-grid,
.jp-relatedposts-items,
.related ul,
.related-posts ul,
.related-articles ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.related-posts .posts-grid--related > *,
.related-articles .posts-grid > *,
.jp-relatedposts-items > *,
.related ul > *,
.related-posts ul > *,
.related-articles ul > * {
  min-width: 0;
  width: 100%;
}
.related-posts .post-card,
.related-articles article,
.jp-relatedposts-post,
.related li,
.related-posts li,
.related-articles li {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.related-posts .post-card__link,
.related li > a,
.related-posts li > a,
.related-articles li > a,
.jp-relatedposts-post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.related-posts .post-card__thumb,
.related-articles img,
.related img,
.jp-relatedposts-post img,
.related li img,
.related-posts li img,
.related-articles li img {
  aspect-ratio: 1 / 1.08;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: radial-gradient(circle at 50% 68%, var(--c-primary) 0 36%, transparent 37%), #fff;
  padding: 14px;
  border-bottom: 1px solid var(--c-border-light);
}
.related-posts .post-card__body,
.related li .post-card__body,
.related-posts li .post-card__body,
.related-articles li .post-card__body {
  padding: 18px;
}
.related-posts .post-card__title,
.related li .post-card__title,
.related-posts li .post-card__title,
.related-articles li .post-card__title,
.jp-relatedposts-post-title {
  font-size: 20px;
  line-height: 1.22;
}
.related-posts .post-card__excerpt {
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .header-inner { height: 84px; }
  .custom-logo-link img.custom-logo { max-height: 80px; }
  .content-article { padding: 34px 32px; }
  .content-body .wp-block-gallery,
  .content-body .gallery,
  .content-body .blocks-gallery-grid,
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 72px; }
  .custom-logo-link img.custom-logo { max-height: 72px; }
  .content-article { padding: 26px 20px; border-radius: 22px; }
  .content-header .entry-title { font-size: clamp(28px, 8vw, 40px); }
  .content-body > p:first-child,
  .content-body p,
  .content-body li { font-size: 17px; }
  .content-body .wp-block-gallery,
  .content-body .gallery,
  .content-body .blocks-gallery-grid,
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul {
    grid-template-columns: 1fr !important;
  }
}


/* Elementor compatibility */
.elementor-page-main,
.elementor-page-main .elementor {
  min-height: 1px;
}

/* Content pages closer to homepage visual language */
.content-article--landing {
  max-width: 100%;
}

.content-body {
  color: var(--c-text);
}

.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-display);
}

.content-body figure {
  margin: 0;
}

.content-body .wp-block-image,
.content-body .gallery-item,
.content-body .blocks-gallery-item {
  background: transparent;
}

/* Stronger TOC/anchor styling similar to homepage quick-nav */
.content-body p:has(> a + a),
.content-body p:has(> a + br + a),
.content-body .wp-block-paragraph:has(> a + a),
.content-body .wp-block-paragraph:has(> a + br + a) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.content-body p:has(> a + a) a,
.content-body p:has(> a + br + a) a,
.content-body .wp-block-paragraph:has(> a + a) a,
.content-body .wp-block-paragraph:has(> a + br + a) a {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff4ef;
  border: 1px solid rgba(255,107,53,0.22);
  color: var(--c-primary);
  font-weight: 900;
}

/* Related posts / plugin compatibility */
.related-posts,
.related-articles,
.jp-relatedposts {
  clear: both;
}

.related-posts .posts-grid--related,
.related-articles .posts-grid,
.related-articles-list,
.jp-relatedposts-items,
.related ul,
.related-posts ul,
.related-articles ul,
.jp-relatedposts-items-visual {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.related-posts .posts-grid--related > *,
.related-articles .posts-grid > *,
.related-articles-list > *,
.jp-relatedposts-items > *,
.related-posts ul > *,
.related-articles ul > * {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.related-posts img,
.related-articles img,
.jp-relatedposts img,
.related img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 320px;
  object-fit: contain !important;
}

.related-posts iframe,
.related-articles iframe,
.jp-relatedposts iframe {
  display: none !important;
}

.related-posts a,
.related-articles a,
.jp-relatedposts a {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .related-articles-list,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul,
  .jp-relatedposts-items-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .related-articles-list,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul,
  .jp-relatedposts-items-visual {
    grid-template-columns: 1fr !important;
  }
}
