/* ==========================================================================
   Public website (frontend) styles — resources/views/frontend/*.

   Loaded by frontend/layouts/app.blade.php on top of the local Bootstrap 5 and
   Tabler Icons bundles. The brand palette mirrors the student portal's @theme
   (Modules/Student/Resources/views/portal/layouts/app.blade.php): indigo
   #362F75 as the primary, orange #E75524 as the accent. Every class is
   prefixed `fe-` so nothing collides with Bootstrap or the admin theme.
   ========================================================================== */

:root {
    --fe-primary: #362F75;
    --fe-primary-600: #2e2864;
    --fe-primary-700: #251f52;
    --fe-accent: #E75524;
    --fe-accent-600: #cf4a1c;
    --fe-brand-50: #ecebf3;
    --fe-brand-100: #d7d5e8;
    --fe-ink: #1e1b3a;
    --fe-muted: #6b7280;
    --fe-faint: #9aa1b1;
    --fe-border: #e8e7f0;
    --fe-surface: #ffffff;
    --fe-surface-2: #f7f7fb;
    --fe-grad: linear-gradient(135deg, #2b2566 0%, #362F75 45%, #5b4bb5 100%);
    --fe-grad-accent: linear-gradient(135deg, #E75524 0%, #ff8a5b 100%);
    --fe-radius: 16px;
    --fe-radius-sm: 10px;
    --fe-shadow: 0 14px 34px -18px rgba(54, 47, 117, .35);
    --fe-shadow-soft: 0 6px 18px -10px rgba(54, 47, 117, .25);
    --fe-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --fe-header-h: 66px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
/* The site is one page of #anchor sections: scroll-padding keeps a section's
   top clear of the sticky header when the browser jumps to it. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fe-header-h) + 12px); }
body.fe-body {
    font-family: var(--fe-font);
    color: var(--fe-ink);
    background: var(--fe-surface);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#fe-main { flex: 1 0 auto; }
/* Buttons (.btn) carry their own colours; :where() keeps the specificity of
   these link rules unchanged so later per-area link colours still win. */
.fe-body a:where(:not(.btn)) { color: var(--fe-primary); }
.fe-body a:where(:not(.btn)):hover { color: var(--fe-accent); }
.fe-body h1, .fe-body h2, .fe-body h3, .fe-body h4, .fe-body h5 { color: var(--fe-ink); }
.min-w-0 { min-width: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.fe-btn-primary,
.fe-btn-login,
.fe-btn-brand,
.fe-btn-outline,
.fe-btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    border-radius: 12px;
    padding: .65rem 1.25rem;
    line-height: 1.25;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.fe-btn-primary.btn-lg,
.fe-btn-brand.btn-lg,
.fe-btn-outline.btn-lg,
.fe-btn-outline-light.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.fe-btn-primary { background: var(--fe-accent); border: 1px solid var(--fe-accent); color: #fff; }
.fe-btn-primary:hover, .fe-btn-primary:focus {
    background: var(--fe-accent-600); border-color: var(--fe-accent-600); color: #fff;
    transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(231, 85, 36, .65);
}
.fe-btn-brand { background: var(--fe-primary); border: 1px solid var(--fe-primary); color: #fff; }
.fe-btn-brand:hover, .fe-btn-brand:focus { background: var(--fe-primary-600); border-color: var(--fe-primary-600); color: #fff; }
.fe-btn-outline { background: #fff; border: 1px solid var(--fe-brand-100); color: var(--fe-primary); }
.fe-btn-outline:hover, .fe-btn-outline:focus { background: var(--fe-brand-50); border-color: var(--fe-primary); color: var(--fe-primary); }
.fe-btn-outline-light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.fe-btn-outline-light:hover, .fe-btn-outline-light:focus { background: #fff; color: var(--fe-primary); border-color: #fff; }
.fe-btn-primary:focus-visible, .fe-btn-login:focus-visible, .fe-btn-brand:focus-visible, .fe-btn-outline:focus-visible, .fe-btn-outline-light:focus-visible {
    outline: 0; box-shadow: 0 0 0 4px rgba(231, 85, 36, .3);
}

/* ── Header / navbar ──────────────────────────────────────────────────── */
.fe-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s;
}
.fe-header.is-scrolled { border-color: var(--fe-border); box-shadow: 0 6px 20px -14px rgba(54, 47, 117, .3); }
.fe-navbar { padding: .7rem 0; }
.fe-navbar .navbar-brand { padding: 0; margin-right: 1.5rem; }
.fe-navbar .navbar-brand img { height: 42px; width: auto; display: block; }
.fe-navbar .nav-link {
    color: var(--fe-ink);
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem .9rem !important;
    border-radius: 10px;
    transition: background .15s, color .15s;
}
.fe-navbar .nav-link:hover { color: var(--fe-primary); background: var(--fe-brand-50); }
.fe-navbar .nav-link.active { color: var(--fe-primary); background: var(--fe-brand-50); }
.fe-navbar .navbar-toggler {
    border: 1px solid var(--fe-border);
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--fe-primary);
    padding: .35rem .55rem;
}
.fe-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--fe-brand-50); }
.fe-dropdown { border: 1px solid var(--fe-border); border-radius: 12px; box-shadow: var(--fe-shadow); padding: .4rem; min-width: 12rem; }
.fe-dropdown .dropdown-item { border-radius: 8px; font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; }
.fe-dropdown .dropdown-item:hover, .fe-dropdown .dropdown-item:focus { background: var(--fe-brand-50); color: var(--fe-primary); }
.fe-dropdown .dropdown-item i { color: var(--fe-primary); }
/* Portal buttons in the header. Both are pills, a touch more compact than the
   page buttons. The student CTA (.fe-btn-login) sits on the accent gradient
   with its icon in a small chip and a sheen that sweeps across on hover, so it
   reads as the single primary action in the bar; "Other portals" stays quiet. */
.fe-navbar .fe-nav-actions .btn { border-radius: 999px; font-size: .92rem; }
.fe-navbar .fe-nav-actions .fe-btn-outline { padding: .5rem 1.1rem; }
.fe-btn-login {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: .6rem;
    padding: .4rem 1.2rem .4rem .45rem;
    color: #fff;
    background: var(--fe-grad-accent);
    border: 1px solid transparent;
    box-shadow: 0 8px 18px -10px rgba(231, 85, 36, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
    letter-spacing: .01em;
}
.fe-btn-login::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}
.fe-btn-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 1.05rem;
    line-height: 1;
    transition: background .2s, transform .2s;
}
.fe-btn-login:hover, .fe-btn-login:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(231, 85, 36, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.fe-btn-login:hover::after, .fe-btn-login:focus::after { transform: translateX(120%); }
.fe-btn-login:hover .fe-btn-login-icon, .fe-btn-login:focus .fe-btn-login-icon { background: rgba(255, 255, 255, .32); transform: translateX(2px); }
.fe-btn-login:active { transform: translateY(0); }
@media (max-width: 991.98px) {
    .fe-navbar .navbar-collapse { padding: 1rem 0 .5rem; }
    .fe-navbar .fe-nav-actions { padding-top: .85rem; margin-top: .5rem; border-top: 1px solid var(--fe-border); }
    .fe-navbar .fe-nav-actions .btn { width: 100%; }
}

/* ── Hero (home) ───────────────────────────────────────────────────────── */
.fe-hero {
    position: relative;
    overflow: hidden;
    background: var(--fe-grad);
    color: #fff;
    padding: 5rem 0 6.5rem;
}
.fe-hero-blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.fe-hero-blob-1 { width: 520px; height: 520px; top: -220px; right: -160px; }
.fe-hero-blob-2 { width: 380px; height: 380px; bottom: -200px; left: -140px; background: rgba(231, 85, 36, .2); }
.fe-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
}
/* `.fe-body .fe-hero-title` so it outranks the `.fe-body h1` ink colour above —
   the hero sits on the dark brand gradient, so the title must be white. */
.fe-body .fe-hero-title {
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 1.1rem 0 1rem;
    color: #fff;
}
.fe-hero-title em { font-style: normal; color: #ffb28f; }
.fe-hero-lead { font-size: 1.08rem; color: rgba(255, 255, 255, .82); max-width: 34rem; }
.fe-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.fe-hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; font-size: .85rem; color: rgba(255, 255, 255, .82); }
.fe-hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.fe-hero-trust i { color: #ffb28f; font-size: 1.05rem; }

.fe-hero-visual { position: relative; max-width: 460px; margin-left: auto; }
.fe-hero-card {
    background: #fff;
    color: var(--fe-ink);
    border-radius: 20px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45);
    padding: 1.25rem;
    transform: rotate(-1.5deg);
}
.fe-hero-card-head { display: flex; gap: 6px; margin-bottom: 1rem; }
.fe-hero-card-dot { width: 9px; height: 9px; border-radius: 50%; }
.fe-hero-card-dot:nth-child(1) { background: #f87171; }
.fe-hero-card-dot:nth-child(2) { background: #fbbf24; }
.fe-hero-card-dot:nth-child(3) { background: #34d399; }
.fe-hero-spot {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid var(--fe-border);
    border-radius: 14px;
    background: var(--fe-surface-2);
}
.fe-hero-spot-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--fe-brand-50);
    display: grid;
    place-items: center;
    color: var(--fe-primary);
    font-size: 1.6rem;
}
.fe-hero-spot h6 { margin: 0 0 .2rem; font-weight: 700; font-size: .95rem; }
.fe-hero-spot small { color: var(--fe-muted); }
.fe-hero-progress { height: 6px; border-radius: 99px; background: var(--fe-brand-50); margin-top: .5rem; overflow: hidden; }
.fe-hero-progress span { display: block; height: 100%; width: 62%; background: var(--fe-grad-accent); border-radius: 99px; }
.fe-hero-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.fe-hero-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: .75rem;
    align-items: center;
}
.fe-hero-list li i {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--fe-brand-50);
    color: var(--fe-primary);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}
.fe-hero-list li span { font-weight: 600; font-size: .9rem; }
.fe-hero-list li em { font-style: normal; font-size: .78rem; color: var(--fe-muted); }
.fe-float {
    position: absolute;
    background: #fff;
    color: var(--fe-ink);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: var(--fe-shadow);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    animation: fe-bob 5s ease-in-out infinite;
}
.fe-float i { color: var(--fe-accent); font-size: 1rem; }
.fe-float-1 { top: -14px; left: -24px; }
.fe-float-2 { bottom: 22px; right: -18px; animation-delay: 1.4s; }
@keyframes fe-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 991.98px) {
    .fe-hero { padding: 3.5rem 0 5.5rem; }
    .fe-hero-visual { margin: 1rem auto 0; }
    .fe-float-1 { left: 0; }
    .fe-float-2 { right: 0; }
}

/* ── Stats strip ──────────────────────────────────────────────────────── */
.fe-stats { position: relative; z-index: 2; margin-top: -3rem; }
.fe-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--fe-shadow-soft);
    height: 100%;
}
.fe-stat i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--fe-brand-50);
    color: var(--fe-primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.fe-stat strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.fe-stat span { font-size: .82rem; color: var(--fe-muted); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.fe-section { padding: 4.5rem 0; }
.fe-section-alt { background: var(--fe-surface-2); }
.fe-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.fe-kicker {
    display: inline-block;
    color: var(--fe-accent);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.fe-section-head h2, .fe-h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--fe-ink);
}
.fe-section-head p { color: var(--fe-muted); margin: .45rem 0 0; max-width: 40rem; }
.fe-link { color: var(--fe-primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.fe-link:hover { color: var(--fe-accent); }
@media (max-width: 767.98px) { .fe-section { padding: 3.25rem 0; } }
/* Client-side search box in a section head (courses / centers). */
.fe-section-head .fe-search { flex: 1 1 300px; max-width: 420px; }

/* ── Course card ──────────────────────────────────────────────────────── */
.fe-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.fe-course-card:hover { transform: translateY(-4px); box-shadow: var(--fe-shadow); }
/* 16:9 matches the course artwork (1600x900) so `cover` never trims the sides;
   the same box is reused by the modal sidebar and the course detail page. */
.fe-course-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--fe-brand-50), #f3f1fb);
    overflow: hidden;
}
/* The fallback icon is always rendered underneath; a successfully loaded cover
   image covers it (a broken image removes itself via onerror). */
.fe-course-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-course-thumb-fallback { height: 100%; display: grid; place-items: center; color: var(--fe-brand-100); font-size: 3rem; }
.fe-chip {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--fe-ink);
}
.fe-course-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.fe-course-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .75rem; color: var(--fe-muted); margin-bottom: .55rem; }
.fe-course-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.fe-course-meta i { color: var(--fe-primary); }
.fe-course-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 .45rem; }
.fe-course-body h3 a { color: var(--fe-ink); text-decoration: none; }
.fe-course-body h3 a:hover { color: var(--fe-primary); }
.fe-course-body p {
    color: var(--fe-muted);
    font-size: .875rem;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fe-course-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding-top: .85rem;
    border-top: 1px solid var(--fe-border);
}

