/* ============================================================
   Football Academy Theme — Main Stylesheet
   Pitch Green: #0e7c3f  |  Trophy Gold: #f5a623  |  Bootstrap 5 compatible
   ============================================================ */

/* --- CSS Variables (overridden inline per-request by
   layouts/default.php from saved theme settings — these are just the
   base fallback used before that inline block, or if this stylesheet
   is ever loaded standalone) ----------------------------------- */
:root {
    --ist-primary:        #0e7c3f;
    --ist-primary-dark:   #0a5e2f;
    --ist-primary-light:  #e3f5ea;
    --ist-primary-rgb:    14, 124, 63;
    --ist-accent:         #f5a623;
    --ist-dark:           #0a1f14;
    --ist-dark-secondary: #123420;
    --ist-text:           #1a2738;
    --ist-text-muted:     #64748b;
    --ist-bg:             #ffffff;
    --ist-surface:        #f8fafc;
    --ist-surface-2:      #f1f5f9;
    --ist-border:         #e2e8f0;
    --ist-radius:         6px;
    --ist-radius-lg:      16px;
    --ist-radius-xl:      24px;
    --ist-shadow-sm:      0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
    --ist-shadow:         0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --ist-shadow-lg:      0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    --ist-transition:     0.25s ease;
    --ist-font-body:      'Barlow', sans-serif;
}

/* --- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ist-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ist-text);
    background: var(--ist-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--ist-primary); transition: color var(--ist-transition); }
a:hover { color: var(--ist-primary-dark); }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ist-font-heading, var(--ist-font-body));
    font-weight: var(--ist-heading-weight, 700);
    line-height: 1.25;
    color: var(--ist-heading-color, var(--ist-text));
    margin-bottom: .5em;
}

.ist-section-eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ist-primary-dark);
    background: rgba(var(--ist-primary-rgb), .12);
    border: 1.5px solid rgba(var(--ist-primary-rgb), .3);
    padding: .3rem .875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.ist-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-family: var(--ist-font-heading, var(--ist-font-body));
    font-weight: var(--ist-heading-weight, 800);
    color: var(--ist-heading-color, var(--ist-text));
    line-height: 1.2;
    margin-bottom: .5rem;
}

.ist-section-subtitle {
    font-size: 1.0625rem;
    color: var(--ist-text-muted);
    max-width: 580px;
    line-height: 1.7;
}

.ist-section-header { margin-bottom: 2rem; }
.ist-section-header.text-center .ist-section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Sections ---------------------------------------------- */
.ist-section {
    padding: 3rem 0;
    position: relative;
}

.ist-section--sm { padding: 1.75rem 0; }
.ist-section--lg { padding: 5rem 0; }

