/* --- General Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* --- Body --- */
body {
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.6;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* --- Header --- */
header {
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header h3 {
  font-weight: 400;
  opacity: 0.9;
}

/* --- Blog Posts Container --- */
#blogPosts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Each Post */
.blog-post {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.blog-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 15px;
  color: #16a085;
  line-height: 1.4;
}

.blog-post .meta {
  font-size: 0.9rem;
  color: #777;
  margin: 0 15px 12px;
}

.blog-post p {
  font-size: 1rem;
  margin: 0 15px 18px;
  color: #333;
}

.blog-post a {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .blog-post img { height: 160px; }
  .blog-post h2 { font-size: 1.1rem; }
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Modal --- */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; top: 0;
  width: 100%; height: 100%; 
  background-color: rgba(0,0,0,0.6);
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  max-width: 700px;
  border-radius: 12px;
  animation: fadeSlideUp 0.5s ease;
}

.modal-content h2 { color: #16a085; }

.modal .close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  background: #1abc9c;
  color: white;
  margin-top: 40px;
}

footer .social-icons { margin-bottom: 7px; }
footer .social-icons a {
  margin: 0 8px;
  font-size: 1.3rem;
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}
footer .social-icons a:hover { color: #16a085; }

/* --- Popup Notification --- */
#unlockPopup {
  display:none;
  position:fixed;
  top:20px;
  right:20px;
  background:#2c3e50;
  color:#fff;
  padding:10px 20px;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.3);
  z-index:2000;
  font-weight: bold;
  animation: fadeSlideUp 0.5s ease;
}

/* --- Floating Button --- */
#urgent-care-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.4s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  z-index: 9999;
}

#urgent-care-btn span { font-size: 14px; }
#urgent-care-btn .extra-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}
#urgent-care-btn.expanded {
  background: #128c7e;
  padding-right: 28px;
}
#urgent-care-btn.expanded .extra-text {
  opacity: 1;
  max-width: 500px;
  margin-left: 5px;
}

/* --- Continue Reading Link --- */
.continue-reading {
  display: inline-block;
  margin-top: 8px;
  font-weight: bold;
  color: blue;
  text-decoration: none;
  transition: all 0.3s ease;
}
.continue-reading:hover {
  color: #25d366;
  transform: translateX(4px);
}


/* ===== Footer Base ===== */
.footer {
  background: #fff; /* white footer background */
  color: #333; /* dark text */
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #eee; /* subtle top border */
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== Logo ===== */
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #16a085; /* accent green */
  margin-bottom: 0.5rem;
}

/* ===== Rights text ===== */
.footer-rights {
  font-size: 0.9rem;
  color: #666;
}

/* ===== Footer Base ===== */
.footer {
  background: #fff; /* white footer background */
  color: #333; /* dark text */
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #eee; /* subtle top border */
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px; /* keep it centered on wide screens */
  margin: 0 auto;
}

/* ===== Logo ===== */
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #16a085; /* accent green */
  margin-bottom: 0.5rem;
}

/* ===== Rights text ===== */
.footer-rights {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
}

/* ===== Social Icons ===== */
.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

.footer .social-icon,
.footer .social-icon * {
  color: #000 !important;  /* solid black icons */
  fill: #000 !important;
  stroke: #000 !important;
  opacity: 1 !important;
}

.footer .social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f8f8f8; /* light gray background */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  -webkit-font-smoothing: antialiased;
}

.footer .social-icon:hover,
.footer .social-icon:focus {
  background: #16a085; /* hover background */
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  outline: none;
  color: #000 !important;
  fill: #000 !important;
  stroke: #000 !important;
  opacity: 1 !important;
}

.footer .social-icon:active {
  transform: scale(0.98);
}

/* ===== Section Titles ===== */
.footer-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #16a085; /* accent green */
}

/* ===== Footer Links ===== */
.footer-link {
  display: block;
  color: #333;
  text-decoration: underline; /* underline by default */
  margin: 0.3rem 0;
  transition: color 0.3s, text-decoration 0.3s, font-weight 0.2s;
}

.footer-link:hover {
  color: #16a085;
  text-decoration: none; /* underline disappears */
  font-weight: bold; /* bold on hover */
}

/* ===== Responsive: Desktop Layout ===== */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-section {
    flex: 1;
    min-width: 200px; /* keeps spacing even */
  }

  /* Align left column items (logo/rights/socials) */
  .footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Keep middle + right sections neat */
  .footer-section:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Align socials to the left instead of center */
  .footer .social-icons {
    justify-content: flex-start;
  }
}



/* ===========================
   Newsletter Form Styling
=========================== */
#subscribe {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
}

#subscribe h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

