/* IRSC Safety Institution – public website. Built on Bootstrap 5.3.

   THEMES
   The active theme is chosen in Admin → Website → Site Settings → Appearance
   and set as <html data-theme="...">. Every colour below is a variable, so a
   new theme is just a new [data-theme="name"] block (copy one below) plus an
   entry in WebsiteSetting::THEMES.

   --primary*   dark brand colour: headings, dark sections, header bar, footer
   --accent*    highlight colour: buttons, underlines, icons, stats band
   --on-dark*   text colours used on top of --primary-900 backgrounds
   --on-accent  text colour used on top of --accent backgrounds
*/

/* ---------- Theme: Navy & Gold (matches the IRSC logo) ---------- */
:root,
[data-theme="navy"] {
    --primary: #0b2470;
    --primary-700: #0a1f5e;
    --primary-900: #061445;
    --primary-50: #eef2fb;
    --primary-light: #1a3a9c;
    --primary-rgb: 11, 36, 112;
    --primary-900-rgb: 6, 20, 69;

    --accent: #c9a13b;
    --accent-600: #b38a26;
    --accent-50: #faf4e4;
    --accent-border: #efe3c0;
    --accent-rgb: 201, 161, 59;
    --accent-on-dark: #f0d58c;
    --on-accent: #1a1405;
    --stat-value: #061445;

    --on-dark: #c9d3f0;
    --on-dark-strong: #dfe6ff;
    --on-dark-soft: #d7def4;
    --on-dark-muted: #aab6dc;
    --on-dark-faint: #8d9bc7;

    --ink: #172033;
    --ink-soft: #2a3348;
    --muted: #5b6475;
    --line: #e3e8f2;
    --input-border: #d5dcea;
    --bg-soft: #f5f7fc;

    --link: var(--primary);
    --link-rgb: 11, 36, 112;
    --link-hover: var(--accent-600);
    --link-hover-rgb: 179, 138, 38;
}

/* ---------- Theme: Red, Black & White ---------- */
[data-theme="red"] {
    --primary: #161616;
    --primary-700: #101010;
    --primary-900: #0a0a0a;
    --primary-50: #f2f2f2;
    --primary-light: #2e2e2e;
    --primary-rgb: 22, 22, 22;
    --primary-900-rgb: 10, 10, 10;

    --accent: #d71920;
    --accent-600: #b3141a;
    --accent-50: #fdeeee;
    --accent-border: #f5c9cb;
    --accent-rgb: 215, 25, 32;
    --accent-on-dark: #ff5a5f;
    --on-accent: #ffffff;
    --stat-value: #ffffff;

    --on-dark: #d0d0d0;
    --on-dark-strong: #efefef;
    --on-dark-soft: #e0e0e0;
    --on-dark-muted: #a9a9a9;
    --on-dark-faint: #8c8c8c;

    --ink: #161616;
    --ink-soft: #2c2c2c;
    --muted: #5e5e5e;
    --line: #e6e6e6;
    --input-border: #d4d4d4;
    --bg-soft: #f6f6f6;

    --link: #c8161d;
    --link-rgb: 200, 22, 29;
    --link-hover: #0a0a0a;
    --link-hover-rgb: 10, 10, 10;
}

/* ---------- Theme: Yellow, Black & White (safety yellow) ---------- */
[data-theme="yellow"] {
    --primary: #1a1a1a;
    --primary-700: #141414;
    --primary-900: #0d0d0d;
    --primary-50: #f3f3f3;
    --primary-light: #333333;
    --primary-rgb: 26, 26, 26;
    --primary-900-rgb: 13, 13, 13;

    --accent: #f5b800;
    --accent-600: #8a6200;   /* darker gold: readable as text on white, and as button hover */
    --accent-50: #fff8e0;
    --accent-border: #f3e1a1;
    --accent-rgb: 245, 184, 0;
    --accent-on-dark: #ffcc33;
    --on-accent: #111111;    /* black text on yellow buttons / stats band */
    --stat-value: #111111;

    --on-dark: #d4d4d4;
    --on-dark-strong: #f0f0f0;
    --on-dark-soft: #e2e2e2;
    --on-dark-muted: #ababab;
    --on-dark-faint: #8e8e8e;

    --ink: #171717;
    --ink-soft: #2d2d2d;
    --muted: #5e5e5e;
    --line: #e7e7e7;
    --input-border: #d4d4d4;
    --bg-soft: #f7f7f5;

    --link: #8a6200;
    --link-rgb: 138, 98, 0;
    --link-hover: #0d0d0d;
    --link-hover-rgb: 13, 13, 13;
}

