/* ============================================================
   DIGICATION — style.css
   Design tokens: Elementor Kit (Green / Teal / White / Dark)
   Typefaces: Plus Jakarta Sans (display) + Inter Tight (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ── TOKENS (mapped from Elementor kit) ─────────────────── */
:root {
  /* Brand greens / teals */
  --navy:       #1D443E;
  --navy-mid:   #21645A;
  --gold:       #319B88;
  --gold-light: #77D1BC;
  --nav-hero-bg: #EAF1E8;

  /* Surfaces */
  --white:      #FFFFFF;
  --off-white:  #F4F4F5;
  --bg-base:    #FAFAFA;

  /* Text */
  --text:       #3F3F46;
  --muted:      #71717A;
  --heading:    #09090B;

  /* UI */
  --border:       #319b882e;
  --border-light: #D4D4D8;

  /* Status */
  --success: #198754;
  --danger:  #BC2D3B;
  --warning: #FFC107;
  --info:    #0DCAF0;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter Tight', sans-serif;

  /* Structure */
  --radius:     10px;
  --radius-lg:  18px;
  --transition: 0.28s ease;
  --shadow:     0 4px 24px #1d443e1a;
  --shadow-lg:  0 12px 48px #1d443e2e;

  /* ── Elementor kit — additional tokens (not yet used in components) ── */
  --e-primary:    #27272A;
  --e-secondary:  #A1A1AA;
  --e-accent:     #E4E4E7;
  --e-mint-light: #D4F3EA;

  /* Secondary olive/green palette (unused elsewhere currently) */
  --e-olive-100: #E8F2D5;
  --e-olive-200: #B3D581;
  --e-olive-300: #78A73B;
  --e-olive-400: #476625;
  --e-olive-500: #344621;

  --e-black:            #18181B;
  --e-pure-black:        #000000;
  --e-transparent-black: #02010100;
  
  --e-global-color-07414c8: #78A73B;
}

/* ── RESET / BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-base);
  line-height: 1.5;
}

/* ============ NAVBAR ============ */

#mainNav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

#mainNav .nav-link {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--gold);
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}

#mainNav .nav-link:hover::after {
  transform: scaleX(1);
}

#mainNav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

#mainNav .dropdown-item {
  font-family: var(--font-body);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus {
  background: var(--gold-light);
  color: var(--navy);
}

#mainNav .nav-cta {
  font-family: var(--font-body);
  background: var(--gold);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  transition: background var(--transition), transform var(--transition);
}

#mainNav .nav-cta:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

#mainNav .btn-icon {
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

#mainNav.scrolled {
  box-shadow: var(--shadow-lg);
}

@media (max-width: 991.98px) {
  #mainNav #mobileMenu .nav-link {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
  }

  #mainNav #mobileMenu .nav-cta {
    width: 100%;
    justify-content: center;
    display: flex;
  }
}

/* ── HERO SECTION STYLING ─────────────────────────── */
.hero-section {
  background-color: #eaf1e8; 
  padding: 80px 0 160px 0;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.0rem);
  color: #1A1A1A;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.hero-description p {
  color: #3F3F46;
  font-size: 1rem;
}

.about-title {
  font-size: 55px

}

.btn-partner {
  background-color: #268C79;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition);
}

.btn-partner:hover {
  background-color: #1D6B5C;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Media layout cards dimensions */
.media-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #fff;
  height: 460px;
  overflow: hidden;
  width: 100%;
}

.image-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── EXACT POSITIONING OFFSETS ───────────────────── */

/* Middle image card sits lower down */
.card-low {
  margin-top: 60px;
  height: 460px;
}

/* Right video card sits higher up */
.card-high {
  margin-top: -40px;
  height: 560px;
}

/* Small wave icon directly sitting on top right of the video card */
.wave-video-top {
  position: absolute;
  top: -85px;
  right: 15px;
  width: 75px;
  z-index: 2;
}

.wave-video-top img {
  width: 100%;
  height: auto;
}

/* Video Frame settings */
.video-card {
  position: relative;
}


.badge-icon-wrapper img {
  height: 20px;
  width: auto;
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #7A7A7A;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.badge-text span {
  color: #268C79;
}

/* ── ACCENT DECORATIVE WAVES ──────────────────────── */
.wave-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Placed at the left-middle background area */
.wave-left-mid {
  bottom: 8%;
  left: 35%;
  width: 120px;
  transform: translateX(-50%);
}

.wave-accent img {
  width: 100%;
  height: auto;
}

/* Responsive fixes for tablet / mobile sizes */
@media (max-width: 991px) {
  .card-low, .card-high {
    margin-top: 0; /* Reset offsets on smaller stacked devices */
  }
  .wave-video-top {
    display: none;
  }
  .wave-left-mid {
    left: 50%;
    bottom: 2%;
  }
}

@media (max-width: 576px) {
  .media-card {
    height: 360px;
  }
  .empower-badge {
    left: 15px;
  }
}

/* 1. FORCE THE VIDEO FRAME TO FILL THE ENTIRE BOX */
.video-card {
  position: relative;
  overflow: hidden; /* Clips the over-scaled video edges cleanly */
}

