/* ================================
   Google Sans Self-Hosted Fonts
   ================================ */
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ================================
   Brand Colors
   ================================ */
:root {
  --brand-dark: #023909;
  /* deep green */
  --brand-mid: #104907;
  /* secondary dark green */
  --accent: #4eaf45;
  /* bright green highlight */
  --muted-gray: #6c757d;
  --light-bg: #f7fbf7;
  --text-color: #212529;
  --card-border-color: #e9ecef;
}

/* ================================
   Global Base
   ================================ */
body {
  font-family: 'Google Sans', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

/* ================================
   Navbar / Header
   ================================ */
.header-nav {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 57, 9, 0.04);
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 600;
}

.header-nav .navbar-brand span {
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.1px;
  font-size: 1rem;
}

.header-nav .nav-link {
  color: #263238;
  padding: 0.6rem 0.9rem;
  transition: color .12s ease, transform .08s ease;
  font-size: 0.98rem;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus {
  color: var(--accent);
  transform: translateY(-1px);
}

.header-nav .btn-cta {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.45rem 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(78, 175, 69, 0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}

.header-nav .btn-cta:hover,
.header-nav .btn-cta:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 73, 7, 0.16);
  color: #fff;
}

.header-nav .dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(6, 32, 17, 0.08);
  border: 1px solid rgba(2, 57, 9, 0.04);
}

.header-nav .dropdown-item {
  color: #21302a;
  padding: 0.6rem 1rem;
}

.header-nav .dropdown-item:hover {
  background: rgba(78, 175, 69, 0.06);
  color: var(--brand-mid);
}

.header-nav .navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: transparent;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.3s ease;
}

.header-nav .navbar-toggler:hover {
  background-color: rgba(78, 175, 69, 0.1);
}

.header-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(78, 175, 69, 0.25);
  outline: none;
}

.header-nav .navbar-toggler-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
}

.header-nav .navbar-toggler-icon::before,
.header-nav .navbar-toggler-icon::after,
.header-nav .navbar-toggler-icon span {
  content: '';
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--brand-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.header-nav .navbar-toggler-icon span {
  width: 100%;
}

/* Animated hamburger to X transformation */
.header-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg) translate(7px, 7px);
}

.header-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg) translate(7px, -7px);
}

.header-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
  opacity: 0;
  transform: scaleX(0);
}

/* Hide navbar toggler on large screens (navbar-expand-lg) */
@media (min-width: 992px) {
  .header-nav .navbar-toggler {
    display: none !important;
  }

  .header-nav .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0.3rem;
  }
}

/* ================================
   Buttons
   ================================ */
.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn-accent:hover,
.btn-accent:focus {
  background: #3e9c3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 73, 7, 0.15);
  color: #fff;
}

.btn-outline-dark {
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
  font-weight: 600;
}

.btn-outline-dark:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ================================
   Sections & Cards
   ================================ */
.responsive-illustration {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(2, 57, 9, 0.06);
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(2, 57, 9, 0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(2, 57, 9, 0.10);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(78, 175, 69, 0.12);
  color: var(--brand-mid);
  font-weight: 700;
}

/* ================================
   Footer
   ================================ */
.site-footer {
  background: var(--brand-dark);
  color: #eaf4ec;
  font-size: 0.95rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

.site-footer .footer-brand span {
  color: #ffffff;
  font-weight: 700;
}

.site-footer .footer-heading {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.site-footer .footer-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
}

.site-footer .footer-contact li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .footer-contact i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.site-footer .footer-socials a {
  color: #ffffff;
  margin-right: 0.8rem;
  font-size: 1.25rem;
  transition: color 0.2s ease, transform 0.15s ease;
}

.site-footer .footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0.4rem;
}

.site-footer .footer-bottom-links a:hover {
  color: var(--accent);
}

.site-footer .footer-tagline {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Sticky header adjustments */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  /* above other elements */
}

/* Prevent content hiding under header */
body {
  padding-top: 70px;
  /* adjust depending on navbar height */
}

/* Page Hero with Parallax Effect */
.page-hero {
  position: relative;
  height: 230px;
  /* standard height */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2rem;

  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  /* <— key for parallax */
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 57, 9, 0.85) 0%, rgba(2, 57, 9, 0.65) 60%, rgba(2, 57, 9, 0.4) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: 2.5rem;
  margin: 0;
  text-align: left;
}

.page-hero p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  padding-top: 4px;
}

/* ===============================
   PRE-FOOTER CTA SECTION
   =============================== */

