/* ============================================================
   FertilEus – Main Stylesheet
   ============================================================ */

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

:root {
  --green-dark: #1b3f2e;
  --green-mid: #356a4b;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --green-bg: #f4faf6;
  --text-dark: #111c17;
  --text-body: #3d4f45;
  --text-muted: #7a9387;
  --white: #ffffff;
  --gray-bg: #f8f9fa;
  --border: #e2ece6;
  --radius: 12px;
  --radius-lg: 40px;
  --shadow: 0 4px 24px rgba(27, 63, 46, 0.1);
  --shadow-card: 0 2px 16px rgba(27, 63, 46, 0.08);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --nav-h: 70px;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-green {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(45, 92, 63, 0.3);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}
.btn-green:hover {
  background: #2a5c41;
  border-color: #2a5c41;
  box-shadow: 0 6px 20px rgba(42, 92, 65, 0.4);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-dark:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: #eaf4ee;
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
  transition: all 0.2s ease;
}
.btn-outline-dark:hover {
  background: #eaf4ee;
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-pale);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  flex-shrink: 0;
  text-decoration: none;
}

/* Green oval icon badge */
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* Keep backward compat if emoji span still exists */
.logo-leaf {
  display: none;
}

/* ---- Nav links ---- */
.nav-links {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}
.nav-links li a {
  position: relative;
  padding: 7px 12px;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color 0.2s ease;
  white-space: nowrap;
}
/* Underline pseudo-element */
.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--green-mid);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.nav-links li a:hover {
  color: var(--green-dark);
  background: transparent;
}
.nav-links li a:hover::after {
  transform: scaleX(1);
}
/* Active: bold + permanent underline */
.nav-links li a.active {
  color: var(--green-dark);
  font-weight: 700;
  background: transparent;
}
.nav-links li a.active::after {
  transform: scaleX(1);
}

/* ---- CTA button ---- */
.nav-cta,
.navbar .btn-green {
  font-size: 0.8rem;
  padding: 9px 22px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Hamburger (mobile) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 40%,
    #f4f9f5 70%,
    #ffffff 100%
  );
  padding: 80px 24px 60px;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-subtext {
  font-size: 0.97rem;
  color: var(--text-body);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-dark);
}
.stat-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Right side */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 500px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  bottom: 32px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}
.badge-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-mid);
}
.badge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--green-dark);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: ticker-scroll 24s linear infinite;
}
.ticker-track span {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   ABOUT / CONNECT SECTION
   ============================================================ */
.about-section {
  padding: 90px 24px;
  background: #f5f0eb;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}

/* 2×2 pill grid */
.about-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.about-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 11px 16px;
  font-size: 0.84rem;
  color: var(--text-dark);
  font-weight: 500;
}
.about-pill i {
  color: var(--green-mid);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-body {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 500px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.check-list li i {
  color: var(--green-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 80px 24px 100px;
  background: #f2f4f0;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}
.services-container .section-tag {
  text-align: left;
  color: var(--green-mid);
  letter-spacing: 0.13em;
  margin-bottom: 12px;
}
/* Large display heading matching screenshot */
.services-container .section-heading {
  text-align: left;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 52px;
  max-width: 480px;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 18px;
  padding: 20px 16px 24px;
  border: 1px solid #e4ebe5;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--green-mid);
  box-shadow:
    0 0 0 2px rgba(53, 106, 75, 0.15),
    0 12px 32px rgba(27, 63, 46, 0.12);
  transform: translateY(-6px);
}

.service-icon {
  width: 40px;
  height: 40px;
  background: #ddf0e4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.service-icon i {
  font-size: 1rem;
  color: var(--green-mid);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 16px;
  transition:
    color 0.2s,
    gap 0.2s;
}
.service-link:hover {
  color: var(--green-mid);
  gap: 10px;
}
.service-link::after {
  content: "→";
  font-size: 0.9rem;
}

/* ============================================================
   OPTIONS SECTION
   ============================================================ */
.options-section {
  padding: 80px 24px;
  background: var(--white);
}

.options-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 36px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.91rem;
  color: var(--text-dark);
  line-height: 1.55;
}
.bullet-list li::before {
  content: "•";
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.4;
  flex-shrink: 0;
}

.options-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right image area */
.options-right {
  position: relative;
}

.options-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.options-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}

/* Floating Expert Care card — bottom-right of image */
.options-expert-badge {
  position: absolute;
  bottom: 24px;
  right: -12px;
  background: #f7f9f7;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(27, 63, 46, 0.08);
  max-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  /* float up/down animation */
  animation: floatUpDown 3.6s ease-in-out infinite;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.expert-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.expert-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================================
   JOURNAL / BLOG SECTION
   ============================================================ */
.journal-section {
  padding: 80px 24px 100px;
  background: var(--gray-bg);
}

.journal-container {
  max-width: 1200px;
  margin: 0 auto;
}

.journal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

/* Small caps tag inside journal header */
.journal-header .section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--green-mid);
  margin-bottom: 8px;
}

/* Large serif heading */
.journal-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
}

/* "All articles" pill — matches screenshot */
.journal-all-btn {
  padding: 10px 22px;
  font-size: 0.85rem;
  border-radius: 50px;
  border: 1.5px solid #c8d6cf;
  color: var(--text-dark);
  background: var(--white);
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
  align-self: center;
}
.journal-all-btn:hover {
  border-color: var(--green-mid);
  background: #eaf4ee;
  transform: translateY(-1px);
}

/* 3-column grid — equal height cards */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.journal-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(27, 63, 46, 0.12);
  border-color: #c8d6cf;
}

.journal-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.journal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.journal-card:hover .journal-img {
  transform: scale(1.04);
}

