/* ===================================================
   ROOT VARIABLES
   Defined here so ALL pages can use these colors.
   Change once here → updates the entire website.
=================================================== */
:root {
  --font-display: 'Playfair Display', 'Amiri', serif;  /* headings: Latin glyphs from Playfair, Arabic falls back to Amiri */
    --primary: #18463c;
    --primary-dark: #102e28;
    --primary-light: #1f5a4e;
    --secondary: #d4af37;
    --secondary-light: #f0c747;
    --dark: #1a1a2e;
    --text-muted: #6c757d;
    --contact-bar-h: 40px;
    --promo-bar-h: 30px;
    --navbar-h: 68px;       /* Updated live by JS after measuring actual rendered height */
}

/* ===================================================
   GLOBAL RESET & BODY
=================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { overflow-x: hidden; } /* Moved from body — body overflow-x:hidden breaks position:sticky */

body {
    font-variant-numeric: lining-nums; /* Playfair Display defaults to old-style figures; keep digits even-height */
    font-family: 'Poppins', sans-serif;
    background: #fff;
}

/* ===================================================
   TOP CONTACT BAR
=================================================== */
.contact-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2920 100%);
    height: var(--contact-bar-h);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.contact-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 24px;
}

.contact-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-bar-item:hover { color: var(--secondary); }

.contact-bar-item i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.contact-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-bar-tag {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.whatsapp-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37,211,102,0.3);
}

.whatsapp-bar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37,211,102,0.5);
    color: white;
}

.whatsapp-bar-btn i { font-size: 1rem; }

/* ===================================================
   PROMO BAR
=================================================== */
.promo-bar {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--dark);
    padding: 0;
    margin: 0;
    margin-bottom: 0 !important;
    text-align: center;
    position: fixed;
    width: 100%;
    top: var(--contact-bar-h);
    z-index: 1050;
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    height: 30px;
    display: flex;
    align-items: center;
    will-change: transform;
}

/* Slides up and hides when user scrolls down */
.promo-bar.hidden { transform: translateY(-100%); }

.promo-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ===================================================
   NAVBAR
=================================================== */
.navbar {
    background: linear-gradient(135deg, rgba(24,70,60,0.97) 0%, rgba(16,46,40,0.97) 100%);
    /* Override Bootstrap 5 CSS custom property to prevent it injecting extra padding */
    --bs-navbar-padding-y: 0;
    --bs-navbar-padding-x: 0;
    padding: 13px 0;
    margin: 0 !important;
    margin-top: 0 !important;
    box-shadow: none;
    /* top is now a STATIC value (set once, never toggled/animated) — the
       promo-bar-close-gap motion below is driven purely by `transform`,
       which the compositor can run off the main thread with no layout
       recalculation on every frame. Animating `top` here previously forced
       a full reflow ~24x over the 0.4s transition — that was the primary
       cause of scroll stutter. */
    /* Padding, box-shadow, and transform all share the IDENTICAL timing
       curve. Previously padding/box-shadow ran on 0.3s ease while
       transform ran on 0.4s cubic-bezier — two different clocks driving
       one visual unit, which is what made the header feel "sticky"
       relative to the hero mid-transition. Now the navbar's height-shrink
       and its position-slide move in perfect lockstep. */
    transition: padding 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
    position: fixed;
    width: 100%;
    /* Sits directly below contact bar + promo bar with no gap. This value
       never changes — the visual "rise" when promo hides is done with
       transform: translateY() below, not by recalculating top. */
    top: calc(var(--contact-bar-h) + var(--promo-bar-h));
    transform: translateY(0);
    will-change: transform;
    z-index: 1075;
    backdrop-filter: blur(12px);
    line-height: 1;
    /* Base height when fully expanded (68px = 42px logo + 13px top/bottom
       padding). --navbar-h is kept in sync with the REAL rendered height
       at all times — including while .navbar.scrolled's padding is
       animating — by a ResizeObserver in main.js, not by this value
       alone. See observeNavbarHeight(). */
    min-height: 68px;
}

/* When promo bar slides away on scroll: slide the navbar up by exactly the
   promo bar's height via transform (GPU-composited) — same end position as
   the old `top: var(--contact-bar-h)` rule, but with zero layout cost. */