/* Background variants */
.ist-bg-white   { background: #ffffff; }
.ist-bg-light   { background: var(--ist-surface); }
.ist-bg-surface { background: var(--ist-surface-2); }
.ist-bg-dark    { background: var(--ist-dark); color: #e2e8f0; }
.ist-bg-primary { background: var(--ist-primary); color: #fff; }
.ist-bg-gradient {
    background: linear-gradient(135deg, var(--ist-dark) 0%, var(--ist-dark-secondary) 50%, var(--ist-dark-secondary) 100%);
    color: #fff;
}
.ist-bg-gradient-primary {
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-accent) 100%);
    color: #fff;
}
.ist-bg-dark    h1,
.ist-bg-dark    h2,
.ist-bg-dark    h3,
.ist-bg-dark    h4,
.ist-bg-gradient h1,
.ist-bg-gradient h2,
.ist-bg-gradient h3 { color: #f1f5f9; }
.ist-bg-primary h1,
.ist-bg-primary h2,
.ist-bg-gradient-primary h1,
.ist-bg-gradient-primary h2 { color: #fff; }

/* Subtitle, eyebrow, and rich-content text on dark / gradient sections */
.ist-bg-dark .ist-section-subtitle,
.ist-bg-gradient .ist-section-subtitle { color: rgba(255,255,255,.85) !important; }

.ist-bg-dark .ist-section-eyebrow,
.ist-bg-gradient .ist-section-eyebrow {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.3) !important;
}

.ist-bg-dark .ist-content-body,
.ist-bg-gradient .ist-content-body { color: #e2e8f0 !important; }

.ist-bg-dark .ist-content-body p,
.ist-bg-dark .ist-content-body li,
.ist-bg-dark .ist-content-body h1,
.ist-bg-dark .ist-content-body h2,
.ist-bg-dark .ist-content-body h3,
.ist-bg-dark .ist-content-body span,
.ist-bg-gradient .ist-content-body p,
.ist-bg-gradient .ist-content-body li,
.ist-bg-gradient .ist-content-body h1,
.ist-bg-gradient .ist-content-body h2,
.ist-bg-gradient .ist-content-body h3,
.ist-bg-gradient .ist-content-body span { color: #e2e8f0 !important; }

/* --- Buttons ----------------------------------------------- */
.ist-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .9375rem;
    padding: .7rem 1.75rem;
    border-radius: var(--ist-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ist-transition);
    line-height: 1.4;
    white-space: nowrap;
}

.ist-btn-primary {
    background: var(--ist-primary);
    border-color: var(--ist-primary);
    color: #fff;
}
.ist-btn-primary:hover {
    background: var(--ist-primary-dark);
    border-color: var(--ist-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--ist-primary-rgb), .35);
}

.ist-btn-outline {
    background: transparent;
    border-color: var(--ist-primary);
    color: var(--ist-primary);
}
.ist-btn-outline:hover {
    background: var(--ist-primary);
    color: #fff;
    transform: translateY(-2px);
}

.ist-btn-white {
    background: #fff;
    border-color: #fff;
    color: var(--ist-primary);
}
.ist-btn-white:hover {
    background: var(--ist-primary-light);
    border-color: var(--ist-primary-light);
    color: var(--ist-primary-dark);
    transform: translateY(-2px);
}

.ist-btn-outline-white {
    /* Unlike every other .ist-btn-* variant, this one never set an explicit
       text colour. Harmless on sections that inherit white text from an
       .ist-bg-dark/.ist-bg-gradient ancestor, but the Hero section applies
       none of those classes when it has a background photo — so the text
       silently fell back to the page's default dark body colour, nearly
       invisible against a dark-overlaid photo. */
    background: transparent;
    border-color: rgba(255,255,255,.6);
    color: #fff;
}
.ist-btn-outline-white:hover {
    /* Lower alpha (was .15) so white text stays clearly readable over a
       bright/busy hero photo instead of the fill washing it out. */
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}

.ist-btn-accent {
    background: var(--ist-accent);
    border-color: var(--ist-accent);
    color: #fff;
}
.ist-btn-accent:hover {
    background: var(--ist-accent-dark);
    border-color: var(--ist-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.ist-btn--lg {
    padding: .875rem 2.25rem;
    font-size: 1.0625rem;
    border-radius: var(--ist-radius-lg);
}
.ist-btn--sm {
    padding: .45rem 1.1rem;
    font-size: .875rem;
}

/* Bootstrap overrides for theme consistency */
.btn-primary,
.btn.btn-theme {
    background: var(--ist-primary);
    border-color: var(--ist-primary);
}
.btn-primary:hover,
.btn.btn-theme:hover {
    background: var(--ist-primary-dark);
    border-color: var(--ist-primary-dark);
}
.btn-outline-primary {
    color: var(--ist-primary);
    border-color: var(--ist-primary);
}
.btn-outline-primary:hover {
    background: var(--ist-primary);
    border-color: var(--ist-primary);
}

/* --- Cards ------------------------------------------------- */
.ist-card {
    background: #fff;
    border-radius: var(--ist-radius-lg);
    border: 1px solid var(--ist-border);
    box-shadow: var(--ist-shadow-sm);
    transition: all var(--ist-transition);
    overflow: hidden;
}
.ist-card:hover {
    box-shadow: var(--ist-shadow);
    transform: translateY(-3px);
    border-color: transparent;
}

.ist-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ist-radius);
    background: var(--ist-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--ist-primary);
    flex-shrink: 0;
    transition: all var(--ist-transition);
}
.ist-card:hover .ist-card-icon {
    background: var(--ist-primary);
    color: #fff;
}

/* =============================================================
   TOP UTILITY BAR
   ============================================================= */
.ist-topbar {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ist-topbar--white {
    background: var(--ist-dark);
    border-bottom-color: rgba(255,255,255,.06);
}
.ist-topbar--dark,
.ist-topbar--primary {
    /* Solid dark background, not a translucent overlay — the topbar sits
       in normal document flow directly on the page background (not
       stacked over the header/hero), so rgba(0,0,0,.25) rendered as a
       barely-there light-grey strip with low-contrast text on top.
       Uses --ist-dark-secondary (a shade lighter than the header's
       --ist-dark below it) plus a gold hairline so the two bars read as
       two distinct strips instead of merging into one solid block. */
    background: var(--ist-dark-secondary);
    border-bottom: 1px solid rgba(245,166,35,.25);
}
.ist-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    gap: 1.5rem;
}
.ist-topbar-left  { display: flex; align-items: center; gap: 1.25rem; }
.ist-topbar-right { display: flex; align-items: center; gap: .6rem; }

.ist-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color var(--ist-transition);
    white-space: nowrap;
}
.ist-topbar-link i { font-size: .75rem; color: var(--ist-primary); }
.ist-topbar-link:hover { color: #fff; }

.ist-topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    text-decoration: none;
    transition: all var(--ist-transition);
}
.ist-topbar-social:hover {
    background: var(--ist-primary);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .ist-topbar-right { display: none; }
    .ist-topbar-left  { gap: .75rem; }
    .ist-topbar-link span { display: none; }
}

/* =============================================================
   HEADER — Modern sleek navigation
   ============================================================= */

/* Base */
.ist-header {
    position: relative;
    z-index: 1040;
}
.ist-header--sticky { position: sticky; top: 0; }

/* Header inner — position relative needed for gradient accent line */
.ist-header-inner {
    position: relative;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

/* Animated gradient accent line — slides in on scroll */
.ist-header--sticky .ist-header-inner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--ist-primary-dark) 0%,
        var(--ist-primary)      30%,
        var(--ist-accent)       60%,
        var(--ist-primary)      80%,
        var(--ist-primary-dark) 100%);
    background-size: 200% auto;
    opacity: 0;
    transition: opacity .35s ease;
    animation: ist-gradientSlide 3.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.ist-header--sticky.scrolled .ist-header-inner::after { opacity: 1; }

@keyframes ist-gradientSlide {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* White style */
.ist-header--white .ist-header-inner {
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--ist-border);
}
.ist-header--white.scrolled .ist-header-inner {
    border-bottom-color: transparent;
    background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    backdrop-filter: blur(24px) saturate(200%);
    box-shadow:
        0 1px 0 rgba(0,0,0,.04),
        0 8px 16px rgba(13,27,46,.06),
        0 24px 48px rgba(13,27,46,.08);
}