.video-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  
  /* Zooming properties to strip black bars */
  width: 300%;  /* Drastically increases width to account for the 560px vertical card height */
  height: 105%; /* Slightly over-scales height to guarantee coverage */
  
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none; /* Prevents clicks from pausing the background loop */
}

/* 2. POSITION THE BADGE INSIDE THE CARD FRAME */
.video-card .empower-badge {
  bottom: 25px;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px); /* Keeps it neatly padded from both sides inside the card */
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 20px;
  z-index: 10; /* Ensures it sits over the video layer */
}

/* Core badge typography styling */
.badge-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #7A7A7A;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.badge-text span {
  color: #268C79;
}

/* Custom positioning to free the top wave image over the video card */
.wave-video-top {
  position: absolute;
  top: -129px;         /* Pulls it up out of the video container boundary */
  right: 25px;       /* Shifts it slightly right over the edge */
  width: 120px;       /* Makes the wave accent larger and more distinct */
  z-index: 20;        /* Layers it safely on top of the video container layer */
  pointer-events: none; /* Keeps it non-interactive so it doesn't block video functions */
}

.wave-video-top img {
  width: 100%;
  height: auto;
}

/* Unique color styling for the brand pill asset */
.section-pill {
  display: inline-block;
  background: linear-gradient(90deg, #F3EDE0 0%, var(--gold-light) 100%);  color: #21645A;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
}

/* Absolute fill mechanics for the responsive side images */
.split-img-fit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specific styling offsets for the Floating Experience Box overlay */
.experience-badge {
  bottom: 25px;
  right: 25px;
  min-width: 170px;
  z-index: 5;
}

.text-teal {
  color: #268C79 !important;
}

/* Safe stacked height overrides on responsive tablet viewports */
@media (max-width: 991px) {
  .split-img-fit {
    position: relative;
  }
  /* Forces the relative container element to look nicely shaped while stacked */
  .rounded-5 {
    height: 450px;
  }
  .experience-badge {
    bottom: 15px;
    right: 15px;
    padding: 15px !important;
    min-width: 140px;
  }
}

/* ── FOUNDATIONS CARD GRID STYLING ───────────────── */
.max-width-600 {
  max-width: 600px;
}

/* Floating top-right graphic banner placement */
.wave-top-right {
  top: 0;
  right: 15px;
  width: 100px;
  z-index: 2;
}

/* container Card Layout 
.foundation-card {
  background-color: #E6EFEA; 
  border: none;
  transition: transform 0.3s ease;
}*/

/* Image bounding logic helper rules */
.card-image-wrapper {
  position: relative;
  width: 100%;
}

.card-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enforcing absolute structural placement for tall left pillar */
.col-lg-5 .card-image-wrapper {
  height: 280px;
}

/* Small label details formatting */
.pillar-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

/* Responsive optimization adjustments */
@media (min-width: 576px) {
  .col-lg-7 .card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (max-width: 991px) {
  .wave-top-right {
    top: -20px;
    width: 70px;
  }
  .col-lg-5 .card-image-wrapper {
    height: 240px;
  }
}

/* ── SERVICES LIST DECORATION ────────────────────── */
.services-list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Teal branding for the checkmark symbols */
.checkmark-icon {
  color: #268C79; /* Matching your exact template brand color */
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  margin-top: 2px; /* Shifts the checkmark into alignment with long paragraphs */
}

/* ── CUSTOM TUTOR ACCORDION STYLING ──────────────── */
.custom-tutor-accordion .accordion-item {
  border-bottom: 1px solid #E4E4E7 !important; /* Elegant slate border divider lines */
}

.custom-tutor-accordion .accordion-button {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

/* Strip away the default Bootstrap rotating arrow indicator */
.custom-tutor-accordion .accordion-button::after {
  content: '+';
  background-image: none !important;
  font-weight: 300;
  font-size: 1.75rem;
  color: #71717A;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  transition: transform 0.2s ease;
}

/* Rotate the plus slightly to resemble an 'x' close or turn accent when open */
.custom-tutor-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
  color: #268C79; /* Brand signature accent color */
}

.custom-tutor-accordion .accordion-button:hover {
  color: #268C79 !important;
}

/* ── ISOLATED SOLUTIONS PLATFORM SPECIFIC STYLES ── */
.sol-platform-py {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.sol-platform-mb {
  margin-bottom: 3rem;
}

/* Floating top right wave accent */
.sol-platform-wave {
  position: absolute;
  top: 0;
  right: 15px;
  width: 100px;
  z-index: 2;
}

/* Custom platform badge container styling */
.sol-platform-pill {
  display: inline-block;
  background-color: #E2ECE9;
  color: #1D443E;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
}

.sol-platform-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sol-platform-lead {
  max-width: 600px;
  font-size: 1.05rem;
}

/* ── container BOX CARDS ────────────────────────── */
.sol-card-box {
  background-color: #E6EFEA; /* Light Sage Tint Color */
  border-radius: 28px;       /* Curve Matching Main Design Rules */
  padding: 1.5rem !important;
}

.sol-card-img-wrap {
  width: 100%;
  position: relative;
}

.sol-tall-height {
  height: 280px;
}

.sol-wide-height {
  height: 180px;
}

.sol-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sol-card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #268C79;
}

/* ── RESPONSIVE COMPONENT FALLBACKS ─────────────── */
@media (max-width: 991px) {
  .sol-platform-wave {
    top: -20px;
    width: 70px;
  }
  .sol-tall-height {
    height: 240px;
  }
  .sol-wide-height {
    height: 200px;
  }
}

/* ── ISOLATED ESG PLATFORM SPECIFIC STYLES ──────── */
.esg-platform-py {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.esg-platform-mb {
  margin-bottom: 3rem;
}

/* Floating top right wave accent */
.esg-platform-wave {
  position: absolute;
  top: 0;
  right: 15px;
  width: 100px;
  z-index: 2;
}

/* Custom platform badge container styling */
.esg-platform-pill {
  display: inline-block;
  background-color: #E2ECE9;
  color: #1D443E;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
}

.esg-platform-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.esg-platform-lead {
  max-width: 600px;
  font-size: 1.05rem;
}

/* ── container BOX CARDS ────────────────────────── */
.esg-card-box {
  border-radius: 28px;       /* Curve Matching Main Design Rules */
  padding: 1.5rem !important;
}

.esg-card-img-wrap {
  width: 100%;
  position: relative;
}

.esg-tall-height {
  height: 280px;
}

.esg-wide-height {
  height: 180px;
}

.esg-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esg-card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #268C79;
}

/* ── RESPONSIVE COMPONENT FALLBACKS ─────────────── */
@media (max-width: 991px) {
  .esg-platform-wave {
    top: -20px;
    width: 70px;
  }
  .esg-tall-height {
    height: 240px;
  }
  .esg-wide-height {
    height: 200px;
  }
}

/* ── ISOLATED OUR FOCUS SPECIFIC STYLES ─────────── */
.focus-section-py {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.focus-pill {
  display: inline-block;
  background-color: #E2ECE9;
  color: #1D443E;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
}

.focus-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

.small-text-box p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Base Wrapper container Card Box */
.focus-card-wrapper {
  background-color: #E6EFEA; /* Custom light sage hue matching Screenshot 2026-06-30 152748.png */
}

/* Panoramic Banner Height Trimming Rules */
.focus-banner-frame {
  width: 100%;
  height: 260px; /* Forces wide landscape bar crop layout format */
  position: relative;
}

.focus-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Orients visual crop emphasis on content */
}

/* Inner Text Lists Controls */
.focus-list-tag {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #268C79;
}

.focus-list li {
  font-size: 0.95rem;
}

.focus-check {
  color: #268C79; /* Signature brand green accent icon indicator */
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
}

/* Mobile responsive media view scaling adjustments */
@media (max-width: 767px) {
  .focus-banner-frame {
    height: 160px;
  }
  .focus-card-wrapper {
    padding: 1.5rem !important;
  }
}

.offcanvasFamily .offcanvas-body {
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .offcanvasFamily .family-card {
    padding: 0.5rem;
  }

  .offcanvasFamily .family-card img {
    height: 110px;
  }

  .offcanvasFamily .family-card h5 {
    font-size: 1rem;
  }

  .offcanvasFamily .family-card p {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .offcanvasFamily .family-card .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  @media (min-width: 992px) {
    .offcanvasFamily .family-card img {
      height: 140px;
    }

    .offcanvasFamily .family-card h5 {
      font-size: 1.1rem;
    }

    .offcanvasFamily .family-card p {
      font-size: 0.8rem;
    }

    .offcanvasFamily .family-card .btn {
      font-size: 0.9rem;
      padding: 0.5rem 1rem;
    }
  }

  
/* ============ FOOTER ============ */

footer#footer {
  /* Light green pastel background */
  background: linear-gradient(135deg, #e3f0e8 0%, #d6ebd9 100%);
  color: var(--e-black, #2c3e50);
  padding-top: 3.5rem;
}

/* Fix: High contrast text on light background */
footer#footer .footer-brand p {
  font-family: var(--font-body), sans-serif;
  color: #000000; /* Darker green-gray for readability */
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32rem;
}

/* Fix: Circular social links styled for light backgrounds */
footer#footer .social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05); /* Soft dark background */
  color: var(--e-black, #2c3e50);
  transition: background var(--transition, 0.3s), color var(--transition, 0.3s);
}

footer#footer .social-link:hover {
  background: var(--gold-light, #1e7a67); /* Dark green or accent color */
  color: var(--white, #ffffff);
}

/* Fix: Headings changed from white to high-contrast dark green/navy */
footer#footer .footer-heading {
  font-family: var(--font-display), sans-serif;
  color: var(--navy, #1e3a2f); /* Dark navy/forest green */
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer#footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer#footer .footer-links li {
  margin-bottom: 0.65rem;
}

/* Fix: High contrast links */
footer#footer .footer-links a {
  font-family: var(--font-body), sans-serif;
  color: #000000; /* Visible text color */
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition, 0.3s), padding-left var(--transition, 0.3s);
}

footer#footer .footer-links a:hover {
  color: var(--gold-light, #1e7a67);
  padding-left: 0.25rem;
}

footer#footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: #080808;
}

footer#footer .footer-contact-item .icon {
  color: var(--gold-light, #1e7a67);
  margin-top: 0.2rem;
}

/* Fix: Selector changed from footer#contact to footer#footer */
footer#footer .footer-contact-item a {
  font-family: var(--font-body), sans-serif;
  color: #4a5d4e;
  text-decoration: none;
  transition: color var(--transition, 0.3s);
}

footer#footer .footer-contact-item a:hover {
  color: var(--gold-light, #1e7a67);
}

/* Fix: Selector changed from footer#contact to footer#footer, border changed to dark tint */
footer#footer .footer-bottom {
  border-top: 1px solid #00000014; /* Soft dark border line */
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #080808; /* Darker text */
  font-family: var(--font-body), sans-serif;
}

