/* ========================================================== HOME ========================================================== */
 :root{
    --bg-900:#0b1b12; /* deep green-black */
    --bg-800:#0f2418;
    --bg-700:#12301f;
    --brand-500:#27c17a; /* primary green */
    --brand-600:#20a466;
    --brand-700:#1a8a56;
    --brand-300:#69e1aa;
    --text-100:#fcfffd;
    --text-300:#d6e7de;
    --muted-400:#95b4a5;
    --card:#11261b;
    --shadow:0 10px 30px rgba(0,0,0,.25);
    --radius:18px;
    --radius-lg:26px;
    --device-screen-h: 70svh;
    --header-h: 58px;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0;font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:linear-gradient(180deg,var(--bg-900),var(--bg-800));color:var(--text-100);scroll-behavior:smooth}
  a{color:inherit;text-decoration:none}
  img{max-width:100%;display:block}
  .container{width:min(1120px,92vw);margin-inline:auto}

  /* Header */
  header{
    position: sticky;
    top: 0;
    z-index: 100;         /* ↑ higher than mobile-nav/backdrop */
    background: rgba(15,36,24,.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
  .brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
  .brand .logo{
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;       /* keeps rounded corners on the bitmap */
    box-shadow: var(--shadow);
    /* Optional: remove the gradient background since we now show an image */
    background: none;
    display: grid;
    place-items: center;
  }

  .brand .logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;    /* keeps your logo proportions */
    display: block;
  }
  .brand span{font-size:1.05rem}
  nav ul{list-style:none;display:flex;gap:20px;margin:0;padding:0}
  nav a{padding:10px 14px;border-radius:12px;color:var(--text-300)}
  nav a:hover, .nav-active{background:rgba(255,255,255,.06);color:var(--text-100)}
  .cta-btn{padding:10px 16px;border-radius:12px;background:var(--brand-500);color:#082414;font-weight:700;border:1px solid #0b6a42;box-shadow:0 6px 20px rgba(39,193,122,.35);cursor: pointer;}
  .cta-btn:hover{background:var(--brand-600)}

  /* ====== Mobile Nav (burger) ====== */
  .hamburger{
    display: none !important;                /* shown on small screens */
    appearance:none;
    border:0;
    background:rgba(255,255,255,.06);
    color:var(--text-100);
    width:42px;height:42px;border-radius:12px;
    display:grid;place-items:center;
    cursor: pointer;
  }
  .hamburger ion-icon{ font-size:22px; }

  /* Backdrop for outside click */
  .nav-backdrop{
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    bottom: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: saturate(120%) blur(2px);
    z-index: 80;
  }

  /* Panel */
  .mobile-nav{
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    z-index: 90;  /* header (100) > mobile (90) > backdrop (80) */
    background: linear-gradient(180deg,#10281b,#0d1f16);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);

    /* Smooth slide + fade both directions */
    transform: translateY(-16px);     /* start slightly above its anchor */
    opacity: 0;
    transition:
      transform .35s cubic-bezier(.2,.8,.2,1),
      opacity   .35s cubic-bezier(.2,.8,.2,1);

    /* keep it out of flow when hidden attr is present (handled by JS) */
    padding: 12px 0 16px;
  }
  .mobile-nav.open{
    transform: translateY(0);         /* slide down into place */
    opacity: 1;
  }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce){
    .mobile-nav{ transition: none; }
  }

  /* Panel contents */
  .mobile-nav ul{
    list-style:none; margin:0; padding:8px 18px 12px;
    display:flex; flex-direction:column; gap:8px;
  }
  .mobile-nav a{
    display:block; padding:12px 14px;
    border-radius:12px; color:var(--text-100);
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
  }
  .mobile-nav a:hover, .mobile-nav-active{ background:rgba(255, 255, 255, 0.18) !important; }

  .mobile-nav .cta-btn.full{
    width:100%; text-align:center; padding:12px 16px;
  }

  /* Prevent body scroll when menu open */
  .body--lock{ overflow:hidden; }

  /* Show burger / hide desktop nav on small screens */
  @media (max-width: 980px){
    .hamburger{ display:grid !important; }
    header nav[aria-label="Primary"]{ display:none; } /* your desktop nav */
  }

  /* Hero */
  .hero{padding:72px 0 48px;position:relative;overflow:hidden}
  .hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
  .badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(39,193,122,.12);border:1px solid rgba(39,193,122,.25);color:var(--brand-300);font-weight:600}
  h1{font-size:clamp(2rem,4.6vw,3.8rem);line-height:1.05;margin:12px 0 12px}
  .tagline{font-size:clamp(1rem,2.1vw,1.22rem);color:var(--text-300);max-width:46ch}
  .store-row{display:flex;gap:14px;flex-wrap:wrap;margin:22px 0 12px}
  .store {
    display: inline-block;
    padding: 0;                 /* no extra padding around the image */
    border: none;               /* remove the light border if you prefer the clean badge */
    background: transparent;    /* badges already have their own style */
    border-radius: 12px;
    overflow: hidden;           /* keeps corners nicely rounded */
  }

  .store img {
    display: block;
    height: 50px;   /* desktop size; tweak as you like */
    width: auto;

  }
  .hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
  .btn{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;background:transparent;border:1px solid rgba(255,255,255,.14);color:var(--text-100);font-weight:600}
  .btn:hover{background:rgba(255,255,255,.06)}
  .btn.primary{background:var(--brand-500);border-color:#0b6a42;color:#082414}
  .btn.primary:hover{background:var(--brand-600)}
  .device{
    position: relative;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg,#0d2419,#0a1a12);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
    /* Let the device shrink-wrap around its screen instead of stretching the grid cell */
    width: max-content;
    max-width: 100%;
  }
  .device::after{content:"";position:absolute;inset:-120px -60px auto auto;background:radial-gradient(300px 300px at 100% -20%,rgba(39,193,122,.2),transparent 70%);}
  .device-screen{
    /* Keep phone ratio but size by HEIGHT so it never exceeds the viewport */
    height: clamp(340px, var(--device-screen-h), 680px);
    aspect-ratio: 9 / 19;
    width: auto;               /* width derives from height × aspect-ratio */
    border-radius: 12px;
    background: linear-gradient(180deg,#0f2b1d,#08140e);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    display: grid;
    place-items: center;
  }
  .device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain if you want full screenshot visible */
    border-radius: 12px;
    background-color: #fff;
  }
  .hero-bg-blur {
    position: absolute;
    inset: auto -20% -30% -20%;
    height: 360px;
    background: radial-gradient(600px 260px at 50% 0, rgba(39,193,122,.25), transparent 60%);
    top: 0%;
    z-index: 1;   /* ✅ push blur behind content */
    pointer-events: none; /* ✅ ensures clicks always go through */
  }

  @media (max-width: 980px) {
    .hero-grid {
      grid-template-columns: 1fr;       /* already stacking */
    }
    .device {
      margin: 0 auto;                   /* center the device block */
    }
  }

  /* Section Base */
  section{padding:72px 0}
  .section-title{font-size:clamp(1.4rem,2.4vw,2rem);margin:0 0 8px}
  .section-sub{color:var(--muted-400);margin:0 0 26px}
  /* ===== Mission split layout ===== */
  .split{
    display:grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    align-items: center;
  }

  .split-text p{
    color: var(--text-300);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
  }

  .split-media{
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg,#10271b,#0d1f16);
  }

  .split-media img{
    display:block;
    width:100%;
    height:100%;
    max-height: 520px;          /* keep it big but contained */
    object-fit: cover;          /* fills the box nicely */
  }

  /* Responsive: stack on mobile */
  @media (max-width: 980px){
    .split{
      grid-template-columns: 1fr;
    }
    .split-media{
      order: -1;                /* show image first on small screens (optional) */
      max-height: 380px;
    }
  }

  /* Even smaller phones */
  @media (max-width: 640px){
    .split-media{
      max-height: 320px;
    }
  }

  /* ===== Impact Forecast Chart ===== */
  .chart-card{
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg,#10271b,#0d1f16);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .chart-header{
    display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
    margin-bottom: 8px;
  }

  .chart-legend{
    display:flex; align-items:center; gap:8px; color: var(--text-300);
    font-size: .95rem;
  }
  .legend-dot{
    width:10px; height:10px; border-radius:50%;
    background: var(--brand-500);
    display:inline-block;
  }

  .chip{
    display:inline-block;
    padding:4px 8px; border-radius:999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    margin-right:6px;
  }

  .chart-wrap{
    width:100%;
    aspect-ratio: 16 / 7;                         /* responsive */
    border-radius: 14px;
    background: linear-gradient(180deg,#0f2418,#0b1b12);
    border: 1px solid rgba(255,255,255,.06);
    overflow:hidden;
  }

  .chart-svg{
    width:100%; height:100%;
    display:block;
  }

  /* Axis & grid (subtle) */
  .chart-grid line{ stroke: rgba(255,255,255,.10); stroke-width: 1; }
  .chart-axis text{ fill: var(--muted-400); font-size: 12px; }
  .chart-axis path, .chart-axis line{ stroke: rgba(255,255,255,.18); }

  /* Line */
  .chart-line{ fill: none; stroke: var(--brand-500); stroke-width: 3; }
  .chart-area{ fill: rgba(39,193,122,.18); }

  /* Dots & labels */
  .chart-dot{ fill: var(--brand-500); }
  .chart-label{ fill: var(--text-300); font-size: 11px; }

  /* Responsive */
  @media (max-width: 640px){
    .chart-header{ flex-direction:column; }
  }

  .card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}

  /* How It Works */
  .hiw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
  .step{position:relative;padding:22px;border-radius:var(--radius);background:linear-gradient(180deg,#10281b,#0d1f16);border:1px solid rgba(255,255,255,.06)}
  .step .num{width:34px;height:34px;border-radius:10px;background:rgba(39,193,122,.15);border:1px solid rgba(39,193,122,.35);display:grid;place-items:center;font-weight:800;color:var(--brand-300);margin-bottom:12px}
  .step h3{margin:6px 0 6px}
  .step p{color:var(--text-300)}

  /* Key Features */
  .features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
  .feature{padding:22px;border-radius:var(--radius);background:linear-gradient(180deg,#10271b,#0d1f15);border:1px solid rgba(255,255,255,.06)}
  .feature .icon{width:42px;height:42px;border-radius:12px;background:rgba(39,193,122,.14);border:1px solid rgba(39,193,122,.34);display:grid;place-items:center;margin-bottom:12px}
  .feature h4{margin:8px 0}
  .feature p{color:var(--text-300)}

  /* Why Foster */
  .why{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:center}
  .why-images{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .why-images img{border-radius:16px;border:1px solid rgba(255,255,255,.08)}

  /* Testimonials */
  .testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
  /* Testimonial Author Image */
  .author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;       /* makes it a circle */
    object-fit: cover;        /* crop to fill */
    margin-top: 10px;
    border: 2px solid var(--brand-500);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
  }
  /* ---------- Infinite testimonials marquee ---------- */
  .testimonials-marquee {
    position: relative;
    overflow: hidden;
    padding: 14px 0;
  }
  .marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration, 130s) linear infinite;
  }
  .marquee-group {
    display: flex;
    gap: 18px;
  }
  /* Reuse your existing .quote look, but make width fixed for smoothness */
  .quote {
    min-width: 320px;           /* card width; tweak as you like */
    max-width: 340px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(180deg,#10261b,#0d1e15);
    border: 1px solid rgba(255,255,255,.06);
  }
  .quote p { color: var(--text-300); margin: 0 0 40px; }
  .quote .author { font-weight: 700; color: var(--text-100); }
  /* Author avatar (circle) */
  .author-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px;
    border: 2px solid var(--brand-500);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
  }
  /* Animation: shift left by 50% because track contains 2 identical groups */
  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  /* Hover to pause (optional) */
  .testimonials-marquee:hover .marquee-track {
    animation-play-state: paused;
  }
  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
  }
  /* Responsive tuning */
  @media (max-width: 640px) {
    .quote { min-width: 260px; }
  }
  /* Screenshots Carousel */
  .carousel{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid rgba(255,255,255,.06);background:#0d2117}
  .carousel-track{display:flex;transition:transform .5s ease}
  .slide{min-width:100%;padding:16px}
  .slide .shot{aspect-ratio:9/19;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#123321,#0b1b12);display:grid;place-items:center}
  .carousel-controls{position:absolute;inset:auto 0 0 0;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.3))}
  .carousel-btn{appearance:none;border:0;background:var(--bg-900) !important;color:#fff;border-radius:12px;padding:10px 12px;cursor:pointer}
  .dots{display:flex;gap:8px;align-items:center}
  .dot{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.3)}
  .dot.active{background:var(--brand-500)}
  .screens .carousel{
    height: min(88svh, 880px);
  }
  .screens .carousel-track{
    height: 100%;
  }
  .screens .slide{
    padding: 16px;
    height: 100%;
  }
  .screens .slide .shot{
    height: 100%;
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;                         /* no grid centering—use full height */
  }
  .screens .slide .shot img{
    width: 100%;
    height: 100%;
    object-fit: contain;   /* use cover if you want edge-to-edge */
    border-radius: 22px;
  }
  /* Center the nav vertically */
  .screens .carousel-controls{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: none;
    pointer-events: none;
  }
  .screens .carousel-btn{
    pointer-events: auto;
    appearance: none;
    border: 0;
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: grid;
    place-items: center;
  }

  /* CTA Banner */
  .cta-banner{margin-top:26px;padding:24px;border-radius:var(--radius-lg);background:linear-gradient(120deg,rgba(39,193,122,.18),rgba(39,193,122,.06));border:1px solid rgba(39,193,122,.35);display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:space-between}

  /* Footer */
  footer{padding:30px 0 150px;color:var(--muted-400);border-top:1px solid rgba(255,255,255,.06)}
  .footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr;gap:20px}
  .footer-grid h5{margin:6px 0 10px;color:var(--text-100)}
  .footer-a{margin-bottom: 10px;}
  .social{display:flex;gap:12px}
  .social a{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.06)}

  /* Utilities */
  .muted{color:var(--muted-400)}
  .center{text-align:center}
  .spacer-8{height:8px}

  /* Responsive */
  @media (max-width: 980px){
    .hero-grid{grid-template-columns:1fr;align-items: start;}
    .why{grid-template-columns:1fr}
    .features-grid{grid-template-columns:repeat(2,1fr)}
    .footer-grid{grid-template-columns:1fr 1fr}
  }
  @media (max-height: 800px){
    :root{ --device-screen-h: 62svh; }
  }
  @media (max-width: 640px){
    :root{ --device-screen-h: 54svh; }
    nav ul{display:none}
    .hiw-grid{grid-template-columns:1fr}
    .features-grid{grid-template-columns:1fr}
    .testimonials{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr}
    .hero{padding-top:46px}
    .store img { height: 42px; }
    .screens .carousel{ height: 92svh; }
  }

/* ========================================================== Modal ========================================================== */
.modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none;                 /* hidden by default */
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.open{ display: flex; }

.modal{
  width: min(640px, 92vw);
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}

.modal h3{
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.modal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-close{
  position:absolute; top:10px; right:10px;
  appearance:none; border:0; cursor:pointer;
  background: rgba(255,255,255,.08);
  color: var(--text-100);
  border-radius: 10px; width: 36px; height: 36px;
  font-size: 120%;
}

.modal .store{
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.modal .store img{
  display:block;
  width: 100%;
  height: auto;
}

/* Stack badges on small screens */
@media (max-width: 480px){
  .modal-grid{ grid-template-columns: 1fr; }
}

/* Audience segmented buttons */
.seg-row{
  display: inline-flex;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 6px;
  margin: 50px auto 0px;
}

.seg-btn{
  appearance:none; border:0; cursor:pointer;
  padding:10px 16px; border-radius:10px;
  font-weight:700; color:var(--text-300);
  background: transparent;
  font-size: 130% !important;

}
.seg-btn.active{
  background: var(--brand-500);
  color:#082414; box-shadow:0 6px 16px rgba(39,193,122,.35);
}

/* Make phone mockups fit nicely inside split column */
.split .device{ margin-inline:auto; }
.split .device-screen{ height: clamp(320px, 58svh, 640px); }

/* Mobile: on howitworks.html, always show image UNDER text */
@media (max-width: 980px){
  body.howitworks .split{
    grid-template-columns: 1fr;   /* stack */
  }
  body.howitworks .split .split-text{
    order: 1;                      /* text first */
  }
  body.howitworks .split .device{
    order: 2;                      /* image second */
    margin-top: 14px;              /* a little breathing room */
  }
}
/* ========================================================== BLOG ========================================================== */

/* ===== BLOG LIST (scoped) ===== */
body.blogpage .blog-section {
  padding: 60px 20px;
}
body.blogpage .blog-section .container{
  display:flex;
  gap:40px;
  max-width:1120px; /* match your site container */
  margin:auto;
  align-items:flex-start;
}
body.blogpage .blog-left{
  flex:3;
  display:flex;
  flex-direction:column;
}
body.blogpage .blog-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:20px;
}
body.blogpage .blog-card {
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border:1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.blogpage .blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
  background:#0d1f16;
}
body.blogpage .blog-content { padding: 18px; }
body.blogpage .blog-meta {
  font-size: 0.9rem;
  color: var(--text-300);
  margin-bottom: 8px;
}
body.blogpage .blog-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--text-100);
}
body.blogpage .blog-card p {
  font-size: 0.98rem;
  color: var(--text-300);
  margin: 0;
}
body.blogpage .blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
body.blogpage .blog-card-link:hover .blog-card{
  transform: translateY(-2px);
  border-color: rgba(39,193,122,.35);
  box-shadow: 0 16px 36px rgba(39,193,122,.18);
}