/* ── Feature tiles / steps ────────────────────────────────────────────── */
.fe-feature {
    height: 100%;
    background: #fff;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    padding: 1.5rem;
    transition: transform .25s, box-shadow .25s;
}
.fe-feature:hover { transform: translateY(-4px); box-shadow: var(--fe-shadow); }
.fe-feature i {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--fe-brand-50);
    color: var(--fe-primary);
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}
.fe-feature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .45rem; }
.fe-feature p { color: var(--fe-muted); font-size: .875rem; margin: 0; }
.fe-feature-sm { padding: 1.2rem; }
.fe-feature-sm i { width: 42px; height: 42px; border-radius: 12px; font-size: 1.25rem; margin-bottom: .75rem; }
.fe-feature-sm h3 { font-size: .95rem; }
.fe-feature-sm p { font-size: .83rem; }

.fe-step { position: relative; padding: 1.85rem 1.5rem 1.5rem; background: #fff; border: 1px solid var(--fe-border); border-radius: var(--fe-radius); height: 100%; }
.fe-step-num {
    position: absolute;
    top: -16px;
    left: 1.5rem;
    background: var(--fe-grad-accent);
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .78rem;
    letter-spacing: .04em;
    box-shadow: 0 8px 18px -8px rgba(231, 85, 36, .7);
}
.fe-step h3 { font-size: 1.02rem; font-weight: 700; margin: .4rem 0 .45rem; }
.fe-step p { color: var(--fe-muted); font-size: .875rem; margin: 0; }

/* ── Center card ──────────────────────────────────────────────────────── */
.fe-center-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: transform .25s, box-shadow .25s;
}
.fe-center-card:hover { transform: translateY(-3px); box-shadow: var(--fe-shadow); }
.fe-center-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.fe-center-city {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    color: var(--fe-accent);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.fe-center-card address { margin: 0; font-size: .85rem; color: var(--fe-muted); font-style: normal; }
.fe-center-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.fe-center-links a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--fe-primary);
    background: var(--fe-brand-50);
    border-radius: 8px;
    padding: .35rem .6rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.fe-center-links a:hover { background: var(--fe-primary); color: #fff; }
.fe-group { padding-top: 1.25rem; }
.fe-group-title { display: flex; align-items: center; gap: .75rem; font-size: 1.05rem; font-weight: 800; margin: 0 0 1rem; }
.fe-group-title span { color: var(--fe-muted); font-weight: 500; font-size: .85rem; }
.fe-group-title::after { content: ""; flex: 1; height: 1px; background: var(--fe-border); }

/* ── Inner-page hero (legal pages) ────────────────────────────────────── */
.fe-page-hero { background: var(--fe-grad); color: #fff; padding: 3.25rem 0 3rem; position: relative; overflow: hidden; }
.fe-page-hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: .6rem 0 .5rem; color: #fff; }
.fe-page-hero p { color: rgba(255, 255, 255, .82); max-width: 42rem; margin: 0; }
.fe-breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: rgba(255, 255, 255, .7); margin-bottom: .75rem; }
.fe-breadcrumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.fe-breadcrumb a:hover { color: #fff; }

/* ── Course detail (modal) ────────────────────────────────────────────── */
.fe-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.fe-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
}
.fe-block { background: #fff; border: 1px solid var(--fe-border); border-radius: var(--fe-radius); padding: 1.5rem; }
.fe-block > h2, .fe-block > h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: -.01em; }
.fe-prose { color: #374151; line-height: 1.75; }
.fe-prose p:last-child { margin-bottom: 0; }
.fe-prose h2, .fe-prose h3, .fe-prose h4 { font-weight: 700; color: var(--fe-ink); margin-top: 1.75rem; }
.fe-prose h2 { font-size: 1.35rem; }
.fe-prose h3 { font-size: 1.1rem; }
.fe-prose h4 { font-size: 1rem; }
.fe-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.fe-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.fe-prose td, .fe-prose th { border: 1px solid var(--fe-border); padding: .5rem .65rem; }
.fe-prose blockquote { border-left: 4px solid var(--fe-brand-100); margin: 1rem 0; padding: .5rem 1rem; color: var(--fe-muted); }
.fe-legal h2 { font-size: 1.1rem; margin-top: 1.75rem; }
.fe-legal h2:first-of-type { margin-top: .5rem; }

.fe-sidebar-card {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    box-shadow: var(--fe-shadow);
    overflow: hidden;
}
.fe-sidebar-body { padding: 1.25rem; }
.fe-facts { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .88rem; }
.fe-facts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--fe-border);
}
.fe-facts li:last-child { border-bottom: 0; }
.fe-facts li span:first-child { display: inline-flex; align-items: center; gap: .45rem; color: var(--fe-muted); white-space: nowrap; }
.fe-facts li i { color: var(--fe-primary); }
.fe-facts li strong { text-align: right; }
.fe-mix { display: flex; flex-wrap: wrap; gap: .4rem; }
.fe-mix span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--fe-brand-50);
    color: var(--fe-primary);
    border-radius: 8px;
    padding: .25rem .55rem;
    font-size: .75rem;
    font-weight: 600;
}