/* Dark style */
.ist-header--dark .ist-header-inner {
    background: var(--ist-dark);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.ist-header--dark.scrolled .ist-header-inner {
    background: rgba(11,23,40,.92);
    border-bottom-color: transparent;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

/* Primary style */
.ist-header--primary .ist-header-inner {
    background: var(--ist-primary);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.ist-header--primary.scrolled .ist-header-inner {
    background: rgba(58,106,144,.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

/* Nav wrapper — shrinks on scroll. min-height (not height) so a logo taller
   than the base 72px/60px box (see --ist-logo-height, set from the "Logo
   Height" theme setting) grows the header bar to fit instead of overflowing
   past its colored background — the fixed height here used to clip/overflow
   any logo taller than 60-72px regardless of what the setting said. */
.ist-nav-wrapper {
    display: flex;
    align-items: center;
    min-height: max(72px, calc(var(--ist-logo-height, 44px) + 24px));
    gap: 1.5rem;
    transition: min-height .3s ease;
}
.ist-header.scrolled .ist-nav-wrapper { min-height: max(60px, calc(var(--ist-logo-height, 44px) * .8 + 20px)); }

/* ── Brand ─────────────────────────────────────────────────── */
.ist-brand {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ist-brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ist-header--dark .ist-brand-text,
.ist-header--primary .ist-brand-text {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}
.ist-logo {
    /* Driven by the theme's "Logo Height" setting via --ist-logo-height,
       set inline on the <header> element (see header.php) — explicit
       height (not just max-height) so SVG viewBox ratio resolves correctly. */
    height: var(--ist-logo-height, 44px);
    max-height: var(--ist-logo-height, 44px);
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    transition: height .3s ease, max-height .3s ease;
}
/* Scrolled state shrinks proportionally off the same configured value,
   instead of a fixed px number that would silently ignore a larger/smaller
   "Logo Height" setting. */
.ist-header.scrolled .ist-logo {
    height: calc(var(--ist-logo-height, 44px) * .8);
    max-height: calc(var(--ist-logo-height, 44px) * .8);
}
.ist-footer-logo {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* ── Desktop Nav ───────────────────────────────────────────── */
.ist-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.ist-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .1rem;
    height: 72px;
    transition: height .3s ease;
}
.ist-header.scrolled .ist-menu { height: 60px; }

.ist-menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Menu link — pill style */
.ist-menu-link {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .9rem;
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
    letter-spacing: -.005em;
}

/* White header link colors */
.ist-header--white .ist-menu-link { color: var(--ist-text); }
.ist-header--white .ist-menu-link:hover { color: var(--ist-primary); background: var(--ist-primary-light); }
.ist-header--white .ist-menu-item--active > .ist-menu-link {
    color: var(--ist-primary);
    background: var(--ist-primary-light);
    font-weight: 600;
}

/* Dark / Primary header link colors */
.ist-header--dark .ist-menu-link,
.ist-header--primary .ist-menu-link { color: rgba(255,255,255,.82); }
.ist-header--dark .ist-menu-link:hover,
.ist-header--primary .ist-menu-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.ist-header--dark .ist-menu-item--active > .ist-menu-link,
.ist-header--primary .ist-menu-item--active > .ist-menu-link {
    color: #fff;
    background: rgba(255,255,255,.14);
    font-weight: 600;
}

/* No underline pseudo-element */
.ist-menu-link::after { display: none; }

/* Chevron */
.ist-menu-chevron {
    font-size: .65rem;
    transition: transform .22s ease;
    margin-left: .1rem;
    opacity: .5;
}
.ist-menu-item--has-children:hover .ist-menu-chevron,
.ist-menu-item--has-children:focus-within .ist-menu-chevron { transform: rotate(180deg); opacity: 1; }

/* ── Dropdown Panel ─────────────────────────────────────────── */
.ist-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    padding-top: 6px;
    transform: translateX(-50%) translateY(10px) scale(.97);
    min-width: 256px;
    background: #fff;
    border-radius: var(--ist-radius-lg);
    border: 1px solid rgba(0,0,0,.07);
    box-shadow:
        0 4px 6px rgba(0,0,0,.04),
        0 12px 32px rgba(13,27,46,.12),
        0 32px 64px rgba(13,27,46,.1);
    padding: .375rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
    z-index: 200;
    overflow: hidden;
}

/* Gradient accent line at top of dropdown */
.ist-dropdown-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ist-primary), var(--ist-accent), var(--ist-primary));
    pointer-events: none;
}

/* Ensure panel stays in viewport near edges */
.ist-menu > .ist-menu-item:first-child .ist-dropdown-panel {
    left: 0;
    transform: translateX(0) translateY(10px) scale(.97);
}
.ist-menu > .ist-menu-item:last-child .ist-dropdown-panel {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px) scale(.97);
}

/* Open states */
.ist-menu-item--has-children:hover .ist-dropdown-panel,
.ist-menu-item--has-children:focus-within .ist-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}
.ist-menu > .ist-menu-item:first-child:hover .ist-dropdown-panel,
.ist-menu > .ist-menu-item:first-child:focus-within .ist-dropdown-panel {
    transform: translateX(0) translateY(0) scale(1);
}
.ist-menu > .ist-menu-item:last-child:hover .ist-dropdown-panel,
.ist-menu > .ist-menu-item:last-child:focus-within .ist-dropdown-panel {
    transform: translateX(0) translateY(0) scale(1);
}

/* ── Submenu items ─────────────────────────────────────────── */
.ist-submenu { list-style: none; margin: 0; padding: 0; }
.ist-submenu-item { border-radius: var(--ist-radius); overflow: hidden; }

.ist-submenu-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .875rem;
    text-decoration: none;
    border-radius: var(--ist-radius);
    transition: background var(--ist-transition), color var(--ist-transition);
    color: var(--ist-text);
}
.ist-submenu-link:hover,
.ist-submenu-item--active .ist-submenu-link {
    background: var(--ist-primary-light);
    color: var(--ist-primary);
}

.ist-submenu-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--ist-primary-light);
    color: var(--ist-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    transition: background var(--ist-transition), color var(--ist-transition);
}
.ist-submenu-link:hover .ist-submenu-icon,
.ist-submenu-item--active .ist-submenu-icon {
    background: var(--ist-primary);
    color: #fff;
}

.ist-submenu-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ist-submenu-label { font-size: .9375rem; font-weight: 600; line-height: 1.2; }
.ist-submenu-desc  { font-size: .8rem; color: var(--ist-text-muted); margin-top: .15rem; line-height: 1.3; white-space: normal; }

.ist-submenu-arrow {
    font-size: .75rem;
    color: var(--ist-text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--ist-transition);
    flex-shrink: 0;
}
.ist-submenu-link:hover .ist-submenu-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--ist-primary);
}

/* ── Right actions ─────────────────────────────────────────── */
.ist-nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.ist-header-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 600;
    padding: .5rem 1.1rem .5rem 1.25rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-accent) 100%);
    color: #fff;
    text-decoration: none;
    transition: all var(--ist-transition);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(var(--ist-primary-rgb), .3);
    overflow: hidden;
}
.ist-header-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--ist-primary-rgb), .42);
    gap: .55rem;
}
.ist-header-cta-arrow {
    font-size: .8rem;
    transition: transform var(--ist-transition);
    flex-shrink: 0;
}
.ist-header-cta:hover .ist-header-cta-arrow { transform: translateX(3px); }

.ist-header--primary .ist-header-cta,
.ist-header--dark .ist-header-cta {
    background: #fff;
    color: var(--ist-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.ist-header--primary .ist-header-cta:hover,
.ist-header--dark .ist-header-cta:hover {
    background: rgba(255,255,255,.92);
    color: var(--ist-primary-dark);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ── Hamburger toggle ──────────────────────────────────────── */
.ist-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: .55rem;
    background: var(--ist-surface-2);
    border: 1px solid var(--ist-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
    flex-shrink: 0;
}
.ist-mobile-toggle:hover {
    background: var(--ist-primary-light);
    border-color: rgba(var(--ist-primary-rgb),.25);
}
.ist-header--dark  .ist-mobile-toggle,
.ist-header--primary .ist-mobile-toggle {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}
.ist-header--dark  .ist-mobile-toggle:hover,
.ist-header--primary .ist-mobile-toggle:hover { background: rgba(255,255,255,.15); }

.ist-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ist-text);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease, width .3s ease;
    transform-origin: center;
}
.ist-header--dark  .ist-toggle-bar,
.ist-header--primary .ist-toggle-bar { background: #e2e8f0; }

/* Animated → X */
.ist-header.menu-open .ist-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ist-header.menu-open .ist-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ist-header.menu-open .ist-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu — slide-in panel from right ───────────────── */
.ist-mobile-menu {
    display: none; /* shown via .open */
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: -4px 0 48px rgba(13,27,46,.18);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overscroll-behavior: contain;
}
.ist-header--dark  .ist-mobile-menu,
.ist-header--primary .ist-mobile-menu {
    background: #0d1b2e;
    box-shadow: -4px 0 48px rgba(0,0,0,.4);
}
.ist-mobile-menu.open { transform: translateX(0); }

/* Panel header bar with brand + close button */
.ist-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 0 2rem;
}

.ist-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--ist-border);
    flex-shrink: 0;
}
.ist-header--dark  .ist-mobile-panel-head,
.ist-header--primary .ist-mobile-panel-head { border-color: rgba(255,255,255,.08); }