#subscribe p {
  color: #555;
  margin-bottom: 1.2rem;
}

#mc_embed_signup form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#mc_embed_signup input.email {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

#mc_embed_signup .button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#mc_embed_signup .button:hover {
  background: #0056b3;
}





.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem 0;
}

.pagination button {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.pagination button:hover {
  background-color: #0066ff;
  color: #fff;
  border-color: #0066ff;
}

.pagination button.active {
  background-color: #0066ff;
  color: white;
  border-color: #0066ff;
}





/* ===========================
   ✨ NEW FEATURES STYLES ✨
   =========================== */

/* ===========================
   ✨ NEW FEATURES STYLES ✨
   =========================== */

/* ---------- 1️⃣ Subscription Form ---------- */
/* ==============================
   Champolo Blog - Newsletter Subscription
   ============================== */

.subscription-section {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 4rem 2rem;
  margin: 5rem auto;
  text-align: center;
  max-width: 680px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.subscription-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* --- Title & Text --- */
.subscription-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #16a085;
  margin-bottom: 1rem;
}

.subscription-section p {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- Form Layout --- */
#subscriptionForm {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* --- Input Fields --- */
#subscriptionForm input[type="email"],
#subscriptionForm input[type="text"] {
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #d1d5db;
  border-radius: 2rem;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  transition: all 0.3s ease;
}

#subscriptionForm input:focus {
  border-color: #16a085;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2);
}

/* --- Button --- */
#subscriptionForm button {
  background: #16a085;
  color: white;
  border: none;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

#subscriptionForm button:hover {
  background: #13856f;
  transform: translateY(-2px);
}

/* --- Success/Error Message --- */
#subscriptionMessage {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease, color 0.5s ease;
}

#subscriptionMessage.show {
  opacity: 1;
}

/* --- Responsive Design --- */
@media (max-width: 480px) {
  .subscription-section {
    padding: 2.5rem 1rem;
  }

  .subscription-section h2 {
    font-size: 1.6rem;
  }

  #subscriptionForm {
    flex-direction: column;
    gap: 0.8rem;
  }

  #subscriptionForm input,
  #subscriptionForm button {
    width: 100%;
  }
}


/* ---------- 2️⃣ Post Exit Popup ("Start Your Cure Today") ---------- */
.cure-popup {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #fff;
  color: #2c3e50;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 25px 30px;
  max-width: 360px;
  text-align: center;
  display: none;
  z-index: 99999;
  animation: fadeInUp 0.6s ease forwards;
}

.cure-popup.active {
  display: block;
}

.cure-popup h3 {
  font-size: 1.4rem;
  color: #16a085;
  margin-bottom: 10px;
}

.cure-popup p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.cure-popup button {
  background: #16a085;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cure-popup button:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- 3️⃣ Post Pagination (1,2,3,...) ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px auto;
  flex-wrap: wrap;
}

.pagination button {
  background: #fff;
  border: 1px solid #ddd;
  color: #2c3e50;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pagination button.active {
  background: #16a085;
  color: #fff;
  border-color: #16a085;
}

.pagination button:hover:not(.active) {
  background: #f1f1f1;
  transform: translateY(-2px);
}


/* ---------- 4️⃣ "Read Next" Section ---------- */
.read-next {
  margin-top: 60px;
  padding: 40px 20px;
  background: #fdfdfd;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.read-next h2 {
  color: #16a085;
  font-size: 1.6rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.read-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.read-next-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.read-next-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.read-next-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.read-next-card h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 15px;
}

.read-next-card p {
  color: #777;
  font-size: 0.9rem;
  margin: 0 15px 20px;
}

.read-next-card a {
  display: inline-block;
  color: #16a085;
  font-weight: 600;
  margin: 0 15px 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.read-next-card a:hover {
  color: #128c7e;
}

/* ---------- 5️⃣ Post Preview (Admin) ---------- */
.preview-container {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  margin-top: 40px;
}

.preview-header {
  font-size: 1.4rem;
  color: #16a085;
  margin-bottom: 15px;
}

.preview-content {
  color: #333;
  line-height: 1.6;
}

.preview-content img {
  border-radius: 10px;
  max-width: 100%;
  margin: 15px 0;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 768px) {
  .subscription-section {
    width: 90%;
    padding: 30px 20px;
  }

  .cure-popup {
    right: 20px;
    left: 20px;
    max-width: none;
  }

  .read-next-grid {
    grid-template-columns: 1fr;
  }

  .pagination button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}


/* ========================= */
/* BLOG GRID SECTION STYLES */
/* ========================= */

/* ========================= */
/* BLOG GRID SECTION STYLES */
/* ========================= */

.blog-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #16a085;
  text-align: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ exactly 2 per row on desktop */
  gap: 2.5rem; /* slightly increased spacing for elegance */
  justify-content: center;
}