.journal-body {
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* "Category · Date" meta line */
.journal-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.journal-cat {
  font-weight: 700;
  color: var(--text-dark);
}

.journal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}
.journal-body p {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ============================================================
   CTA BANNER
/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: #f5f0eb;
  padding: 48px 24px;
  text-align: center;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(115deg, #2a5c41 0%, #3a7d58 100%);
  border-radius: 28px;
  padding: 44px 56px;
  box-shadow:
    0 18px 38px rgba(27, 63, 46, 0.24),
    0 5px 12px rgba(27, 63, 46, 0.12);
  position: relative;
  overflow: hidden;
}

/* Decorative circle — large, right side, clearly visible */
.cta-decor-circle {
  position: absolute;
  top: -40px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Second smaller inner circle for depth */
.cta-decor-circle::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.15;
  position: relative;
}

.cta-banner p {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Primary: solid white pill */
.btn-cta-primary {
  background: var(--white);
  color: var(--green-dark);
  border: 2px solid var(--white);
  border-radius: 50px;
  padding: 10px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.btn-cta-primary:hover {
  background: #ddeee3;
  border-color: #ddeee3;
  transform: translateY(-1px);
}

/* Outline: transparent with visible white border */
.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  padding: 10px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.btn-cta-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(160deg, #2a5c41 0%, #1b3f2e 100%);
  padding: 64px 24px 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
}

/* Brand name — bold white, no logo icon */
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  max-width: 300px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact p {
  font-size: 0.845rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.footer-contact i {
  font-size: 0.9rem;
  width: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Column headings */
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--white);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: right;
  max-width: 380px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .navbar .btn-dark {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Old dropdown disabled — replaced by .mob-nav overlay */
  .nav-links.open {
    display: none;
  }

  .hero-container,
  .about-container,
  .options-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-pills {
    grid-template-columns: 1fr;
  }
  .hero-right {
    order: -1;
  }
  .hero-img {
    height: 340px;
  }
  .hero-badge {
    left: 0;
    bottom: 16px;
  }
  .options-expert-badge {
    right: 8px;
    bottom: 12px;
    max-width: 160px;
  }
  .options-img {
    height: 300px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .journal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .journal-meta {
    white-space: nowrap;
  }
  .journal-cat {
    white-space: nowrap;
  }
}

/* ============================================================
   SCROLL ANIMATIONS (JS-driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   MOBILE NAV OVERLAY
/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(160deg, #1b3f2e 0%, #2a5c41 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mob-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Close button (X in top-right) */
.mob-nav-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  transition: background 0.2s ease;
}
.mob-nav-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.mob-nav-close span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}
.mob-nav-close span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}
.mob-nav-close span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mob-nav-links {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mob-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.mob-nav.open .mob-nav-links li:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.08s;
}
.mob-nav.open .mob-nav-links li:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.14s;
}
.mob-nav.open .mob-nav-links li:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}
.mob-nav.open .mob-nav-links li:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.26s;
}
.mob-nav.open .mob-nav-links li:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.32s;
}
.mob-nav.open .mob-nav-links li:nth-child(6) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.38s;
}

.mob-nav-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}
.mob-nav-links li a:hover,
.mob-nav-links li a:active {
  color: #d8f3dc;
  padding-left: 6px;
}

.mob-num {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  margin-left: auto;
  padding-left: 16px;
  flex-shrink: 0;
}

.mob-support-btn {
  display: block;
  width: 100%;
  background: #f5f0eb;
  color: var(--green-dark);
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition:
    background 0.2s ease,
    transform 0.25s ease,
    opacity 0.3s ease;
}
.mob-nav.open .mob-support-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.44s;
}
.mob-support-btn:hover,
.mob-support-btn:active {
  background: #ffffff;
  transform: translateY(-2px);
}

.mob-nav-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 0;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mob-nav.open .mob-nav-tagline {
  opacity: 1;
  transition-delay: 0.5s;
}

/* Hide desktop nav-cta on mobile — it lives inside the overlay */
@media (max-width: 768px) {
  .nav-cta {
    display: none !important;
  }
  .navbar .btn-green.nav-cta {
    display: none !important;
  }
}

/* Tablet-specific styles for mobile nav */
@media (min-width: 769px) and (max-width: 1024px) {
  .mob-nav {
    padding: 100px 48px 60px;
  }

  .mob-nav-links li a {
    font-size: clamp(2rem, 4vw, 2.2rem);
    padding: 28px 0;
  }

  .mob-num {
    font-size: 0.8rem;
  }

  .mob-support-btn {
    padding: 18px 32px;
    font-size: 1.05rem;
    max-width: 400px;
    margin: 0 auto 28px;
  }

  .mob-nav-tagline {
    font-size: 0.9rem;
    max-width: 320px;
  }

  /* On tablets, show hamburger but keep some desktop nav visible */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none !important;
  }
}

/* ============================================================
   ANIMATIONS — page-wide
   ============================================================ */

/* Fade up — used by reveal system */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in from left */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in from right */
@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Gentle float — hero image, badge, expert card */
@keyframes floatA {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floatB {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Soft pulse ring — hero badge */
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 106, 75, 0.28);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(53, 106, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 106, 75, 0);
  }
}

/* Scale in — pill tags */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer — ticker */
@keyframes shimmer {
  from {
    background-position: -200% center;
  }
  to {
    background-position: 200% center;
  }
}

/* ---- Apply float to hero image & badges ---- */
.hero-img {
  animation: floatA 5s ease-in-out infinite;
}
.hero-badge {
  animation: floatB 4.2s ease-in-out infinite 0.6s;
}
.options-expert-badge {
  animation: floatB 3.6s ease-in-out infinite;
}