/* Curriculum accordion */
.fe-curriculum .accordion-item { border: 1px solid var(--fe-border); border-radius: 12px !important; overflow: hidden; margin-bottom: .6rem; }
.fe-curriculum .accordion-header { margin: 0; }
.fe-curriculum .accordion-button {
    font-weight: 600;
    color: var(--fe-ink);
    background: #fff;
    padding: .85rem 1rem;
    gap: .85rem;
    box-shadow: none;
    font-size: .95rem;
}
.fe-curriculum .accordion-button:not(.collapsed) { background: var(--fe-brand-50); color: var(--fe-primary); }
.fe-curriculum .accordion-button:focus { box-shadow: none; border-color: transparent; }
.fe-curriculum .accordion-button::after { margin-left: .5rem; }
.fe-mod-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--fe-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.fe-mod-title { flex: 1; min-width: 0; }
.fe-mod-title small { display: block; font-weight: 500; color: var(--fe-muted); font-size: .78rem; }
.fe-mod-kind {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--fe-accent);
    background: #fff3ee;
    border-radius: 6px;
    padding: .2rem .45rem;
    flex-shrink: 0;
}

/* Curriculum preview rows. Neither opens, so both drop the chevron that would
   promise something to expand; the locked remainder is greyed to read as such. */
.fe-curriculum .fe-mod-static,
.fe-curriculum .fe-mod-locked { cursor: default; }
.fe-curriculum .fe-mod-static::after,
.fe-curriculum .fe-mod-locked::after { display: none; }
.fe-curriculum .fe-mod-locked { color: var(--fe-muted); background: var(--fe-surface-2); }
.fe-curriculum .fe-mod-locked .fe-mod-num { background: var(--fe-faint); font-size: 1rem; }
.fe-mod-summary {
    padding: 0 1rem .85rem;
    margin: 0;
    color: var(--fe-muted);
    font-size: .85rem;
}