/* ══════════════════════════════════════════════
   MOBILE FIXES — FULL SITE
══════════════════════════════════════════════ */

@media (max-width: 991.98px) {

  /* ── GLOBAL ── */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  section {
    overflow-x: hidden;
  }

  /* ── HERO ── */
  .hero-section {
    padding: 50px 0 80px 0;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    max-width: 100%;
  }

  .hero-description p {
    font-size: 1rem;
  }

  .media-card,
  .card-low,
  .card-high {
    margin-top: 0 !important;
    height: 280px !important;
  }

  .wave-video-top {
    display: none;
  }

  .wave-left-mid {
    left: 50%;
    bottom: 2%;
    width: 80px;
  }

  .empower-badge {
    padding: 10px 14px !important;
  }

  .badge-text {
    font-size: 0.7rem;
  }

  /* ── ABOUT / MISSION-VISION (split image+text sections) ── */
  .split-img-fit {
    position: relative;
    height: 280px;
  }

  .rounded-5 {
    height: auto;
  }

  .experience-badge {
    position: relative !important;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    width: 100%;
  }

  /* ── FOUNDATIONS / SOLUTIONS / ESG (pillar cards) ── */
  .foundation-card,
  .esg-card-box {
    padding: 1.25rem !important;
  }

  .tall-frame,
  .card-img-container.tall-frame {
    height: 220px !important;
  }

  .wide-frame,
  .card-img-container.wide-frame {
    height: 180px !important;
  }

  .esg-tall-height {
    height: 220px !important;
  }

  .esg-wide-height {
    height: 180px !important;
  }

  .wave-top-right,
  .esg-platform-wave,
  .sol-platform-wave {
    top: -10px !important;
    width: 60px !important;
  }

  .section-title {
    font-size: clamp(2.4rem, 6vw, 2.4rem);
  }

  .style-desc {
    font-size: 0.95rem;
  }

  /* ── OUR FOCUS ── */
  .focus-card-wrapper {
    padding: 1.25rem !important;
  }

  .focus-banner-frame {
    height: 160px;
  }

  .focus-heading {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  /* ── ACCORDIONS (Adaptive Tutor + Bootcamps) ── */
  .custom-tutor-accordion .accordion-button {
    font-size: 1rem !important;
    padding: 1rem 0 !important;
  }

  .custom-tutor-accordion .accordion-body {
    font-size: 0.9rem;
    padding-bottom: 1rem !important;
  }

  .custom-tutor-accordion .accordion-body ul {
    padding-left: 1.1rem;
  }

  /* ── PARTNER / CLIENTS LISTS ── */
  .services-list li span:last-child {
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* ── OFFCANVAS FAMILY ── */
  .offcanvasFamily .offcanvas-body {
    overflow-y: auto;
  }

  .offcanvasFamily .display-6 {
    font-size: 1.5rem;
  }

  .offcanvasFamily .family-card img {
    height: 90px !important;
  }

  .offcanvasFamily .family-card h5 {
    font-size: 0.95rem;
  }

  .offcanvasFamily .family-card p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .offcanvasFamily .family-card .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ── SMALL PHONES ── */
@media (max-width: 480px) {

  .hero-title {
    font-size: 1.7rem;
  }

  .media-card,
  .card-low,
  .card-high {
    height: 220px !important;
  }

  .split-img-fit {
    height: 290px !important;
  }

  .tall-frame,
  .wide-frame,
  .esg-tall-height,
  .esg-wide-height {
    height: 160px !important;
  }

  .focus-banner-frame {
    height: 130px;
  }

  .offcanvasFamily .family-card img {
    height: 70px !important;
  }
}

/* ============ MOBILE NAV FIXES ============ */

@media (max-width: 991.98px) {

  #mainNav .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #mainNav .navbar-brand img {
    height: 42px !important; /* logo was fixed at 55px, too big for small headers */
    width: auto;
  }

  #mainNav .btn.d-lg-none {
    padding: 0.25rem 0.5rem;
    line-height: 1;
  }

  #mobileMenu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mobileMenu .nav-item {
    width: 100%;
  }

  #mobileMenu .nav-link {
    width: 100%;
    display: block;
    word-break: break-word;
  }

  /* Dropdown inside mobile menu should expand inline, not float/overlay */
  #mobileMenu .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--off-white);
    margin-top: 0;
    padding: 0.25rem 0 0.25rem 1rem;
  }

  #mobileMenu .dropdown-item {
    white-space: normal;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  #mobileMenu .nav-cta {
    text-align: center;
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  #mainNav .navbar-brand img {
    height: 36px !important;
  }
}

