/* ============================================================
   Holistic HealthEdge — Main Stylesheet
   Colors: Green (#2a7c4f), Blue (#1a4a8a), White (#fff), Red (#d93025)
   Fonts: Ubuntu (all text)
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --green:        #2a7c4f;
  --green-light:  #38a169;
  --green-pale:   #e8f5ee;
  --blue:         #1a4a8a;
  --blue-light:   #2563aa;
  --blue-pale:    #e8f0fb;
  --red:          #d93025;
  --red-pale:     #fdecea;
  --white:        #ffffff;
  --off-white:    #f7f9f7;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-400:     #9ca3af;
  --gray-600:     #6b7280;
  --gray-800:     #1f2937;
  --text:         #2d3748;
  --text-light:   #718096;

  --font-body:    'Ubuntu', system-ui, sans-serif;
  --font-heading: 'Ubuntu', system-ui, sans-serif;

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);

  --transition:   .25s ease;
  --max-width:    1200px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--blue);
  position: relative;
  padding-bottom: .5rem;
}
.section-header__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 250px; height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.section-header__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.section-header__link:hover { color: var(--green-light); }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .25rem .7rem;
  border-radius: 20px;
  line-height: 1.4;
}
.tag--green  { background: var(--green);      color: var(--white); }
.tag--blue   { background: var(--blue);       color: var(--white); }
.tag--red    { background: var(--red);        color: var(--white); }
.tag--green-outline { background: var(--green-pale); color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
  line-height: 1;
}
.btn--green  { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,124,79,.35); }
.btn--blue   { background: var(--blue);  color: var(--white); }
.btn--blue:hover  { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,74,138,.35); }
.btn--outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--green); }

.btn-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  color: var(--blue);
}
.btn-icon:hover { background: var(--blue-pale); }

/* ── Top Bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--blue);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: .4rem 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.topbar__left { display: flex; align-items: center; gap: .4rem; min-width: 0; flex-shrink: 1; }
.topbar__left i { color: var(--green-light); }
.topbar__right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.topbar__right a { color: rgba(255,255,255,.75); font-size: .85rem; transition: color var(--transition); }
.topbar__right a:hover { color: var(--white); }
.topbar__divider { width: 1px; height: 16px; background: rgba(255,255,255,.25); }
.topbar__btn {
  display: inline-flex !important;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.topbar__btn--login {
  background: rgba(255,255,255,.2);
  color: var(--white) !important;
}
.topbar__btn--login:hover {
  background: var(--white) !important;
  color: var(--green) !important;
}
.topbar__btn--signup {
  background: var(--green-light);
  color: var(--white) !important;
}
.topbar__btn--signup:hover {
  background: var(--green) !important;
}
.topbar__btn--submit {
  background: var(--green) !important;
  color: #fff !important;
  font-weight: 700;
  padding: .35rem .85rem !important;
  font-size: .82rem !important;
  box-shadow: 0 2px 8px rgba(5,150,105,.35);
}
.topbar__btn--submit i { color: #fff !important; }
.topbar__btn--submit:hover {
  background: var(--green-light) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(5,150,105,.45);
}
.topbar__btn--submit:hover i {
  color: #fff !important;
}
.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 960;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .15rem;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.logo__icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(42,124,79,.3);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__primary  { font-family: var(--font-heading); font-size: 1.15rem; color: var(--green); font-weight: 700; }
.logo__secondary{ font-size: .72rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }

.site-logo--light .logo__primary  { color: var(--white); }
.site-logo--light .logo__secondary{ color: rgba(255,255,255,.7); }
.site-logo--light .logo__icon { background: rgba(255,255,255,.15); }

.logo__img {
  height: 80px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
}
.site-logo--light .logo__img { filter: brightness(0) invert(1); }

/* Nav */
.site-nav { flex: 1; display: flex; justify-content: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .7rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__link:hover,
.nav__item--active .nav__link { color: var(--green); }
.nav__item--active .nav__link { font-weight: 600; }
.nav__arrow { font-size: .65rem; transition: transform var(--transition); }

/* Dropdown */
.nav__item--dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border-top: 3px solid var(--green);
  z-index: 910;
}
.nav__item--dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__item--dropdown:hover .nav__arrow { transform: rotate(180deg); }
.dropdown li a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  color: var(--gray-800);
  transition: all var(--transition);
}
.dropdown li a:hover { background: var(--green-pale); color: var(--green); padding-left: 1.5rem; }