/* ---------- Theme: Green & White ---------- */
[data-theme="green"] {
    --primary: #0f3d24; --primary-700: #0c321d; --primary-900: #08261a; --primary-50: #ecf5ef;
    --primary-light: #1d5c39; --primary-rgb: 15, 61, 36; --primary-900-rgb: 8, 38, 26;
    --accent: #1f8f45; --accent-600: #176f35; --accent-50: #e8f6ec; --accent-border: #bfe3ca;
    --accent-rgb: 31, 143, 69; --accent-on-dark: #7fdc9c; --on-accent: #ffffff; --stat-value: #ffffff;
    --on-dark: #c8dccf; --on-dark-strong: #e3efe7; --on-dark-soft: #d5e6db; --on-dark-muted: #9fbcab; --on-dark-faint: #7fa08c;
    --ink: #14241a; --ink-soft: #26382d; --muted: #56665c; --line: #e1ebe4; --input-border: #cfdcd3; --bg-soft: #f4f8f5;
    --link: #176f35; --link-rgb: 23, 111, 53; --link-hover: #08261a; --link-hover-rgb: 8, 38, 26;
}

/* ---------- Theme: Blue & Orange ---------- */
[data-theme="blue"] {
    --primary: #0d3b78; --primary-700: #0a3166; --primary-900: #072349; --primary-50: #eaf1fb;
    --primary-light: #1b56a6; --primary-rgb: 13, 59, 120; --primary-900-rgb: 7, 35, 73;
    --accent: #f26a1b; --accent-600: #c24f0c; --accent-50: #fff1e8; --accent-border: #fbd3b8;
    --accent-rgb: 242, 106, 27; --accent-on-dark: #ffa26b; --on-accent: #ffffff; --stat-value: #ffffff;
    --on-dark: #c7d6ec; --on-dark-strong: #e2ebf8; --on-dark-soft: #d3e0f2; --on-dark-muted: #9fb4d3; --on-dark-faint: #7f97ba;
    --ink: #142033; --ink-soft: #26344a; --muted: #56637a; --line: #e2e9f3; --input-border: #d0dbea; --bg-soft: #f4f7fc;
    --link: #0d3b78; --link-rgb: 13, 59, 120; --link-hover: #c24f0c; --link-hover-rgb: 194, 79, 12;
}

/* ---------- Theme: Orange & Charcoal ---------- */
[data-theme="orange"] {
    --primary: #24292e; --primary-700: #1d2125; --primary-900: #15181b; --primary-50: #f1f2f3;
    --primary-light: #3a4148; --primary-rgb: 36, 41, 46; --primary-900-rgb: 21, 24, 27;
    --accent: #f47a20; --accent-600: #a84d0a; --accent-50: #fff2e6; --accent-border: #fbd5b5;
    --accent-rgb: 244, 122, 32; --accent-on-dark: #ff9d52; --on-accent: #111111; --stat-value: #111111;
    --on-dark: #d0d3d6; --on-dark-strong: #eceef0; --on-dark-soft: #dfe1e3; --on-dark-muted: #a5aaaf; --on-dark-faint: #888e94;
    --ink: #1a1d20; --ink-soft: #2e3236; --muted: #5d6267; --line: #e6e7e8; --input-border: #d4d6d8; --bg-soft: #f6f6f7;
    --link: #a84d0a; --link-rgb: 168, 77, 10; --link-hover: #15181b; --link-hover-rgb: 21, 24, 27;
}