/* The modal itself: a brand-gradient header (course title, summary, pills) over
   a scrollable body that reuses the block / sidebar styles above. */
.fe-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); }
.fe-modal .modal-header {
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    gap: 1rem;
    background: var(--fe-grad);
    color: #fff;
    border: 0;
    padding: 1.75rem 1.75rem 1.5rem;
}
.fe-modal .modal-header .fe-hero-blob-1 { width: 340px; height: 340px; top: -190px; right: -120px; }
.fe-modal .modal-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: .6rem 0 .4rem; color: #fff; }
.fe-modal .modal-header p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 42rem; }
.fe-modal .btn-close { position: relative; z-index: 1; margin: 0; padding: .6rem; opacity: .85; }
.fe-modal .btn-close:hover { opacity: 1; }
.fe-modal .modal-body { background: var(--fe-surface-2); padding: 1.5rem 1.75rem 1.75rem; }
.fe-modal .fe-sidebar-card { top: 0; }
@media (max-width: 767.98px) {
    .fe-modal .modal-header { padding: 1.25rem; }
    .fe-modal .modal-body { padding: 1rem; }
}

/* ── Search / forms ───────────────────────────────────────────────────── */
.fe-search { display: flex; gap: .6rem; flex-wrap: wrap; }
.fe-search .form-control, .fe-search .form-select,
.fe-form .form-control, .fe-form .form-select {
    border-radius: 12px;
    border-color: var(--fe-border);
    padding: .7rem .9rem;
    font-size: .95rem;
}
.fe-search .form-control:focus, .fe-search .form-select:focus,
.fe-form .form-control:focus, .fe-form .form-select:focus {
    border-color: var(--fe-primary);
    box-shadow: 0 0 0 4px var(--fe-brand-50);
}
.fe-form .form-label { font-weight: 600; font-size: .86rem; color: var(--fe-ink); }
.fe-form .form-control.is-invalid, .fe-form .form-select.is-invalid { border-color: #dc3545; }
.fe-hp { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; }

.fe-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    padding: 1.1rem 1.2rem;
}
.fe-info i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--fe-brand-50);
    color: var(--fe-primary);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fe-info strong { display: block; font-size: .85rem; margin-bottom: .15rem; }