.navbar.promo-gone { transform: translateY(calc(-1 * var(--promo-bar-h))); }

/* If contact bar also hides (currently unused, kept for compatibility) */
.navbar.bar-gone { transform: translateY(calc(-1 * (var(--promo-bar-h) + var(--contact-bar-h)))); }

/* Navbar shrinks slightly on scroll */
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-family:var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover { transform: scale(1.04); }

.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary);
    box-shadow: 0 3px 12px rgba(212,175,55,0.4);
}

/* Real logo mark — replaces the old placeholder icon-circle above.
   Sized to sit comfortably inside the navbar without touching its edges. */
.navbar-logo-img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

.footer-logo-img {
    height: 72px;
    width: auto;
    display: block;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 0 !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.93rem;
}

.nav-link:hover,
.nav-link.active { color: var(--secondary) !important; }

.nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after { width: 80%; }

.btn-trial {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--dark);
    padding: 9px 26px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(212,175,55,0.35);
    font-size: 0.9rem;
}

.btn-trial:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.55);
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.4);
    padding: 5px 9px;
}

.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(212,175,55,0.3); }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================================
   NAVBAR RESPONSIVE
=================================================== */
@media (max-width: 768px) {
    .contact-bar-inner { padding: 0 16px; }
    .contact-bar-left { gap: 14px; }
    .contact-bar-item:nth-child(2) { display: none; } /* hide email on tablet */
    .contact-bar-item { font-size: 0.75rem; }
    .contact-bar-tag { display: none; }
    .whatsapp-bar-btn { padding: 4px 10px; font-size: 0.73rem; }
    .promo-bar { font-size: 0.72rem; margin-bottom: 0 !important; }
    .promo-bar-content { gap: 5px; }

}

@media (max-width: 480px) {
    .contact-bar-inner { padding: 0 12px; }
    .contact-bar-left { gap: 0; }
    .contact-bar-item:nth-child(1) span { font-size: 0.72rem; }
    .contact-bar-item:nth-child(2) { display: none; }
    .contact-bar-right { gap: 6px; }
    .whatsapp-bar-btn span { display: none; } /* icon only on mobile */
    .whatsapp-bar-btn { padding: 4px 8px; border-radius: 50%; width: 28px; height: 28px; justify-content: center; }
    .promo-bar { font-size: 0.68rem; letter-spacing: -0.01em; margin-bottom: 0 !important; }
    .promo-bar-content i { display: none; }

}

/* ===================================================
   FOOTER
=================================================== */
.footer {
    background: linear-gradient(135deg, #0a1810 0%, var(--primary-dark) 40%, #0a1810 100%);
    padding: 70px 0 0;
    color: rgba(255,255,255,0.85);
    position: relative;
    overflow: hidden;
}

.footer-bg-pattern {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1.1fr 1.1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    font-family:var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo i { font-size: 2.4rem; color: var(--secondary); }

.footer-logo span {
    font-family:var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.footer-desc { font-size: 0.94rem; color: rgba(255,255,255,0.72); line-height: 1.8; margin-bottom: 22px; }

.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }

.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-quick-contact { margin-top: 5px; }

.fq-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: all 0.3s ease;
}

.fq-item:last-of-type { border-bottom: none; }

.fq-item:hover { color: var(--secondary); }

.fq-icon {
    width: 38px; height: 38px;
    background: rgba(212,175,55,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

.fq-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); display: block; }

.fq-text { font-size: 0.88rem; font-weight: 600; }

.footer-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 13px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}

.footer-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    color: white;
}

.footer-whatsapp-btn i { font-size: 1.3rem; }

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 11px; }

.footer-links a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover { color: var(--secondary); padding-left: 6px; }

.footer-links a i { font-size: 0.6rem; opacity: 0.5; transition: opacity 0.3s; }

.footer-links a:hover i { opacity: 1; }