/* ============ MOBILE FOOTER FIXES ============ */

@media (max-width: 767.98px) {

  footer#contact {
    padding-top: 2.5rem;
    text-align: left;
  }

  footer#contact .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  footer#contact .row.g-4 > div {
    margin-bottom: 1.5rem;
  }

  footer#contact .row.g-4 > div:last-child {
    margin-bottom: 0;
  }

  footer#contact .footer-brand img {
    height: 32px !important;
    width: auto;
  }

  footer#contact .footer-brand p {
    max-width: 100%;
    font-size: 0.85rem;
  }

  footer#contact .footer-heading {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
  }

  footer#contact .footer-links a,
  footer#contact .footer-contact-item {
    font-size: 0.85rem;
  }

  footer#contact .footer-contact-item span,
  footer#contact .footer-contact-item a {
    word-break: break-word;
  }

  footer#contact .footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    padding: 1rem 0;
  }

  footer#contact .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  footer#contact .footer-heading {
    font-size: 0.85rem;
  }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none; /* hidden until user scrolls down */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #fff;
}

#backToTop.show {
  display: flex;
}

@media (max-width: 991.98px) {
  .navbar-collapse .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding-left: 1rem; /* indent to show it's a submenu */
  }
}

.eror {
  color: white;
}

.tall-frame {
  height: 280px;
}

