/* ============================================================
   Kolo Innovate - Brand Stylesheet (Website Design & Development
   Proposal, August 2026)
   Loaded AFTER each page's inline <style> block so the brand
   palette overrides every page consistently.
   ------------------------------------------------------------
   Primary Navy  #0A2540
   Secondary Teal #119DA4
   Accent Gold   #F2A93C
   Charcoal      #222226
   Cloud Gray    #F4F6F8
   White         #FFFFFF
   ============================================================ */

:root {
    --primary: #0A2540;
    --primary-dark: #071C31;
    --primary-light: #123B63;
    --secondary: #119DA4;
    --secondary-dark: #0C7A80;
    --secondary-light: #7FDDE0;
    --accent: #F2A93C;
    --accent-dark: #D9902A;
    --bg-white: #FFFFFF;
    --bg-light: #F4F6F8;
    --bg-lighter: #EDF0F4;
    --text-dark: #222226;
    --text-medium: #45454F;
    --text-light: #6C7380;
    --border-color: #E3E8EE;
    /* Radius + motion tokens. These were previously only defined by
       page-specific stylesheets (editor-chrome.css, service-pages.css), so
       pages loading kolo.css + auth.css alone (login/register) resolved
       var(--radius-sm)/var(--radius-md) to 0px - sharp input corners - and
       every transition: var(--transition) was silently dead. Values match
       the hardcoded equivalents used across auth/modal CSS. */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all .3s ease;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.10);
    --shadow-lg: 0 8px 40px rgba(10, 37, 64, 0.14);
    --shadow-xl: 0 16px 60px rgba(10, 37, 64, 0.18);
    --font-poppins: 'Poppins', sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
}

/* ---------- Typography ---------- */
body {
    font-family: var(--font-body) !important;
    color: var(--text-dark);
}
h1, h2, h3, h4, h5, h6,
.navbar-brand, .hero-title, .section-title, .footer-brand-name,
.stat-number, .timeline-year {
    font-family: var(--font-poppins) !important;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--primary-dark) !important;
    border-bottom: 3px solid var(--secondary);
    font-size: 0.84rem;
    padding: 10px 0 7px;
    position: relative;
    z-index: 1030;
}
.top-bar .bi { color: var(--accent); }
.top-bar a { color: #fff; text-decoration: none; transition: var(--transition); }
.top-bar a:hover { color: var(--secondary-light); }
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: nowrap;
}
.top-bar-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 22px;
    min-width: 0;
}
.top-bar-aside {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}
/* Subtle divider between the contact items on desktop. */
.top-bar-info .top-bar-item + .top-bar-item {
    position: relative;
    padding-left: 22px;
}
.top-bar-info .top-bar-item + .top-bar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.18);
}
.top-bar-item .bi { font-size: 0.8rem; }
.top-bar-item a { display: inline-flex; align-items: center; padding: 8px 0; margin: -8px 0; color: inherit; }
.top-bar-social { display: flex; align-items: center; gap: 7px; }
.top-bar-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.78rem;
    transition: var(--transition);
}
.top-bar-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}
/* Session-aware account links (Login / Create Account / Dashboard). */
.top-bar-auth { display: flex; align-items: center; gap: 6px; }
.top-bar-auth a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 12px; border-radius: 50px; font-size: 0.76rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.9); text-decoration: none;
    background: rgba(255, 255, 255, 0.09); transition: var(--transition);
    white-space: nowrap;
}
.top-bar-auth a:hover { background: var(--accent); color: var(--primary); }
/* Mobile: keep auth buttons visible but compact. */
@media (max-width: 767.98px) {
    .top-bar-auth { gap: 4px; }
    .top-bar-auth a { padding: 10px 10px; font-size: 0.72rem; }
    .top-bar-auth a i { font-size: 0.7rem; }
}

/* ---------- Shared LMS registration form (standalone page + enrollment modal) ----------
   Both forms are rendered by includes/registration-form.php, so these rules live
   here once instead of being duplicated per host. */