.ist-mobile-panel-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.025em;
    text-decoration: none;
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ist-header--dark  .ist-mobile-panel-brand,
.ist-header--primary .ist-mobile-panel-brand {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.ist-mobile-close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--ist-surface-2);
    border: 1px solid var(--ist-border);
    color: var(--ist-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all .2s ease;
    flex-shrink: 0;
}
.ist-mobile-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.ist-header--dark  .ist-mobile-close,
.ist-header--primary .ist-mobile-close { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #94a3b8; }
.ist-header--dark  .ist-mobile-close:hover,
.ist-header--primary .ist-mobile-close:hover { background: rgba(220,38,38,.15); border-color: rgba(220,38,38,.3); color: #fca5a5; }

/* Nav list */
.ist-mobile-nav { list-style: none; margin: 0; padding: .75rem 1rem; flex: 1; }
.ist-mobile-item { }

.ist-mobile-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .75rem .875rem;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ist-text);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: color .2s ease, background .2s ease;
}
.ist-header--dark  .ist-mobile-link,
.ist-header--primary .ist-mobile-link { color: #cbd5e1; }
.ist-mobile-link:hover { color: var(--ist-primary); background: var(--ist-primary-light); }
.ist-header--dark  .ist-mobile-link:hover,
.ist-header--primary .ist-mobile-link:hover { color: #fff; background: rgba(255,255,255,.08); }

.ist-mobile-chevron {
    font-size: .7rem;
    transition: transform .22s ease;
    margin-left: auto;
    opacity: .45;
}
.ist-mobile-toggle-sub.expanded .ist-mobile-chevron { transform: rotate(180deg); opacity: 1; }

.ist-mobile-sub {
    list-style: none;
    padding: .25rem .5rem .5rem 1rem;
    margin: 0;
    display: none;
}
.ist-mobile-sub.open { display: block; }

.ist-mobile-sub-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .875rem;
    font-size: .9rem;
    color: var(--ist-text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s ease;
}
.ist-mobile-sub-link:hover { color: var(--ist-primary); background: var(--ist-primary-light); }
.ist-header--dark  .ist-mobile-sub-link,
.ist-header--primary .ist-mobile-sub-link { color: #64748b; }
.ist-header--dark  .ist-mobile-sub-link:hover,
.ist-header--primary .ist-mobile-sub-link:hover { color: #fff; background: rgba(255,255,255,.07); }

.ist-mobile-cta { padding: 0 1rem; margin-top: .5rem; }

/* Mobile contact strip (bottom of mobile menu) */
.ist-mobile-contact-strip {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ist-border);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.ist-header--dark  .ist-mobile-contact-strip,
.ist-header--primary .ist-mobile-contact-strip { border-color: rgba(255,255,255,.08); }

.ist-mobile-contact-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: var(--ist-text-muted);
    text-decoration: none;
    transition: color var(--ist-transition);
}
.ist-mobile-contact-link:hover { color: var(--ist-primary); }
.ist-header--dark  .ist-mobile-contact-link,
.ist-header--primary .ist-mobile-contact-link { color: #64748b; }
.ist-header--dark  .ist-mobile-contact-link:hover,
.ist-header--primary .ist-mobile-contact-link:hover { color: #fff; }

.ist-mobile-contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--ist-primary-light);
    color: var(--ist-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}
.ist-header--dark  .ist-mobile-contact-icon,
.ist-header--primary .ist-mobile-contact-icon { background: rgba(255,255,255,.08); color: var(--ist-primary); }

/* Backdrop */
.ist-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13,27,46,.35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 1035;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.ist-nav-backdrop.visible { opacity: 1; pointer-events: auto; }

/* ── Responsive breakpoint ─────────────────────────────────── */
@media (max-width: 991px) {
    .ist-nav           { display: none; }
    .ist-mobile-toggle { display: flex; }
    .ist-mobile-menu   { display: flex; flex-direction: column; } /* fixed panel, flex for inner layout */
    .ist-nav-wrapper   { height: 64px; }
    .ist-header.scrolled .ist-nav-wrapper { height: 56px; }
}

/* =============================================================
   FOOTER — Modern multi-column design
   ============================================================= */

/* Wave divider overlaps the last section so its transparent upper half
   inherits whatever background colour that section has, not the body bg */
.ist-footer-wave {
    margin-top: -56px;   /* pull up by exactly the SVG height */
    margin-bottom: -2px; /* close sub-pixel gap at footer seam */
    line-height: 0;
    position: relative;
    z-index: 10;         /* render above section content */
}

.ist-footer-v2 { position: relative; }

/* Main content grid */
.ist-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}
@media (max-width: 1099px) {
    .ist-footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2.5rem; }
    .ist-footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .ist-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ist-footer-col--brand { grid-column: auto; }
}

/* Brand column */
.ist-footer-brand-wrap { }
.ist-footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.025em;
    text-decoration: none;
    line-height: 1;
}
.ist-footer-tagline {
    font-size: .9375rem;
    line-height: 1.7;
    max-width: 290px;
}

/* Social buttons */
.ist-footer-socials { display: flex; gap: .45rem; flex-wrap: wrap; }
.ist-footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #94a3b8;
    font-size: .95rem;
    text-decoration: none;
    transition: all var(--ist-transition);
}
.ist-footer-social-btn:hover {
    background: var(--ist-primary);
    border-color: var(--ist-primary);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(var(--ist-primary-rgb), .4);
}

/* Trust badge strip */
.ist-footer-trust {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.ist-footer-trust-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .8125rem;
    font-weight: 500;
}
.ist-footer-trust-item i { font-size: .9rem; flex-shrink: 0; }

/* Column heading */
.ist-footer-col-heading {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: .75rem;
}
.ist-footer-col-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--ist-primary);
}

/* Nav links */
.ist-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.ist-footer-links a {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9375rem;
    text-decoration: none;
    transition: color var(--ist-transition), gap var(--ist-transition);
}
.ist-footer-links a:hover { color: var(--fh, var(--ist-primary)) !important; gap: .85rem; }