/* Mega Dropdown */
.dropdown--mega {
  display: flex;
  gap: 0;
  min-width: 420px;
  padding: 0;
  border-top: 3px solid var(--green);
}
.dropdown__cats {
  flex: 1;
  padding: .85rem 0;
  border-right: 1px solid var(--gray-100);
  min-width: 160px;
}
.dropdown__posts {
  flex: 1.5;
  padding: .85rem 0;
  min-width: 220px;
}
.dropdown__heading {
  display: block;
  padding: .3rem 1.25rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
}
.dropdown__cats a {
  display: block;
  padding: .5rem 1.25rem;
  font-size: .85rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition);
}
.dropdown__cats a:hover { background: var(--green-pale); color: var(--green); padding-left: 1.5rem; }
.dropdown__viewall {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green) !important;
  margin-top: .35rem;
  border-top: 1px solid var(--gray-100);
}
.dropdown__viewall:hover { background: var(--green-pale); }
.dropdown__post {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .55rem 1.25rem;
  text-decoration: none;
  transition: all var(--transition);
}
.dropdown__post:hover { background: var(--green-pale); }
.dropdown__post-cat {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
}
.dropdown__post-title {
  font-size: .82rem;
  color: var(--gray-800);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.dropdown__post:hover .dropdown__post-title { color: var(--green); }

/* Mini Dropdown (Calculators) */
.dropdown--mini {
  min-width: 200px;
  padding: .5rem 0;
}
.dropdown--mini a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .85rem;
  color: var(--gray-800);
  text-decoration: none;
  transition: all var(--transition);
}
.dropdown--mini a:hover { background: var(--green-pale); color: var(--green); padding-left: 1.5rem; }

/* Badge */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge--green { background: #d1fae5; color: #065f46; }
.badge--blue { background: #dbeafe; color: #1e40af; }
.badge--red { background: #fee2e2; color: #991b1b; }

/* Header Actions */
.header__actions { display: flex; align-items: center; gap: .25rem; }

/* Mobile-only nav items (hidden on desktop) */
.nav__item--mobile-only { display: none; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; }
.hamburger { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search Overlay */
.search-overlay {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 0;
  display: none;
  animation: slideDown .2s ease;
}
.search-overlay.active { display: block; }
@keyframes slideDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }

.search-form {
  display: flex;
  gap: .5rem;
  max-width: 600px;
}
.search-form__input {
  flex: 1;
  padding: .65rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  transition: border-color var(--transition);
}
.search-form__input:focus { outline: none; border-color: var(--green); }
.search-form__btn {
  padding: .65rem 1.2rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: background var(--transition);
}
.search-form__btn:hover { background: var(--green-light); }
.search-form__close {
  padding: .65rem 1rem;
  color: var(--gray-600);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.search-form__close:hover { color: var(--red); }

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/pictures/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,74,138,.4) 0%,
    rgba(26,74,138,.25) 40%,
    rgba(26,74,138,.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.5rem;
  max-width: 760px;
}
.hero__tags { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero__title span { color: var(--green-light); }
.hero__excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
  max-width: 580px;
  line-height: 1.75;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.hero__meta i { color: var(--green-light); }
.hero__meta span { display: flex; align-items: center; gap: .35rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Hero Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero__scroll i { font-size: 1.1rem; }

/* ── Breaking News Bar ───────────────────────────────────── */
.breaking-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
  padding: .65rem 0;
  overflow: hidden;
}
.breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.breaking-bar__label {
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 1rem;
}
.breaking-bar__ticker {
  overflow: hidden;
  flex: 1;
  position: relative;
  height: 1.5rem;
}
.breaking-bar__track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  white-space: nowrap;
  height: 1.5rem;
}
.breaking-bar__item {
  font-size: .82rem;
  color: var(--gray-800);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.breaking-bar__item a { color: var(--blue); font-weight: 500; white-space: nowrap; }
.breaking-bar__item a:hover { color: var(--green); }
.breaking-bar__sep { color: var(--gray-400); flex-shrink: 0; }

/* ── Main Layout ─────────────────────────────────────────── */
.dropdown--mega {
  width: 140px;
  max-height: 300px;
  padding: 0.75rem 0.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  overflow-y: auto;
}

/* ── Post Cards ──────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.posts-grid .post-card:first-child {
  grid-column: 1 / -1;
}
.posts-grid .post-card:first-child .post-card__img { height: 320px; }
/* Show 4 small posts in 2x2 grid after the featured post */
.posts-grid .post-card:nth-child(n+2) {
  grid-column: span 1;
}

/* Articles Grid (for category pages, articles page) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow); }

.post-card__img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  max-width: 100%;
}
.post-card__cat {
  position: absolute;
  top: .85rem;
  left: .85rem;
}

.post-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: .65rem;
  flex-wrap: wrap;
}
.post-card__meta span { display: flex; align-items: center; gap: .3rem; }
.post-card__meta i { color: var(--green); }
.post-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: .65rem;
}
.post-card__excerpt {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  margin-bottom: 1rem;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--gray-100);
}
.post-card__author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-800);
}
.post-card__author img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.post-card__read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.post-card__read-more:hover { gap: .55rem; }

/* Load More */
.load-more-wrap { text-align: center; margin-top: 2rem; }

/* ── Main Layout ─────────────────────────────────────────── */
.main-layout {
  padding-top: 3.5rem;
}

.main-layout__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1.5rem; align-self: start; margin-bottom: 3rem; }

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: .85rem;
  box-shadow: var(--shadow-sm);
}
.widget__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: .45rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--gray-100);
  position: relative;
}
.widget__title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--green);
}