.country-flag { font-size: 1.05rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.copyright {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.copyright i { color: var(--secondary); }

.footer-bottom-links {
    display: flex; gap: 20px;
    list-style: none; flex-wrap: wrap;
    padding: 0; margin: 0;
}

.footer-bottom-links a {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ═══════════════════════════════════════════════════════════════
   HERO DESIGN SYSTEM — single canonical source for every hero
   on every page type (core pages, blog posts, location pages).

   ROOT CAUSE THIS SOLVES:
   The navbar/promo/contact bars are position:fixed and removed from
   document flow. Any section directly after <body> renders at the
   very top of the viewport, hidden behind the fixed bars. The ONLY
   correct fix is to push the hero SECTION itself down by the exact
   fixed-bar height — using margin-top on the section. This must be
   margin-top (not padding-top, and never on <body>), because:
     • padding-top inside the section gets "swallowed" by flex
       vertical-centering (align-items:center recentres the box
       AFTER the calc, ignoring why the calc value exists) — this
       was the bug in earlier hero attempts.
     • padding-top on <body> leaves the hero's gradient background
       starting too low, creating a visible white gap above it.
     • margin-top on the section pushes the whole box (background
       included) down by exactly the fixed-header height — nothing
       more, nothing less. The background sits flush against the
       navbar; the content inside is naturally never hidden because
       it was never in the hidden zone to begin with.

   JS in main.js (adjustHeroOffset) re-measures and corrects this
   value on resize / promo-bar-hide-on-scroll, but the CSS calc()
   below is accurate on first paint, before any JS runs — so there
   is never a flash of wrong position.
═══════════════════════════════════════════════════════════════ */

:root {
    /* Hero sizing tokens — change once, every hero updates */
    --hero-min-h-xl: 580px;   /* location / landing pages */
    --hero-min-h-lg: 460px;   /* standard inner pages (courses, about, etc.) */
    --hero-min-h-md: 380px;   /* blog article hero */
    --hero-pad-y: clamp(48px, 7vw, 88px);
    --hero-pad-y-sm: clamp(36px, 6vw, 56px);
    --hero-container: 1180px;

    /* Hero typography tokens — Poppins-800 (the site's UI font, bold weight)
       chosen over Amiri for English headlines: Amiri is a serif Arabic
       calligraphy face, correctly reserved elsewhere for actual Arabic
       verse quotes. For Latin display headings, the bolder cut of the
       site's own UI font (Poppins) reads more clearly at a glance,
       matches the brand voice used in buttons/nav/body copy, and keeps
       one consistent typographic language across the whole site. */
    --hero-title-font: 'Poppins', sans-serif;
    --hero-title-weight: 800;
    --hero-title-size-xl: clamp(2rem, 4.2vw, 3.1rem);
    --hero-title-size-lg: clamp(1.85rem, 3.6vw, 2.7rem);
    --hero-title-size-md: clamp(1.65rem, 3vw, 2.3rem);
    --hero-title-lh: 1.2;
    --hero-lead-size: clamp(.92rem, 1.3vw, 1.02rem);
    --hero-lead-lh: 1.75;
}

/* ── Shared offset + base box for EVERY hero variant ──
   Every hero section on the site carries .hero-offset alongside
   its own visual class (.inner-hero / .policy-hero / .art-hero /
   .loc-hero). This is the ONE place the fixed-header math lives. */
.hero-offset,
.inner-hero,
.policy-hero,
.art-hero {
    margin-top: calc(var(--contact-bar-h) + var(--promo-bar-h) + var(--navbar-h));
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* .loc-hero / .uk-hero margin-top now lives here in CSS (previously set
   ONLY by JS on every scroll toggle via element.style.marginTop, which is
   what forced a synchronous layout read+write mid-transition). Same
   calc() as every other hero variant, so it stays in sync automatically. */
.loc-hero,
.uk-hero {
    margin-top: calc(var(--contact-bar-h) + var(--promo-bar-h) + var(--navbar-h));
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Promo-bar-hidden state, driven entirely by CSS ──
   initNavbarScroll() in main.js toggles a single `promo-hidden` class on
   <body> — a plain class toggle, no DOM reads. The browser then resolves
   this rule and transitions margin-top itself using the SAME timing curve
   as the bars' transform transitions above, so the whole header + hero
   motion reads as one continuous animation instead of two competing ones. */
body.promo-hidden .hero-offset,
body.promo-hidden .inner-hero,
body.promo-hidden .policy-hero,
body.promo-hidden .art-hero,
body.promo-hidden .loc-hero,
body.promo-hidden .uk-hero {
    margin-top: calc(var(--contact-bar-h) + var(--navbar-h));
}

/* .blog-hero padding-top — previously set ONLY by JS (even the base
   value), including on every scroll toggle. Now it has a CSS fallback
   from first paint, with JS only doing the one-time load/resize/font
   correction for the real measured navbar height (see main.js). */
.blog-hero {
    padding-top: calc(var(--contact-bar-h) + var(--promo-bar-h) + var(--navbar-h) + 48px);
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.promo-hidden .blog-hero {
    padding-top: calc(var(--contact-bar-h) + var(--navbar-h) + 48px);
}

/* ── Shared hero typography — used by every hero across the site ── */
.hero-h1, .hero-h1 * {
    font-family: var(--hero-title-font);
}
.hero-h1 {
    font-weight: var(--hero-title-weight);
    color: #fff;
    line-height: var(--hero-title-lh);
    margin-bottom: 18px;
    word-break: break-word;
    letter-spacing: -.01em;
}
.hero-h1.size-xl { font-size: var(--hero-title-size-xl); }
.hero-h1.size-lg { font-size: var(--hero-title-size-lg); }
.hero-h1.size-md { font-size: var(--hero-title-size-md); }
.hero-h1 mark, .hero-h1 span {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-style: normal;
}
.hero-lead {
    font-size: var(--hero-lead-size);
    line-height: var(--hero-lead-lh);
    color: rgba(255,255,255,.82);
    max-width: 600px;
    margin-bottom: 28px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.3);
    color: var(--secondary-light); padding: 7px 18px; border-radius: 20px;
    font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    margin-bottom: 22px;
}
.hero-crumb { font-size: .8rem; margin-bottom: 14px; }
.hero-crumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.hero-crumb a:hover { color: var(--secondary); }
.hero-crumb .cur, .hero-crumb .sep { color: rgba(255,255,255,.4); }

/* ── Shared trust row, stats row, button row ── */
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.75); font-size: .8rem; }
.hero-trust-item i { color: var(--secondary); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.hero-btn-p {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--dark); font-weight: 700; padding: 15px 36px; border-radius: 30px;
    font-size: .95rem; border: none; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none;
    box-shadow: 0 8px 26px rgba(212,175,55,.35);
}
.hero-btn-p:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(212,175,55,.55); color: var(--dark); }
.hero-btn-s {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff; font-weight: 600; padding: 15px 36px;
    border-radius: 30px; font-size: .95rem; border: 2px solid rgba(255,255,255,.35);
    transition: .25s; text-decoration: none;
}
.hero-btn-s:hover { background: var(--secondary); border-color: var(--secondary); color: var(--dark); }

.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-top: 44px; }
.hero-stat { background: rgba(0,0,0,.15); padding: 20px 14px; text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--secondary); display: block; line-height: 1; }
.hero-stat-lbl { font-size: .66rem; color: rgba(255,255,255,.55); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ── Responsive — one set of rules, every hero inherits them ── */
@media (max-width: 992px) {
    .hero-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .hero-h1.size-xl { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
    .hero-h1.size-lg { font-size: clamp(1.5rem, 5vw, 1.9rem); }
    .hero-h1.size-md { font-size: clamp(1.4rem, 4.5vw, 1.7rem); }
    .hero-lead { font-size: .88rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btn-p, .hero-btn-s { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(2,1fr); margin-top: 32px; }
}
@media (max-width: 480px) {
    .hero-badge { font-size: .72rem; padding: 5px 14px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stat { padding: 14px 10px; }
}

@media (max-width: 1024px) {
    .footer-grid .footer-col:last-child { grid-column: 1 / -1; }

}

@media (max-width: 768px) {
    .footer { padding: 52px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
    .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    .footer-desc { font-size: 0.88rem; }
    .footer-col h3 { font-size: 1.2rem; margin-bottom: 16px; }
    .fq-item { padding: 11px 0; gap: 11px; }
    .fq-icon { width: 34px; height: 34px; font-size: 0.88rem; }
    .footer-whatsapp-btn { padding: 11px 16px; font-size: 0.84rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }

}

@media (max-width: 480px) {
    .footer { padding: 40px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
    .footer-logo i { font-size: 1.9rem; }
    .footer-logo span { font-size: 1.35rem; }
    .footer-desc { font-size: 0.86rem; margin-bottom: 16px; }
    .footer-col h3 { font-size: 1.1rem; }
    .footer-links a { font-size: 0.86rem; }
    .footer-bottom-links { gap: 12px; justify-content: center; }
    .footer-bottom-links a { font-size: 0.78rem; }
    .copyright { font-size: 0.8rem; text-align: center; }

}

/* ===================================================
   COURSE CARD — DUAL BUTTON LAYOUT
   Two buttons per card: Start Free Trial + View Course
=================================================== */
.course-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-view-course {
    flex: 1;
    min-width: 130px;
    background: transparent;
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.btn-view-course:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(24,70,60,0.25);
}

@media (max-width: 480px) {
    .course-card-actions { flex-direction: column; }
    .course-card-actions .btn-course-action,
    .course-card-actions .btn-view-course { min-width: unset; width: 100%; flex: unset; }

}

/* Override btn-course-action width when inside dual-button row */
.course-card-actions .btn-course-action {
    width: auto;
    flex: 1;
    min-width: 130px;
    padding: 13px 18px;
    font-size: 0.95rem;
}

/* =================================================================
   GLOBAL MOBILE IMPROVEMENTS — appended
   Fixes horizontal overflow, nav, footer on small screens
================================================================= */

/* Prevent all horizontal overflow globally — overflow-x:hidden on body breaks position:sticky,
   so we set it only on html. Body gets overflow-x:clip which hides overflow without
   creating a scroll container. */
html {
    overflow-x: hidden;
}
body {
    overflow-x: clip;
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ── Navbar mobile improvements ── */
@media (max-width: 768px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(24,70,60,0.98), rgba(16,46,40,0.98));
        border-radius: 0 0 18px 18px;
        padding: 12px 16px 20px;
        margin-top: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin: 0 !important;
    }

    .nav-link:last-child { border-bottom: none; }

    .btn-trial {
        margin: 12px 0 0;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: block;
    }
}

/* ── Footer mobile improvements ── */
@media (max-width: 480px) {
    .footer-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
    .footer-social { gap: 10px; }
    .social-link { width: 34px; height: 34px; font-size: 0.82rem; }
}

/* ── Inner hero responsive ── */
@media (max-width: 768px) {
    .inner-hero,
    .policy-hero {
        min-height: 220px;
        padding: 40px 0 30px;
    }
}

/* ── Section title global mobile ── */
@media (max-width: 576px) {
    .section-title { font-size: 1.85rem !important; }
    .section-subtitle { font-size: 0.95rem !important; }
}

/* ── WhatsApp float button ── */
@media (max-width: 480px) {
    .whatsapp-float,
    .wa-float {
        bottom: 16px !important;
        right: 14px !important;
    }
}

/* ── Dual button layout on mobile ── */
@media (max-width: 480px) {
    .course-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    .course-card-actions .btn-course-action,
    .course-card-actions .btn-view-course {
        width: 100%;
        flex: unset;
        min-width: unset;
    }
}

/* =================================================================
   MOBILE VISUAL ENHANCEMENT — Beautiful mobile design upgrades
================================================================= */

/* ── Smoother card corners on mobile ── */
@media (max-width: 576px) {
    .footer-grid { padding: 0 4px; }
    .footer-col h3 { font-size: 1.05rem; }
}

/* ── Fix any overflow from animated pseudo elements ── */
.step-card,
.feature-card,
.course-card,
.method-card {
    overflow: hidden;
}

/* ── Ensure containers don't overflow ── */
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
    .container { padding-left: 14px; padding-right: 14px; }
}

/* ── Button touch targets — minimum 44px for mobile ── */
@media (max-width: 768px) {
    .btn-trial,
    .btn-course-action,
    .btn-view-course,
    .btn-start-now,
    .btn-book-trial {
        min-height: 44px;
    }
}

/* ── Fix the testimonial arrows not getting clipped ── */
.testimonial-slideshow {
    overflow: visible;
}

.testimonials .container {
    overflow: hidden;
}

/* =================================================================
   BEAUTIFUL MOBILE DESIGN SYSTEM — Visual Polish Pass
   Makes every page look great on phone screens
================================================================= */

/* ── Smoother font rendering on mobile ── */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Tighter letter-spacing for headings on small screens */
    h1, h2, h3 { letter-spacing: -0.01em; }

    /* Better container padding rhythm */
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ── Contact bar mobile — icon-only, no clutter ── */
@media (max-width: 380px) {
    .contact-bar-left .contact-bar-item:first-child span { display: none; }
    .contact-bar-item i { font-size: 1rem; }
    .contact-bar-inner { padding: 0 10px; }
}

/* ── Navbar toggler — nicer on mobile ── */
@media (max-width: 992px) {
    .navbar-brand { font-size: 1.45rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .navbar-logo-img { height: 40px; }
    .navbar-toggler { border-radius: 10px; padding: 6px 10px; }
    /* Ensure no gap on mobile - force exact positioning with slight overlap */
    .navbar { 
        margin-top: 0 !important; 
        backdrop-filter: none;
        top: calc(var(--contact-bar-h) + var(--promo-bar-h)) !important;
    }
    .promo-bar { margin-bottom: 0 !important; }
}

/* ── Navbar collapse menu — beautiful mobile drawer feel ── */
@media (max-width: 992px) {
    .navbar-collapse {
        background: linear-gradient(160deg, rgba(24,70,60,0.99), rgba(10,28,22,0.99));
        border-radius: 0 0 20px 20px;
        padding: 8px 20px 22px;
        margin: 0 -12px;
        box-shadow: 0 14px 40px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(212,175,55,0.15);
    }

    #navbarNav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 1rem !important;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #navbarNav .nav-link::after { display: none; }

    #navbarNav .nav-item:last-child .nav-link { border-bottom: none; }

    .btn-trial {
        margin: 14px 0 0;
        width: 100%;
        text-align: center;
        display: block;
        padding: 12px 20px;
        border-radius: 14px;
        font-size: 1rem;
    }
}

/* ── Inner hero pages — reduced vertical height on mobile ── */
@media (max-width: 768px) {
    .inner-hero {
        min-height: 280px !important;
        height: auto !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .inner-hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem) !important; }
    .inner-hero-subtitle { font-size: 0.94rem !important; }

    .hero-bc .bc-row { font-size: 0.78rem; gap: 6px; }
}

@media (max-width: 480px) {
    .inner-hero {
        min-height: 240px !important;
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }
    .inner-hero-title { font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important; }
}

/* ── Footer — mobile beautiful layout ── */
@media (max-width: 768px) {
    .footer { padding: 44px 0 0; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
    }
    .footer-logo { margin-bottom: 14px; }
    .footer-logo i { font-size: 2rem; }
    .footer-logo-img { height: 58px; }
    .footer-logo span { font-size: 1.4rem; }
    .footer-desc { font-size: 0.87rem; margin-bottom: 16px; }
    .footer-col h3 { font-size: 1.05rem; margin-bottom: 14px; }
    .footer-links a { font-size: 0.87rem; }
    .fq-item { padding: 10px 0; }
    .footer-whatsapp-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.88rem;
        border-radius: 12px;
        margin-top: 14px;
    }
    .footer-social { gap: 10px; }
    .social-link { width: 36px; height: 36px; font-size: 0.86rem; }
    .footer-bottom { padding: 18px 0; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
    .footer-bottom-links { gap: 14px; justify-content: center; }
    .copyright { font-size: 0.82rem; }
}

/* ── WhatsApp float — better mobile position ── */
@media (max-width: 576px) {
    .whatsapp-float,
    .wa-float {
        bottom: 18px !important;
        right: 14px !important;
    }
    .wa-bubble,
    .whatsapp-float .wa-bubble {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.7rem !important;
    }
    .wa-label,
    .whatsapp-float .wa-label { display: none !important; }
}

/* ── Section cards — mobile tap state ── */
@media (max-width: 768px) {
    /* Remove hover transforms on mobile (no hover on touch) */
    .feature-card:hover,
    .course-card:hover,
    .step-card:hover,
    .method-card:hover {
        transform: none;
    }

    /* Add tap/active state instead */
    .feature-card:active,
    .course-card:active,
    .step-card:active,
    .method-card:active {
        transform: scale(0.98);
        transition: transform 0.15s ease;
    }
}

/* ── Global button improvements on mobile ── */
@media (max-width: 576px) {
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-start-now,
    .btn-book-trial,
    .btn-course-action {
        letter-spacing: 0;
        font-size: 0.95rem !important;
    }
}

/* ── Section divider rhythm — consistent spacing ── */
@media (max-width: 576px) {
    section { scroll-margin-top: 120px; }
}

/* =================================================================
   GLOBAL FIXES PATCH — v2 refinements
   Promo bar seamless scroll, step card images, consistency fixes
================================================================= */

/* ── Seamless promo bar scroll ──
   Uses TWO copies of text side-by-side so the seam is invisible.
   The container is overflow:hidden; the inner span is 200% wide
   and moves from 0% to -50% (= one full copy width), then repeats.
================================================================= */
/* ── Promo bar: seamless dual-copy ticker ──
   The wrap holds TWO identical copies side by side (width: max-content).
   translateX(-50%) moves exactly one copy width → seamless infinite loop.
   Each copy has padding-right: 120px so text never touches at the seam.
*/
.promo-bar {
  overflow: hidden;
  white-space: nowrap;
  line-height: var(--promo-bar-h, 38px);
}
.promo-bar-content {
  overflow: hidden;
  width: 100%;
  display: block;
  padding: 0;
}
.promo-marquee-wrap {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: seamlessScroll 35s linear infinite;
  will-change: transform;
}
.promo-marquee-wrap:hover { animation-play-state: paused; }
@keyframes seamlessScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.promo-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  /* ↓ This gap is the FIX: prevents text from running together at seam */
  padding-right: 120px;
  flex-shrink: 0;
  min-width: max-content;
}
.promo-sep {
  display: inline-block;
  margin: 0 28px;
  color: rgba(24,70,60,.4);
  font-size: .75rem;
  flex-shrink: 0;
}
.promo-marquee { display: none !important; }

/* ── Step / arch card — image strip at top ── */
.arch-card-img {
  width: 100%;
    height: auto;
    aspect-ratio: 1600 / 893;
    object-fit: cover;
    object-position: center;
  display: block;
    transition: transform .45s ease, filter .35s ease;
}
.arch-card:hover .arch-card-img { transform: scale(1.03); filter: brightness(1.06) saturate(1.05); }
.arch-card-img-wrap {
    overflow: hidden;
    position: relative;
}

/* Override dome border-radius when image is present */
.arch-card.has-image {
    border-radius: 22px;
}
.arch-card.has-image .arch-card-dome {
    border-radius: 0;
}

/* ── Seerat course badge ── */
.course-badge.seerat {
  background: linear-gradient(135deg, #c0392b, #922b21);
}

/* ── Free trial text override — 3 classes ── */
.trial-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  margin-left: 6px;
}

/* ── Course cards centering fix ── */
.courses-row-centered {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.courses-row-centered .col-course {
  flex: 0 0 calc(50% - 12px);
  min-width: 290px;
  max-width: 580px;
}
@media (max-width: 768px) {
  .courses-row-centered .col-course {
    flex: 0 0 min(98%, 560px);
    min-width: 0;
  }
}

/* ── Package card image ── */
.pkg-img-wrap {
  height: 180px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  position: relative;
}
.pkg-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.pkg-card:hover .pkg-img-wrap img { transform: scale(1.05); }
.pkg-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,70,60,.65), transparent 55%);
}

/* ── Blog card image ── */
.blog-card-img-wrap {
  height: 210px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  position: relative;
}
.blog-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }

/* ── FAQ hero image ── */
.faq-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  opacity: .18;
}

/* ── Skip to content link (accessibility) ──
   Hidden off-screen by default; slides into view on keyboard focus.
   Uses only the site's existing color tokens (--primary / --secondary). */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 999999;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}