/* ---- Pulse ring on stat badge ---- */
.hero-badge {
  animation:
    floatB 4.2s ease-in-out infinite 0.6s,
    pulseRing 2.8s ease-out infinite 1.2s;
}

/* ---- Hero content fade-in on load ---- */
.hero-tagline {
  animation: scaleIn 0.5s ease 0.1s both;
}
.hero-heading {
  animation: fadeUp 0.65s ease 0.2s both;
}
.hero-subtext {
  animation: fadeUp 0.65s ease 0.35s both;
}
.hero-buttons {
  animation: fadeUp 0.65s ease 0.48s both;
}
.hero-stats {
  animation: fadeUp 0.65s ease 0.6s both;
}
.hero-image-wrap {
  animation: fadeRight 0.7s ease 0.3s both;
}

/* ---- About hero (other pages) ---- */
.ab-hero .section-tag,
.ed-pill-tag,
.ct-pill-tag,
.calc-pill-tag {
  animation: scaleIn 0.45s ease 0.1s both;
}
.ab-hero-heading,
.ed-hero-heading,
.ct-hero-heading,
.calc-hero-heading {
  animation: fadeUp 0.6s ease 0.2s both;
}
.ab-hero-sub,
.ed-hero-sub,
.ct-hero-sub,
.calc-hero-sub {
  animation: fadeUp 0.6s ease 0.35s both;
}
.ab-hero-buttons,
.ed-hero-buttons {
  animation: fadeUp 0.6s ease 0.48s both;
}

/* ---- Service & value card entrance stagger ---- */
.services-grid .service-card:nth-child(1),
.ab-values-grid .ab-value-card:nth-child(1),
.ed-stages-grid .ed-stage-card:nth-child(1) {
  animation-delay: 0s;
}
.services-grid .service-card:nth-child(2),
.ab-values-grid .ab-value-card:nth-child(2),
.ed-stages-grid .ed-stage-card:nth-child(2) {
  animation-delay: 0.1s;
}
.services-grid .service-card:nth-child(3),
.ab-values-grid .ab-value-card:nth-child(3),
.ed-stages-grid .ed-stage-card:nth-child(3) {
  animation-delay: 0.2s;
}
.services-grid .service-card:nth-child(4),
.ab-values-grid .ab-value-card:nth-child(4),
.ed-stages-grid .ed-stage-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* ---- CTA banner text ---- */
.cta-banner h2 {
  animation: fadeUp 0.6s ease 0.1s both;
}
.cta-banner p {
  animation: fadeUp 0.6s ease 0.22s both;
}
.cta-buttons {
  animation: fadeUp 0.6s ease 0.36s both;
}

/* ---- Journal cards image zoom on hover ---- */
.journal-card:hover .journal-img {
  transform: scale(1.06);
}

/* ============================================================
   TOUCH-FRIENDLY HOVER EFFECTS (mobile & tablet)
   — using :active as the touch equivalent of :hover
   ============================================================ */
@media (hover: none) {
  /* Buttons — tap feedback */
  .btn:active {
    transform: scale(0.97);
    opacity: 0.88;
    transition:
      transform 0.1s ease,
      opacity 0.1s ease;
  }
  .btn-green:active {
    background: #2a5c41;
    transform: scale(0.97) translateY(0);
    box-shadow: 0 2px 8px rgba(42, 92, 65, 0.3);
  }

  /* Cards — tap lift */
  .service-card:active,
  .journal-card:active,
  .ab-value-card:active,
  .ed-stage-card:active {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 2px rgba(53, 106, 75, 0.15),
      0 10px 28px rgba(27, 63, 46, 0.12);
    border-color: var(--green-mid);
  }

  /* About pills tap */
  .about-pill:active {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 2px rgba(53, 106, 75, 0.15);
  }

  /* Nav links tap */
  .nav-links li a:active::after {
    transform: scaleX(1);
  }

  /* Timeline dots tap */
  .ab-timeline-item:active .ab-timeline-dot {
    box-shadow: 0 0 0 6px rgba(53, 106, 75, 0.22);
  }

  /* Journal card tap */
  .journal-card:active .journal-img {
    transform: scale(1.04);
  }

  /* Service link tap */
  .service-link:active {
    color: var(--green-mid);
    gap: 10px;
  }
}

/* ============================================================
   ABOUT PILLS — hover green outline (index.html)
   ============================================================ */
.about-pill {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.about-pill:hover {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 2px rgba(53, 106, 75, 0.15);
  cursor: default;
}

/* ============================================================
   ABOUT PAGE — ab-hero
   ============================================================ */
.nav-cta {
  font-size: 0.85rem;
  padding: 8px 18px;
}

.ab-hero {
  background: radial-gradient(
    ellipse 120% 80% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 35%,
    #f4f9f5 65%,
    #ffffff 100%
  );
  padding: 100px 24px 90px;
  text-align: center;
}
.ab-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* "ABOUT US" pill tag — green filled badge */
.ab-hero .section-tag {
  display: inline-block;
  background: #cce5d6;
  color: var(--green-dark);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ab-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 20px;
}
.ab-hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}
.ab-hero-sub {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.ab-hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT PAGE — why we started
   ============================================================ */
.ab-why {
  padding: 90px 24px;
  background: var(--white);
}
.ab-why-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.ab-why-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}
/* Content column — remove max-width cap so text fills the grid cell */
.ab-why-content .section-body {
  max-width: 100%;
}
.ab-why-content .section-heading {
  max-width: 100%;
}
.ab-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.ab-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ab-stats .stat-number {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-mid);
}
.ab-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================================
   ABOUT PAGE — what we stand for
   ============================================================ */