/* Sidebar */
body.blogpage .blog-sidebar {
  flex: 1;
  position: sticky;
  top: 24px;
}
body.blogpage .search-box { display:block; margin-bottom: 24px; }
body.blogpage .search-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text-100);
  border-radius: 10px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(39,193,122,.12);
}
body.blogpage .search-box input::placeholder { color: var(--muted-400); }

/* Right-column heading parity */
body.blogpage .aside-title{
  margin: 8px 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-100);
}

/* Popular list (hotlist) */
body.blogpage .hotlist{
  display:grid;
  gap: 14px;
  list-style:none;
  margin:0; padding:0;
}
body.blogpage .hotlink{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap:14px;
  align-items:center;
  padding:10px;
  border-radius:12px;
  text-decoration:none;
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.blogpage .hotlink:hover{
  transform: translateY(-2px);
  border-color: rgba(39,193,122,.35);
  box-shadow: 0 10px 26px rgba(39,193,122,.18);
}
body.blogpage .hot-thumb{
  width:84px; height:64px; object-fit:cover; border-radius:10px; display:block;
}
body.blogpage .hot-heading{
  margin:0 0 4px; font-weight:800; color:var(--text-100); font-size:.92rem;
}
body.blogpage .hot-meta{ color: var(--muted-400); font-size:.85rem; }

/* Load more */
body.blogpage .load-more-btn{
  align-self:center;
  margin:34px 0 0;
  padding:14px 28px;
  background: var(--brand-500);
  color:#082414;
  border:1px solid #0b6a42;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(39,193,122,.25);
}
body.blogpage .load-more-btn:hover{ background: var(--brand-600); }
body.blogpage .load-more-btn.is-hidden { display:none; }

/* Responsive */
@media (max-width: 1120px){
  body.blogpage .blog-section .container{ gap:28px; padding-inline: 0; }
}
@media (max-width: 980px){
  body.blogpage .blog-section .container{ flex-direction:column; }
  body.blogpage .blog-grid{ grid-template-columns: 1fr; gap:18px; }
  body.blogpage .blog-sidebar{ position: static; width:100%; }
  body.blogpage .load-more-btn{ width:100%; }
}
@media (max-width: 560px){
  body.blogpage .blog-card img{ height: 200px; }
}

/* ================================================================= BLOG UNIT ================================================================= */

/* Article layout (uses Pet Foster variables) */
.entry-section { padding: 60px 0 60px; }
.entry-container { width: min(1120px, 92vw); margin-inline: auto; }
.entry-layout{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.entry-hero{ margin: 0 0 18px; border-radius: 12px; overflow: hidden; background:#0d1f16; border:1px solid rgba(255,255,255,.06); }
.entry-hero img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.entry-meta{ color: var(--muted-400); font-size:.95rem; margin-bottom:10px; }
.entry-title{ margin:0 0 12px; font-weight:800; line-height:1.12; font-size:clamp(1.9rem,1.2vw + 1.6rem,3rem); }
.entry-content{ color: var(--text-300); font-size:1.05rem; line-height:1.75; }
.entry-content ol{ padding-left:1.2rem; }
.entry-content li{ margin:8px 0; }
.entry-content p{ color: #c8c8c8; }

/* Sidebar (match your blog list sidebar look) */
.entry-aside{ position: sticky; top: 24px; }
.aside-title{
  margin: 8px 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-100);
}
.hotlist{
  display:grid;
  gap: 14px;
  list-style:none;
  margin:0; padding:0;
}
.hotlink{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap:14px;
  align-items:center;
  padding:10px;
  border-radius:12px;
  text-decoration:none;
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hotlink:hover{
  transform: translateY(-2px);
  border-color: rgba(39,193,122,.35);
  box-shadow: 0 10px 26px rgba(39,193,122,.18);
}
.hot-thumb{ width:84px; height:64px; object-fit:cover; border-radius:10px; display:block; }
.hot-heading{ margin:0 0 4px; font-weight:800; color:var(--text-100); font-size:.92rem; }
.hot-meta{ color: var(--muted-400); font-size:.85rem; }

@media (max-width: 980px){
  .entry-layout{ grid-template-columns: 1fr; }
  .entry-aside{ position: static; }
}

/* Page hero styled like your About hero */
.page-hero {
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
}
.page-hero .badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  background:rgba(39,193,122,.12);border:1px solid rgba(39,193,122,.25);
  color:var(--brand-300);font-weight:600
}
.page-hero h1{ margin:12px 0 6px; }
.page-hero .subtitle{ color: var(--text-300); margin:0; }
.page-hero .hero-bg-blur {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 260px;
  background: radial-gradient(600px 220px at 50% 0, rgba(39,193,122,.25), transparent 60%);
  top: 0; z-index: 1; pointer-events: none;
}

/* ================================================================= CONTACT ================================================================= */
  /* Lightweight contact page styles that respect your green theme */
.contact-wrap { padding: 40px 0 80px; }
.contact-info{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.info-card{
  display:flex; align-items:center; gap:14px;
  padding:16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border:1px solid rgba(255,255,255,.06);
}
.info-card__icon{
  width:64px; height:64px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(39,193,122,.12);
  border:1px solid rgba(39,193,122,.35);
  color: var(--brand-300);
  flex: 0 0 64px;
}
.info-card__label{ font-weight:800; margin:0 0 4px; color: var(--text-100); }
.info-card__value{ color: var(--text-300); }

/* Contact info: make cards full width on <= 980px */
@media (max-width: 980px){
  .contact-info{
    grid-template-columns: 1fr;  /* single column */
  }
  .info-card{
    width: 100%;                  /* ensure full stretch in the grid cell */
  }
}


.contact-sep{
  margin: 16px 0 24px;
  border:0; border-top:1px solid rgba(255,255,255,.08);
}

.contact-grid{ grid-template-columns: 1fr; }
@media (max-width: 980px){ .contact-grid{ grid-template-columns: 1fr; } }

/* Form */
.comment-form{ width: 100%; }
.comment-form .kicker{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(39,193,122,.12);
  border:1px solid rgba(39,193,122,.25);
  color:var(--brand-300);
  font-weight:700;
  margin:0 0 10px;
}
.comment-form__title{
  margin:0 0 18px; font-size: clamp(1.7rem, 2.2vw, 2.4rem); font-weight:800;
}
.form-row{
  display:grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 980px){ .form-row{ grid-template-columns:1fr; } }
.comment-form input,
.comment-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text-100);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39,193,122,.10);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder{ color: var(--muted-400); }
.comment-form textarea{ resize: vertical; min-height: 160px; }
.btn.primary.btn-pill{ border-radius:999px; }

/* Map */
.map-wrap{
  width:100%; border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg,#10271b,#0d1f16);
  box-shadow: var(--shadow);
}
.map-wrap iframe{ display:block; width:100%; height:460px; border:0; }

/* ================================================================= COOKIE BANNER ================================================================= */
.cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  z-index: 1100; display: none;
}
.cookie-banner.open{ display:block; }
.cookie-inner{
  width:min(1120px,92vw); margin-inline:auto; padding:16px;
  display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap;
}
.cookie-text{ color: var(--text-300); font-size:.98rem; }
.cookie-text a{ color: var(--brand-300); text-decoration: underline; }

.cookie-actions{ display:flex; gap:10px; }
.cookie-btn{ border-radius:12px; padding:10px 14px; border:1px solid rgba(255,255,255,.14); background:transparent; color:var(--text-100); font-weight:700; cursor:pointer; }
.cookie-btn:hover{ background:rgba(255,255,255,.06); }
.cookie-btn.primary{ background: var(--brand-500); color:#082414; border-color:#0b6a42; box-shadow:0 6px 18px rgba(39,193,122,.30); }
.cookie-btn.primary:hover{ background: var(--brand-600); }

/* ===== Cookie Prefs Modal (reuses your modal look) ===== */
.cookie-modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1200; padding: 20px;
}
.cookie-modal-backdrop.open{ display:flex; }
.cookie-modal{
  width: min(640px, 92vw);
  background: linear-gradient(180deg,#10281b,#0d1f16);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px; position: relative;
}
.cookie-group{ margin-top: 8px; }
.cookie-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 8px 0; }
.cookie-row .chip{text-align: center;}
.cookie-sep{ border:0; border-top:1px solid rgba(255,255,255,.08); margin: 10px 0; }

/* Toggle switch */
.switch{ position:relative; display:inline-block; width:48px; height:28px; }
.switch input{ opacity:0; width:0; height:0; }
.slider{ position:absolute; cursor:pointer; inset:0; background:rgba(255,255,255,.18); border-radius:999px; transition: .2s; }
.slider:before{ content:""; position:absolute; height:22px; width:22px; left:4px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider{ background: var(--brand-500); }
.switch input:checked + .slider:before{ transform: translateX(20px); }