.wide-frame {
  height: 200px;
}

.foundation-card {
  border: none;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

#mainNav {
  background: var(--nav-hero-bg);  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#mainNav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.logo {
  height: 45px;
  width: auto;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 12rem);
  color: var(--navy);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.02em;
  user-select: none;
  color: #198754;
  width: 90%;
}

.watermark-section {
  overflow: hidden;
}

/* --- Section & watermark alignment --- */
#contact-form.watermark-section {
  overflow: hidden; /* stop the giant watermark text from spilling out of the section */
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: clamp(4rem, 12vw, 10rem);
  white-space: nowrap;
  line-height: 1;
  z-index: 0;           /* sits behind the form */
  pointer-events: none; /* so it never blocks clicks on inputs */
}

/* --- Container / border alignment --- */
#contact-form .container.border {
  position: relative;
  z-index: 1;           /* keeps the form above the watermark */
  padding: 2.5rem clamp(1rem, 4vw, 3rem); /* even inner spacing so the border doesn't hug the content */
}

/* --- Form fields alignment --- */
#contact-form .row.g-3 > [class^="col-"] {
  display: flex;
  flex-direction: column; /* label + input + error stack cleanly */
}

#contact-form .form-label {
  margin-bottom: 0.4rem;
}

#contact-form .form-control,
#contact-form textarea.form-control {
  width: 100%;
  box-sizing: border-box; /* so padding/border don't push inputs past the column width */
}

/* Keep Name/Surname and Email/Phone rows aligned at the same height even if one label wraps */
#contact-form .row.g-3 {
  align-items: stretch;
}

/* Checkbox + label alignment */
#contact-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
#contact-form .form-check-input {
  margin-top: 0.25rem; /* nudge checkbox to align with first line of label text */
  flex-shrink: 0;
}

/* --- Section background (pale mint behind the cards) --- */
#foundations.bg-white {
  background-color: #EEF6EF !important;
}


/* --- Pillar label (teal) --- */
.text-teal {
  color: #1E8C7A !important;
  letter-spacing: 0.04em;
}

/* --- Headings (dark navy/black) --- */
.foundation-card h3 {
  color: #16202B;
}

/* --- Body copy (muted gray-green) --- */
.foundation-card p.text-secondary {
  color: #5C6B68 !important;
}

/* --- Section pill above the heading, if you want it to match the teal family --- */
.section-pill.esg-platform-pill {
  color: #1E8C7A;
  background-color: #1e8c7a14;
  border: 1px solid #1e8c7a33;
}

/* --- Section title --- */
.section-title.about-title {
  color: #16202B;
}

/* Force the dropdown arrow to appear */
.nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Hover-to-open dropdown, desktop only */
@media (hover: hover) and (pointer: fine) {
  .dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* removes the small gap that can cause a flicker */
  }
}

/* 1. The Card Container & Gradient */
.foundation-card.pillar2 {
  /* Soft mint-to-sage gradient matching your design */
  background: linear-gradient(135deg, #e3f0e8 0%, #d6ebd9 100%);
  border: none; /* Removes any default Bootstrap card borders */
  display: flex;
  flex-direction: column;
}

/* 2. Image Container Styling */
.card-img-container.wide-frame {
  height: 250px; /* Set a clean height for the image frame */
  width: 100%;
  box-shadow: 0 4px 12px #0000000d; /* Soft shadow beneath the image */
}

/* Ensure the image scales and crops perfectly inside the container */
.card-img-container.wide-frame img {
  object-fit: cover;
  object-position: center;
}

/* 3. Typography & Brand Colors */
.text-teal {
  color: #3b8a80 !important; /* The dark teal used for "PILLAR 2" */
  letter-spacing: 0.05em;     /* Gives the label a clean, modern look */
}

/* 4. Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
  .card-img-container.wide-frame {
    height: 200px; /* Slightly shorter image height on mobile */
  }
}