/* Sidebar Search */
.widget-search .search-bar {
  display: flex;
  gap: .5rem;
}
.widget-search input {
  flex: 1;
  padding: .6rem .9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .875rem;
  transition: border-color var(--transition);
}
.widget-search input:focus { outline: none; border-color: var(--green); }
.widget-search button {
  padding: .6rem .9rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.widget-search button:hover { background: var(--green-light); }

/* About Widget */
.widget-about { text-align: center; background: var(--green-pale); }
.widget-about__img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .85rem;
  border: 3px solid var(--green);
}
.widget-about__text { font-size: .875rem; color: var(--text-light); line-height: 1.7; }
.widget-about__social { display: flex; justify-content: center; gap: .75rem; margin-top: .85rem; }
.widget-about__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background var(--transition);
}
.widget-about__social a:hover { background: var(--blue); }

/* Categories Widget */
.widget-cats__list { display: flex; flex-direction: column; gap: .35rem; }
.widget-cats__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  font-size: .875rem;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.widget-cats__item:hover { background: var(--green-pale); border-color: var(--green); color: var(--green); }
.widget-cats__item a { display: flex; align-items: center; gap: .5rem; flex: 1; }
.widget-cats__item i { color: var(--green); font-size: .8rem; }
.widget-cats__count {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 20px;
  transition: all var(--transition);
}
.widget-cats__item:hover .widget-cats__count { background: var(--green); color: var(--white); }

/* Recent Posts Widget */
.widget-recent__list { display: flex; flex-direction: column; gap: .65rem; }
.widget-recent__item {
  display: flex;
  gap: .65rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--gray-100);
}
.widget-recent__item:last-child { padding-bottom: 0; border-bottom: none; }
.widget-recent__img {
  width: 70px; height: 65px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  max-width: 100%;
}
.widget-recent__body {
  flex: 1;
  min-width: 0;
}
.widget-recent__title {
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: .35rem;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.widget-recent__item:hover .widget-recent__title { color: var(--green); }
.widget-recent__date { font-size: .73rem; color: var(--text-light); display: flex; align-items: center; gap: .3rem; }
.widget-recent__date i { color: var(--green); }

/* Newsletter Widget */
.widget-newsletter { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: var(--white); }
.widget-newsletter .widget__title { color: var(--white); border-bottom-color: rgba(255,255,255,.2); }
.widget-newsletter .widget__title::after { background: var(--green-light); }
.widget-newsletter p { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .65rem; }
.newsletter-form input {
  padding: .7rem 1rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: inherit;
  font-size: .875rem;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--green-light); }