/* ---------- Theme: Maroon & Gold ---------- */
[data-theme="maroon"] {
    --primary: #6b1020; --primary-700: #5a0d1b; --primary-900: #3d0812; --primary-50: #f9edef;
    --primary-light: #8c1c30; --primary-rgb: 107, 16, 32; --primary-900-rgb: 61, 8, 18;
    --accent: #d4a72c; --accent-600: #8a6a12; --accent-50: #fbf5e3; --accent-border: #efdfae;
    --accent-rgb: 212, 167, 44; --accent-on-dark: #f0cf6e; --on-accent: #1a1405; --stat-value: #3d0812;
    --on-dark: #e6cfd3; --on-dark-strong: #f5e6e9; --on-dark-soft: #eddadd; --on-dark-muted: #c39aa2; --on-dark-faint: #a87a83;
    --ink: #241418; --ink-soft: #3a262a; --muted: #66575a; --line: #eee3e5; --input-border: #dccdd0; --bg-soft: #fbf6f7;
    --link: #6b1020; --link-rgb: 107, 16, 32; --link-hover: #8a6a12; --link-hover-rgb: 138, 106, 18;
}

/* ---------- Shared tokens ---------- */
:root {
    --green: #2e7d32;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), .06);
    --shadow: 0 12px 32px rgba(var(--primary-rgb), .10);
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-link-color: var(--link);
    --bs-link-color-rgb: var(--link-rgb);
    --bs-link-hover-color: var(--link-hover);
    --bs-link-hover-color-rgb: var(--link-hover-rgb);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--line);
}

body { background: #fff; font-size: 1rem; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-head); color: var(--primary-900); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
.text-accent { color: var(--accent) !important; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.req { color: #c0392b; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 999px; padding: .6rem 1.4rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.02rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-brand { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--primary-900); border-color: var(--primary-900); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--primary); color: #fff; }
.btn:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow-on-dark { color: var(--accent-on-dark); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: var(--primary-50); color: var(--primary); }
.chip-dark { background: rgba(255, 255, 255, .08); color: var(--on-dark-strong); }
.chip-dark i { color: var(--accent); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary-900); color: var(--on-dark); padding: .45rem 0; }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent); margin-right: .2rem; }
.topbar-login { background: var(--accent); color: var(--on-accent) !important; padding: .2rem .8rem; border-radius: 999px; font-weight: 600; }
.topbar-login i { color: inherit !important; }