.reg-form .form-label .req { color: #dc3545; }
.reg-form .form-label .opt { color: var(--text-light, #6C7380); font-weight: 400; font-size: 0.78rem; }
.reg-form .invalid-msg { color: #dc3545; font-size: 0.75rem; margin-top: 4px; display: none; }
.reg-form .invalid-msg.show { display: block; }
.reg-form .reg-pw { position: relative; }
.reg-form .reg-pw .form-control { padding-right: 44px; }
.reg-form .reg-pw .toggle-pass {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-light, #6C7380);
    padding: 6px; cursor: pointer; font-size: 1rem; z-index: 5;
}
.reg-form .reg-pw .toggle-pass:hover { color: var(--primary, #0A2540); }
.reg-form .reg-strength { display: flex; gap: 5px; margin-top: 8px; }
.reg-form .reg-strength span { height: 4px; flex: 1; border-radius: 4px; background: var(--border-color, #E3E8EE); transition: var(--transition, all .3s ease); }
.reg-form .reg-strength span.weak { background: #EF4444; }
.reg-form .reg-strength span.fair { background: var(--accent, #F2A93C); }
.reg-form .reg-strength span.good { background: #22c55e; }
.reg-form .reg-strength span.strong { background: var(--secondary, #119DA4); }
.reg-form .photo-drop { border: 1.5px dashed var(--border-color, #E3E8EE); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 16px; background: #FAFBFC; transition: var(--transition, all .3s ease); }
.reg-form .photo-drop.drag { border-color: var(--secondary, #119DA4); background: #F0FAFB; }
.reg-form .photo-drop .photo-preview { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-color, #E3E8EE); display: none; background: #fff; flex: none; }
.reg-form .photo-drop .photo-preview.show { display: block; }
.reg-form .photo-drop .photo-meta { flex: 1; min-width: 0; }
.reg-form .photo-drop .photo-meta strong { font-size: 0.85rem; color: var(--text-dark, #222226); display: block; }
.reg-form .photo-drop .photo-meta small { color: var(--text-light, #6C7380); font-size: 0.76rem; }
.reg-form .photo-drop .photo-actions { display: flex; gap: 8px; flex: none; }
.reg-form .btn-file { border: 1px solid var(--border-color, #E3E8EE); background: #fff; border-radius: 8px; padding: 7px 16px; font-size: 0.82rem; font-weight: 600; color: var(--primary, #0A2540); transition: var(--transition, all .3s ease); }
.reg-form .btn-file:hover { border-color: var(--secondary, #119DA4); color: var(--secondary, #119DA4); }
.reg-form .input-group-text {
    background: #F7F9FB; border: 1px solid var(--border-color, #E3E8EE); border-right: 0;
    color: var(--secondary, #119DA4); font-size: 1rem; padding-left: 14px; padding-right: 12px;
    border-radius: 8px 0 0 8px;
}
.reg-form .input-icon .form-control, .reg-form .input-icon .form-select { border-left: 0; background-color: #FBFCFD; }
.reg-form .input-icon .form-control:focus, .reg-form .input-icon .form-select:focus {
    border-color: var(--secondary, #119DA4); box-shadow: 0 0 0 3px rgba(17, 157, 164, 0.14);
    background: #fff; outline: none;
}
.reg-form .input-icon .form-control.is-invalid, .reg-form .input-icon .form-select.is-invalid {
    border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.10);
}

/* Sectioned enrollment modal: clear group headings, terms row and inline notice */
.reg-form .reg-section { margin-top: 20px; }
.reg-form .reg-section:first-of-type { margin-top: 0; }
.reg-form .reg-section-title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-poppins, 'Poppins', sans-serif);
    font-weight: 700; font-size: 0.8rem; letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--primary, #0A2540); margin: 0 0 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #E3E8EE);
}
.reg-form .reg-section-title i { color: var(--secondary, #119DA4); }
.reg-form .reg-terms {
    margin: 18px 0 14px; padding: 12px 14px;
    background: var(--bg-light, #F4F6F8); border: 1px solid var(--border-color, #E3E8EE);
    border-radius: 10px;
}
.reg-form .reg-terms .form-check-label { font-size: 0.85rem; color: var(--text-dark, #222226); }
/* ---- Brand checkboxes: teal fill + drawn-on checkmark ---------------------
   Terms checkbox (register page + enrollment modal) and the Remember-me
   checkbox on both login portals. Replaces the default Bootstrap blue and
   the native accent-color tint with the Kolo teal, a rounded white
   checkmark that draws in (background-size 0 → 12px), a soft squish "pop",
   and a teal focus ring. */
.reg-terms .form-check-input,
.auth-remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 19px; height: 19px;
    border: 2px solid #B9C4D0;
    border-radius: 6px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0 0;               /* checkmark hidden until ticked */
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease,
                background-size .2s cubic-bezier(0.2, 0.9, 0.3, 1.2) .05s,
                box-shadow .18s ease;
}
.reg-terms .form-check-input:hover,
.auth-remember input[type="checkbox"]:hover { border-color: var(--secondary, #119DA4); }
.reg-terms .form-check-input:checked,
.auth-remember input[type="checkbox"]:checked {
    background-color: var(--secondary, #119DA4);
    border-color: var(--secondary, #119DA4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    background-size: 12px 12px;         /* grows from 0: the draw-in animation */
    box-shadow: 0 0 0 3px rgba(17, 157, 164, 0.16);
    animation: koloCheckPop .3s ease;
}
.reg-terms .form-check-input:focus-visible,
.auth-remember input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--secondary, #119DA4);
    box-shadow: 0 0 0 3px rgba(17, 157, 164, 0.28);
}
.reg-terms .form-check-input.is-invalid { border-color: #dc3545; }
@keyframes koloCheckPop {
    0% { transform: scale(1); }
    45% { transform: scale(0.82); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .reg-terms .form-check-input,
    .auth-remember input[type="checkbox"] { transition: none; animation: none !important; }
}
.reg-notice {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px; border-radius: 10px; margin-bottom: 14px;
    font-size: 0.85rem; font-weight: 500;
}
.reg-notice.error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.reg-notice.error i { color: #DC2626; }
.reg-notice .btn { flex: none; margin-left: auto; }

/* Live seat availability + closed state (js/enroll-seats.js) */
.cd-seats { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--accent, #F2A93C); }
.cd-seats i { font-size: 0.9rem; }
.cd-seats[hidden] { display: none; }
.feat-seats[hidden] { display: none; }
.feat-seats { display: inline; }
.feat-seats .bi-people-fill { color: var(--accent, #F2A93C); }
[data-action="register"].is-closed {
    background: #CBD5E1 !important; border-color: #CBD5E1 !important; color: #475569 !important;
    box-shadow: none !important; cursor: not-allowed; opacity: .95;
}
.featured-badge.closed { background: #475569 !important; color: #fff !important; }

/* Member mode: a logged-in participant confirming choices sees only the
   Course Enrollment section - the account form, terms and sign-in row hide. */
#registerModal.member-mode .reg-account-section { display: none; }
#registerModal.member-mode .reg-terms { display: none; }
#registerModal.member-mode #regSignInRow { display: none; }
#registerModal.member-mode #regEnrollSection { margin-top: 0; }
#registerModal .reg-section#regEnrollSection[hidden] { display: none; }
#registerModal #regModeRow[hidden], #registerModal #regCohortRow[hidden] { display: none; }

/* Keep the bar on ONE tidy line at every width: instead of wrapping,
   less-critical items drop off as the viewport shrinks.
   - address: hidden below xl (1200px)
   - hours:   hidden below lg (992px)
   - social:  hidden below sm (576px) */
@media (max-width: 1199.98px) {
    .top-bar-address { display: none; }
}

@media (max-width: 767.98px) {
    .top-bar { font-size: 0.78rem; padding: 7px 0; }
    .top-bar-inner { justify-content: center; }
    .top-bar-info { column-gap: 14px; }
    .top-bar-info .top-bar-item + .top-bar-item { padding-left: 14px; }
    .top-bar-info .top-bar-item + .top-bar-item::before { display: none; }
}
@media (max-width: 575.98px) {
    .top-bar-social { display: none; }
}
/* Ultra-narrow phones: keep the phone + email on one line by letting each
   item shrink and ellipsizing the link text instead of overflowing. */
@media (max-width: 479.98px) {
    .top-bar-info { column-gap: 8px; }
    .top-bar-item { max-width: 44vw; overflow: hidden; }
    .top-bar-item a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
}

/* ---------- Navbar ---------- */
/* Cohesive header: the top bar ends in a 3px teal seam; on scroll that seam
   lives on as the navbar's inset top line (same color, same position). */
.navbar {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06), 0 2px 10px rgba(10, 37, 64, 0.05);
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
}
/* Hysteresis: add .scrolled past 80px, but only remove it back under 60px.
   A single threshold means pages sitting near 80px scroll flip the class on
   every ±1px wheel tick - padding/shadow/logo re-animating each time is the
   'navbar blinking' reported on scroll. The 20px dead band kills that. */
.navbar.scrolled {
    padding: 4px 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 3px 0 var(--secondary), 0 10px 30px rgba(10, 37, 64, 0.12);
}
.navbar-brand { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.navbar.scrolled .navbar-brand { transform: scale(0.9); transform-origin: left center; }
/* Logo + tagline animate in the same 0.35s window as the navbar padding -
   without this the img snaps instantly (kolo.css line ~557 had no transition)
   while the bar itself eases, which read as a header 'blink' on every scroll. */
.navbar-brand img { transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.navbar-tagline { transition: font-size 0.35s ease, letter-spacing 0.35s ease; }
.navbar .nav-link { position: relative; }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 20px; height: 3px; background: var(--secondary); border-radius: 10px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.navbar .dropdown-item:hover { background: #F4F6F8; color: var(--primary); }

/* Dropdown caret: tiny chevron that flips when open. Bootstrap's default
   .dropdown-toggle::after caret is hidden so the link shows only our custom
   chevron (the underline rule above does NOT remove the default caret). */
.navbar .dropdown-toggle::after { display: none; }
.navbar .nav-caret {
    font-size: 0.65em;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: 1px;
}
.navbar .dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

/* Hamburger toggler: brand-coloured button whose three bars morph into an X.
   Navy button + white bars so the three lines stay clearly visible on every
   surface (white header, hero photo edge, dark-mode header) - the old white
   button with navy bars vanished against light backgrounds. */
.navbar-toggler {
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(10, 37, 64, 0.28);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1035;
}
/* On mobile, ensure collapse is hidden when toggler hasn't been clicked */
@media (max-width: 991.98px) {
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
}
.navbar-collapse.show, .navbar-collapse.collapsing {
    overflow: visible !important;
    pointer-events: auto !important;
}
/* Mobile: ensure hamburger is always clickable.
   NOTE: do NOT force `position: relative` on .navbar here - it un-sticks
   Bootstrap's .sticky-top and the nav scrolls away on mobile. */
@media (max-width: 991.98px) {
    .navbar-toggler { pointer-events: auto !important; position: relative !important; z-index: 9999 !important; padding: 12px 14px; }
}
.navbar-toggler:hover { border-color: rgba(125, 221, 224, 0.75); background: var(--primary-light); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(17, 157, 164, 0.35); }
.navbar-toggler-icon {
    /* Middle bar = a gradient IMAGE sized to a 2px stripe. A background-color
       would ignore background-size and paint a solid block (which is exactly
       why the hamburger read as one white blob before). Top/bottom bars come
       from ::before/::after below. */
    background-image: linear-gradient(#fff, #fff) !important;
    background-color: transparent;
    width: 22px;
    /* Full three-bar block height: the middle bar paints via a centered
       2px background slice, top/bottom bars via ::before/::after. Giving the
       span its real 14px box (instead of a 2px collapsed one) makes the
       hamburger button a ~37px touch target instead of ~25px. */
    height: 14px;
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: center;
    position: relative;
    display: block;
    transition: background-color 0.3s ease;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.navbar-toggler-icon::before { top: 0; }
.navbar-toggler-icon::after { bottom: 0; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background-color: transparent; }
/* Open state: both bars converge on the 14px box's center line (6–8px) and
   rotate into a clean X. The site header JS also toggles an .active class on
   the button (site-header.php), so key the morph off BOTH hooks. */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
.navbar-toggler.active .navbar-toggler-icon { background-image: none !important; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler.active .navbar-toggler-icon::before { top: 6px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after,
.navbar-toggler.active .navbar-toggler-icon::after { bottom: 6px; transform: rotate(-45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
.navbar-toggler.active .navbar-toggler-icon { background-color: transparent; }

/* Mobile: the collapsed menu becomes a cohesive card under the navbar, links
   stack with hairlines, the dropdown expands in place, and the CTA goes
   full-width. */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-light);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: 0 20px 32px rgba(10, 37, 64, 0.16);
        padding: 8px 20px 18px;
        margin-top: 12px;
    }
    .navbar-nav .nav-item { border-bottom: 1px solid rgba(10, 37, 64, 0.08); }
    .navbar-nav .nav-item:last-child { border-bottom: none; }
    .navbar-nav .nav-link { padding: 13px 4px !important; font-size: 0.98rem !important; }
    .navbar .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0 0 4px;
        padding: 2px 0 6px 14px;
        animation: none;
    }
    .navbar .dropdown-item { padding: 9px 14px; }
    .navbar-nav .btn-gold { width: 100%; margin-top: 14px; }
}

/* ── Desktop hover dropdown: show sub-menu on hover, click navigates ── */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown.show > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar-nav .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Prefer the teal seam (inset line) only when the top bar is actually gone. */
@media (prefers-reduced-motion: reduce) {
    .navbar, .navbar-brand, .navbar-toggler-icon, .nav-caret { transition: none; }
}

/* ---------- Buttons ---------- */
.btn-primary-custom { background: var(--primary); color: #fff; }
.btn-primary-custom:hover { background: var(--primary-light); color: #fff; }
.btn-secondary-custom { background: var(--secondary); color: #fff; }
.btn-secondary-custom:hover { background: var(--secondary-dark); color: #fff; }
.btn-outline-custom { border-color: rgba(255,255,255,0.85); }
.btn-outline-custom:hover { background: #fff; color: var(--primary); }
/* Secondary CTA - white background, navy border, navy text (Task 8 spec) */
.btn-outline-primary-custom {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.18);
}

/* Gold CTA - Request a Quote / Book a Consultation */
.btn-gold {
    background: var(--accent);
    color: #0A2540;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(242, 169, 60, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-gold:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(242, 169, 60, 0.45);
}
.btn-gold.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* Navbar CTA - keep it prominent but let the longer label breathe (Task 4) */
.navbar .btn-gold { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .btn-gold { font-size: 0.8rem; padding: 10px 18px; }
}
@media (max-width: 575.98px) {
    .navbar-nav .btn-gold { font-size: 0.85rem; }
}

/* ---------- Hero overlays (navy → teal) ----------
   Scoped to NON-image slides: image slides paint their photo on ::before
   (Ken Burns layer in index.php) and already carry the per-slide
   .hero-overlay gradient, so a blanket !important gradient here would
   overwrite the photo. Video/no-image slides keep the gradient. */
.hero-carousel .carousel-item:not(.hero-image-slide)::before,
.about-hero::before,
.page-hero::before {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.92) 0%, rgba(17, 157, 164, 0.55) 100%) !important;
}
.hero-carousel .hero-title span { color: var(--secondary); }
.hero-carousel .hero-badge {
    background: rgba(17, 157, 164, 0.22);
    border-color: rgba(17, 157, 164, 0.55);
    color: #B5EEF0;
}
.hero-carousel .hero-tagline {
    font-family: var(--font-poppins);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

/* ---------- Breadcrumb / page headers ---------- */
.breadcrumb-section { background: linear-gradient(135deg, #0A2540 0%, #119DA4 140%) !important; }
.contact-hero { background: linear-gradient(135deg, #0A2540 0%, #119DA4 130%) !important; }
.contact-hero::after { background: rgba(242, 169, 60, 0.12); }

/* ---------- CTA section ---------- */
.cta-section { background: linear-gradient(135deg, #0A2540 0%, #0C2F52 100%) !important; }
.cta-section::before { background: rgba(17, 157, 164, 0.08); }

/* White logo plate on the navy CTA band (brand logo on colored surface) */
/* Brand badge: white circle with the wide lockup centered inside (matches the footer badge) */
.cta-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
    margin-bottom: 26px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.cta-logo-plate img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
}
.cta-logo-plate:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
}

/* Brand badge on light surfaces: softer, navy-tinted shadow so it reads against Cloud Gray */
.cta-logo-plate.on-light {
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.16);
}
.cta-logo-plate.on-light:hover {
    box-shadow: 0 12px 26px rgba(10, 37, 64, 0.22);
}

/* Hero carousel: slightly smaller badge above the slide badge */
.hero-carousel .cta-logo-plate {
    margin-bottom: 16px;
    width: 100px;
    height: 100px;
}
.hero-carousel .cta-logo-plate img {
    width: 80%;
    height: 80%;
}
@media (max-width: 575.98px) {
    .hero-carousel .cta-logo-plate {
        width: 84px;
        height: 84px;
    }
    .hero-carousel .cta-logo-plate img {
        width: 78%;
        height: 78%;
    }
}

/* Navbar brand: stacked lockup with the 'Innovation that Works' tagline underneath.
   The tagline starts under the 'K' of Kolo: the K-mark bars occupy the left ~21.6%
   of the lockup (viewBox 0-322 of 1500), so indent the tagline by that same share. */
.navbar-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px;
    line-height: 1.1;
}


/* Navbar logo */
.navbar-brand img {
    height: 48px !important;
    width: auto !important;
    max-width: 200px;
}
.navbar.scrolled .navbar-brand img {
    height: 40px !important;
    max-width: 170px !important;
}
/* Tagline under logo - 'I' of INNOVATION starts under the 'K' of Kolo.
   Pixel scan shows bars end at x~65, 'K' text starts at x~70 in 275px image.
   70/275 = 25.5%. We use .navbar-brand-inner (inline-block wrapping img+tagline)
   so left% is relative to the image width, not the wider brand flex container. */
.navbar-brand-inner {
    display: inline-block;
    position: relative;
    line-height: 1.1;
}
.navbar-tagline {
    display: block;
    font-family: var(--font-poppins);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-top: -2px;
    line-height: 1;
    padding-left: 0;
    text-align: left;
    position: relative;
    left: 25.5%;
}
.navbar.scrolled .navbar-tagline {
    font-size: 0.48rem;
    letter-spacing: 2px;
}
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 42px !important;
        max-width: 180px !important;
    }
}
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 36px !important;
        max-width: 150px !important;
    }
    .navbar.scrolled .navbar-brand img {
        height: 30px !important;
        max-width: 130px !important;
    }
    .navbar-tagline {
        font-size: 0.42rem;
        letter-spacing: 1.8px;
    }
}

/* ---------- Section labels & titles ---------- */
.section-label {
    background: rgba(242, 169, 60, 0.14) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(242, 169, 60, 0.35);
}
.section-title span { color: var(--primary); }
.bg-light-section { background: var(--bg-light); }
.bg-lighter-section { background: var(--bg-lighter); }

/* ---------- Stats - navy band, teal numbers ---------- */
.stats-section {
    background: linear-gradient(135deg, #0A2540 0%, #0C2F52 70%, #119DA4 160%);
    padding: 14px 0;
    color: #fff;
}
.stats-section .stat-number { color: var(--secondary-light); }
.stats-section .stat-icon { color: var(--accent); }
.stats-section .stat-label { color: rgba(255, 255, 255, 0.75); }
.stat-number { color: var(--secondary); }

/* ---------- Service / overview cards ---------- */
.service-card .service-icon-box,
.service-item .service-icon { background: var(--secondary); color: #fff; }
.service-card h4, .service-item h5, .overview-card h5, .why-card h5, .value-card h5 { color: var(--primary); }
.service-card p, .service-item p, .overview-card p, .why-card p { color: var(--text-light); }
.read-more-link { color: var(--primary); }
.read-more-link:hover { color: var(--secondary); }
.card-arrow { color: var(--primary); }
.service-card .service-img .overlay,
.service-item .service-img .overlay { background: rgba(10, 37, 64, 0.35); }
.service-card-link:hover .service-card { border-color: #E3E8EE; }
.why-card .why-icon, .overview-card .overview-icon, .value-icon { color: var(--secondary); }

/* ---------- Testimonials ---------- */
.testimonial-card { border-top: 4px solid var(--secondary); }
.testimonial-card .quote-icon { color: rgba(17, 157, 164, 0.3); }
.testimonial-card .client-name { color: var(--primary); }
.testimonial-avatar-init {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, #119DA4, #0A2540);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--font-poppins); margin-right: 12px; flex-shrink: 0;
}

/* ---------- Partners (Cloud Gray) ---------- */
.partner-scroll-wrapper { background: #F4F6F8 !important; }
.partner-scroll-wrapper .partner-logo-item { color: var(--primary); }

/* ---------- Office cards ---------- */
.office-card { border-bottom: 4px solid var(--secondary); }
.office-card .office-icon { color: var(--primary); }
.office-card h5, .office-card h6, .office-horizontal h6 { color: var(--primary); }
.info-list li i { color: var(--secondary); }
.social-follow a { background: rgba(10, 37, 64, 0.08); color: var(--primary); }
.social-follow a:hover { background: var(--secondary); }

/* ---------- Forms ---------- */
.form-control-custom:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(17, 157, 164, 0.12) !important;
}

/* ---------- Footer - navy, white-circle logo, tagline ---------- */
.footer { background: #0A2540 !important; color: #B9C4D0; padding-top: 48px; padding-bottom: 10px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%); }
.footer h5 { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding-bottom: 8px; position: relative; }
.footer h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 3px; background: var(--accent) !important; border-radius: 5px; }
.footer a { color: #B9C4D0; text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer a:hover { color: var(--accent); padding-left: 4px; }
/* Visible keyboard focus (gold accent ring) - footer links are icon-free text
   links, so the ring is the primary focus indicator for keyboard users. */
.footer a:focus-visible { outline: 2px solid var(--accent, #F2A93C); outline-offset: 2px; border-radius: 2px; }
/* Canonical footer list styles - defined HERE so every page that loads
   css/kolo.css renders the chevron lists exactly like the home page footer
   (no per-page inline copies, no default bullet dots). Each row is a flex
   line so a long label ("Training & Capacity Development", "Professional
   Development") wraps WITHIN its own line beside the chevron instead of
   dropping below it - previously this flex layout only existed in the
   mobile media query, so narrow desktop footer columns showed the chevron
   stranded on its own line. */
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { display: flex; align-items: flex-start; margin-bottom: 4px; line-height: 1.45; }
.footer-link-list li i { color: var(--accent) !important; font-size: 0.6rem; margin-right: 6px; margin-top: 0.45em; flex-shrink: 0; }
.footer-link-list a { text-decoration: none; display: inline-block; flex: 1; min-width: 0; overflow-wrap: break-word; /* roomier tap target without changing the visual rhythm */ padding: 8px 0; margin: -8px 0; }
.footer .footer-contact li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.footer .footer-contact li .bi { margin-top: 2px; flex-shrink: 0; font-size: 0.85rem; }
.footer .footer-contact a { color: #B9C4D0; text-decoration: none; }
.footer .footer-contact a:hover { color: var(--accent); padding-left: 0; }
/* "Contact Us →" button under the Get in Touch column (label/URL from
   Dashboard → Website → Footer). Gold pill on the navy footer; the hover state
   changes colour only - the generic .footer a:hover { padding-left } nudge
   would make the button jump. */
.footer-contact-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 9px 20px; border-radius: 8px;
    background: var(--accent); color: #0A2540 !important;
    font-weight: 600; font-size: 0.88rem; letter-spacing: 0.2px;
    transition: var(--transition); box-shadow: 0 4px 12px rgba(242, 169, 60, 0.25);
}
.footer-contact-btn:hover { background: var(--secondary); color: #fff !important; padding-left: 20px !important; transform: translateY(-2px); }
.footer-contact-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-bottom { background: #071C31 !important; color: #8A97A8; padding: 12px 0; font-size: 0.85rem; position: relative; }
.footer-bottom a { color: #8A97A8; display: inline-block; padding: 6px 2px; margin: -6px -2px; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .footer-sep { margin: 0 10px; color: #5A6A7E; user-select: none; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; margin-right: 5px; margin-bottom: 2px; transition: var(--transition); font-size: 0.9rem; }
.social-icon:hover { background: var(--accent) !important; color: #0A2540 !important; transform: translateY(-3px); }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand .footer-brand-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.footer .col-lg-3 { padding-right: 2rem; }
.footer .col-lg-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.footer-logo-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff; border: none; display: flex; align-items: center; justify-content: center;
    padding: 7px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.footer-logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-name { font-family: var(--font-poppins); font-weight: 800; font-size: 1.35rem; color: #fff; line-height: 1.15; }
.footer-tagline {
    font-family: var(--font-poppins);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    line-height: 1.2;
}
.footer .small {
    margin-bottom: 6px;
    line-height: 1.5;
    max-width: 320px;
}

/* ---------- Newsletter (shared include: includes/newsletter.php) ---------- */
.newsletter-input {
    border-radius: 50px 0 0 50px;
    border: 1px solid rgba(10, 37, 64, 0.15);
    background: #fff;
    color: var(--text-dark);
    padding: 9px 16px;
    font-size: 0.9rem;
}
.newsletter-input::placeholder { color: #8A97A8; }
.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(17, 157, 164, 0.12);
}
.newsletter-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: #fff;
    color: var(--text-dark);
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    max-width: 340px;
}
.newsletter-toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.newsletter-toast .bi-check-circle-fill { color: var(--secondary); font-size: 1.2rem; flex-shrink: 0; }
.newsletter-toast .btn-close { margin-left: auto; font-size: 0.7rem; }
.newsletter-toast.error { border-left-color: #dc3545; }
.newsletter-toast.error .bi { color: #dc3545; }

/* ---------- Featured Training Banner (white card) ---------- */
.featured-banner {
    color: var(--primary);
    padding: 16px 0;
    position: relative;
}
.featured-banner .container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}
.featured-banner .container::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(17, 157, 164, 0.07);
    pointer-events: none;
}
.featured-badge {
    display: inline-block;
    background: rgba(242, 169, 60, 0.14);
    color: var(--accent-dark);
    border: 1px solid rgba(242, 169, 60, 0.5);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.featured-title {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 2px;
}
.featured-sub { color: var(--text-medium); font-size: 0.82rem; margin-bottom: 8px; }
.featured-banner .btn-lg { padding: 0.38rem 0.95rem; font-size: 0.85rem; }
.countdown-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}
.countdown-label {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.countdown-grid { display: flex; justify-content: center; gap: 6px; }
.countdown-item {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 48px;
    padding: 5px 2px;
    box-shadow: 0 3px 10px rgba(10, 37, 64, 0.10);
}
.countdown-item .cd-num {
    display: block;
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.1;
}
.countdown-item .cd-label {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1px;
}
@media (max-width: 575px) {
    .featured-title { font-size: 1rem; }
    .featured-banner .container { padding: 14px 12px; }
    .countdown-item { min-width: 44px; padding: 4px 2px; }
    .countdown-item .cd-num { font-size: 0.95rem; }
}

/* ---------- Learning Journey ---------- */
.journey-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.journey-step {
    flex: 1 1 170px;
    max-width: 215px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 18px 22px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--secondary);
    transition: var(--transition);
    height: 100%;
}
.journey-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.journey-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(17, 157, 164, 0.12);
    color: var(--secondary);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.journey-num {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 50px;
    padding: 3px 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.journey-step h5 { font-weight: 700; font-size: 1.02rem; color: var(--primary); margin-bottom: 6px; }
.journey-step p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.journey-chevron {
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
    padding: 0 2px;
}
@media (max-width: 991px) {
    .journey-chevron { transform: rotate(90deg); }
    .journey-step { flex: 1 1 42%; max-width: 220px; }
}
@media (max-width: 575px) {
    .journey-step { flex: 1 1 100%; max-width: 260px; }
}

/* Filter pills (shared) */
.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border-radius: 50px;
    background: #fff; border: 1.5px solid var(--border-color);
    color: var(--text-medium); font-weight: 600; font-size: 0.85rem;
    transition: var(--transition); cursor: pointer;
}
.filter-pill .cnt { background: var(--bg-light); color: var(--text-medium); border-radius: 50px; padding: 1px 9px; font-size: 0.72rem; font-weight: 700; transition: var(--transition); }
.filter-pill:hover { border-color: var(--secondary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 10px 24px rgba(10,37,64,0.28); transform: translateY(-2px); }
.filter-pill.active::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.filter-pill.active .cnt { background: rgba(255,255,255,0.16); color: #fff; }

/* Page-level toast for event/course pages */
#pageToast {
    position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 90px);
    z-index: 99998; min-width: 320px; max-width: 92vw;
    display: flex; align-items: center; gap: 12px;
    background: #fff; color: var(--text-dark);
    border-radius: 14px; padding: 14px 18px;
    box-shadow: var(--shadow-xl); border-left: 5px solid var(--secondary);
    opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease, visibility 0.4s;
}
#pageToast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#pageToast .bi { font-size: 1.4rem; }
#pageToast.success { border-left-color: #0E9F6E; }
#pageToast.success .bi { color: #0E9F6E; }
#pageToast.error { border-left-color: #EF4444; }
#pageToast.error .bi { color: #EF4444; }
#pageToast .msg { font-size: 0.9rem; font-weight: 600; line-height: 1.4; flex: 1; }
#pageToast .bi-x-lg { color: var(--text-light); cursor: pointer; font-size: 0.95rem; }

/* ---------- Next Training Countdown Widget ---------- */
.next-training-widget {
    background: linear-gradient(135deg, #0A2540 0%, #0C2F52 60%, #119DA4 180%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}
.next-training-widget .ntw-title { font-weight: 700; font-size: 1.02rem; }
.next-training-widget .ntw-title i { color: var(--accent); margin-right: 8px; }
.next-training-widget .ntw-sub { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.ntw-timer { display: flex; gap: 8px; }
.ntw-timer .ntw-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    min-width: 56px;
    text-align: center;
    padding: 8px 4px;
}
.ntw-timer .ntw-num { display: block; font-family: var(--font-poppins); font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: #FFD58A; }
.ntw-timer .ntw-label { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.85; }

/* ---------- Back to top / WhatsApp ---------- */
.back-to-top { position: fixed; bottom: 20px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-4px); }
.whatsapp-float { position: fixed; bottom: 20px; left: 16px; right: auto; width: 42px; height: 42px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; z-index: 998; box-shadow: var(--shadow-lg); text-decoration: none; animation: pulse 2s infinite; transition: opacity 0.3s ease, visibility 0.3s ease; }
.whatsapp-float.footer-near { opacity: 0.4; }
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 50% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar-thumb { background: var(--primary); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ---------- Cookie Consent Banner ---------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #0A2540;
    color: #fff;
    padding: 16px 0;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s;
    box-shadow: 0 -4px 20px rgba(10, 37, 64, 0.25);
}
.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.cookie-text {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
.cookie-text a {
    color: #F2A93C;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
    /* inline link in a sentence - grow the tap area, not the text */
    display: inline-block;
    padding: 10px 4px;
    margin: -10px -4px;
}
.cookie-text a:hover {
    color: #FFC96B;
}
.cookie-accept-btn {
    background: #F2A93C;
    color: #0A2540;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.cookie-accept-btn:hover {
    background: #FFC96B;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(242, 169, 60, 0.4);
}
@media (max-width: 575px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .cookie-accept-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ---------- Modern Service Page Hero ---------- */
.svc-hero {
    position: relative;
    background: linear-gradient(135deg, #0A2540 0%, #071C31 45%, #0C3A5E 100%);
    color: #fff;
    padding: 76px 0 100px;
    overflow: hidden;
}
.svc-hero .hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 40%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 40%, transparent 75%);
    pointer-events: none;
}
.svc-hero::before {
    content: ''; position: absolute; top: -140px; right: -100px;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,169,60,0.20), transparent 62%);
    pointer-events: none;
}
.svc-hero::after {
    content: ''; position: absolute; bottom: -160px; left: -80px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(17,157,164,0.28), transparent 62%);
    pointer-events: none;
}
.svc-hero .hero-ring { position: absolute; border: 1.5px solid rgba(255,255,255,0.10); border-radius: 50%; pointer-events: none; }
.svc-hero .hero-ring.r1 { width: 320px; height: 320px; top: 30%; right: 6%; }
.svc-hero .hero-ring.r2 { width: 180px; height: 180px; top: 16%; right: 22%; border-color: rgba(242,169,60,0.35); }
.svc-hero .hero-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 16px;
    font-size: 0.82rem; font-weight: 600; color: #fff;
    animation: floatY 5s ease-in-out infinite; pointer-events: none;
}
.svc-hero .hero-chip .bi { color: var(--accent); font-size: 1.1rem; }
.svc-hero .hero-chip.c1 { top: 22%; right: 8%; animation-delay: 0s; }
.svc-hero .hero-chip.c2 { bottom: 20%; right: 26%; animation-delay: 1.2s; }
.svc-hero .hero-chip.c3 { bottom: 26%; right: 4%; animation-delay: 2s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.svc-hero .container { position: relative; z-index: 2; }
.svc-hero .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(242,169,60,0.16); color: var(--accent);
    border: 1px solid rgba(242,169,60,0.35);
    padding: 6px 18px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: 20px;
}
.svc-hero h1 {
    font-family: var(--font-poppins); font-weight: 800;
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 18px;
}
.svc-hero h1 .grad { background: linear-gradient(120deg, var(--accent), #FFC96B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.svc-hero .lead { font-size: 1.08rem; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 34px; }
.svc-hero .lead strong { color: #fff; }

/* Modern service card with gradient top bar */
.svc-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 18px;
    overflow: hidden; box-shadow: var(--shadow-sm); position: relative;
    height: 100%; display: flex; flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--secondary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; z-index: 2; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(17,157,164,0.3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .svc-img {
    height: 180px; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.svc-card .svc-img .overlay {
    position: absolute; inset: 0;
    background: rgba(10,37,64,0.4);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.35s ease;
}
.svc-card:hover .svc-img .overlay { background: rgba(10,37,64,0.2); }
.svc-card .svc-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--secondary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transition: transform 0.35s ease;
}
.svc-card:hover .svc-icon { transform: scale(1.1); }
.svc-card .svc-body {
    padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column;
}
.svc-card h5 { font-family: var(--font-poppins); font-weight: 700; font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.svc-card p { font-size: 0.88rem; color: var(--text-medium); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.svc-card .svc-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--secondary); font-weight: 600; font-size: 0.85rem;
    text-decoration: none; transition: color 0.2s;
}
.svc-card .svc-link i { transition: transform 0.3s ease; font-size: 0.9rem; }
.svc-card:hover .svc-link { color: var(--accent); }
.svc-card:hover .svc-link i { transform: translateX(4px); }

@media (max-width: 991px) {
    .svc-hero .hero-chip { display: none; }
    .svc-hero { padding: 60px 0 80px; }
}
@media (max-width: 767px) {
    .svc-hero { padding: 50px 0 70px; }
}

/* ============================================================
   DARK MODE
   Activated by html.dark-mode class. Persisted via localStorage.
   Respects prefers-color-scheme when no explicit choice is saved.
   ============================================================ */

/* --- Smooth transition for all color-related properties --- */
html.dark-mode-transition,
html.dark-mode-transition *,
html.dark-mode-transition *::before,
html.dark-mode-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* --- Dark mode overrides --- */
html.dark-mode {
    --bg-white: #1A1D23;
    --bg-light: #22262E;
    --bg-lighter: #2A2F38;
    --text-dark: #E8EAF0;
    --text-medium: #B0B6C0;
    --text-light: #8892A0;
    --border-color: #3A4050;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.55);
}

/* Body & base */
html.dark-mode body,
html.dark-mode { background-color: #1A1D23; color: #E8EAF0; }
html.dark-mode .bg-light-section,
html.dark-mode .bg-lighter-section { background-color: #22262E; }

/* Top bar - stays dark */
html.dark-mode .top-bar { background: #111318; }

/* Navbar */
html.dark-mode .navbar { background: #1A1D23; box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 2px 12px rgba(0,0,0,0.3); }
html.dark-mode .navbar.scrolled { background: rgba(26, 29, 35, 0.92); box-shadow: inset 0 3px 0 var(--secondary), 0 10px 30px rgba(0, 0, 0, 0.45); }
html.dark-mode .navbar .nav-link { color: #E8EAF0; }
html.dark-mode .navbar .nav-link:hover,
html.dark-mode .navbar .nav-link.active { color: #F2A93C; }
html.dark-mode .navbar .dropdown-menu { background: #22262E; }
html.dark-mode .navbar .dropdown-item { color: #E8EAF0; }
html.dark-mode .navbar .dropdown-item:hover { background: #2A2F38; color: #F2A93C; }
html.dark-mode .navbar-toggler { background: #22262E; border-color: rgba(255,255,255,0.18); box-shadow: none; }
html.dark-mode .navbar-toggler:hover { border-color: rgba(242, 169, 60, 0.5); }
/* Longhand colors only - the `background:` shorthand would reset
   background-size to auto and paint the middle bar as a solid block. The
   icon box itself stays TRANSPARENT (its color would fill the whole 22×14
   box); the visible bars are the 2px gradient stripe + the two 2px
   pseudo-elements. */
html.dark-mode .navbar-toggler-icon { background-color: transparent; background-image: linear-gradient(#E8EAF0, #E8EAF0) !important; }
html.dark-mode .navbar-toggler-icon::before,
html.dark-mode .navbar-toggler-icon::after { background-color: #E8EAF0; filter: none; }
html.dark-mode .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background-color: transparent; background-image: none !important; }
html.dark-mode .navbar-collapse { background: #1A1D23; box-shadow: 0 20px 32px rgba(0, 0, 0, 0.4); }
html.dark-mode .navbar-nav .nav-item { border-color: rgba(255, 255, 255, 0.08); }

/* Cards, boxes */
html.dark-mode .card,
html.dark-mode .card-box,
html.dark-mode .service-card,
html.dark-mode .course-card,
html.dark-mode .overview-card,
html.dark-mode .why-card,
html.dark-mode .testimonial-card,
html.dark-mode .promo-card,
html.dark-mode .project-card,
html.dark-mode .office-card,
html.dark-mode .stat-card,
html.dark-mode .ct-card,
html.dark-mode .ct-mini,
html.dark-mode .svc-card,
html.dark-mode .tp-svc,
html.dark-mode .tp-featured,
html.dark-mode .tp-pcard,
html.dark-mode .blog-card,
html.dark-mode .sidebar-widget,
html.dark-mode .side-card,
html.dark-mode .bk-card,
html.dark-mode .success-card,
html.dark-mode .payment-ref-card,
html.dark-mode .step-card { background: #22262E; border-color: #3A4050; }

/* Tables */
html.dark-mode .table { color: #E8EAF0; }
html.dark-mode .table td,
html.dark-mode .table th { border-color: #3A4050; }
html.dark-mode .table-hover tbody tr:hover { background: #2A2F38; }
html.dark-mode thead th { background: #2A2F38; }

/* Forms */
html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .form-control-custom { background: #2A2F38; border-color: #3A4050; color: #E8EAF0; }
html.dark-mode .form-control:focus,
html.dark-mode .form-select:focus { border-color: #119DA4; box-shadow: 0 0 0 3px rgba(17,157,164,0.2); }
html.dark-mode .form-control::placeholder { color: #8892A0; }
html.dark-mode .form-label { color: #B0B6C0; }

/* Contact page (contact.php) - .ct-* custom cards defined inline there */
html.dark-mode .ct-card h4,
html.dark-mode .ct-mini h6,
html.dark-mode .ct-social a { background: #2A2F38; color: #E8EAF0; }
html.dark-mode .ct-social a:hover { background: #F2A93C; color: #1A1D23; }
html.dark-mode .ct-form .input-group-text { background: #2A2F38; border-color: #3A4050; color: #E8EAF0; }
html.dark-mode .ct-form .form-control:focus { background: #2A2F38; }
html.dark-mode .ct-map-card { background: rgba(26, 29, 35, 0.92); border-color: #3A4050; }

/* Card headings & titles - lift navy (--primary) text so it reads on dark cards */
html.dark-mode .svc-card h5,
html.dark-mode .tp-svc h5,
html.dark-mode .tp-featured h3,
html.dark-mode .tp-featured h5,
html.dark-mode .tp-pcard h3,
html.dark-mode .blog-card .card-title,
html.dark-mode .blog-card h5,
html.dark-mode .sidebar-widget h5,
html.dark-mode .side-card h5,
html.dark-mode .success-card h1,
html.dark-mode .payment-ref-card h6,
html.dark-mode .next-steps h6,
html.dark-mode .course-pill,
html.dark-mode .step-card h5,
html.dark-mode .ab-jr-body h6,
html.dark-mode .bk-card .bk-body h4,
html.dark-mode .bk-card .bk-body h6 { color: #E8EAF0; }

/* Partners marquee band (hardcoded Cloud Gray with !important) */
html.dark-mode .partner-scroll-wrapper { background: #22262E !important; }

/* Section headers */
html.dark-mode .section-label { background: rgba(17,157,164,0.15); color: #7FDDE0; border-color: rgba(17,157,164,0.3); }
html.dark-mode .section-title { color: #E8EAF0; }
html.dark-mode .section-title span { color: #119DA4; }
html.dark-mode .section-subtitle { color: #8892A0; }

/* Hero sections */
html.dark-mode .tc-hero,
html.dark-mode .ev-hero,
html.dark-mode .svc-hero { background: linear-gradient(135deg, #111318 0%, #1A1D23 45%, #0D2035 100%); }

/* Breadcrumbs */
html.dark-mode .breadcrumb-section { background: linear-gradient(135deg, #111318 0%, #0D2035 100%); }

/* Buttons - keep brand colors, adjust text */
html.dark-mode .btn-outline-primary-custom { border-color: #119DA4; color: #119DA4; }
html.dark-mode .btn-outline-primary-custom:hover { background: #119DA4; color: #fff; }
html.dark-mode .btn-outline-custom { border-color: rgba(255,255,255,0.4); color: #fff; }
html.dark-mode .btn-outline-custom:hover { background: #fff; color: #1A1D23; }

/* Filter pills */
html.dark-mode .filter-pill { background: #2A2F38; border-color: #3A4050; color: #B0B6C0; }
html.dark-mode .filter-pill:hover { border-color: #119DA4; color: #E8EAF0; }
html.dark-mode .filter-pill .cnt { background: #3A4050; color: #B0B6C0; }
html.dark-mode .filter-pill.active { background: #119DA4; color: #fff; border-color: #119DA4; }
html.dark-mode .filter-pill.active .cnt { background: rgba(255,255,255,0.2); color: #fff; }

/* Newsletter */
html.dark-mode .newsletter-input { background: #2A2F38; border-color: #3A4050; color: #E8EAF0; }

/* Footer */
html.dark-mode .footer { background: #111318; }
html.dark-mode .footer h5 { color: #E8EAF0; }
html.dark-mode .footer a { color: #B0B6C0; }
html.dark-mode .footer a:hover { color: #F2A93C; }
html.dark-mode .footer-bottom { background: #0D1015; }
html.dark-mode .footer-bottom a { color: #8892A0; }
html.dark-mode .footer-bottom a:hover { color: #F2A93C; }

/* Social icons */
html.dark-mode .social-icon { background: rgba(255,255,255,0.08); }
html.dark-mode .social-icon:hover { background: #F2A93C; color: #1A1D23; }

/* Badges */
html.dark-mode .badge-status { border: 1px solid rgba(255,255,255,0.1); }

/* Empty state */
html.dark-mode .empty-state { color: #8892A0; }
html.dark-mode .empty-state i { color: #555D6A; }

/* Progress bar */
html.dark-mode .progress { background: #3A4050; }

/* Toast */
html.dark-mode #pageToast { background: #22262E; color: #E8EAF0; }

/* Preloader */
html.dark-mode #preloader { background: #1A1D23; }

/* Cookie consent */
html.dark-mode .cookie-consent { background: #111318; }

/* --- Dark mode toggle button --- */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 16px;
    left: auto;
    bottom: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0A2540;
    color: #F2A93C;
    border: 2px solid rgba(242,169,60,0.3);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10,37,64,0.3);
    transition: all 0.3s ease;
}
.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 24px rgba(242,169,60,0.35);
}
html.dark-mode .dark-mode-toggle {
    background: #F2A93C;
    color: #0A2540;
    border-color: rgba(10,37,64,0.3);
}
html.dark-mode .dark-mode-toggle:hover {
    box-shadow: 0 6px 24px rgba(242,169,60,0.5);
}

/* Toggles now at top-right on all viewports */
/* Toggles now at top-right - no cookie banner offset needed */

/* ============================================================
   LITE MODE  (for visitors on very slow connections)
   Toggle button + html.lite-mode overrides. The button sits
   just above the dark-mode toggle (bottom-left stack).
   ============================================================ */
.lite-mode-toggle {
    position: fixed;
    top: 122px;
    right: 16px;
    left: auto;
    bottom: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: 2px solid rgba(10, 37, 64, 0.25);
    font-size: 1rem;
    cursor: pointer;
    z-index: 996;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lite-mode-toggle:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 6px 22px rgba(242, 169, 60, 0.4);
}
.lite-mode-toggle.active {
    background: #F2A93C;
    color: #0A2540;
    border-color: #F2A93C;
}
html.dark-mode .lite-mode-toggle { background: #22262E; color: #F2A93C; border-color: rgba(242, 169, 60, 0.4); }
html.dark-mode .lite-mode-toggle.active { background: #F2A93C; color: #0A2540; border-color: #F2A93C; }
/* Toggles now at top-right - no cookie banner offset needed */

/* --- Lite-mode page overrides --- */
/* 1. Neutralise AOS animations: every animated element becomes visible instantly */
html.lite-mode [data-aos],
html.lite-mode [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* 2. Hide hero decoration (rings, chips, grid, stat rows, case-study art) */
html.lite-mode .hero-ring,
html.lite-mode .hero-chip,
html.lite-mode .hero-grid,
html.lite-mode .hero-stats,
html.lite-mode .cs-hero-img {
    display: none !important;
}
/* 3. Hide decorative radial-glow blobs on modern heroes */
html.lite-mode .svc-hero::before, html.lite-mode .svc-hero::after,
html.lite-mode .ev-hero::before,  html.lite-mode .ev-hero::after,
html.lite-mode .tc-hero::before,  html.lite-mode .tc-hero::after {
    display: none !important;
}
/* 4. Kill all animations / transitions / heavy effects */
html.lite-mode *,
html.lite-mode *::before,
html.lite-mode *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* 5. Keep hero content readable but tighten spacing */
html.lite-mode .svc-hero, html.lite-mode .ev-hero, html.lite-mode .tc-hero,
html.lite-mode .about-hero, html.lite-mode .contact-hero, html.lite-mode .cs-hero {
    padding: 34px 0 40px !important;
}
html.lite-mode .svc-hero .lead, html.lite-mode .ev-hero .lead, html.lite-mode .tc-hero .lead,
html.lite-mode .about-hero p, html.lite-mode .contact-hero p {
    margin-bottom: 10px !important;
}

/* ============================================================
   COMPACT INTERIOR HEROES
   Interior (non-home) heroes are intentionally slim so content
   reaches users faster on low-bandwidth connections. The home
   page hero (.hero-carousel) is NOT touched.
   ============================================================ */
.about-hero, .page-hero, .contact-hero, .cs-hero,
.svc-hero, .ev-hero, .tc-hero {
    padding: 40px 0 46px !important;
    min-height: auto !important;
}
.about-hero h1, .page-hero h1, .page-hero h2, .contact-hero h1, .contact-hero h2,
.cs-hero h1, .cs-hero h2, .svc-hero h1, .ev-hero h1, .tc-hero h1 {
    font-size: 1.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}
.about-hero p, .page-hero p, .contact-hero p, .cs-hero p,
.svc-hero .lead, .ev-hero .lead, .tc-hero .lead {
    font-size: 1rem !important;
    margin-bottom: 14px !important;
}
/* Hide decorative extras on interior heroes (rings, chips, grid) */
.svc-hero .hero-ring, .ev-hero .hero-ring, .tc-hero .hero-ring,
.svc-hero .hero-chip, .ev-hero .hero-chip, .tc-hero .hero-chip,
.svc-hero .hero-grid, .ev-hero .hero-grid, .tc-hero .hero-grid {
    display: none !important;
}
/* Keep the real-data stat rows, but make them compact */
.svc-hero .hero-stats, .ev-hero .hero-stats, .tc-hero .hero-stats {
    display: flex !important;
    gap: 10px !important;
    margin-top: 12px !important;
}
.svc-hero .hero-stat, .ev-hero .hero-stat, .tc-hero .hero-stat {
    padding: 6px 14px !important;
}
.svc-hero .hero-stat .num, .ev-hero .hero-stat .num, .tc-hero .hero-stat .num {
    font-size: 1.2rem !important;
}
.svc-hero .hero-stat .lbl, .ev-hero .hero-stat .lbl, .tc-hero .hero-stat .lbl {
    font-size: 0.7rem !important;
}
.svc-hero .hero-badge, .ev-hero .hero-badge, .tc-hero .hero-badge {
    margin-bottom: 10px !important;
    padding: 5px 14px !important;
    font-size: 0.78rem !important;
}
/* Slim the CTA buttons on interior heroes too */
.svc-hero .btn-lg, .ev-hero .btn-lg, .tc-hero .btn-lg,
.about-hero .btn-lg, .contact-hero .btn-lg, .cs-hero .btn-lg {
    padding: 9px 22px !important;
    font-size: 0.92rem !important;
}
.svc-hero .btn, .ev-hero .btn, .tc-hero .btn,
.about-hero .btn, .contact-hero .btn, .cs-hero .btn {
    border-radius: 50px !important;
}
/* Slim the older breadcrumb-style page headers */
.breadcrumb-section {
    padding: 26px 0 !important;
}
.breadcrumb-section h1 {
    font-size: 1.7rem !important;
}
/* Case-study hero image is decorative - hide it to skip a full download */
.cs-hero-img { display: none !important; }

/* ============================================================
   PRELOADER FAILSAFE
   If JS fails or the page hangs on a slow connection, never let
   the white preloader block content for more than ~2.5s.
   ============================================================ */
#preloader {
    animation: kolo-preloader-timeout 0.01s ease 0.01s forwards;
}
@keyframes kolo-preloader-timeout {
    to { opacity: 0; visibility: hidden; }
}

/* ============================================================
   MOBILE GUTTER OVERFLOW FIX (production QA)
   Bootstrap rows with large gutters (g-4/g-5 → 24px columns gap)
   compensate with -12px row margins, which exceeds the container's
   12px side padding on ≤575px viewports and causes horizontal
   overflow (measured 24px on about/contact/portfolio/book/request).
   Halving the gutter variable on phones keeps the design intact
   (columns still breathe) while eliminating the overflow.
   ============================================================ */
@media (max-width: 575.98px) {
    .row {
        --bs-gutter-x: 1rem;
    }
}

/* Newsletter band: the input+button pair is wider than a 320px column;
   stack them on phones (input pill on top, button pill below). */
@media (max-width: 575.98px) {
    #newsletterForm { flex-wrap: wrap; gap: 8px; }
    #newsletterForm .newsletter-input { flex: 1 1 100%; min-width: 0; border-radius: 50px; }
    #newsletterForm .btn { flex: 1 1 100%; border-radius: 50px !important; }
}