.newsletter-form .btn { width: 100%; justify-content: center; background: var(--green); }
.newsletter-form .btn:hover { background: var(--green-light); }

/* Tags Widget */
.widget-tags__cloud { display: flex; flex-wrap: wrap; gap: .35rem; }
.widget-tags__tag {
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}
.widget-tags__tag:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── Featured Categories Section ─────────────────────────── */
.featured-cats-section {
  background: var(--off-white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-top: 2rem;
}
.featured-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.featured-cats-grid--all {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,74,138,.9) 0%, rgba(26,74,138,.3) 60%, transparent 100%);
}

.cat-card__body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
}
.cat-card__icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: .75rem;
  backdrop-filter: blur(4px);
}
.cat-card__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: .35rem;
}
.cat-card__count { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: .85rem; }
.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: .4rem .9rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ── Trending Posts ───────────────────────────────────────── */
.trending-section { padding: 3.5rem 0; }
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trending-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.trending-card__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
}
.trending-card__body {
  flex: 1;
  min-width: 0;
}
.trending-card__cat { font-size: .72rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.trending-card__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.trending-card__date { font-size: .73rem; color: var(--text-light); display: flex; align-items: center; gap: .3rem; }
.trending-card__date i { color: var(--green); }

/* ── Testimonials Section ─────────────────────────────────── */
.testimonials-section { padding: 3.5rem 0; background: var(--off-white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.testimonial-card__stars { margin-bottom: 1rem; color: #f59e0b; font-size: .85rem; display: flex; gap: .15rem; }
.testimonial-card__text {
  font-size: .95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-pale);
}
.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--gray-900);
  margin-bottom: .15rem;
}
.testimonial-card__role {
  font-size: .78rem;
  color: var(--text-light);
}

/* ── Newsletter Banner ───────────────────────────────────── */

/* ── Post Content (single post page) ─────────────────────── */
.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--gray-700); }
.post-content h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--gray-900); margin: 2rem 0 .75rem; }
.post-content h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--gray-900); margin: 1.5rem 0 .5rem; }
.post-content h4 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gray-800); margin: 1.25rem 0 .5rem; }
.post-content p { margin-bottom: 1.15rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.25rem auto; display: block; }
.post-content a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--green-light); }
.post-content ul, .post-content ol { margin: .75rem 0 1.15rem 1.5rem; }
.post-content li { margin-bottom: .35rem; }
.post-content blockquote { border-left: 4px solid var(--green); padding: .75rem 1.25rem; margin: 1.5rem 0; background: var(--green-pale); border-radius: 0 8px 8px 0; font-style: italic; color: var(--gray-700); }
.post-content pre { background: var(--gray-900); color: #e5e7eb; padding: 1.15rem; border-radius: 8px; overflow-x: auto; margin: 1.25rem 0; font-size: .88rem; }
.post-content code { background: var(--gray-100); padding: .15rem .4rem; border-radius: 4px; font-size: .88em; color: var(--red); }
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content strong { color: var(--gray-900); font-weight: 600; }
.post-content em { font-style: italic; }

/* Auto-built tables (Word import / SEO helper): compact 10px body */
.post-content .post-table-wrap {
  font-size: 10px;
  line-height: 1.45;
  overflow-x: auto;
  margin: 1rem 0;
  max-width: 100%;
}
.post-content .post-table-wrap .post-table-inner {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-300, #d1d5db);
  font-size: 10px;
}
.post-content .post-table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 0.35rem 0 0.45rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-800);
}
.post-content .post-table-wrap th,
.post-content .post-table-wrap td {
  border: 1px solid var(--gray-300, #d1d5db);
  padding: 0.35rem 0.45rem;
  vertical-align: top;
  text-align: left;
  font-size: 10px;
}
.post-content .post-table-wrap th {
  background: var(--gray-50, #f8fafc);
  font-weight: 600;
  color: var(--gray-900);
}
.post-content .post-table-wrap td {
  color: var(--gray-700);
}


.newsletter-banner {
  background: var(--green);
  padding: 4rem 0;
  text-align: center;
}
.newsletter-banner__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.newsletter-banner__icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(255,255,255,.25);
}
.newsletter-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: .75rem;
}
.newsletter-banner__sub { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; line-height: 1.7; }
.newsletter-banner__form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}
.newsletter-banner__form input {
  flex: 1;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-family: inherit;
  font-size: .9rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}