.pre-footer-cta {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 0;
  margin: 0;
  /* no gaps before footer */
  color: #fff;
}

.pre-footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(2, 57, 9, 0.90) 0%,
      rgba(2, 57, 9, 0.65) 50%,
      rgba(2, 57, 9, 0.35) 100%);
  z-index: 0;
}

/* inner layout */
.pre-footer-cta .cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

/* left text block */
.pre-footer-cta .cta-text {
  max-width: 62%;
  min-width: 280px;
}

.pre-footer-cta h2 {
  color: #fff;
  font-weight: 800;
  margin: 0 0 .4rem;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
}

.pre-footer-cta p.lead {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 .8rem;
  font-size: 1rem;
}

.pre-footer-cta .cta-tagline {
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1rem;
  font-weight: 600;
}

/* right side actions */
.pre-footer-cta .cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
}

/* wrapper for label */
.cta-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Big clickable label */
.cta-label {
  background: var(--accent);
  color: #fff;
  padding: .72rem 1.05rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 28px rgba(16, 73, 7, 0.15);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .15s ease;
  text-decoration: none;
}

.cta-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 73, 7, 0.2);
  color: #fff;
}

/* Make cta-label clickable when it's a link - glassy white */
.cta-label.btn-contact-link {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff !important;
}

.cta-label.btn-contact-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

/* Subtitle under label */
.cta-label-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: .85rem;
  margin-top: .3rem;
  text-align: center;
  width: 100%;
}

/* Buttons row */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Ghost-style buttons */
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: .7rem .9rem;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  /* stack label + subtext */
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 140px;
  text-decoration: none;
  transition: all .15s ease;
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Button main and sub lines */
.btn-ghost .btn-main {
  font-size: 1rem;
  font-weight: 700;
}

.btn-ghost .btn-sub {
  display: block;
  /* force next line */
  font-size: .78rem;
  font-weight: 500;
  margin-top: .2rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Accessibility */
.btn-ghost:focus {
  outline: 3px solid rgba(78, 175, 69, 0.25);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .pre-footer-cta .cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pre-footer-cta .cta-text {
    max-width: 100%;
  }

  .pre-footer-cta .cta-actions {
    width: 100%;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: .8rem;
  }

  .btn-ghost {
    width: 100%;
    max-width: 260px;
  }
}

/*blog css */
.blog-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 7.5px;
}

/* HEADER AND NAVIGATION */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0 15px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-dark);
  font-weight: 700;
}

.cta-button {
  background-color: var(--brand-dark);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

/* KNOWLEDGE HUB BANNER (Image with Overlay) */
.knowledge-hub-banner {
  background: url('assets/greenery.webp') center/cover no-repeat;
  background-color: #333;
  position: relative;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
  color: white;
  z-index: 1;
}

/* Overlay Effect using Pseudo-element */
.knowledge-hub-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* FILTERS (Horizontal Scroll on Mobile) */
.filter-nav {
  margin-bottom: 30px;
}

/* Featured Blog Section */
.featured-blog-section {
  margin-bottom: 50px;
}

.featured-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 25px;
  text-align: center;
}

.featured-blog-section {
  margin-bottom: 40px;
}

.featured-blog-section.hidden {
  display: none;
}

.featured-blog-card {
  border: 1px solid var(--card-border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 768px) {
  .featured-blog-card {
    flex-direction: row;
  }
}

.featured-blog-card:hover {
  box-shadow: 0 8px 25px rgba(2, 57, 9, 0.12);
  transform: translateY(-4px);
}

.featured-blog-content .read-time {
  margin-top: 15px;
  padding-top: 15px;
}

.featured-blog-card::before {
  content: "Featured";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.featured-blog-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .featured-blog-image {
    width: 50%;
    height: auto;
    min-height: 300px;
  }
}

.featured-blog-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .featured-blog-content {
    width: 50%;
    padding: 40px;
  }
}

.featured-blog-author {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.featured-blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--brand-dark);
  font-weight: 700;
}

.featured-blog-content p {
  font-size: 0.95rem;
  color: var(--muted-gray);
  margin-bottom: 15px;
  line-height: 1.5;
}

.featured-read-more-btn {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s;
}

.featured-read-more-btn:hover {
  color: var(--accent);
  text-decoration: none;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
}

.filter-list li {
  flex-shrink: 0;
  margin-right: 10px;
}

.filter-list a {
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--card-border-color);
  padding: 8px 15px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
  display: block;
}