.ist-footer-link-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ist-primary);
    opacity: .45;
    flex-shrink: 0;
    transition: opacity var(--ist-transition), transform var(--ist-transition);
}
.ist-footer-links a:hover .ist-footer-link-dot {
    opacity: 1;
    transform: scale(1.4);
}

/* Contact list */
.ist-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.ist-footer-contact-list li { display: flex; align-items: flex-start; gap: .875rem; }
.ist-footer-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: .1rem;
    transition: background var(--ist-transition);
}
.ist-footer-contact-list li:hover .ist-footer-contact-icon {
    background: rgba(var(--ist-primary-rgb), .18) !important;
}
.ist-footer-contact-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}
.ist-footer-contact-list a,
.ist-footer-contact-list span {
    font-size: .9375rem;
    text-decoration: none;
    transition: color var(--ist-transition);
    line-height: 1.5;
}
.ist-footer-contact-list a:hover { color: var(--ist-primary) !important; }

/* Bottom bar */
.ist-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1.5rem 0;
    font-size: .8125rem;
}
.ist-footer-policy {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.ist-footer-policy a {
    text-decoration: none;
    transition: color var(--ist-transition);
    position: relative;
}
.ist-footer-policy a:hover { color: var(--ist-primary) !important; }
.ist-footer-policy a + a::before {
    content: '·';
    position: absolute;
    left: -.85rem;
    pointer-events: none;
}

.ist-footer-heart {
    display: inline-block;
    color: #e05252;
    animation: ist-heartbeat 1.6s ease-in-out infinite;
}
@keyframes ist-heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.3); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.2); }
    56%       { transform: scale(1); }
}

/* --- Hero -------------------------------------------------- */
.ist-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ist-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 46, .55);
    z-index: 1;
}
.ist-hero-content { position: relative; z-index: 2; }
.ist-hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.ist-hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.65;
    opacity: .88;
    max-width: 600px;
}

/* --- Features Grid ----------------------------------------- */
.ist-features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ist-features-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ist-features-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- Stats ------------------------------------------------- */
.ist-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
}
.ist-stat-label {
    font-size: .9375rem;
    font-weight: 500;
    margin-top: .5rem;
}

/* --- Testimonials ------------------------------------------ */
.ist-testimonial-card {
    background: #fff;
    border-radius: var(--ist-radius-lg);
    border: 1px solid var(--ist-border);
    padding: 2rem;
    box-shadow: var(--ist-shadow-sm);
    transition: all var(--ist-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ist-testimonial-card:hover {
    box-shadow: var(--ist-shadow);
    transform: translateY(-3px);
}
.ist-testimonial-card--dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}
.ist-testimonial-card--dark:hover {
    background: rgba(255,255,255,.13);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.ist-testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ist-text);
    font-style: italic;
    flex: 1;
}
.ist-testimonial-quote {
    font-size: 3rem;
    color: var(--ist-primary);
    line-height: 1;
    opacity: .25;
    margin-bottom: .5rem;
    font-family: Georgia, serif;
}
.ist-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ist-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ist-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Pricing ----------------------------------------------- */
.ist-pricing-card {
    background: #fff;
    border-radius: var(--ist-radius-xl);
    border: 1px solid var(--ist-border);
    padding: 2.5rem;
    position: relative;
    transition: all var(--ist-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--ist-text);
}
.ist-pricing-card:hover {
    box-shadow: var(--ist-shadow-lg);
    transform: translateY(-4px);
}
.ist-pricing-card--featured {
    border-color: var(--ist-primary);
    box-shadow: 0 0 0 1px var(--ist-primary), var(--ist-shadow-lg);
}
.ist-pricing-badge {
    position: absolute;
    top: -1px;
    right: 2rem;
    background: var(--ist-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .9rem;
    border-radius: 0 0 var(--ist-radius) var(--ist-radius);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ist-pricing-name { font-size: 1.125rem; font-weight: 700; color: var(--ist-text); }
.ist-pricing-price { margin: 1rem 0; display: flex; align-items: baseline; gap: .15rem; }
.ist-pricing-currency { font-size: 1.5rem; font-weight: 700; color: var(--ist-primary); }
.ist-pricing-amount { font-size: 3.5rem; font-weight: 900; color: var(--ist-text); line-height: 1; letter-spacing: -.04em; }
.ist-pricing-period { color: var(--ist-text-muted); font-size: .9375rem; }
.ist-pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; flex: 1; }
.ist-pricing-features li { padding: .5rem 0; border-bottom: 1px solid var(--ist-border); display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; }
.ist-pricing-features li:last-child { border-bottom: none; }
.ist-pricing-features .bi-check-circle-fill { color: #16a34a; margin-top: .1rem; flex-shrink: 0; }
.ist-pricing-features .bi-x-circle-fill { color: #dc2626; margin-top: .1rem; flex-shrink: 0; }

/* --- Team -------------------------------------------------- */
.ist-team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--ist-radius-lg);
    transition: all var(--ist-transition);
}
.ist-team-card:hover { background: var(--ist-surface); }
.ist-team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--ist-border);
    display: block;
}
.ist-team-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-accent) 100%);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.ist-team-name { font-size: 1.0625rem; font-weight: 700; }
.ist-team-role { color: var(--ist-primary); font-size: .875rem; font-weight: 500; margin-bottom: .75rem; }
.ist-team-bio { color: var(--ist-text-muted); font-size: .9rem; line-height: 1.65; }
.ist-team-social a {
    color: var(--ist-text-muted);
    font-size: 1rem;
    margin: 0 .3rem;
    transition: color var(--ist-transition);
}
.ist-team-social a:hover { color: var(--ist-primary); }

/* --- FAQ / Accordion --------------------------------------- */
.ist-accordion .accordion-item {
    border: 1px solid var(--ist-border);
    border-radius: var(--ist-radius-lg) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.ist-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ist-text);
    background: #fff;
    border-radius: var(--ist-radius-lg) !important;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}
.ist-accordion .accordion-button:not(.collapsed) {
    color: var(--ist-primary);
    background: var(--ist-primary-light);
}
.ist-accordion .accordion-button::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234a7fa5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.ist-accordion .accordion-body {
    color: var(--ist-text-muted);
    line-height: 1.75;
    padding: 1rem 1.5rem 1.5rem;
    background: #fff;
}

/* --- CTA section ------------------------------------------- */
.ist-cta {
    background: linear-gradient(135deg, var(--ist-dark) 0%, var(--ist-dark-secondary) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ist-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(var(--ist-primary-rgb), .2) 0%, transparent 65%);
    pointer-events: none;
}
.ist-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
}
.ist-cta-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.75);
    max-width: 560px;
}