.ab-values {
  padding: 80px 24px 100px;
  background: #f2f4f0;
}
.ab-values-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Large heading matching screenshot */
.ab-values-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 18px;
}

.ab-values-sub {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 52px;
}
.ab-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ab-value-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 24px 32px;
  border: 1px solid #e4ebe5;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.ab-value-card:hover {
  border-color: var(--green-mid);
  box-shadow:
    0 0 0 2px rgba(53, 106, 75, 0.12),
    0 8px 28px rgba(27, 63, 46, 0.08);
  transform: translateY(-4px);
}
.ab-value-icon {
  width: 44px;
  height: 44px;
  background: #ddf0e4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ab-value-icon i {
  font-size: 1.05rem;
  color: var(--green-mid);
}
.ab-value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.ab-value-card p {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   ABOUT PAGE — how we grew (timeline)
   ============================================================ */
.ab-timeline {
  padding: 90px 24px 100px;
  background: var(--white);
}
.ab-timeline-container {
  max-width: 1200px;
  margin: 0 auto;
}
.ab-timeline-container .section-heading {
  margin-bottom: 48px;
}

.ab-timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
}
.ab-timeline-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.ab-timeline-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}
.ab-timeline-item:last-child {
  padding-bottom: 0;
}
.ab-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-mid);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(53, 106, 75, 0.18);
}
.ab-timeline-content {
  flex: 1;
}
.ab-timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: block;
  margin-bottom: 4px;
}
.ab-timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.ab-timeline-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   ABOUT PAGE — responsive
   ============================================================ */
@media (max-width: 960px) {
  .ab-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .ab-why-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ab-why-image img {
    height: 300px;
  }
  .ab-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .ab-values-grid {
    grid-template-columns: 1fr;
  }
  .ab-hero-heading {
    font-size: 2.2rem;
  }
}

/* ============================================================
   EGG DONATION PAGE
   ============================================================ */

/* ---- Hero ---- */
.ed-hero {
  background: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 40%,
    #f4f9f5 70%,
    #ffffff 100%
  );
  padding: 80px 24px 90px;
}

.ed-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Pill badge */
.ed-pill-tag {
  display: inline-block;
  background: #cce5d6;
  color: var(--green-dark);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ed-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 18px;
}
.ed-hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}

.ed-hero-sub {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 420px;
}

.ed-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ed-hero-right {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ed-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: block;
}

/* ---- Four clear stages ---- */
.ed-process {
  padding: 90px 24px 100px;
  background: #f2f4f0;
}

.ed-process-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ed-process-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 48px;
  line-height: 1.15;
}

.ed-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ed-stage-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 24px 32px;
  border: 1px solid #e4ebe5;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.ed-stage-card:hover {
  border-color: var(--green-mid);
  box-shadow:
    0 0 0 2px rgba(53, 106, 75, 0.12),
    0 8px 24px rgba(27, 63, 46, 0.07);
  transform: translateY(-4px);
}

.ed-stage-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #c8ddd0;
  margin-bottom: 16px;
  line-height: 1;
}

.ed-stage-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ed-stage-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Eligibility + FAQ split ---- */
.ed-split {
  padding: 90px 24px 100px;
  background: var(--white);
}

.ed-split-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Eligibility */
.ed-eligibility-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.ed-eligibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}
.ed-eligibility-list li i {
  color: var(--green-mid);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ Accordion */
.ed-faq .section-heading {
  margin-bottom: 28px;
}

.ed-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.ed-accordion-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ed-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  transition: color 0.2s;
}
.ed-accordion-btn:hover {
  color: var(--green-mid);
}

.ed-accordion-btn i {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ed-accordion-item.open .ed-accordion-btn i {
  transform: rotate(180deg);
}
.ed-accordion-item.open .ed-accordion-btn {
  color: var(--green-mid);
}

.ed-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.3s ease;
  padding: 0 4px;
}
.ed-accordion-item.open .ed-accordion-body {
  max-height: 200px;
  padding-bottom: 18px;
}
.ed-accordion-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ed-stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .ed-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ed-hero-right {
    order: -1;
  }
  .ed-hero-img {
    height: 280px;
  }
  .ed-split-container {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .ed-stages-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */

/* ---- Hero Section ---- */
.blog-hero {
  background: linear-gradient(135deg, #f8f9f7 0%, #e8ebe7 100%);
  padding: 100px 24px 80px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.blog-pill-tag {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.blog-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}
.blog-hero-heading em {
  color: var(--green-dark);
  font-style: italic;
}
.blog-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Blog Section ---- */
.blog-section {
  background: var(--white);
  padding: 80px 24px;
}
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.blog-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

/* "Read article" link — first definition removed, see blog section below */

/* ---- Load More ---- */
.blog-load-more {
  text-align: center;
  margin-top: 32px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 20px 60px;
  }
  .blog-hero-heading {
    font-size: 2rem;
  }
  .blog-hero-sub {
    font-size: 1rem;
  }
  .blog-section {
    padding: 60px 20px;
  }
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .blog-heading {
    font-size: 1.8rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .blog-hero-heading {
    font-size: 1.7rem;
  }
  .blog-hero-sub {
    font-size: 0.95rem;
  }
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */

/* ---- Hero Section ---- */
.blog-post-hero {
  background: linear-gradient(135deg, #f8f9f7 0%, #e8ebe7 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.blog-post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.blog-post-cat {
  background: var(--green-dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-post-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.blog-post-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 32px;
}
.blog-post-title em {
  color: var(--green-dark);
  font-style: italic;
}
.blog-post-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(27, 63, 46, 0.1);
}
.blog-post-author-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
}
.blog-post-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-post-author-info {
  text-align: left;
}
.blog-post-author-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.blog-post-author-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Content Section ---- */
.blog-post-content {
  background: var(--white);
  padding: 60px 24px 80px;
}
.blog-post-content-inner {
  max-width: 740px;
  margin: 0 auto;
}
.blog-post-featured-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}
.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-post-body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}
.blog-post-body p {
  margin-bottom: 24px;
}
.blog-post-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 32px;
}
.blog-post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 40px 0 20px;
  line-height: 1.3;
}
.blog-post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 16px;
  line-height: 1.3;
}
.blog-post-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.blog-post-list li {
  padding: 12px 0 12px 24px;
  position: relative;
  margin-bottom: 8px;
}
.blog-post-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.2rem;
}
.blog-post-list strong {
  color: var(--green-dark);
  font-weight: 600;
}