.filter-list a.active,
.filter-list a:hover {
  background-color: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

/* ARTICLE GRID */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

/* Reusable Card Component */
.article-card {
  border: 1px solid var(--card-border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: block;
}

.article-card.hidden {
  display: none;
}

.article-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: box-shadow 0.3s, transform 0.3s;
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;

}

.card-content {
  padding: 15px;
}

.article-author {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* READ MORE BUTTON STYLING */
.read-more-btn {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s;
}

.read-more-btn:hover {
  color: var(--accent);
}

/* READ TIME STYLING */
.read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-time i {
  font-size: 0.9rem;
  color: var(--brand-dark);
}

.read-time span {
  font-weight: 500;
}

/* PAGINATION STYLING */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding: 0;
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.pagination-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-btn {
  background-color: #fff;
  color: var(--text-color);
  border: 1px solid var(--card-border-color);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(78, 175, 69, 0.2);
}

.pagination-btn.active {
  background-color: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 57, 9, 0.2);
}

.pagination-btn:disabled,
.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f5f5f5;
  color: #999;
}

.pagination-btn:disabled:hover,
.pagination-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  background-color: #f5f5f5;
  color: #999;
}


/* SUBSCRIPTION & CTA SECTIONS */
.subscription-section {
  background-color: var(--brand-dark);
  color: white;
  text-align: center;
  padding: 40px 15px;
}

.subscribe-box {
  max-width: 700px;
  margin: 0 auto;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.subscribe-form input[type="email"] {
  padding: 12px;
  border: none;
  border-radius: 5px;
  flex-grow: 1;
  max-width: 300px;
}

.subscribe-button {
  background-color: white;
  color: var(--brand-dark);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.cta-journey {
  text-align: center;
  padding: 50px 15px;
  background-color: var(--light-bg);
}

.cta-consultation {
  background-color: var(--brand-dark);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- ADDED: MODAL (POP-UP) STYLING --- */

/* The Full Screen Overlay (for the dark/blurred background) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  overflow-y: auto;
}

/* Modal Content Box */
.modal-content {
  background: white;
  max-width: 900px;
  width: 90%;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-color);
}

/* Content inside modal (Matching final design) */
.modal-content .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.modal-content .post-meta span {
  font-weight: 500;
}

.modal-content .post-meta .category-highlight {
  background-color: var(--brand-dark);
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 10px;
}

.modal-content h1#modal-post-title {
  font-family: serif;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--brand-mid);
}

.modal-content#modal-post-content-body* {
  box-sizing: border-box;
  max-width: 100%;
}

.modal-content .post-content {
  padding-top: 20px;
  font-size: 1.05rem;
}

.modal-content .post-content h2 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--brand-dark);
}

.modal-content figcaption {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 5px;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 15px 0;
}

/* BLUR EFFECT CLASS */
body.modal-open>*:not(.modal-overlay) {
  filter: blur(4px);
  transition: filter 0.3s ease;
}


body.modal-open {
  overflow: hidden;
}


/* MEDIA QUERIES FOR RESPONSIVENESS */

/* Tablets (min-width 768px) */
@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktops (min-width 1024px) */
@media (min-width: 1024px) {
  .article-grid {
    /* 4 columns for large desktops */
    grid-template-columns: repeat(4, 1fr);
  }

  .main-header {
    padding: 15px 50px;
  }
}

/* Mobile-Specific Adjustments (max-width 767px) */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }

  .main-header {
    padding: 15px 20px;
  }


  /* Responsive adjustment for the modal title on small screens */
  .modal-content h1#modal-post-title {
    font-size: 1.8rem;
  }
}

/* --- CRITICAL: HIDE FIXED HEADER WHEN MODAL IS OPEN --- */
body.modal-open .header-nav {
  display: none;
}

/* ================================
   Blog Template Styles
   ================================ */

/* One-liner styling */
.post-one-liner {
  font-size: 1.1rem;
  color: var(--brand-dark);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Introduction, Main Body, Conclusion sections */
.post-introduction,
.post-main-body,
.post-conclusion {
  margin-bottom: 30px;
}

.post-introduction p:first-child {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brand-mid);
}

/* Quote styling */
.blog-quote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--brand-mid);
  font-size: 1.1rem;
  background: rgba(78, 175, 69, 0.05);
  padding: 20px;
  border-radius: 8px;
}