.site-header { background: rgba(255, 255, 255, .97); backdrop-filter: saturate(180%) blur(8px); transition: box-shadow .2s; z-index: 1030; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(var(--primary-900-rgb), .08); }
.site-header .navbar { padding: .6rem 0; }
.navbar-brand img { height: 52px; width: auto; }
.navbar-toggler { border: 0; font-size: 2rem; color: var(--primary); padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }
.site-header .nav-link { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5rem .7rem !important; border-radius: 8px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--primary); background: var(--primary-50); }
@media (min-width: 1200px) {
    .site-header .nav-link { font-size: .9rem; padding: .5rem .6rem !important; white-space: nowrap; }
    .site-header .navbar-nav .btn { white-space: nowrap; }
    .site-header .nav-link.active { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
    .mega { position: static; }
    /* [data-bs-popper] selector needed to beat Bootstrap's own `left: 0` for navbar dropdowns */
    .site-header .mega-menu,
    .site-header .mega-menu[data-bs-popper] { left: 50%; right: auto; transform: translateX(-50%); width: min(1140px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; padding: 1.5rem 1.75rem 1rem; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: .4rem; }
    .mega-menu .row > div { min-width: 0; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-brand img { height: 44px; }
    .site-header .nav-link { font-size: .86rem; padding: .5rem .42rem !important; }
    .site-header .navbar-nav .btn { padding: .5rem 1rem; font-size: .88rem; }
}
.mega-title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: .5rem; margin-bottom: .4rem; border-bottom: 2px solid var(--accent-50); }
.mega-menu .dropdown-item { padding: .35rem .25rem; font-size: .92rem; border-radius: 6px; white-space: normal; }
.mega-menu .dropdown-item:hover { background: var(--primary-50); color: var(--primary); padding-left: .5rem; }
.mega-footer { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; text-align: right; font-weight: 600; }
@media (max-width: 1199.98px) {
    .offcanvas { max-width: 86vw; }
    .mega-menu { border: 0; padding: .25rem 0 .5rem 1rem; box-shadow: none; }
    .mega-menu .row > div { margin-bottom: .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--primary-900); }
.hero .carousel-item { position: relative; height: clamp(520px, 78vh, 720px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--primary-900-rgb), .92) 0%, rgba(var(--primary-900-rgb), .72) 45%, rgba(var(--primary-900-rgb), .25) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.hero-content h1, .hero-content .h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; max-width: 760px; line-height: 1.12; }
.hero-content .lead { color: var(--on-dark-soft); max-width: 620px; font-size: clamp(1rem, .95rem + .4vw, 1.2rem); }
.hero-fallback { min-height: 520px; background: radial-gradient(circle at 80% 20%, var(--primary-light), var(--primary-900)); }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; }
@media (max-width: 991.98px) { .hero .carousel-control-prev, .hero .carousel-control-next { display: none; } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--accent-50); border-bottom: 1px solid var(--accent-border); }
.trust-list { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem; font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .95rem; }
.trust-list i { color: var(--accent-600); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-900) 100%); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.section-head p { color: var(--muted); }
.section-head.d-md-flex { max-width: none; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--primary-900), var(--primary) 70%); color: var(--on-dark-soft); padding: 3rem 0 3.25rem; position: relative; overflow: hidden; margin-bottom: 3rem; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(var(--accent-rgb), .12); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); font-weight: 800; position: relative; z-index: 1; }
.page-hero .lead { max-width: 760px; margin-bottom: 0; position: relative; z-index: 1; font-size: 1.08rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: var(--on-dark-faint); --bs-breadcrumb-item-active-color: var(--accent-on-dark); font-size: .88rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: var(--on-dark); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero + .section { padding-top: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero.has-image { padding: 4.5rem 0 4.75rem; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(var(--primary-900-rgb), .94) 0%, rgba(var(--primary-900-rgb), .80) 45%, rgba(var(--primary-900-rgb), .45) 100%); }
.page-hero.has-image::after { z-index: 1; }

/* ---------- Cards ---------- */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.course-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; transition: background .2s, color .2s; }
.course-card:hover .course-icon { background: var(--primary); color: var(--accent); }
.course-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); }
.course-card h3 { font-size: 1.15rem; margin: .25rem 0 .5rem; }
.course-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.course-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .87rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .9rem; }
.course-link { font-weight: 600; color: var(--primary); margin-left: auto; }
.course-card:hover .course-link i { transform: translateX(3px); }
.course-link i { display: inline-block; transition: transform .2s; }