.fe-info span, .fe-info a { font-size: .88rem; color: var(--fe-muted); text-decoration: none; }
.fe-info a:hover { color: var(--fe-primary); }

/* ── Empty state ──────────────────────────────────────────────────────── */
.fe-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--fe-brand-100);
    border-radius: var(--fe-radius);
    padding: 3rem 1.5rem;
    color: var(--fe-muted);
}
.fe-empty i { font-size: 2.4rem; color: var(--fe-brand-100); display: block; margin-bottom: .75rem; }
.fe-empty h3 { color: var(--fe-ink); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.fe-footer { background: var(--fe-primary-700); color: rgba(255, 255, 255, .78); padding: 4rem 0 1.5rem; margin-top: auto; }
.fe-footer h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.fe-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .15s; }
.fe-footer a:hover { color: #fff; }
.fe-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.fe-footer p { font-size: .9rem; }
.fe-footer-brand img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: .35rem .6rem; }
.fe-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fe-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #fff;
    transition: background .2s, transform .2s;
}
.fe-social a:hover { background: var(--fe-accent); transform: translateY(-2px); color: #fff; }
.fe-footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.fe-footer-contact i { color: #ffb28f; margin-top: .15rem; }
.fe-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 3rem;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: space-between;
    font-size: .82rem;
}
.fe-footer-bottom a, .fe-footer-bottom .text-muted { color: rgba(255, 255, 255, .72) !important; }
.fe-footer-bottom a:hover { color: #fff !important; }

/* ── Centre Locator (jVectorMap India map, centers section) ──────────── */
.fe-locator {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #0f1b46 0%, #172a69 55%, #203682 100%);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    color: #fff;
    box-shadow: var(--fe-shadow);
}
.fe-map { width: 100%; height: clamp(320px, 52vw, 560px); }
/* jVectorMap sets touch-action:none; the page must still scroll over the map. */
.fe-map .jvectormap-container, .fe-map svg { touch-action: pan-y; }
.fe-locator-panel { display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.fe-locator-panel .fe-kicker { color: #ffb28f; margin: 0; }
.fe-locator-panel h3 { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.fe-locator-panel p { color: rgba(255, 255, 255, .75); font-size: .9rem; margin: 0; }
.fe-locator-states { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .25rem; max-height: 260px; overflow-y: auto; }
.fe-state-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background .15s, border-color .15s;
}
.fe-state-pill span { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; }
.fe-state-pill:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.fe-state-pill.is-active { background: var(--fe-accent); border-color: var(--fe-accent); }
.fe-state-pill.is-active span { background: rgba(255, 255, 255, .25); }
.fe-state-pill:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255, 178, 143, .6); }
.fe-locator-legend { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.fe-locator-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.fe-locator-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.fe-legend-gold { background: #f3bd3c; }
.fe-legend-marker { background: var(--fe-accent); box-shadow: 0 0 0 2px #fff; }
@media (max-width: 767.98px) { .fe-locator { padding: 1rem; border-radius: 18px; } }

/* The "filtered to one state" chip beside the results count. */
.fe-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--fe-brand-50);
    color: var(--fe-primary);
    border-radius: 999px;
    padding: .2rem .3rem .2rem .65rem;
    font-weight: 600;
}
.fe-filter-chip button { border: 0; background: transparent; color: inherit; padding: .1rem .25rem; line-height: 1; display: inline-flex; border-radius: 50%; }
.fe-filter-chip button:hover { color: var(--fe-accent); }

/* jVectorMap's tooltip is appended to <body>, so it is styled globally. */
.jvectormap-tip {
    background: var(--fe-ink);
    border: 0;
    border-radius: 10px;
    padding: .5rem .75rem;
    font-family: var(--fe-font);
    font-size: .8rem;
    color: #fff;
    box-shadow: var(--fe-shadow);
    z-index: 1040;
    pointer-events: none;
}
.jvectormap-tip strong { display: block; font-weight: 700; }
.jvectormap-tip span { display: block; color: rgba(255, 255, 255, .75); font-size: .74rem; }

/* ── Scroll reveal (JS-only; without JS everything stays visible) ────── */
.js .fe-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--delay, 0ms);
}
.js .fe-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .fe-reveal { opacity: 1; transform: none; transition: none; }
    .fe-float { animation: none; }
    .fe-btn-login::after { transition: none; }
    .fe-btn-login, .fe-btn-login-icon { transition: none; transform: none; }
    html { scroll-behavior: auto; }
}