.newsletter-banner__form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-banner__form input:focus { outline: none; border-color: var(--white); }
.newsletter-banner__form .btn { justify-content: center; background: var(--white); color: var(--green); font-weight: 700; flex-shrink: 0; }
.newsletter-banner__form .btn:hover { background: var(--off-white); transform: translateY(-1px); }
.newsletter-banner__note { font-size: .78rem; color: rgba(255,255,255,.65); }
.newsletter-banner__note i { color: var(--white); }

/* ── Health Tips Strip ───────────────────────────────────── */
.tips-section { padding: 3.5rem 0; background: var(--blue-pale); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
}
.tip-card__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.tip-card__icon--green  { background: var(--green-pale); color: var(--green); }
.tip-card__icon--blue   { background: var(--blue-pale);  color: var(--blue); }
.tip-card__icon--red    { background: var(--red-pale);   color: var(--red); }
.tip-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: .6rem;
}
.tip-card__text { font-size: .875rem; color: var(--text-light); line-height: 1.7; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--gray-800); color: rgba(255,255,255,.8); }

.footer__top { padding: 3.5rem 0 2.5rem; }
.footer__top-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.footer__heading::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 36px; height: 2px;
  background: var(--green);
}

.footer__tagline { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-top: 1rem; }

.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--green); color: var(--white); }

.footer__links { display: flex; flex-direction: column; gap: .55rem; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
}
.footer__links a i { color: var(--green); font-size: .7rem; transition: transform var(--transition); }
.footer__links a:hover { color: var(--white); padding-left: .25rem; }
.footer__links a:hover i { transform: translateX(3px); }