/* ---- CTA Box ---- */
.blog-post-cta {
  background: linear-gradient(135deg, #f2f4f0 0%, #e8ebe7 100%);
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
  border: 1px solid rgba(27, 63, 46, 0.1);
}
.blog-post-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.blog-post-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---- Related Posts ---- */
.blog-post-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(27, 63, 46, 0.1);
}
.blog-post-related-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.blog-post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-post-related-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.blog-post-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 63, 46, 0.12);
  border-color: var(--green-mid);
}
.blog-post-related-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.blog-post-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-post-related-body {
  padding: 16px;
}
.blog-post-related-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.blog-post-related-body h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .blog-post-hero {
    padding: 60px 20px 40px;
  }
  .blog-post-title {
    font-size: 1.9rem;
  }
  .blog-post-content {
    padding: 40px 20px 60px;
  }
  .blog-post-body h2 {
    font-size: 1.4rem;
  }
  .blog-post-body h3 {
    font-size: 1.2rem;
  }
  .blog-post-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-post-meta {
    flex-direction: column;
    gap: 8px;
  }
  .blog-post-author {
    flex-direction: column;
    text-align: center;
  }
  .blog-post-author-info {
    text-align: center;
  }
  .blog-post-cta {
    padding: 24px;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* ---- Hero ---- */
.ct-hero {
  background: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 40%,
    #f4f9f5 70%,
    #ffffff 100%
  );
  padding: 80px 24px 60px;
  text-align: center;
}
.ct-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

/* Pill badge */
.ct-pill-tag {
  display: inline-block;
  background: #cce5d6;
  color: var(--green-dark);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ct-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 18px;
}
.ct-hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}

.ct-hero-sub {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Body (form + sidebar) ---- */
.ct-body {
  background: #f2f4f0;
  padding: 60px 24px 100px;
}
.ct-body-container {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ---- Contact Form ---- */
.ct-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 40px 36px;
  border: 1px solid #e4ebe5;
  transition: box-shadow 0.2s ease;
}
.ct-form-wrap:hover {
  box-shadow: 0 8px 32px rgba(27, 63, 46, 0.08);
}

.ct-form-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ct-field--full {
  grid-column: 1 / -1;
}

.ct-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
}

.ct-field input,
.ct-field textarea {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #d8e2da;
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  resize: vertical;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--text-muted);
}
/* Hover: subtle mint tint on the border */
.ct-field input:hover,
.ct-field textarea:hover {
  border-color: #b0ccba;
}
/* Focus: green border + soft glow — matches Lovable site */
.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(53, 106, 75, 0.12);
  background: #fafffe;
}

/* Custom select */
.ct-select-wrap {
  position: relative;
}
.ct-select-wrap select {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid #d8e2da;
  border-radius: 10px;
  padding: 11px 38px 11px 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
/* Hover on select */
.ct-select-wrap select:hover {
  border-color: #b0ccba;
}
/* Focus on select */
.ct-select-wrap select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(53, 106, 75, 0.12);
  background: #fafffe;
}
/* Selected value text colour */
.ct-select-wrap select:not([value=""]) {
  color: var(--text-dark);
}
.ct-select-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}
.ct-select-wrap select:focus ~ i {
  color: var(--green-mid);
}

/* Textarea */
.ct-field textarea {
  min-height: 140px;
  line-height: 1.65;
}

/* Footer row */
.ct-form-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.ct-submit-btn {
  align-self: flex-start;
  padding: 11px 28px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.ct-submit-btn:hover:not(:disabled) {
  background: #2a5c41;
  border-color: #2a5c41;
  box-shadow: 0 6px 20px rgba(42, 92, 65, 0.4);
  transform: translateY(-1px);
}
.ct-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
.ct-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Sidebar ---- */
.ct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-reach {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid #e4ebe5;
  transition: box-shadow 0.2s ease;
}
.ct-reach:hover {
  box-shadow: 0 8px 32px rgba(27, 63, 46, 0.08);
}

.ct-reach-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.ct-reach-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}
.ct-reach-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ct-reach-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #daeee2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.ct-reach-list li:hover .ct-reach-icon {
  background: #c4e4d0;
}
.ct-reach-icon i {
  font-size: 0.95rem;
  color: var(--green-mid);
}

.ct-reach-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ct-reach-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.ct-reach-value {
  font-size: 0.87rem;
  color: var(--text-dark);
  line-height: 1.45;
}