/* CTA/Insight box */
.cta-insight-box {
  background: rgba(2, 57, 9, 0.05);
  border-left: 4px solid var(--brand-dark);
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-insight-box strong {
  color: var(--brand-dark);
  display: block;
  margin-bottom: 8px;
}

/* Related articles section */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--card-border-color);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.related-articles h3 {
  font-size: 1.75rem;
  color: var(--brand-dark);
  margin-bottom: 30px;
  font-weight: 700;
  text-align: left;
}

.related-articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.related-article-card {
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-article-card:hover {
  box-shadow: 0 6px 20px rgba(2, 57, 9, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-article-image {
  display: none;
}

.related-article-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-article-content h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-weight: 600;
  line-height: 1.4;
}

.related-article-content p {
  font-size: 0.95rem;
  color: var(--muted-gray);
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.read-related-btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
}

.read-related-btn:hover {
  color: var(--brand-dark);
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .related-articles-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-articles {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .related-articles-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-articles h3 {
    font-size: 2rem;
  }

  .related-article-content h4 {
    font-size: 1.2rem;
  }
}

/* Subscribe to Updates Section */
.subscribe-updates-section {
  background: var(--brand-dark);
  color: #fff;
  padding: 60px 15px;
  margin-top: 50px;
  text-align: center;
}

.subscribe-container {
  max-width: 700px;
  margin: 0 auto;
}

.subscribe-updates-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.subscribe-updates-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.subscribe-form-updates {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.subscribe-form-updates input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--text-color);
  outline: none;
  transition: box-shadow 0.3s;
}

.subscribe-form-updates input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(78, 175, 69, 0.3);
}

.subscribe-btn-updates {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 35px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.subscribe-btn-updates:hover {
  background: #3e9c3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 175, 69, 0.3);
}

.subscribe-btn-updates:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .subscribe-form-updates {
    flex-direction: column;
  }

  .subscribe-form-updates input[type="email"],
  .subscribe-btn-updates {
    width: 100%;
    min-width: unset;
  }

  .subscribe-updates-section h2 {
    font-size: 1.8rem;
  }

  .subscribe-updates-section p {
    font-size: 1rem;
  }
}

/* ================================
   WhatsApp Floating Button
   ================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Google Sans', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  animation: whatsappGlow 2s ease-in-out infinite;
}

/* WhatsApp button glow animation */
@keyframes whatsappGlow {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.7),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6),
      0 0 0 10px rgba(37, 211, 102, 0),
      0 0 0 20px rgba(37, 211, 102, 0);
  }
}

.whatsapp-btn:hover {
  background: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5),
    0 0 0 0 rgba(37, 211, 102, 0.7),
    0 0 0 0 rgba(37, 211, 102, 0.4);
  animation: whatsappGlowHover 2s ease-in-out infinite;
}

/* WhatsApp button glow animation on hover */
@keyframes whatsappGlowHover {

  0%,
  100% {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5),
      0 0 0 0 rgba(37, 211, 102, 0.8),
      0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  50% {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7),
      0 0 0 12px rgba(37, 211, 102, 0),
      0 0 0 24px rgba(37, 211, 102, 0);
  }
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}

.whatsapp-dropdown {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float.active .whatsapp-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.whatsapp-dropdown-header span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.whatsapp-dropdown-menu {
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #212529;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.whatsapp-option:hover {
  background: rgba(78, 175, 69, 0.08);
  color: var(--brand-mid);
  transform: translateX(-2px);
}

.whatsapp-option:last-child {
  margin-bottom: 0;
}

.whatsapp-option-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.whatsapp-option-text {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn {
    width: 56px;
    height: 56px;
  }

  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-dropdown {
    width: 260px;
    bottom: 70px;
    right: 0;
  }

  .whatsapp-dropdown-header {
    padding: 14px 18px;
  }

  .whatsapp-dropdown-header span {
    font-size: 0.9rem;
  }

  .whatsapp-option {
    padding: 11px 14px;
  }

  .whatsapp-option-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-dropdown {
    width: calc(100vw - 30px);
    max-width: 280px;
    right: 0;
  }
}

/* Phone Call Button Styles */
.phone-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9998;
  font-family: 'Google Sans', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.phone-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #007bff;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  text-decoration: none;
}

.phone-btn:hover {
  background: #0056b3;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
  color: #fff;
}

.phone-btn:active {
  transform: scale(0.95);
}

.phone-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile Responsive for Phone Button */
@media (max-width: 768px) {
  .phone-float {
    bottom: 85px;
    right: 15px;
  }

  .phone-btn {
    width: 56px;
    height: 56px;
  }

  .phone-btn svg {
    width: 26px;
    height: 26px;
  }
}