/* --- Contact ----------------------------------------------- */
.ist-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ist-radius);
    background: var(--ist-primary-light);
    color: var(--ist-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ist-contact-form .form-control,
.ist-contact-form .form-select {
    border-color: var(--ist-border);
    border-radius: var(--ist-radius);
    padding: .7rem 1rem;
    font-size: .9375rem;
    transition: all var(--ist-transition);
}
.ist-contact-form .form-control:focus,
.ist-contact-form .form-select:focus {
    border-color: var(--ist-primary);
    box-shadow: 0 0 0 3px rgba(var(--ist-primary-rgb), .12);
}

/* --- Image Text -------------------------------------------- */
.ist-image-text-img {
    border-radius: var(--ist-radius-xl);
    box-shadow: var(--ist-shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}
.ist-image-placeholder {
    border-radius: var(--ist-radius-xl);
    background: var(--ist-primary-light);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--ist-primary);
    opacity: .3;
}

/* --- Gallery ---------------------------------------------- */
.ist-gallery-grid {
    columns: 3;
    column-gap: 1rem;
}
.ist-gallery-grid.cols-2 { columns: 2; }
.ist-gallery-grid.cols-4 { columns: 4; }
@media (max-width: 767px) {
    .ist-gallery-grid,
    .ist-gallery-grid.cols-2,
    .ist-gallery-grid.cols-4 { columns: 2; }
}
@media (max-width: 480px) {
    .ist-gallery-grid,
    .ist-gallery-grid.cols-4 { columns: 1; }
}
.ist-gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--ist-radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.ist-gallery-item img {
    width: 100%;
    display: block;
    transition: transform .4s ease;
}
.ist-gallery-item:hover img { transform: scale(1.04); }
.ist-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 46, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ist-transition);
    font-size: 2rem;
    color: #fff;
}
.ist-gallery-item:hover .ist-gallery-overlay { opacity: 1; }

/* Lightbox */
.ist-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn .2s ease;
}
.ist-lightbox img { max-height: 90vh; max-width: 90vw; border-radius: var(--ist-radius-lg); box-shadow: var(--ist-shadow-lg); }
.ist-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--ist-transition);
}
.ist-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* --- Partners / Logo Carousel ------------------------------ */

/* ── Logo Carousel — infinite marquee ── */
.ist-lc-label {
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 2.5rem;
}

.ist-marquee-outer {
    overflow: hidden;
    padding: .75rem 0;
}

.ist-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ist-marquee 35s linear infinite;
}
.ist-marquee-track:hover { animation-play-state: paused; }

@keyframes ist-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ist-marquee-item {
    flex-shrink: 0;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
}

.ist-marquee-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    text-decoration: none;
}

.ist-marquee-logo {
    max-height: 64px;
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ist-marquee-logo-wrap:hover .ist-marquee-logo {
    transform: scale(1.14);
}

.ist-marquee-logo-wrap {
    position: relative;
}
.ist-marquee-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -6px -10px;
    border-radius: 10px;
    background: rgba(0,0,0,.06);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.ist-marquee-logo-wrap:hover::after { opacity: 1; }

/* ── Partners — card grid ── */
.ist-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}
.ist-partners-grid .ist-partner-card {
    flex: 0 0 180px;
    width: 180px;
}

@media (max-width: 575px) {
    .ist-partners-grid .ist-partner-card { flex: 0 0 calc(50% - .625rem); width: auto; }
}

.ist-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: 2rem 1.5rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.08));
    border-radius: var(--radius-lg, 14px);
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    min-height: 140px;
    cursor: default;
    overflow: hidden;
}
a.ist-partner-card { cursor: pointer; }

.ist-partner-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    transform: translateY(-4px);
    border-color: transparent;
}

.ist-partner-card--dark {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
}
.ist-partner-card--dark:hover {
    background: rgba(255,255,255,.12);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.ist-partner-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: 100%;
    overflow: hidden;
}

.ist-partner-img {
    max-height: 64px;
    max-width: 140px;
    width: auto;
    height: auto;
    display: block;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .3s ease;
}
.ist-partner-card:hover .ist-partner-img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.2));
}

.ist-partner-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-align: center;
    letter-spacing: .02em;
    line-height: 1.3;
    transition: color .25s ease;
}
.ist-partner-card--dark .ist-partner-name { color: rgba(255,255,255,.6); }
.ist-partner-card--dark:hover .ist-partner-name { color: rgba(255,255,255,.9); }

/* --- Timeline ---------------------------------------------- */
.ist-timeline { position: relative; }
.ist-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ist-border);
    transform: translateX(-50%);
}
@media (max-width: 767px) {
    .ist-timeline::before { left: 20px; }
}
.ist-timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.ist-timeline-item:nth-child(even) { flex-direction: row-reverse; }
@media (max-width: 767px) {
    .ist-timeline-item,
    .ist-timeline-item:nth-child(even) { flex-direction: row; padding-left: 3rem; }
}
.ist-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ist-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--ist-primary);
    position: absolute;
    left: calc(50% - 8px);
    top: 6px;
    z-index: 1;
}
@media (max-width: 767px) {
    .ist-timeline-dot { left: 12px; }
}
.ist-timeline-content {
    width: calc(50% - 2rem);
    background: #fff;
    border: 1px solid var(--ist-border);
    border-radius: var(--ist-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--ist-shadow-sm);
}
@media (max-width: 767px) {
    .ist-timeline-content { width: 100%; }
}
.ist-timeline-year {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ist-primary);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.ist-timeline-title { font-size: 1rem; font-weight: 700; }
.ist-timeline-text { color: var(--ist-text-muted); font-size: .9375rem; }