.batch-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.batch-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.batch-top img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--bg-soft); padding: .4rem; }
.batch-mark { width: 72px; height: 72px; border-radius: 12px; background: var(--primary-50); display: grid; place-items: center; font-size: 2rem; color: var(--primary); }
.batch-top h3 { font-size: 1.2rem; margin: 0; }
.batch-top h3 a { color: var(--primary-900); }
.batch-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.batch-dates div { background: var(--bg-soft); border-radius: 10px; padding: .6rem .8rem; }
.batch-dates dt { font-size: .74rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.batch-dates dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.batch-note { font-size: .85rem; color: #8a5a00; background: #fff6e0; border-radius: 8px; padding: .5rem .7rem; }

.mv-card { background: #fff; border-radius: 14px; padding: 1.2rem; height: 100%; border: 1px solid var(--line); }
.mv-card i { font-size: 1.5rem; color: var(--accent-600); }
.mv-card h3 { font-size: 1rem; margin: .4rem 0; }
.mv-card p { font-size: .9rem; color: var(--muted); margin: 0; }

.about-media { position: relative; padding: 0 2.5rem 2.5rem 0; }
.about-img-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 15%; border-radius: 20px; box-shadow: var(--shadow); }
.about-img-small { position: absolute; right: 0; bottom: 0; width: 45%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 16px; border: 6px solid #fff; box-shadow: var(--shadow); }
.about-badge { position: absolute; left: -10px; bottom: 18%; background: var(--accent); color: var(--on-accent); border-radius: 16px; padding: .9rem 1.2rem; display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow); }
.about-badge strong { font-family: var(--font-head); font-size: 2.1rem; line-height: 1; }
.about-badge span { font-size: .8rem; font-weight: 600; line-height: 1.2; }

.stats-band { background: var(--accent); padding: 2.5rem 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.8rem); font-weight: 800; color: var(--stat-value); line-height: 1.1; }
.stat span { font-weight: 600; color: var(--on-accent); font-size: .92rem; }

.pill-tabs { gap: .5rem; flex-wrap: wrap; }
.pill-tabs .nav-link { border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-family: var(--font-head); font-weight: 600; border: 1px solid var(--line); padding: .55rem 1.2rem; }
.pill-tabs .nav-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill-tabs .nav-link i { margin-right: .25rem; }

.strength { display: flex; gap: 1rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 1rem 1.1rem; height: 100%; }
.strength span { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.2rem; }
.strength p { margin: 0; color: var(--on-dark-strong); }
.assure-card { background: #fff; border-radius: 20px; padding: 2rem; color: var(--ink); box-shadow: var(--shadow); }
.assure-card h3 { color: var(--primary-900) !important; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .5rem; color: var(--green); font-size: 1.15rem; }

.service-tile { display: flex; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; height: 100%; }
.service-tile i { font-size: 1.5rem; color: var(--primary); background: var(--primary-50); width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center; }
.service-tile h3 { font-size: 1rem; margin: 0 0 .2rem; }
.service-tile p { font-size: .87rem; color: var(--muted); margin: 0; }

.story-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.story-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-50); flex: 0 0 64px; }
.story-initial { display: grid; place-items: center; background: var(--primary); color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.story-card h3 { font-size: 1.05rem; margin: 0; }
.story-role { margin: 0; font-size: .88rem; color: var(--muted); }
.story-card blockquote { margin: 0; color: var(--ink); font-style: italic; }
.story-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .83rem; color: var(--muted); margin-top: auto; border-top: 1px dashed var(--line); padding-top: .8rem; }
.story-foot i { color: var(--accent-600); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-home { grid-template-columns: repeat(4, 1fr); }
.gallery-home .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767.98px) { .gallery-home { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { display: block; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.gallery-home .gallery-item:first-child { aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.gallery-item::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(var(--primary-900-rgb), .45); opacity: 0; transition: opacity .25s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 10, 30, .94); display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img { max-height: 80vh; max-width: min(1200px, 100%); border-radius: 8px; }
.lightbox figcaption { color: var(--on-dark-strong); margin-top: .75rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox button:hover { background: var(--accent); color: var(--on-accent); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.filter-pills a { padding: .5rem 1.15rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.filter-pills a:hover { border-color: var(--primary); color: var(--primary); }
.filter-pills a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-900)); color: var(--on-dark); padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -160px; width: 340px; height: 340px; border-radius: 50%; background: rgba(var(--accent-rgb), .12); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { position: relative; }

/* ---------- Content pages (CMS HTML) ---------- */
.prose { font-size: 1.03rem; color: var(--ink-soft); }
.prose h2, .prose h3, .prose h4 { margin: 2rem 0 .8rem; color: var(--primary-900); }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.12rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose ul li::marker { color: var(--accent-600); }
.prose ol li::marker { color: var(--primary); font-weight: 700; }
.prose strong { color: var(--primary-900); }
.prose img { border-radius: 12px; height: auto !important; }
.prose figure { margin: 1.5rem 0; }
.prose figure.table, .prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th { background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; }
.prose th strong { color: #fff; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--accent-50); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }

.facts-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: -1.5rem; position: relative; z-index: 2; }
.fact { display: flex; gap: .8rem; align-items: center; background: #fff; padding: 1rem 1.2rem; }
.fact i { font-size: 1.4rem; color: var(--accent-600); }
.fact span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact strong { font-family: var(--font-head); color: var(--primary-900); }
.page-hero + .section .facts-bar { margin-top: -4.5rem; }

.course-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--accent-50); border: 1px solid var(--accent-border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 2.5rem; }

.sidebar-sticky { top: 100px; z-index: 1; }

/* ---------- Forms ---------- */
.enquiry-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--primary-900); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 10px; border-color: var(--input-border); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .12); }
.mode-toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.mode-toggle .btn { border: 0; padding: .4rem 1.1rem; font-size: .9rem; color: var(--muted); }
.mode-toggle .btn-check:checked + .btn { background: var(--primary); color: #fff; }
.enquiry-summary { background: #f8f9fa; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-left: 0; margin-right: 0; }
.enquiry-summary dt { font-weight: 600; }
.enquiry-summary dd { word-break: break-word; white-space: pre-line; }
.enquiry-track { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.enquiry-track li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 500; }
.enquiry-track li.done { color: var(--primary-900); }
.enquiry-track .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.enquiry-track li.done .dot { background: var(--primary-900); border-color: var(--primary-900); color: #fff; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.info-panel { background: var(--bg-soft); border-radius: 20px; padding: 1.75rem; }
.info-row { display: flex; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.info-row i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.info-row .bi-whatsapp { color: #1fa855; }
.info-row small { display: block; color: var(--muted); font-size: .78rem; }
.info-row span { font-weight: 600; }
.steps { padding-left: 1.2rem; margin: 1rem 0 0; }
.steps li { margin-bottom: .6rem; }

.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.office-card h2 i { color: var(--accent-600); }
.office-card p { color: var(--muted); }
.office-card i { color: var(--primary); }

/* ---------- Result ---------- */
.result-search { background: var(--bg-soft); border-radius: 20px; padding: 1.75rem; border: 1px solid var(--line); }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.result-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.result-photo { width: 110px; height: 130px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.result-head dl { margin: 0; display: grid; gap: .4rem; }
.result-head dl div { display: flex; gap: .75rem; }
.result-head dt { width: 110px; font-weight: 500; color: var(--muted); }
.result-head dd { margin: 0; font-weight: 700; color: var(--primary-900); }
.result-table thead th { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-900); color: var(--on-dark-muted); padding-top: 4.5rem; font-size: .94rem; }
.footer-logo { background: #fff; border-radius: 12px; padding: .5rem .8rem; height: 62px; width: auto; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links, .footer-contact, .footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--accent); margin-top: .15rem; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-hours li { padding: .15rem 0; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.footer-social a:hover { background: var(--accent); color: var(--on-accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3.5rem; padding: 1.25rem 0; font-size: .85rem; }

/* ---------- Floating buttons ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: .6rem; z-index: 1040; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transition: transform .2s; }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-whatsapp { background: #25d366; }
.float-call { background: var(--primary); font-size: 1.3rem; }

/* ---------- Pagination ---------- */
.pagination { --bs-pagination-color: var(--primary); --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-border-radius: 10px; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .navbar-brand img { height: 42px; }
    .about-media { padding: 0 1.25rem 1.5rem 0; }
    .about-badge strong { font-size: 1.6rem; }
    .batch-dates { grid-template-columns: 1fr; }
    .enquiry-card, .result-card, .info-panel, .result-search { padding: 1.25rem; }
    .page-hero { padding: 2.25rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