/* 1. Deeper Muted Olive/Brownish-Green Gradient (Impact Card) */
.foundation-card.pillarr3 {
  /* Deeper, richer herbal-sage to warm olive-khaki */
  background: linear-gradient(135deg, #dae2ce 0%, #c3cca7 100%);
  border: none;
  display: flex;
  flex-direction: column;
}

/* 2. Image and Frame Adjustments */
.card-img-container.wide-frame {
  height: 250px;
  width: 100%;
  box-shadow: 0 4px 12px #0000000d;
}

/* Force standard object-fit behavior on the image */
.card-img-container.wide-frame img {
  object-fit: cover !important;
  object-position: center;
}

/* 3. Responsive Height for Mobile */
@media (max-width: 767.98px) {
  .card-img-container.wide-frame {
    height: 200px;
  }
}


/* Grouped Card Styles */
.foundation-card.pillar2 {
  background: linear-gradient(135deg, #e3f0e8 0%, #d6ebd9 100%);
  border: none;
  display: flex;
  flex-direction: column;
}



/* ==========================================
   Pillars CSS (Pillars 1, 2, and 3)
   ========================================== */

/* Shared Card Gradient and Layout */
.foundation-card.pillar2 {
  background: linear-gradient(135deg, #e3f0e8 0%, #d6ebd9 100%);
  border: none;
  display: flex;
  flex-direction: column;
}

/* Typography & Brand Colors */
.text-teal {
  color: #3b8a80 !important; /* Brand deep teal */
  letter-spacing: 0.05em;
}

/* Image Frames base styling */
.card-img-container {
  width: 100%;
  box-shadow: 0 4px 12px #0000000d;
}

.card-img-container img {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

/* Pillar Specific Heights */
.card-img-container.tall-frame {
  height: 320px; /* Tall visual for Pillar 1 */
}

.card-img-container.wide-frame {
  height: 250px; /* Compact visual for Pillars 2 & 3 */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 991.98px) {
  .card-img-container.tall-frame,
  .card-img-container.wide-frame {
    height: 220px; /* Looks much cleaner on tablets and phones */
  }
}

/* 1. The Full-Span Gradient (Pillar 2 Top -> Pillar 3 Bottom) */
.col-lg-5.pillar1 .foundation-card {
  /* Starts with Pillar 2's crisp mint-green and ends with Pillar 3's deep warm olive-khaki */
  background: linear-gradient(180deg, #e3f0e8 0%, #c3cca7 100%);
  border: none;
  min-height: 100%; /* Keeps it stretched to full vertical height */
}

/* 2. Vertical Image Frame Styling */
.card-img-container.tall-frame {
  height: 320px; /* Tall visual to balance the vertical layout */
  width: 100%;
  box-shadow: 0 4px 12px #0000000d; /* Soft, natural shadow */
}

/* Ensure the image scales and crops perfectly without stretching */
.card-img-container.tall-frame img {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

/* 3. Responsive Height for Mobile/Tablets */
@media (max-width: 991.98px) {
  .card-img-container.tall-frame {
    height: 250px; /* Shrinks naturally on smaller viewports */
  }
}

/* 1. The Warm Olive/Brownish-Green Card & Gradient */
.foundation-card.traccking {
  /* Warm earthy-sage to soft olive-beige linear gradient */
  background: linear-gradient(135deg, #f1f3ea 0%, #e3e7db 100%);
  border: none;
  display: flex;
  flex-direction: column;
}

/* 2. Image Container Styling */
.card-img-container.wide-frame {
  height: 250px;
  width: 100%;
  box-shadow: 0 4px 12px #0000000d; /* Soft, natural shadow */
}

/* Ensure the image fills the container cleanly without stretching */
.card-img-container.wide-frame img {
  object-fit: cover !important;
  object-position: center;
}

/* 3. Teal Accent Label */
.text-teal {
  color: #3b8a80 !important; /* Brand deep teal matching the layout */
  letter-spacing: 0.05em;
}

/* 4. Responsive adjustment for mobile screens */
@media (max-width: 767.98px) {
  .card-img-container.wide-frame {
    height: 200px;
  }
}

/* 1. The Cool Eucalyptus/Old Green Card & Gradient */
.foundation-card.learn {
  /* Soft, muted "old green" / dusty eucalyptus gradient */
  background: linear-gradient(135deg, #ecf5f3 0%, #def0eb 100%);
  border: none;
  display: flex;
  flex-direction: column;
}

/* 2. Image Container Styling */
.card-img-container.wide-frame {
  height: 200px;
  width: 100%;
  box-shadow: 0 4px 12px #0000000a; 
}

/* Ensure the image fills its frame perfectly without stretching */
.card-img-container.wide-frame img {
  object-fit: cover !important;
  object-position: center;
}

/* 3. Teal Accent Label */
.text-teal {
  color: #3b8a80 !important; /* Matches the brand's core deep teal */
  letter-spacing: 0.05em;
}

/* 4. Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
  .card-img-container.wide-frame {
    height: 200px; /* Slightly shorter on mobile devices */
  }
}

/* 1. The Blend Card Container (Eucalyptus to Warm Olive-Sage) */
.col-lg-5.placement .foundation-card {
  /* Starts with cool eucalyptus and transitions into a warm olive-beige */
  background: linear-gradient(135deg, #ecf5f3 0%, #e3e7db 100%);
  border: none;
  min-height: 100%; /* Keeps it full height to match the vertical layout */
}

/* 2. Vertical Image Frame Styling */
.esg-card-img-wrap.esg-tall-height {
  height: 320px; /* Tall visual to balance the vertical Pillar 1 layout */
  width: 100%;
  box-shadow: 0 4px 12px #0000000d; /* Gentle shadow */
}

/* Keep the image scaled beautifully */
.esg-card-img-wrap.esg-tall-height img {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

/* 3. Responsive Height for Mobile/Tablets */
@media (max-width: 991.98px) {
  .esg-card-img-wrap.esg-tall-height {
    height: 250px; /* Collapses nicely on smaller viewports */
  }
}

/* 1. The Marketplace Card & Soft Warm-Sage Gradient */
.foundation-card.marketplace {
  /* Crisp pale-sage to ultra-soft warm linen green */
  background: linear-gradient(135deg, #f2f5ed 0%, #e5ebd8 100%);
  border: none;
  display: flex;
  flex-direction: column;
}

/* 2. Image and Frame Adjustments */
.marketplace .card-img-container.wide-frame {
  height: 220px; /* Kept your inline-style height */
  width: 100%;
  box-shadow: 0 4px 12px #0000000a; /* Gentle shadow under the polaroids image */
}

/* Ensure the picture clips and fits nicely */
.marketplace .card-img-container.wide-frame img {
  object-fit: cover !important;
  object-position: center;
}

/* 3. Responsive Adjustments for Smaller Screens */
@media (max-width: 991.98px) {
  .marketplace .card-img-container.wide-frame {
    height: 200px; /* Slightly shorter on mobile devices for a cleaner look */
  }
}

/* 1. The Centralised Dashboard Card & Crisp Mint-Green Gradient */
.esg-card-box.central-dashboard {
  /* Crisp, cool mint-white to light pastel seafoam-green */
  background: linear-gradient(135deg, #eaf2ed 0%, #d5e5db 100%) !important;
  border: none;
  border-radius: 2rem; /* Matches your rounded-5 design style */
}

/* 2. Image and Frame Adjustments */
.esg-card-box.central-dashboard .esg-card-img-wrap.esg-wide-height {
  height: 220px;
  width: 100%;
  box-shadow: 0 4px 12px #0000000a; /* Subtle shadow for depth */
}

/* Ensure the dashboard image fills the frame beautifully */
.esg-card-box.central-dashboard .esg-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

/* 3. Responsive Heights for Tablets & Mobile */
@media (max-width: 767.98px) {
  .esg-card-box.central-dashboard .esg-card-img-wrap.esg-wide-height {
    height: 200px;
  }
}

/* 1. The ESG Certificate Card & Warm Moss-Green Gradient */
.esg-card-box.esg-certificate {
  /* Warm herbal-sage to deeper moss-olive */
  background: linear-gradient(135deg, #dce4d0 0%, #c1caa4 100%) !important;
  border: none;
  border-radius: 2rem; /* Consistent with your rounded-5 design style */
}

/* 2. Image and Frame Adjustments */
.esg-card-box.esg-certificate .esg-card-img-wrap.esg-wide-height {
  height: 220px;
  width: 100%;
  box-shadow: 0 4px 12px #0000000a; /* Subtle shadow to elevate the windmill graphic */
}

/* Ensure the graphic scales and fits beautifully */
.esg-card-box.esg-certificate .esg-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

/* 3. Responsive Heights for Tablets & Mobile */
@media (max-width: 767.98px) {
  .esg-card-box.esg-certificate .esg-card-img-wrap.esg-wide-height {
    height: 200px;
  }
}

/* 1. The Tall Pillar 1 Card & Full-Span Vertical Gradient */
.col-lg-5.main-dashboard .esg-card-box {
  /* Top matches the clean mint of Pillar 2 (#eaf2ed) */
  /* Bottom matches the warm moss-olive of Pillar 3 (#c1caa4) */
  background: linear-gradient(180deg, #eaf2ed 0%, #c1caa4 100%) !important;
  border: none;
  border-radius: 2rem; /* Consistent with the rest of your cards */
}

/* 2. Vertical Image Frame Styling */
.col-lg-5.main-dashboard .esg-card-img-wrap.esg-tall-height {
  height: 320px; /* Gives it that nice tall, anchoring visual weight */
  width: 100%;
  box-shadow: 0 4px 12px #0000000a; /* Soft shadow */
}

/* Ensure the image scales and crops beautifully */
.col-lg-5.main-dashboard .esg-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

/* 3. Responsive Heights for Smaller Viewports */
@media (max-width: 991.98px) {
  .col-lg-5.main-dashboard .esg-card-img-wrap.esg-tall-height {
    height: 250px; /* Scales down gracefully on mobile/tablet */
  }
}

/* ============ FULL-SCREEN MOBILE MENU ============ */
@media (max-width: 991.98px) {
  /* 1. Full-screen black-out container */
  #mainNav #mobileMenu.show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    
    /* Solid background blocks out all website content underneath */
    background-color: var(--white, #ffffff) !important; 
    z-index: 9999 !important;
    
    /* Spacing: 90px top padding keeps room for your logo/close toggle */
    padding: 90px 2rem 3rem 2rem !important; 
    margin-top: 0 !important;
    
    /* If the menu links get too long, let users scroll the menu itself */
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column;
  }

  /* 2. Menu list container layout */
  #mainNav #mobileMenu.show .nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
  }

  /* 3. Individual Menu Links */
  #mainNav #mobileMenu .nav-item {
    width: 100%;
    display: block;
    position: relative;
  }

  #mainNav #mobileMenu .nav-link {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--text) !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid var(--border-light, #eaeaea) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 4. Dropdown Menu Layout (Collapses & pushes links down instead of overlapping) */
  #mainNav #mobileMenu .dropdown-menu {
    position: relative !important; /* Forces it to push items down, not hover */
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #00000008 !important; /* Slightly darker shade to group items */
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
  }

  /* Dropdown sub-items style */
  #mainNav #mobileMenu .dropdown-item {
    font-size: 1rem !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px dashed #0000000d;
    white-space: normal !important; /* Prevents text cutting off on thin screens */
  }

  #mainNav #mobileMenu .dropdown-item:last-child {
    border-bottom: none;
  }

  /* 5. CTA Button positioning */
  #mainNav #mobileMenu .nav-cta {
    width: 100% !important;
    font-size: 1.1rem !important;
    padding: 0.9rem !important;
    margin-top: 2rem !important;
    justify-content: center;
    display: flex;
    border-radius: 30px;
  }
}

/* ============ FULL-SCREEN MOBILE MENU ============ */
@media (max-width: 991.98px) {
  #mainNav #mobileMenu.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important; /* Forces it to stretch to the absolute bottom */
    width: 100vw !important;
    height: 100vh !important;
    
    /* Solid white blocks everything out underneath */
    background-color: #ffffff !important; 
    z-index: 9999 !important;
    
    /* Standard padding to push items away from edges */
    padding: 100px 2rem 3rem 2rem !important; 
    margin-top: 0 !important;
    
    /* Allow scrolling within the menu if screens are small */
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Make the links list fill out nicely */
  #mainNav #mobileMenu.show .nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
  }

  #mainNav #mobileMenu .nav-item {
    width: 100%;
    display: block;
  }

  #mainNav #mobileMenu .nav-link {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--text, #333333) !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid var(--border-light, #eaeaea) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Keep dropdown items flowing nicely without overlaps */
  #mainNav #mobileMenu .dropdown-menu {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #00000008 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
  }

  #mainNav #mobileMenu .dropdown-item {
    font-size: 1rem !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px dashed #0000000d;
    white-space: normal !important;
  }

  #mainNav #mobileMenu .dropdown-item:last-child {
    border-bottom: none;
  }

  /* Full-width call to action */
  #mainNav #mobileMenu .nav-cta {
    width: 100% !important;
    font-size: 1.1rem !important;
    padding: 0.9rem !important;
    margin-top: 2rem !important;
    justify-content: center;
    display: flex;
    border-radius: 30px;
  }
}