/* --- Tabs -------------------------------------------------- */
.ist-tabs .nav-link {
    font-weight: 600;
    color: var(--ist-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: .875rem 1.25rem;
    transition: all var(--ist-transition);
}
.ist-tabs .nav-link:hover { color: var(--ist-primary); }
.ist-tabs .nav-link.active { color: var(--ist-primary); border-bottom-color: var(--ist-primary); background: none; }
.ist-tabs.nav-pills .nav-link {
    border-radius: var(--ist-radius-lg);
    border: 1px solid var(--ist-border);
    margin: .2rem;
    border-bottom: 1px solid var(--ist-border);
}
.ist-tabs.nav-pills .nav-link.active {
    background: var(--ist-primary);
    border-color: var(--ist-primary);
    color: #fff;
}

/* --- Divider ----------------------------------------------- */
.ist-divider {
    border: none;
    height: 2px;
    background: var(--ist-border);
    margin: 0;
}
.ist-divider--primary { background: var(--ist-primary); }
.ist-divider--gradient {
    background: linear-gradient(90deg, transparent, var(--ist-primary), transparent);
}

/* --- Back to Top ------------------------------------------- */
#ist-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ist-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: var(--ist-shadow);
    opacity: 0;
    transform: translateY(1rem);
    transition: all var(--ist-transition);
    z-index: 1000;
    pointer-events: none;
}
#ist-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#ist-back-to-top:hover {
    background: var(--ist-primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Animations -------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.ist-animate-fade-in-up   { animation: fadeInUp .65s ease forwards; }
.ist-animate-fade-in-left { animation: fadeInLeft .65s ease forwards; }
.ist-animate-fade-in-right{ animation: fadeInRight .65s ease forwards; }
.ist-animate-delay-1      { animation-delay: .15s; }
.ist-animate-delay-2      { animation-delay: .3s; }
.ist-animate-delay-3      { animation-delay: .45s; }
.ist-animate-delay-4      { animation-delay: .6s; }

.ist-scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.ist-scroll-reveal.ist-visible {
    opacity: 1;
    transform: none;
}

/* --- Content Body ------------------------------------------ */
.ist-content-body h1, .ist-content-body h2, .ist-content-body h3 { margin-top: 1.5em; margin-bottom: .5em; }
.ist-content-body h1:first-child, .ist-content-body h2:first-child { margin-top: 0; }
.ist-content-body p { margin-bottom: 1.1em; color: var(--ist-text); }
.ist-content-body ul, .ist-content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.ist-content-body li { margin-bottom: .35rem; }
.ist-content-body a { color: var(--ist-primary); }
.ist-content-body img { border-radius: var(--ist-radius); }
.ist-content-body blockquote {
    border-left: 4px solid var(--ist-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--ist-primary-light);
    border-radius: 0 var(--ist-radius) var(--ist-radius) 0;
    color: var(--ist-text);
}

/* --- Page Content ------------------------------------------ */
.ist-page-content { padding: 4rem 0; }

/* --- Utilities --------------------------------------------- */
.ist-text-primary  { color: var(--ist-primary) !important; }
.ist-bg-primary-light { background: var(--ist-primary-light) !important; }
.ist-border-primary   { border-color: var(--ist-primary) !important; }
.ist-link { color: var(--ist-primary); font-weight: 500; text-decoration: none; transition: color var(--ist-transition); }
.ist-link:hover { color: var(--ist-primary-dark); text-decoration: underline; }
.ist-link-arrow::after { content: ' →'; }

/* --- Forms ------------------------------------------------- */
.form-control:focus,
.form-select:focus {
    border-color: var(--ist-primary);
    box-shadow: 0 0 0 3px rgba(var(--ist-primary-rgb), .12);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 991px) {
    .ist-section { padding: 2.25rem 0; }
    .ist-section-title { font-size: 1.8rem; }
    .ist-hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
}

@media (max-width: 575px) {
    .ist-section { padding: 1.5rem 0; }
    .ist-footer-v2 .container { padding-left: 1rem; padding-right: 1rem; }
    .ist-footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTBALL ACADEMY — DESIGN LAYER
   Everything below is additive on top of the base ist-* system above (kept
   intact so every existing section template continues to work unchanged).
   These rules give the shared classes a bolder, athletic identity: angled
   "cut corner" buttons, a gold underline nav treatment, pitch-line motifs,
   and stronger card/eyebrow styling suited to a sports club brand.
   ═══════════════════════════════════════════════════════════════════════ */

/* --- Buttons: angled cut-corner + uppercase athletic treatment --------- */
.ist-btn {
    position: relative;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
    padding-right: 2.1rem;
}
.ist-btn--lg { padding-right: 2.6rem; }
.ist-btn--sm { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); padding-right: 1.5rem; }

.ist-btn-primary:hover,
.ist-btn-accent:hover {
    box-shadow: 0 10px 28px rgba(var(--ist-accent-rgb), .38);
}

/* --- Section eyebrow: bolder "match day" tag look ----------------------- */
.ist-section-eyebrow {
    font-weight: 800 !important;
    letter-spacing: .08em !important;
}

/* --- Cards: gold accent bar sweeps in on hover -------------------------- */
.ist-card { position: relative; overflow: hidden; }
.ist-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--ist-accent, #f5a623);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--ist-transition, .25s);
}
.ist-card:hover::before { transform: scaleX(1); }

/* --- Header: gold underline sweep on nav links -------------------------- */
.ist-menu-link {
    position: relative;
}
.ist-menu-link::after {
    display: block !important;
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 2px;
    background: var(--ist-accent, #f5a623);
    transform: scaleX(0); transform-origin: center;
    transition: transform var(--ist-transition, .25s);
}
.ist-menu-link:hover::after,
.ist-menu-item--active > .ist-menu-link::after { transform: scaleX(1); }

/* Header CTA — angled tag shape matching the button system, gold by default */
.ist-header-cta {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
    padding-right: 1.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .82rem;
}

/* Sticky header: slightly heavier bottom accent line in club gold */
.ist-header--sticky.scrolled .ist-header-inner::after {
    background: linear-gradient(90deg, var(--ist-primary), var(--ist-accent)) !important;
    height: 2px !important;
}

/* --- Footer: pitch-line divider (default, replaces the wave) ----------- */
.fa-footer-pitchline {
    position: relative;
    height: 22px;
    overflow: hidden;
}
.fa-footer-pitchline::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    border-top: 2px dashed rgba(255,255,255,.14);
}
.fa-footer-pitchline-circle {
    position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.14);
}

/* Footer brand mark gets a small pitch-gold underline accent */
.ist-footer-brand-name,
.ist-footer-logo { position: relative; }
.ist-footer-col-heading {
    position: relative; padding-bottom: .5rem; margin-bottom: 1rem !important;
}
.ist-footer-col-heading::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px;
    background: var(--ist-accent, #f5a623);
}

/* --- Stats sections: bolder numerals for a scoreboard feel ------------- */
.ist-stat-number, .ist-counter, [class*="stat-value"] {
    font-family: var(--ist-font-heading);
    letter-spacing: .01em;
}