/* --- Individual Cards --- */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card img {
  width: 100%;
  height: 300px; /* ✅ slightly larger for Ali Abdaal-style preview cards */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.blog-content {
  padding: 1.8rem; /* more whitespace for premium look */
}

.blog-content h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.blog-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  color: #16a085;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.read-more:hover {
  color: #13856d;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr; /* still 2 per row on tablet */
  }

  .blog-card img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr; /* ✅ neatly stacks on mobile */
    gap: 1.8rem;
  }

  .blog-card img {
    height: 220px;
  }

  .blog-content {
    padding: 1.2rem;
  }
}






/* ---------------------------- */
/* READ NEXT / EXPLORE MORE */
/* ---------------------------- */
/* ---------------------------- */
/* READ NEXT / EXPLORE MORE */
/* ---------------------------- */
.readnext-section {
  margin-top: 60px;
  padding: 40px 20px;
  background: #fafafa;
  border-radius: 16px;
}

.readnext-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.readnext-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Rectangular "Explore More Blogs" button */
.explore-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16a085;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid #16a085;
}

.explore-more:hover {
  background: transparent;
  color: #16a085;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(22,160,133,0.2);
}

/* GRID LAYOUT */
.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.next-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.next-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.next-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.next-content {
  padding: 16px 20px;
}

.next-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.next-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Continue Reading button */
.continue-reading {
  display: inline-block;
  color: blue;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.continue-reading:hover {
  color: #13856e;
  text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .readnext-section {
    padding: 24px 16px;
  }

  .explore-more {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  .next-card img {
    height: 180px;
  }
}



/* =========================
   OVERRIDE: Force 2-up blog grid
   Put this at the *end* of style.css
   ========================= */

/* Container sizing (applies to homepage blog listing and other grids) */
#blogPosts,
.posts-grid,
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* exactly 2 columns */
  gap: 2rem !important;
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 20px;
  align-items: stretch;
}

/* Make cards larger and balanced (works for .blog-post and .blog-card) */
.blog-post,
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Bigger preview images for premium look */
.blog-post img,
.blog-card img {
  width: 100%;
  height: 340px; /* larger preview image on desktop */
  object-fit: cover;
  display: block;
}

/* Headline sizing and spacing */
.blog-post h2,
.blog-content h3 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 16px;
  color: #16a085;
}

/* Make excerpt area comfortable */
.blog-post p,
.blog-content p {
  margin: 0 16px 20px;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

/* Ensure the entire card is clickable without breaking layout */
.blog-post > a,
.blog-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Slight lift on hover kept */
.blog-post:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Pagination and spacing tweaks to match new grid */
.pagination {
  margin-top: 2.5rem;
}

/* ---------------------------
   Responsive: tablet -> still 2 columns
   --------------------------- */
@media (max-width: 992px) {
  #blogPosts,
  .posts-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem;
  }
  .blog-post img,
  .blog-card img {
    height: 300px;
  }
}

/* ---------------------------
   Responsive: mobile -> 1 column
   --------------------------- */
@media (max-width: 720px) {
  #blogPosts,
  .posts-grid,
  .blog-grid {
    grid-template-columns: 1fr !important; /* stack on mobile */
    gap: 1.25rem;
    padding: 0 14px;
  }

  .blog-post img,
  .blog-card img {
    height: 200px; /* smaller images for mobile */
  }

  .blog-post h2,
  .blog-content h3 {
    font-size: 1.25rem;
    margin: 12px;
  }

  .blog-post p,
  .blog-content p {
    margin: 0 12px 16px;
    font-size: 0.98rem;
  }
}

/* Accessibility: ensure focus states remain visible */
.blog-post a:focus,
.blog-card a:focus {
  outline: 3px solid rgba(22,160,133,0.18);
  outline-offset: 4px;
}

/* Minor helper for older rules that used minmax(280px, 1fr) */
@supports (grid-template-columns: repeat(2, 1fr)) {
  /* no-op — keeps browsers happy */
}





.trust-section {
  padding: 60px 20px;
  background-color: #f5fbf6;
  text-align: center;
}

.trust-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2f6b3f;
}

.trust-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.trust-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.trust-disclaimer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #555;
}





.featured-content {
  padding: 60px 20px;
}

.featured-content h2 {
  text-align: center;
  margin-bottom: 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.content-card {
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 8px;
}

.read-more {
  color: #2f6b3f;
  font-weight: bold;
  text-decoration: none;
}






.product-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.product-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
}

.product-card button {
  background-color: #2f6b3f;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

.hidden {
  display: none;
}