/* ============ FULL-SCREEN MOBILE MENU ============ */
@media (max-width: 991.98px) {
  /* 1. Full-screen black-out container */
  #mainNav #mobileMenu.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #ffffff !important; 
    z-index: 9999 !important;
    padding: 100px 2rem 3rem 2rem !important; 
    margin-top: 0 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #mainNav #mobileMenu.show .nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
  }

  #mainNav #mobileMenu .nav-item {
    width: 100%;
    display: block;
    position: relative;
  }

  #mainNav #mobileMenu .nav-link {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--text, #333333) !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid var(--border-light, #eaeaea) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 2. OVERRIDE BOOTSTRAP POSITIONING: This is the key fix */
  #mainNav #mobileMenu .dropdown-menu {
    /* Stop Bootstrap from hovering this element */
    position: static !important; 
    transform: none !important; 
    
    /* Display it inline so it naturally pushes other links down */
    display: none; 
    float: none !important;
    width: 100% !important;
    
    /* Styling adjustments */
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #00000008 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
  }

  /* When the dropdown is open, make sure it displays as a block element */
  #mainNav #mobileMenu .dropdown-menu.show {
    display: block !important;
  }

  #mainNav #mobileMenu .dropdown-item {
    font-size: 1rem !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px dashed #0000000d;
    white-space: normal !important;
  }

  #mainNav #mobileMenu .dropdown-item:last-child {
    border-bottom: none;
  }

  /* 3. Full-width Call to Action */
  #mainNav #mobileMenu .nav-cta {
    width: 100% !important;
    font-size: 1.1rem !important;
    padding: 0.9rem !important;
    margin-top: 2rem !important;
    justify-content: center;
    display: flex;
    border-radius: 30px;
  }
}

/* ============ MOBILE CLOSE BUTTON STYLES ============ */
@media (max-width: 991.98px) {
  /* Position the close button in the top right */
  #mobileMenu .mobile-close-btn {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    font-size: 1.5rem !important; /* Makes the X easily clickable */
    z-index: 10000 !important; /* Sits above the menu background */
    opacity: 0.8;
    transition: opacity 0.2s ease;
    border: none;
    background-color: transparent;
  }

  #mobileMenu .mobile-close-btn:hover {
    opacity: 1;
  }
}