.footer__recent-posts { display: flex; flex-direction: column; gap: .9rem; }
.footer__recent-posts li {
  display: flex;
  gap: .75rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__recent-posts li:last-child { padding-bottom: 0; border-bottom: none; }
.footer__recent-posts img {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.footer__recent-posts div { display: flex; flex-direction: column; gap: .3rem; }
.footer__recent-posts a {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.footer__recent-posts a:hover { color: var(--green-light); }
.footer__recent-posts span { font-size: .72rem; color: rgba(255,255,255,.4); display: flex; align-items: center; gap: .3rem; }
.footer__recent-posts i { color: var(--green); }

.footer__bottom {
  background: rgba(0,0,0,.25);
  padding: 1.1rem 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer__bottom-inner strong { color: var(--white); }
.footer__bottom-inner a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer__bottom-inner a:hover { color: var(--green-light); }

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 800;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); }

/* ── Reading Progress ────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green), var(--blue));
  z-index: 1000;
  width: 0%;
  transition: width .1s linear;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-layout__inner { grid-template-columns: 1fr 280px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top-inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .featured-cats-grid.featured-cats-grid--all { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .featured-cats-grid:not(.featured-cats-grid--all) { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .main-layout__inner { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .posts-grid .post-card:first-child .post-card__img { height: 260px; }
  .hero__content { padding: 2.5rem 0 2rem; }
  .hero__title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero__excerpt { font-size: .92rem; }
  .topbar__inner { gap: .35rem; }
  .topbar__right { gap: .4rem; }
  .topbar__btn { padding: .2rem .45rem; font-size: .68rem; }
  .topbar__user { font-size: .7rem; }
  .about-hero { padding: 3.5rem 0; }
  .about-hero__sub { font-size: 1rem; }
  .about-hero__actions { flex-wrap: wrap; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about-story__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-values__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-process__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about-team__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-content { padding: 2.5rem 0; }
  .contact-hero__sub { font-size: .95rem; }
  .nav__close { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 950;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    padding: 4rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
  }
  .site-nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--gray-100); }
  .nav__item--mobile-only { display: list-item; }
  .nav__item--mobile-only:first-of-type { margin-top: .75rem; padding-top: .75rem; border-top: 2px solid var(--green); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: var(--off-white);
    border-radius: var(--radius);
    margin-top: .25rem;
    padding: .25rem 0;
    display: none;
  }
  .dropdown.open { display: block; }
  .dropdown--mega { flex-direction: column; min-width: 100%; }
  .dropdown__cats { border-right: none; border-bottom: 1px solid var(--gray-100); padding: .5rem 0; }
  .dropdown__posts { padding: .5rem 0; }
  .dropdown__heading { font-size: .65rem; }
  .dropdown__cats a { padding: .4rem 1rem; font-size: .82rem; }
  .dropdown__post { padding: .4rem 1rem; }
  .dropdown__post-title { font-size: .78rem; }
  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 940;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .nav__overlay.open { opacity: 1; visibility: visible; }
}

@media (max-width: 680px) {
  .topbar { font-size: .7rem; padding: .25rem 0; overflow: hidden; }
  .topbar__inner { gap: .25rem; }
  .topbar__left span:first-child { display: none; }
  .topbar__left { gap: .25rem; }
  .topbar__right a:not(.topbar__btn) { display: none; }
  .topbar__divider { display: none; }
  .topbar__right { gap: .3rem; }
  .topbar__btn { padding: .2rem .4rem; font-size: .65rem; }
  .topbar__user { font-size: .65rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid .post-card:first-child { grid-column: auto; }
  .featured-cats-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .newsletter-banner__form { flex-direction: column; }
  .sidebar { position: static; width: 100%; }
  .widget { padding: .75rem; }
  .widget__title { font-size: .9rem; }
  .widget-cats__item { padding: .4rem .5rem; font-size: .8rem; }
  .widget-cats__count { font-size: .65rem; padding: .1rem .4rem; }
  .widget-recent__img { width: 55px; height: 50px; }
  .widget-recent__title { font-size: .78rem; }
  .widget-recent__date { font-size: .68rem; }
  .widget-tags__tag { font-size: .72rem; padding: .15rem .45rem; }
  .widget-search input { padding: .45rem .65rem; font-size: .82rem; }
  .widget-search button { padding: .45rem .65rem; }
  .footer__top-inner { grid-template-columns: 1fr; }
  .footer__col:last-child { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .breaking-bar__label { display: none; }
  .hero { min-height: 440px; }
  .hero__scroll { display: none; }
  .back-to-top { display: none !important; }
  .about-hero { padding: 2rem 0; }
  .about-hero__title { font-size: 1.5rem; }
  .about-hero__sub { font-size: .9rem; }
  .about-hero__actions { flex-direction: column; align-items: stretch; gap: .5rem; }
  .about-hero__actions .btn { width: 100%; justify-content: center; }
  .about-stats { padding: 1rem 0; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
  .about-stats__num { font-size: 1.3rem; }
  .about-stats__label { font-size: .72rem; }
  .about-story { padding: 1.5rem 0; }
  .about-story__grid { grid-template-columns: 1fr !important; }
  .about-story__text { font-size: .9rem; line-height: 1.7; text-align: center; }
  .about-story__text p { text-align: center; }
  .about-story__quote { display: none; }
  .about-story__grid > :last-child { display: none; }
  .about-values { padding: 1.5rem 0; }
  .about-values__grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .about-value-card { padding: 1rem; }
  .about-value-card__icon { width: 40px; height: 40px; font-size: 1rem; }
  .about-value-card__title { font-size: .95rem; }
  .about-value-card__text { font-size: .85rem; }
  .about-process { padding: 1.5rem 0; }
  .about-process__grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .about-process__num { width: 36px; height: 36px; font-size: .95rem; }
  .about-process__title { font-size: .9rem; }
  .about-process__text { font-size: .8rem; }
  .about-team { padding: 1.5rem 0; }
  .about-team__grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .about-team-card { padding: 1rem; }
  .about-team-card img { width: 48px; height: 48px; }
  .about-cta { padding: 1.5rem 0; }
  .about-cta__form { flex-direction: column; }
  .about-cta__form input,
  .about-cta__form button { width: 100%; }
  .section-heading { font-size: 1.25rem; }
  .section-subheading { font-size: .82rem; }
  .section-header-center { margin-bottom: 1.25rem; }
  .about-section-narrow,
  .contact-section-narrow { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-grid > :first-child { order: 1; }
  .contact-grid > :last-child { order: 2; }
  .contact-form-card { padding: 1rem !important; }
  .contact-form-card input,
  .contact-form-card textarea { width: 100%; box-sizing: border-box; padding: .5rem .65rem; font-size: .88rem; }
  .contact-info-card { padding: 1rem !important; margin-bottom: .75rem; }
  .contact-info-card h3 { font-size: .95rem; margin-bottom: .65rem; }
  .contact-info-card p { font-size: .82rem; }
}

/* ── About Page ──────────────────────────────────────────── */
.about-hero { padding: 5rem 0; text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #065f46 0%, #0d9488 40%, #1e40af 100%); }
.about-hero__overlay { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(255,255,255,.06) 0%, transparent 50%); }
.about-hero__inner { position: relative; z-index: 1; }
.about-hero__badge { display: inline-block; background: rgba(255,255,255,.15); color: #fff; padding: .35rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 500; margin-bottom: 1.25rem; backdrop-filter: blur(4px); }
.about-hero__title { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: .75rem; line-height: 1.2; }
.about-hero__title em { font-style: italic; color: #6ee7b7; }
.about-hero__sub { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 650px; margin: 0 auto 1.5rem; line-height: 1.7; }
.about-hero__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.about-section-narrow { max-width: 1000px; width: 100%; }

.about-stats { background: var(--white); padding: 2.5rem 0; border-bottom: 1px solid var(--gray-100); }
.about-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.about-stats__num { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; }
.about-stats__label { font-size: .82rem; color: var(--text-light); margin-top: .15rem; }

.about-story { padding: 4rem 0; background: var(--off-white); }
.about-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-story__text { color: var(--gray-700); line-height: 1.9; font-size: .95rem; }
.about-story__text p { margin-bottom: 1.25rem; }
.about-story__quote { background: linear-gradient(135deg, var(--green-pale), var(--blue-pale)); border-radius: var(--radius-lg); padding: 2rem 2rem 2rem 4rem; position: relative; }
.about-story__quote-icon { position: absolute; top: 1rem; left: 1rem; background: var(--green); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.about-story__quote-text { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gray-800); line-height: 1.7; font-style: italic; margin-bottom: 1rem; padding-top: .5rem; }
.about-story__quote-author { display: flex; align-items: center; gap: .65rem; }
.about-story__quote-author img { border-radius: 50%; }
.about-story__quote-name { font-size: .85rem; font-weight: 600; color: var(--gray-900); }
.about-story__quote-role { font-size: .75rem; color: var(--text-light); }

.about-values { padding: 4rem 0; background: var(--white); }
.about-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about-value-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.about-value-card__icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.35rem; }
.about-value-card__title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gray-900); margin-bottom: .5rem; }
.about-value-card__text { font-size: .85rem; color: var(--text-light); line-height: 1.7; }

.about-process { padding: 4rem 0; background: var(--off-white); }
.about-process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.about-process__step { text-align: center; }
.about-process__num { width: 52px; height: 52px; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.about-process__title { font-family: var(--font-heading); font-size: .95rem; color: var(--gray-900); margin-bottom: .35rem; }
.about-process__text { font-size: .78rem; color: var(--text-light); line-height: 1.6; }

.about-team { padding: 4rem 0; background: var(--white); }
.about-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.about-team-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; }
.about-team-card img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: .75rem; }
.about-team-card__name { font-family: var(--font-heading); font-size: 1rem; color: var(--gray-900); margin-bottom: .15rem; }
.about-team-card__role { font-size: .82rem; color: var(--green); font-weight: 600; margin-bottom: .35rem; }
.about-team-card__bio { font-size: .75rem; color: var(--text-light); line-height: 1.5; }