/* --- Selection & scrollbar accent (small polish touch) ------------------ */
::selection { background: var(--ist-accent, #f5a623); color: #0a1f14; }

/* --- Responsive: relax the angled-corner clip on very small buttons ---- */
@media (max-width: 420px) {
    .ist-btn { clip-path: none; padding-right: 1.75rem; }
    .ist-header-cta { clip-path: none; padding-right: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTBALL ACADEMY — DESIGN LAYER, PART 2
   Features / Cards / Feature Cards / Timeline / Tabs / Services / Team.
   Same approach as Part 1: additive rules on the shared ist-* classes so
   every section template keeps working with zero markup changes.
   ═══════════════════════════════════════════════════════════════════════ */

/* --- Feature/Card/Service icon badge: angled tag instead of rounded square,
   with a gold ring that appears on the parent card's hover -------------- */
.ist-card-icon {
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow var(--ist-transition), transform var(--ist-transition);
}
.ist-card:hover .ist-card-icon,
.ist-scroll-reveal:hover .ist-card-icon {
    box-shadow: inset 0 0 0 2px var(--ist-accent, #f5a623);
    transform: translateY(-2px);
}

/* Numbered feature layout: circle badge → angled jersey-number tag */
.fa-feature-num {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%) !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-primary-dark) 100%) !important;
    font-family: var(--ist-font-heading);
    letter-spacing: .02em;
}

/* --- Timeline: dashed pitch-line connector + gold-ring nodes ----------- */
.ist-timeline::before {
    background: repeating-linear-gradient(180deg, var(--ist-border) 0 8px, transparent 8px 16px);
    width: 2px;
}
.ist-timeline-dot {
    background: var(--ist-accent, #f5a623);
    box-shadow: 0 0 0 2px var(--ist-accent, #f5a623), 0 0 0 5px var(--ist-primary-light);
}
.ist-timeline-content {
    border-top: 3px solid var(--ist-accent, #f5a623);
}
.ist-timeline-year {
    display: inline-block;
    background: var(--ist-primary-light);
    color: var(--ist-primary-dark);
    font-family: var(--ist-font-heading);
    font-weight: 700;
    padding: .15rem .6rem;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
}

/* --- Tabs: bold uppercase athletic labels, gold active state ----------- */
.ist-tabs .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .82rem;
    font-family: var(--ist-font-heading);
    border-bottom-width: 3px;
}
.ist-tabs .nav-link:hover { color: var(--ist-accent-dark, var(--ist-primary)); }
.ist-tabs .nav-link.active {
    color: var(--ist-primary);
    border-bottom-color: var(--ist-accent, #f5a623);
}
.ist-tabs.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--ist-primary) 0%, var(--ist-primary-dark) 100%);
}

/* --- Team: gold ring on hover + jersey-tag role chip -------------------- */
.ist-team-card { border: 2px solid transparent; border-radius: var(--ist-radius-lg); }
.ist-team-card:hover {
    border-color: var(--ist-accent, #f5a623);
    background: var(--ist-surface);
    transform: translateY(-4px);
}
.ist-team-avatar,
.ist-team-avatar-placeholder {
    transition: box-shadow var(--ist-transition);
}
.ist-team-card:hover .ist-team-avatar,
.ist-team-card:hover .ist-team-avatar-placeholder {
    box-shadow: 0 0 0 4px var(--ist-accent, #f5a623);
}
.ist-team-role {
    display: inline-block;
    color: #fff;
    background: var(--ist-primary);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2rem .65rem .2rem .5rem;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTBALL ACADEMY — DESIGN LAYER, PART 3: Primary Nav + Dropdown
   ═══════════════════════════════════════════════════════════════════════ */

/* --- Top-level nav links: angled hover chip + persistent active tab ---- */
.ist-menu-link {
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
    position: relative;
}
.ist-header--white .ist-menu-link:hover {
    background: var(--ist-primary-light);
}
.ist-header--dark .ist-menu-link:hover,
.ist-header--primary .ist-menu-link:hover {
    background: rgba(245,166,35,.14);
    color: var(--ist-accent, #f5a623);
}
.ist-header--dark .ist-menu-item--active > .ist-menu-link,
.ist-header--primary .ist-menu-item--active > .ist-menu-link {
    background: rgba(245,166,35,.16);
    color: var(--ist-accent, #f5a623);
}

/* Persistent gold tab indicator under the active item (in addition to the
   hover-only underline sweep already defined earlier in this file) */
.ist-menu-item--active > .ist-menu-link::after {
    transform: scaleX(1) !important;
}

.ist-menu-chevron { color: var(--ist-accent, #f5a623); opacity: .8; }

/* --- Dropdown panel: dark "match-day card" with real breathing room ----
   The visible card (background/border/shadow/accent bar) now lives on
   .ist-submenu instead of .ist-dropdown-panel itself. .ist-dropdown-panel
   becomes a transparent positioning wrapper whose padding-top is the
   visible gap to the nav bar — since that padding is still part of the
   wrapper's own box, hovering through it keeps :hover active the whole
   way from the nav link down into the menu, so the dropdown never closes
   when the cursor crosses the gap. */
.ist-dropdown-panel {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 16px 0 0;
    min-width: 280px;
    overflow: visible;
}
.ist-dropdown-panel::before { display: none; }

.ist-submenu {
    position: relative;
    display: block;
    background: var(--ist-dark, #0a1f14);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--ist-radius, 6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.25);
    padding: .375rem;
    overflow: hidden;
}
.ist-submenu::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--ist-accent, #f5a623), var(--ist-primary));
}

.ist-submenu-link { color: rgba(255,255,255,.82); }
.ist-submenu-link:hover,
.ist-submenu-item--active .ist-submenu-link {
    background: rgba(255,255,255,.06);
    color: #fff;
}
/* Gold left rail slides in on hover — reinforces the "selected" state */
.ist-submenu-item { position: relative; }
.ist-submenu-item::before {
    content: "";
    position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    background: var(--ist-accent, #f5a623);
    transform: scaleY(0); transform-origin: center;
    transition: transform var(--ist-transition);
}
.ist-submenu-item:has(.ist-submenu-link:hover)::before,
.ist-submenu-item--active::before { transform: scaleY(1); }

.ist-submenu-icon {
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
    background: rgba(255,255,255,.08);
    color: var(--ist-accent, #f5a623);
}
.ist-submenu-link:hover .ist-submenu-icon,
.ist-submenu-item--active .ist-submenu-icon {
    background: var(--ist-accent, #f5a623);
    color: #0a1f14;
}
.ist-submenu-desc { color: rgba(255,255,255,.45); }
.ist-submenu-arrow { color: var(--ist-accent, #f5a623); }

/* --- Mobile drawer: match the gold-accent language ---------------------- */
.ist-mobile-link:hover,
.ist-mobile-item--has-children .ist-mobile-toggle-sub:hover {
    color: var(--ist-primary);
    background: var(--ist-primary-light);
}
.ist-mobile-sub-link:hover { color: var(--ist-primary); }