/* AI card */
.ct-ai-card {
  background: linear-gradient(135deg, #2a5c41 0%, #356a4b 100%);
  border-radius: 20px;
  padding: 28px 26px;
  color: var(--white);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.ct-ai-card:hover {
  box-shadow: 0 12px 36px rgba(27, 63, 46, 0.25);
  transform: translateY(-2px);
}
.ct-ai-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ct-ai-icon i {
  font-size: 1.05rem;
  color: var(--white);
}

.ct-ai-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.ct-ai-card p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* "Start chatting" — white pill inside dark card */
.ct-ai-btn {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--green-dark);
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.ct-ai-btn:hover {
  background: #ddeee3;
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .ct-body-container {
    grid-template-columns: 1fr;
  }
  .ct-form-wrap {
    padding: 28px 24px;
  }
}
@media (max-width: 560px) {
  .ct-form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CALCULATOR PAGE
   ============================================================ */

/* ---- Hero ---- */
.calc-hero {
  background: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 40%,
    #f4f9f5 70%,
    #ffffff 100%
  );
  padding: 64px 24px 48px;
  text-align: center;
}
.calc-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.calc-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #cce5d6;
  color: var(--green-dark);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.calc-pill-tag i {
  font-size: 0.65rem;
}

.calc-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.calc-hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}

.calc-hero-sub {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Body ---- */
.calc-body {
  background: #f2f4f0;
  padding: 40px 24px 80px;
}
.calc-body-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Tabs ---- */
.calc-tabs {
  display: inline-flex;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.calc-tab {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.calc-tab.active {
  background: var(--white);
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.calc-tab:not(.active):hover {
  color: #666;
  background: #ebebeb;
}

/* ---- Panel layout ---- */
.calc-panel {
  display: block;
}
.calc-panel.hidden {
  display: none;
}

.calc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---- Inputs card ---- */
.calc-inputs {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e4ebe5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calc-inputs-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.calc-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.calc-field input[type="date"] {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #d8e2da;
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.calc-field input[type="date"]:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(53, 106, 75, 0.1);
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #dde8e2;
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(53, 106, 75, 0.15);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.calc-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(53, 106, 75, 0.2);
}
.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-mid);
  border: none;
  cursor: pointer;
}

/* ---- Results column ---- */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-window-card {
  background: var(--green-dark);
  border-radius: 16px;
  padding: 28px 32px;
  color: var(--white);
}
.calc-window-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}
.calc-window-dates {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.calc-window-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.calc-key-dates {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e4ebe5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.calc-key-item {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid #e4ebe5;
}
.calc-key-item:last-child {
  border-right: none;
}
.calc-key-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.calc-key-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.calc-chart-wrap {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e4ebe5;
  padding: 22px 24px;
}
.calc-chart-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.calc-chart-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.calc-chart {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.calc-bar-row {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.calc-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}
.calc-bar-track {
  background: #e8f0ea;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
}
.calc-bar-fill {
  height: 100%;
  background: var(--green-dark);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.calc-bar-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.calc-due-mini {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e4ebe5;
  padding: 22px 24px;
}
.calc-due-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-due-date {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.calc-due-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.calc-disclaimer {
  background: #f2f4f0;
  padding: 0 24px 48px;
}
.calc-disclaimer-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #e4ebe5;
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.calc-disclaimer-inner i {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.calc-disclaimer-inner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.calc-speak-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 9px 20px;
}

@media (max-width: 760px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-key-dates {
    grid-template-columns: 1fr;
  }
  .calc-key-item {
    border-right: none;
    border-bottom: 1px solid #e4ebe5;
  }
  .calc-key-item:last-child {
    border-bottom: none;
  }
  .calc-disclaimer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .calc-tabs {
    flex-direction: row;
    border-radius: 14px;
    width: 100%;
    justify-content: center;
  }
  .calc-tab {
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-hero {
  background: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 40%,
    #f4f9f5 70%,
    #ffffff 100%
  );
  padding: 72px 24px 56px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.blog-pill-tag {
  display: inline-block;
  background: #cce5d6;
  color: var(--green-dark);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.blog-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 18px;
}
.blog-hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}
.blog-hero-sub {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto;
}

.blog-section {
  background: var(--white);
  padding: 52px 24px 80px;
}
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Category filter pills ---- */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1.5px solid #d6ddd9;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
.blog-filter-btn:hover {
  border-color: var(--green-mid);
  color: var(--green-dark);
  transform: translateY(-1px);
}
.blog-filter-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  font-weight: 600;
}
.blog-filter-btn:active {
  transform: scale(0.96);
}

/* ---- 3-col card grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* "Read article" link inside card */
.journal-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  margin-top: auto;
  padding-top: 14px;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}
.journal-link::after {
  content: "→";
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.journal-link:hover {
  color: var(--green-dark);
  gap: 8px;
}
}

/* hidden card state for filter */
.journal-card.hidden-card {
  display: none;
}

.blog-load-more {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */

.blog-post-hero {
  background: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    #ddeee3 0%,
    #eaf4ee 40%,
    #f4f9f5 70%,
    #ffffff 100%
  );
  padding: 64px 24px 48px;
  text-align: center;
}
.blog-post-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-post-cat {
  background: #cce5d6;
  color: var(--green-dark);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-post-date,
.blog-post-read {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 28px;
}
.blog-post-title em {
  font-style: italic;
  color: var(--green-mid);
}
.blog-post-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.blog-post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-post-author-avatar i {
  color: var(--white);
  font-size: 1.1rem;
}
.blog-post-author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.blog-post-author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.blog-post-author-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.blog-post-article {
  background: var(--white);
  padding: 48px 24px 80px;
}
.blog-post-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-featured-img {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.blog-post-featured-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.blog-post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 14px;
}
.blog-post-body p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.82;
  margin-bottom: 18px;
}
.blog-post-body ul.blog-post-list {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-post-body ul.blog-post-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}
.blog-post-body ul.blog-post-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-mid);
  font-size: 1.1rem;
  line-height: 1.5;
}

.blog-post-cta-box {
  background: #f2f4f0;
  border-radius: 16px;
  padding: 32px 36px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.blog-post-cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.blog-post-cta-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-post-related {
  margin-top: 56px;
}
.blog-post-related-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.blog-post-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.blog-post-related-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: block;
}
.blog-post-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-post-related-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.blog-post-related-body {
  padding: 14px 16px;
}
.blog-post-related-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: block;
  margin-bottom: 6px;
}
.blog-post-related-body h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ============================================================
   COMMUNITY DISCUSSION
   ============================================================ */

.discussion-section {
  margin-top: 64px;
  padding-top: 48px;
}

.discussion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.discussion-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.discussion-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}
.discussion-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.discussion-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
}

/* Sort pills */
.discussion-sort {
  display: flex;
  gap: 6px;
}
.disc-sort-btn {
  padding: 6px 18px;
  border-radius: 50px;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.disc-sort-btn:hover {
  color: var(--text-dark);
  border-color: #d0d9d3;
}
.disc-sort-btn.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  font-weight: 600;
}

/* Form */
.discussion-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.discussion-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disc-input,
.disc-textarea {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #e2ece6;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}
.disc-input::placeholder,
.disc-textarea::placeholder {
  color: var(--text-muted);
}
.disc-input:focus,
.disc-textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(53, 106, 75, 0.1);
}
.disc-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

.disc-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.disc-char-count {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.disc-kindness {
  color: var(--green-mid);
}

.disc-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.86rem;
}
.disc-submit-btn i {
  font-size: 0.82rem;
}

/* Comments list */
.discussion-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.disc-comment {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
.disc-comment:last-child {
  border-bottom: 1px solid var(--border);
}
.disc-comment:hover {
  border-color: var(--green-mid);
  box-shadow: 0 12px 28px rgba(27, 63, 46, 0.18);
  transform: translateY(-3px);
}

.disc-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.disc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #cce5d6;
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.disc-comment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.disc-commenter {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.disc-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.disc-comment-body {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.72;
  margin: 0 0 12px;
}

.disc-comment-actions {
  display: flex;
  gap: 8px;
}
.disc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.disc-action-btn:hover {
  color: var(--green-mid);
  background: #eaf4ee;
}
.disc-action-btn.active {
  color: #c0392b;
}
.disc-action-btn.active i {
  color: #c0392b;
}
.disc-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.disc-like-btn:hover {
  color: var(--green-mid);
  background: #eaf4ee;
}
.disc-like-btn.liked {
  color: #c0392b;
}
.disc-like-btn.liked i {
  color: #c0392b;
}

/* Empty state */
.disc-empty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}
.disc-empty p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .blog-post-related-grid {
    grid-template-columns: 1fr;
  }
  .discussion-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .disc-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .disc-submit-btn {
    align-self: flex-end;
  }
}

/* Journal card link wrapper — makes the whole card clickable */
.journal-card-link {
  display: block;
  width: 100%;
}

/* ===== AI BOT CHAT ===== */
.ai-bot-section {
  min-height: calc(100vh - 80px);
  background: #faf9f6;
  padding: 40px 20px;
}

.ai-bot-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  height: calc(100vh - 160px);
  min-height: 0;
}

/* Sidebar */
.ai-sidebar {
  width: 280px;
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.ai-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ai-sidebar-header h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ai-new-chat-btn {
  background: var(--green-mid);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.ai-new-chat-btn:hover {
  background: var(--green-dark);
}

.ai-sessions-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-session-item {
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s ease;
  border: 1px solid transparent;
}

.ai-session-item:hover {
  background: #f5f5f5;
}

.ai-session-item.active {
  background: #eaf4ee;
  border-color: var(--green-mid);
}

.ai-session-id {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.ai-session-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-no-sessions {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Main chat area */
.ai-chat-main {
  flex: 1;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 0;
}

.ai-chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.ai-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-bot-avatar {
  width: 48px;
  height: 48px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.ai-bot-info h1 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
}

.ai-bot-status {
  font-size: 0.85rem;
  color: var(--green-mid);
  font-weight: 500;
}

/* Messages */
.ai-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-welcome {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ai-welcome-avatar {
  width: 80px;
  height: 80px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.ai-welcome h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ai-welcome p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.ai-suggested-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.ai-suggested-btn {
  background: #f2f4f0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.ai-suggested-btn:hover {
  background: #eaf4ee;
  border-color: var(--green-mid);
}

.ai-message {
  display: flex;
  gap: 12px;
}

.ai-message-user {
  flex-direction: row-reverse;
}

.ai-message-content {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.ai-message-user .ai-message-content {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 36px;
  height: 36px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ai-message-user .ai-message-avatar {
  background: var(--text-muted);
}

.ai-message-text {
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.ai-message-assistant .ai-message-text {
  background: #f2f4f0;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.ai-message-user .ai-message-text {
  background: var(--green-mid);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

/* Input area */
.ai-input-area {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.ai-chat-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.ai-message-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  min-height: 50px;
  max-height: 150px;
  outline: none;
  transition: border-color 0.2s ease;
}

.ai-message-input:focus {
  border-color: var(--green-mid);
}

.ai-send-btn {
  width: 50px;
  height: 50px;
  background: var(--green-mid);
  border: none;
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.ai-send-btn:hover {
  background: var(--green-dark);
}

.ai-send-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.ai-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-disclaimer i {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-bot-container {
    flex-direction: column;
    height: calc(100dvh - 120px);
    min-height: 0;
  }

  .ai-sidebar {
    width: 100%;
    max-height: 200px;
  }

  .ai-chat-main {
    flex: 1;
    min-height: 0;
  }
}

/* ===== AI BOT FLOATING BUTTON ===== */
.ai-bot-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--green-dark, #2d6a4f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow:
    0 6px 24px rgba(45, 106, 79, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 1100;
  border: none;
  cursor: grab;
  outline: none;
  transition:
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.ai-bot-float-btn:hover {
  background: #1b4d36;
  box-shadow: 0 10px 32px rgba(45, 106, 79, 0.5);
}
.ai-bot-float-btn:active {
  cursor: grabbing;
}

/* ===== AI BOT POPUP ===== */
.ai-bot-popup {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 360px;
  height: min(580px, calc(100dvh - 120px));
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  z-index: 1099;
  overflow: hidden;
  animation: aiBotSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  isolation: isolate;
}
@keyframes aiBotSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.ai-bot-popup.active {
  display: flex;
}

/* --- Header --- */
.ai-bot-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #2d6a4f;
  flex-shrink: 0;
}
.ai-bot-popup-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ai-bot-popup-info {
  flex: 1;
  min-width: 0;
}
.ai-bot-popup-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-bot-popup-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}
.ai-bot-popup-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ai-bot-hdr-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.ai-bot-hdr-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* --- History panel --- */
.ai-bot-history-panel {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 10;
  border-radius: 18px;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.ai-bot-history-panel.active {
  transform: translateX(0);
}
.ai-bot-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #2d6a4f;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ai-bot-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.ai-bot-history-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f7f8f5;
  border: 1.5px solid #e4e8e2;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.ai-bot-history-item:hover,
.ai-bot-history-item.active {
  border-color: #2d6a4f;
  background: #f0f7f3;
}
.ai-bot-history-preview {
  font-size: 0.87rem;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.ai-bot-history-date {
  font-size: 0.72rem;
  color: #888;
}
.ai-bot-history-empty {
  font-size: 0.87rem;
  color: #999;
  text-align: center;
  padding: 24px 0;
  margin: 0;
}

/* --- Messages area --- */
.ai-bot-popup-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafaf8;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.ai-bot-popup-messages::-webkit-scrollbar {
  width: 5px;
}
.ai-bot-popup-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* --- Welcome screen --- */
.ai-bot-welcome {
  text-align: center;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ai-bot-welcome h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.ai-bot-welcome p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.ai-bot-suggested {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-top: 6px;
}
.ai-bot-suggested-btn {
  background: #fff;
  border: 1.5px solid #d8ddd6;
  border-radius: 50px;
  padding: 11px 18px;
  font-size: 0.87rem;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  line-height: 1.3;
}
.ai-bot-suggested-btn:hover {
  border-color: #2d6a4f;
  background: #f0f7f3;
}

/* --- Chat messages --- */
.ai-bot-message {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.ai-bot-message.user {
  flex-direction: row-reverse;
}
.ai-bot-message-content {
  max-width: 80%;
}
.ai-bot-message-text {
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.45;
  font-size: 0.88rem;
  word-break: break-word;
}
.ai-bot-message.assistant .ai-bot-message-text {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e4e8e2;
  border-bottom-left-radius: 4px;
}
.ai-bot-message.user .ai-bot-message-text {
  background: #2d6a4f;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* --- Copy button on assistant messages --- */
.ai-bot-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: none;
  border: none;
  color: #999;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 3px 0;
  transition: color 0.2s ease;
  font-family: inherit;
}
.ai-bot-copy-btn:hover {
  color: #2d6a4f;
}
.ai-bot-copy-btn.copied {
  color: #2d6a4f;
}
.ai-bot-copy-btn i {
  font-size: 0.85rem;
}

/* --- Typing indicator --- */
.ai-bot-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e4e8e2;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.ai-bot-typing span {
  width: 7px;
  height: 7px;
  background: #2d6a4f;
  border-radius: 50%;
  display: inline-block;
  animation: aiBotDot 1.2s infinite ease-in-out;
}
.ai-bot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.ai-bot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes aiBotDot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* --- Input area --- */
.ai-bot-popup-input {
  padding: 12px 16px 10px;
  border-top: 1px solid #e8ebe5;
  background: #fff;
  flex-shrink: 0;
}
.ai-bot-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #f2f4f0;
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.ai-bot-input-wrap:focus-within {
  border-color: #2d6a4f;
  background: #fff;
}
.ai-bot-textarea {
  flex: 1;
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 0.88rem;
  font-family: inherit;
  resize: none;
  min-height: 24px;
  max-height: 100px;
  outline: none;
  color: #1a1a1a;
  line-height: 1.4;
}
.ai-bot-textarea::placeholder {
  color: #999;
}
.ai-bot-send-btn {
  width: 38px;
  height: 38px;
  background: #2d6a4f;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.ai-bot-send-btn:hover {
  background: #1b4d36;
}
.ai-bot-send-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.ai-bot-disclaimer {
  font-size: 0.72rem;
  color: #999;
  text-align: center;
  margin: 7px 0 0;
}

/* ===== AI BOT MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
  .ai-bot-float-btn {
    bottom: 20px;
    right: 16px;
  }

  .ai-bot-popup {
    bottom: 90px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 360px;
    height: min(520px, calc(100dvh - 110px));
  }
}

/* ============================================================
   ERROR PAGES (404 / 500 / 403)
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: var(--green-bg);
  text-align: center;
}
.error-container {
  max-width: 520px;
}
.error-icon {
  font-size: 2.4rem;
  color: var(--green-mid);
  margin-bottom: 18px;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.error-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.error-text {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 36px;
}
.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== AI BOT MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
  .ai-bot-float-btn {
    bottom: 20px;
    right: 16px;
  }

  .ai-bot-popup {
    bottom: 90px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 360px;
    height: min(520px, calc(100dvh - 110px));
  }
}