.about-cta { padding: 4rem 0; background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%); text-align: center; }
.about-cta__inner { max-width: 650px; margin: 0 auto; }
.about-cta__title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--white); margin-bottom: .75rem; }
.about-cta__sub { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.7; margin-bottom: 1.75rem; }
.about-cta__form { display: flex; gap: .65rem; max-width: 480px; margin: 0 auto; }
.about-cta__form input { flex: 1; padding: .75rem 1.15rem; border: 2px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: .9rem; backdrop-filter: blur(8px); font-family: inherit; }
.about-cta__form input::placeholder { color: rgba(255,255,255,.6); }
.about-cta__form input:focus { outline: none; border-color: var(--white); }
.about-cta__form button { padding: .75rem 1.5rem; background: var(--white); color: var(--green); border: none; border-radius: 8px; font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.about-cta__note { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: .75rem; }

.section-badge { display: inline-block; padding: .3rem .9rem; border-radius: 20px; font-size: .78rem; font-weight: 600; margin-bottom: .75rem; }
.section-badge--green { background: var(--green-pale); color: var(--green); }
.section-badge--blue { background: var(--blue-pale); color: var(--blue); }
.section-heading { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gray-900); }
.section-subheading { color: var(--text-light); max-width: 550px; margin: .5rem auto 0; font-size: .9rem; }
.section-header-center { text-align: center; margin-bottom: 2.5rem; }

/* ── Contact Page ────────────────────────────────────────── */
.contact-section-narrow { max-width: 900px; }
.contact-hero { background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%); padding: 4rem 0; text-align: center; }
.contact-hero__title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: .5rem; }
.contact-hero__sub { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.contact-content { padding: 3.5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-form-card h2 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--blue); margin-bottom: 1.25rem; }
.contact-form-card .form-group { margin-bottom: 1rem; }
.contact-form-card label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .35rem; }
.contact-form-card input,
.contact-form-card textarea { width: 100%; padding: .65rem .85rem; border: 2px solid #e5e7eb; border-radius: 8px; font-size: .9rem; font-family: inherit; transition: border-color var(--transition); }
.contact-form-card input:focus,
.contact-form-card textarea:focus { outline: none; border-color: var(--green); }
.contact-form-card textarea { resize: vertical; }
.contact-form-card .btn-submit { padding: .7rem 1.5rem; background: var(--green); color: #fff; border: none; border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.contact-form-card .btn-submit:hover { background: var(--green-light); }
.contact-form-card .alert-success { background: #d1fae5; color: #065f46; padding: .75rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; border: 1px solid #a7f3d0; }
.contact-form-card .alert-error { background: #fef2f2; color: #dc2626; padding: .75rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; border: 1px solid #fecaca; }

.contact-info-card { border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; }
.contact-info-card--green { background: var(--green-pale); }
.contact-info-card--blue { background: var(--blue-pale); }
.contact-info-card--white { background: var(--white); box-shadow: var(--shadow-sm); }
.contact-info-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 1rem; }
.contact-info-card h3--green { color: var(--green); }
.contact-info-card h3--blue { color: var(--blue); }
.contact-info-card p { font-size: .9rem; color: var(--gray-700); line-height: 1.7; }
.contact-social { display: flex; gap: .75rem; }
.contact-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background var(--transition); }
.contact-social a:hover { background: var(--blue); }

/* ── Mobile Nav ──────────────────────────────────────────── */
.nav__close {
  display: none;
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--gray-600);
  transition: all var(--transition);
  z-index: 10;
}
.nav__close:hover { background: var(--red-pale); color: var(--red); }




/* ══════════════════════════════════════════════════════════
   Table of Contents (TOC) - Clean & Compact Design
   ══════════════════════════════════════════════════════════ */
.toc-box {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.toc-box__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e5e7eb;
}

.toc-box__title i {
  color: var(--green);
  font-size: 1.1rem;
}

.toc-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-box__list li {
  margin: 0;
  padding: 0;
}

.toc-box__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-bottom: 0.15rem;
}

.toc-box__list a:hover {
  color: var(--green);
  background: #e8f5ee;
  padding-left: 1.25rem;
  transform: translateX(2px);
}

.toc-box__empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #9ca3af;
  font-style: italic;
  line-height: 1.5;
}

/* Nested TOC Items (H2, H3, H4 indentation) */
.toc-box__list a[style*="padding-left"] {
  font-size: 0.88rem;
  color: #6b7280;
}

/* Responsive TOC */
@media (max-width: 768px) {
  .toc-box {
    padding: 1rem 1.15rem;
    margin: 1.25rem 0 1.5rem;
  }
  
  .toc-box__title {
    font-size: 1.1rem;
  }
  
  .toc-box__list a {
    font-size: 0.88rem;
    padding: 0.45rem 0.65rem;
  }
  
  .toc-box__list a:hover {
    padding-left: 1rem;
  }
}
