/* ==========================================================================
   Infratech Skills Verse — main stylesheet
   Brand: orange + charcoal (from the course catalogue & flyers)
   ========================================================================== */

:root {
  --brand: #f47b20;
  --brand-600: #dc6410;
  --brand-700: #b84f08;
  --brand-50: #fff4ea;
  --brand-100: #ffe4cc;
  --accent: #ffb400;
  --ink: #15161b;
  --ink-2: #23252d;
  --ink-3: #30333d;
  --text: #2b2d35;
  --muted: #646a7a;
  --line: #e6e7ec;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --success: #1f9d55;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(21, 22, 27, .06), 0 2px 8px rgba(21, 22, 27, .04);
  --shadow: 0 6px 24px rgba(21, 22, 27, .08);
  --shadow-lg: 0 18px 48px rgba(21, 22, 27, .14);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 76px;

  --bs-primary: var(--brand);
  --bs-primary-rgb: 244, 123, 32;
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-700);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--line);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--font-head); color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; }
::selection { background: var(--brand-100); }
.text-brand { color: var(--brand) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #d7d9e0; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4, .bg-ink h5 { color: #fff; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .7rem 1.25rem; transition: all .2s ease; }
.btn-sm { padding: .45rem .85rem; border-radius: 8px; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(244, 123, 32, .28); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand-600); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-outline-light-2 { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light-2:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1eb457; color: #fff; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-title { font-size: clamp(1.7rem, 2.6vw + .6rem, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: .9rem; }
.section-title .hl { color: var(--brand); }
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 640px; }
.section-head.text-center .section-lead { margin-inline: auto; }
.section-head.text-center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9ccd6; font-size: .84rem; }
.topbar a { color: #e9eaef; }
.topbar a:hover { color: var(--accent); }
.topbar .announce { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.topbar a, .topbar span { white-space: nowrap; }
.topbar .announce i { color: var(--accent); }

/* ---------- Navbar ---------- */
.site-nav { background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid transparent; min-height: var(--nav-h); transition: box-shadow .2s, border-color .2s; z-index: 1030; }
.site-nav.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-nav .navbar-brand img { height: 52px; width: auto; }
.site-nav .brand-text { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.25rem; }
.site-nav .nav-link { font-family: var(--font-head); font-weight: 600; font-size: .94rem; color: var(--ink-2); padding: .6rem .9rem !important; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-600); }
.site-nav .nav-link.active { background: var(--brand-50); }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; min-width: 260px; }
.site-nav .dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-weight: 500; font-size: .93rem; display: flex; align-items: center; gap: .6rem; }
.site-nav .dropdown-item i { color: var(--brand); width: 18px; text-align: center; }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--brand-50); color: var(--brand-700); }
.nav-call { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; line-height: 1.15; }
.nav-call .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.05rem; }
.nav-call small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.navbar-toggler { border: 0; padding: .4rem; font-size: 1.6rem; color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .75rem 0 1rem; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; padding-left: .75rem; }
  .site-nav .navbar-brand img { height: 44px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero .carousel-item { min-height: 640px; }
.hero-slide { position: relative; min-height: 640px; display: flex; align-items: center; }
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 7s ease; }
.carousel-item.active .hero-slide .bg { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(15,16,20,.94) 0%, rgba(15,16,20,.82) 42%, rgba(15,16,20,.35) 75%, rgba(15,16,20,.2) 100%); }
.hero-slide .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 96px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(244,123,32,.16); border: 1px solid rgba(244,123,32,.45); color: #ffd4b0; font-weight: 600; font-size: .82rem; padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 3.6vw + .8rem, 3.9rem); font-weight: 800; line-height: 1.06; text-transform: uppercase; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--brand); display: block; }
.hero p.lead { color: #d6d8df; font-size: 1.12rem; max-width: 560px; margin: 1.2rem 0 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; color: #c8cbd4; font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: var(--accent); }
.hero .carousel-indicators { justify-content: flex-start; margin: 0; left: max(12px, calc((100vw - 1320px) / 2 + 12px)); right: auto; bottom: 36px; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.45); opacity: 1; }
.hero .carousel-indicators .active { background: var(--brand); width: 44px; }
.hero-form-wrap { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: flex; align-items: center; }
.hero-form-wrap .card-form { pointer-events: auto; }
@media (max-width: 991.98px) {
  .hero .carousel-item, .hero-slide { min-height: 520px; }
  .hero-form-wrap { position: static; background: var(--bg-soft); padding: 0 0 32px; }
  .hero-form-wrap .card-form { margin-top: -48px; position: relative; }
  .hero .carousel-indicators { bottom: 64px; }
}

/* ---------- Enquiry form card ---------- */
.card-form { background: #fff; color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.6rem; border-top: 5px solid var(--brand); }
.card-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .2rem; }
.card-form .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.form-control, .form-select { border-radius: 10px; border-color: #dcdee5; padding: .68rem .9rem; font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(244,123,32,.18); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: .85rem; padding: 1.4rem 0; }
.trust-item .ic { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.35rem; }
.trust-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.trust-item span { color: var(--muted); font-size: .84rem; }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(110deg, var(--brand-600), var(--brand) 55%, #ff9a3d); color: #fff; border-radius: 22px; padding: 2.2rem 1rem; box-shadow: 0 16px 40px rgba(244,123,32,.3); }
.stat { text-align: center; padding: .5rem; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 2.2vw + 1rem, 2.8rem); font-weight: 800; line-height: 1; }
.stat .lbl { margin-top: .45rem; font-weight: 500; color: rgba(255,255,255,.9); font-size: .95rem; }
.stat i { font-size: 1.4rem; opacity: .85; display: block; margin-bottom: .5rem; }

/* ---------- Filter pills ---------- */
.pill-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-tabs .pill { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; transition: all .15s; }
.pill-tabs .pill i { color: var(--brand); }
.pill-tabs .pill:hover { border-color: var(--brand); color: var(--brand-700); }
.pill-tabs .pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-tabs .pill.active i { color: var(--accent); }
@media (max-width: 767.98px) {
  .pill-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
  .pill-tabs::-webkit-scrollbar { display: none; }
  .pill-tabs .pill { white-space: nowrap; }
}

/* ---------- Course card ---------- */
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.course-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .media img { transform: scale(1.05); }
.course-card .media .placeholder-ic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); font-size: 3rem; }
.course-card .chip-cat { position: absolute; left: 12px; top: 12px; background: rgba(21,22,27,.82); color: #fff; font-size: .74rem; font-weight: 600; padding: .32rem .65rem; border-radius: 999px; display: inline-flex; gap: .35rem; align-items: center; backdrop-filter: blur(4px); }
.course-card .chip-cat i { color: var(--accent); }
.course-card .chip-badge { position: absolute; right: 12px; top: 12px; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; padding: .3rem .6rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.course-card .body { padding: 1.2rem 1.25rem .6rem; flex: 1; display: flex; flex-direction: column; }
.course-card .code { font-family: var(--font-head); font-size: .75rem; font-weight: 800; color: var(--brand-600); letter-spacing: .08em; text-transform: uppercase; }
.course-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: .25rem 0 .5rem; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a:hover { color: var(--brand-600); }
.course-card .desc { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .84rem; color: var(--ink-3); margin-top: auto; }
.course-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course-meta i { color: var(--brand); }
.cert-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.cert-tag { font-size: .72rem; font-weight: 600; color: var(--success); background: #e9f7ef; border-radius: 6px; padding: .2rem .5rem; display: inline-flex; align-items: center; gap: .25rem; }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.25rem 1.2rem; border-top: 1px dashed var(--line); margin-top: .9rem; }
.price small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.price strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); font-weight: 800; }

/* ---------- Category tiles ---------- */
.cat-tile { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--ink); height: 100%; transition: all .2s; }
.cat-tile .ic { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.45rem; transition: all .2s; }
.cat-tile strong { font-family: var(--font-head); font-size: .98rem; display: block; }
.cat-tile span { color: var(--muted); font-size: .82rem; }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile:hover .ic { background: var(--brand); color: #fff; }

/* ---------- Feature / why choose ---------- */
.feature { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: all .2s; }
.feature:hover { box-shadow: var(--shadow); border-color: transparent; }
.feature .ic { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; }
.feature h4 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.about-media { position: relative; }
.about-media img.main { border-radius: 20px; width: 100%; aspect-ratio: 4/3.2; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-media .badge-float { position: absolute; left: -18px; bottom: -22px; background: var(--ink); color: #fff; border-radius: 16px; padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .85rem; max-width: 290px; }
.about-media .badge-float i { font-size: 2rem; color: var(--accent); }
.about-media .badge-float strong { font-family: var(--font-head); display: block; font-size: 1rem; }
.about-media .badge-float span { color: #b9bcc7; font-size: .82rem; }
.about-media::before { content: ""; position: absolute; right: -16px; top: -16px; width: 140px; height: 140px; background-image: radial-gradient(var(--brand) 2px, transparent 2px); background-size: 16px 16px; opacity: .45; z-index: -1; }
@media (max-width: 575.98px) { .about-media .badge-float { left: 12px; } }

/* ---------- Accreditations ---------- */
.accr { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); height: 100%; }
.accr img { height: 48px; width: auto; }
.accr .ic { flex: 0 0 48px; height: 48px; border-radius: 50%; background: rgba(244,123,32,.15); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; }
.accr strong { color: #fff; font-family: var(--font-head); display: block; }
.accr span { color: #aeb2be; font-size: .85rem; }

/* ---------- Branch card ---------- */
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.branch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.branch-card .map { aspect-ratio: 16/9; background: var(--bg-soft); position: relative; }
.branch-card .map iframe, .branch-card .map img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.branch-card .body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.branch-card .city { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.branch-card h3 { font-size: 1.25rem; margin: .2rem 0 .8rem; }
.branch-card .label { font-size: .7rem; font-weight: 700; background: var(--accent); color: var(--ink); border-radius: 6px; padding: .2rem .5rem; vertical-align: middle; margin-left: .35rem; text-transform: uppercase; }
.info-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.info-list li { display: flex; gap: .7rem; padding: .35rem 0; color: var(--ink-3); font-size: .93rem; }
.info-list i { color: var(--brand); margin-top: .15rem; }
.info-list a { color: var(--ink-3); }
.info-list a:hover { color: var(--brand-600); }
.team-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.team-chip { font-size: .78rem; background: var(--bg-soft); border-radius: 999px; padding: .3rem .7rem; color: var(--ink-3); }
.team-chip b { color: var(--ink); font-weight: 600; }
.branch-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

/* ---------- Team ---------- */
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1rem; height: 100%; transition: all .2s; }
.team-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 0 0 5px var(--brand-50); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.team-card .role { color: var(--brand-600); font-weight: 600; font-size: .86rem; }
.team-card .loc { color: var(--muted); font-size: .8rem; margin-top: .35rem; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 4 260px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin-bottom: 14px; position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; display: block; background: var(--bg-soft); border: 0; padding: 0; width: 100%; }
.gallery-item img { width: 100%; display: block; transition: transform .45s ease; }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .8rem; background: linear-gradient(transparent, rgba(10,10,14,.85)); color: #fff; font-size: .88rem; font-weight: 600; text-align: left; opacity: 0; transform: translateY(8px); transition: all .25s; }
.gallery-item .cap small { display: block; color: var(--accent); font-weight: 500; font-size: .74rem; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: none; }
.gallery-item.is-hidden { display: none; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gallery-strip .gallery-item { margin: 0; height: 100%; }
.gallery-strip .gallery-item img { height: 100%; object-fit: cover; }
.gallery-strip .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767.98px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.lightbox .modal-content { background: transparent; border: 0; }
body:has(.lightbox.show) .modal-backdrop.show { opacity: .92; }
.lightbox .modal-dialog { max-width: min(1100px, 94vw); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: 12px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: .8rem; font-weight: 500; }
.lightbox .lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: var(--brand); }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-close { position: fixed; top: 16px; right: 16px; transform: none; }

/* ---------- Testimonials ---------- */
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; position: relative; }
.testi::before { content: "\201C"; position: absolute; right: 18px; top: -6px; font-family: Georgia, serif; font-size: 5rem; color: var(--brand-100); line-height: 1; }
.testi .stars { color: var(--accent); margin-bottom: .6rem; }
.testi p { color: var(--ink-3); }
.testi .who { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.testi .who .avatar { width: 46px; height: 46px; font-size: 1rem; margin: 0; box-shadow: none; }
.testi .who strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.testi .who span { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { font-family: var(--font-head); font-weight: 600; color: var(--ink); padding: 1.05rem 1.2rem; font-size: .98rem; }
.faq .accordion-button:not(.collapsed) { background: var(--brand-50); color: var(--brand-700); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(244,123,32,.18); }
.faq .accordion-body { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); border-radius: 24px; padding: 3rem; overflow: hidden; color: #cfd2db; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; background: var(--brand); transform: rotate(35deg); opacity: .95; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.cta-band::after { content: ""; position: absolute; left: 30px; bottom: 20px; width: 120px; height: 70px; background-image: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2px); background-size: 14px 14px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-weight: 800; }
@media (max-width: 767.98px) { .cta-band { padding: 2rem 1.4rem; } .cta-band::before { width: 160px; height: 160px; } }

/* ---------- Page header ---------- */
.page-header { position: relative; background: var(--ink); color: #fff; padding: 72px 0 64px; overflow: hidden; }
.page-header .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-header::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; background: var(--brand); transform: rotate(45deg); opacity: .9; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); font-weight: 800; margin-bottom: .6rem; }
.page-header p { color: #c9ccd6; max-width: 680px; font-size: 1.05rem; margin: 0; }
.breadcrumb { margin-bottom: 1rem; font-size: .86rem; }
.breadcrumb a { color: #e3e5ea; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: #8b8f9b; }
@media (max-width: 767.98px) { .page-header::after { width: 180px; height: 180px; right: -90px; bottom: -90px; } }

/* ---------- Course detail ---------- */
.course-hero { background: var(--ink); color: #d6d8df; padding: 56px 0 0; position: relative; overflow: hidden; }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 2.4vw + 1rem, 2.9rem); font-weight: 800; }
.course-hero .code { display: inline-block; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; letter-spacing: .08em; border-radius: 6px; padding: .25rem .6rem; font-size: .8rem; margin-bottom: .8rem; }
.course-hero .hero-img { border-radius: 18px 18px 0 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 2rem; margin-bottom: -48px; position: relative; z-index: 3; }
.fact { padding: 1.1rem 1.25rem; display: flex; gap: .8rem; align-items: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact i { font-size: 1.4rem; color: var(--brand); }
.fact small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fact strong { color: var(--ink); font-family: var(--font-head); font-size: 1rem; }
@media (max-width: 767.98px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.content-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.content-block h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.content-block h2 i { color: var(--brand); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 575.98px) { .check-list.cols-2 { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: .6rem; color: var(--ink-3); }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--success); font-size: 1.05rem; line-height: 1.4; }
.module-list { list-style: none; padding: 0; margin: 0; counter-reset: mod; display: grid; gap: .65rem; }
.module-list li { counter-increment: mod; display: flex; align-items: center; gap: .9rem; background: var(--bg-soft); border-radius: 10px; padding: .8rem 1rem; font-weight: 500; color: var(--ink-2); }
.module-list li::before { content: counter(mod, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: .95rem; min-width: 28px; }
.fee-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fee-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.fee-table td { padding: .9rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table .fee { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.sticky-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.side-price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.side-price strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.side-price small { color: var(--muted); }
.rich-text p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-tile { display: flex; gap: .9rem; padding: 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.contact-tile .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.contact-tile small { color: var(--muted); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-tile a, .contact-tile strong { color: var(--ink); font-weight: 600; }
.map-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9adb9; font-size: .93rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.site-footer h5 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.site-footer a { color: #c9ccd6; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo img { height: 58px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .3rem 0; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-links a::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; color: var(--brand); }
.social { display: flex; gap: .5rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; transition: all .2s; }
.social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #8a8e9a; }
.footer-centre { margin-bottom: 1rem; }
.footer-centre strong { color: #fff; display: block; font-size: .92rem; }
.footer-centre span { font-size: .85rem; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; }
.float-actions a, .float-actions button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; color: #fff; box-shadow: var(--shadow-lg); border: 0; transition: transform .2s; }
.float-actions a:hover, .float-actions button:hover { transform: scale(1.07); color: #fff; }
.float-actions .wa { background: #25d366; }
.float-actions .top { background: var(--ink); font-size: 1.1rem; width: 44px; height: 44px; margin-left: 5px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-actions .top.show { opacity: 1; pointer-events: auto; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.1); display: none; grid-template-columns: 1fr 1fr 1.3fr; }
.mobile-cta a { padding: .8rem .4rem; text-align: center; font-weight: 600; font-size: .85rem; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.mobile-cta a i { font-size: 1.15rem; color: var(--brand); }
.mobile-cta a.primary { background: var(--brand); color: #fff; }
.mobile-cta a.primary i { color: #fff; }
@media (max-width: 767.98px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 64px; }
  .float-actions { bottom: 80px; }
  .float-actions .wa { display: none; }
}

/* ---------- Alerts ---------- */
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; left: 16px; z-index: 1060; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.flash-wrap .alert { pointer-events: auto; max-width: 460px; width: 100%; border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); }
.alert-success { background: #e9f7ef; color: #14623a; }
.alert-error, .alert-danger { background: #fdecec; color: #8a1f1f; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide .bg { transition: none; }
}

/* ---------- Cookie consent banner ---------- */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050; max-width: 760px; margin: 0 auto; background: var(--ink); color: #c9ccd6; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; transform: translateY(140%); transition: transform .35s ease; border-top: 3px solid var(--brand); }
.consent-banner.show { transform: none; }
.consent-banner strong { color: #fff; display: block; margin-bottom: .15rem; font-family: var(--font-head); font-size: .95rem; }
.consent-banner span { font-size: .85rem; line-height: 1.45; }
.consent-banner a { color: var(--accent); }
.consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }
@media (max-width: 767.98px) {
  .consent-banner { flex-direction: column; align-items: stretch; bottom: 76px; left: 10px; right: 10px; padding: .9rem 1rem; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Nearest centre ---------- */
.nearest-centre { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.nearest-centre.text-start { align-items: flex-start; }
.nearest-result:empty { display: none; }
.nearest-result { width: 100%; max-width: 560px; }
.nearest-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); text-align: left; }
.nearest-head { display: flex; gap: .85rem; align-items: center; margin-bottom: .85rem; }
.nearest-head .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.nearest-head small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.nearest-head strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.nearest-head span { color: var(--brand-600); font-weight: 600; font-size: .9rem; }
.nearest-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.nearest-others { margin-top: .8rem; font-size: .84rem; color: var(--muted); }
.nearest-others a { margin-left: .5rem; font-weight: 600; }
.nearest-msg { background: var(--brand-50); color: var(--ink-2); border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; text-align: left; }

/* ---------- Candidate portal ---------- */
.auth-wrap { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 56px 16px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem; border-top: 5px solid var(--brand); }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: .4rem; }
.portal-head { background: var(--ink); color: #c9ccd6; padding: 28px 0 0; }
.portal-head .container { display: flex; flex-direction: column; gap: 18px; }
.portal-id { display: flex; align-items: center; gap: 14px; }
.portal-id small { color: var(--accent); font-weight: 600; font-size: .8rem; }
.portal-id h1 { color: #fff; font-size: clamp(1.4rem, 2vw + .8rem, 2rem); font-weight: 800; margin: 0; }
.portal-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--brand); color: #fff; font: 800 1.1rem var(--font-head); }
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-avatar.lg { flex-basis: 64px; width: 64px; height: 64px; font-size: 1.3rem; }
.portal-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.portal-nav a, .portal-nav button { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; color: #c9ccd6; font-weight: 600; font-size: .92rem; border: 0; background: none; border-bottom: 3px solid transparent; }
.portal-nav a:hover, .portal-nav button:hover { color: #fff; }
.portal-nav a.on { color: #fff; border-bottom-color: var(--brand); }
.portal-nav form { margin-left: auto; }
.portal-nav .pct { font-size: .72rem; background: rgba(255,255,255,.12); padding: .1rem .4rem; border-radius: 6px; }
.portal-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ptile { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.ptile .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.2rem; }
.ptile .ic.warn { background: #fdecec; color: #c0392b; } .ptile .ic.ok { background: #e9f7ef; color: var(--success); }
.ptile b { display: block; font: 800 1.35rem/1.1 var(--font-head); }
.ptile small { color: var(--muted); }
.ptile > div { flex: 1; }
.pbar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.pbar i { display: block; height: 100%; background: var(--brand); }
.pbar.ok i { background: var(--success); } .pbar.fee i { background: #d39b2a; }
.portal-alert { display: flex; gap: 12px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: .93rem; }
.portal-alert > i { font-size: 1.3rem; color: var(--brand); }
.portal-alert > div { flex: 1; }
.enroll-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.enroll-card .thumb { width: 120px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; color: var(--brand); font-size: 2rem; }
.enroll-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.enroll-card .cat { color: var(--brand-600); font-weight: 600; font-size: .78rem; }
.enroll-card h2 { font-size: 1.1rem; margin: .15rem 0 .4rem; }
.enroll-card h2 a { color: var(--ink); }
.enroll-card .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--ink-3); }
.enroll-card .meta i { color: var(--brand); margin-right: .3rem; }
.enroll-card .act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.enroll-card .due { color: #c0392b; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-chip, .fee-chip, .doc-chip { font-size: .75rem; font-weight: 700; padding: .28rem .65rem; border-radius: 99px; white-space: nowrap; }
.st-to_be_started { background: #eef2ff; color: #3949ab; } .st-in_progress { background: var(--brand-50); color: var(--brand-700); }
.st-completed, .st-certificate_issued { background: #e9f7ef; color: #14623a; } .st-on_hold, .st-dropped { background: #f1f2f4; color: #555; }
.fee-unpaid { background: #fdecec; color: #8a1f1f; } .fee-partial { background: #fff6df; color: #8a5a00; } .fee-paid { background: #e9f7ef; color: #14623a; } .fee-waived, .fee-refunded { background: #f1f2f4; color: #555; }
.doc-pending { background: #fff6df; color: #8a5a00; } .doc-verified { background: #e9f7ef; color: #14623a; } .doc-rejected { background: #fdecec; color: #8a1f1f; } .doc-none { background: #f1f2f4; color: #666; }
.portal-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-facts small, .fee-sum small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.portal-facts b { font-size: .98rem; }
.fee-sum { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.fee-sum b { font: 800 1.25rem var(--font-head); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 16px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.timeline b { display: block; font-size: .93rem; } .timeline small { color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: sticky; top: calc(var(--nav-h) + 16px); }
.profile-side .who { display: flex; gap: 12px; align-items: center; }
.profile-side .who b { display: block; } .profile-side .who small { color: var(--muted); overflow-wrap: anywhere; }
.profile-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.profile-nav a { display: flex; gap: .6rem; align-items: center; padding: .6rem .75rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.profile-nav a i { color: var(--brand); }
.profile-nav a.on { background: var(--brand-50); color: var(--brand-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.profile-side .missing { margin-top: 14px; font-size: .84rem; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.profile-side .missing ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.qual-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.6fr .8fr .8fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qual-row .del { padding-bottom: 8px; }
.qual-row .errs { grid-column: 1 / -1; color: #c0392b; font-size: .82rem; }
.doc-list { border: 1px solid var(--line); border-radius: 12px; }
.doc-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .name small { display: block; color: var(--muted); }
.doc-row .state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 991.98px) { .profile-grid { grid-template-columns: 1fr; } .profile-side { position: static; } .qual-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) {
  .portal-tiles { grid-template-columns: 1fr; }
  .enroll-card { grid-template-columns: 84px minmax(0, 1fr); }
  .enroll-card .thumb { width: 84px; }
  .enroll-card .act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .portal-facts { grid-template-columns: 1fr 1fr; }
  .portal-nav form { margin-left: 0; }
  .portal-alert { flex-wrap: wrap; }
  .doc-row { flex-direction: column; align-items: flex-start; }
  .doc-row .state { justify-content: flex-start; }
}

/* ---------- Mobile fixes (≤ 767px) ---------- */
@media (max-width: 991.98px) {
  /* Enquiry card sits above the carousel instead of sliding under it */
  .hero-form-wrap { position: relative; z-index: 6; }
  .hero-form-wrap .card-form { z-index: 6; }
  /* Leave room for the sticky mobile action bar when the menu is open */
  .site-nav .navbar-collapse { padding-bottom: 84px; }
}
@media (max-width: 767.98px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  /* Hero: tighter text, keep slide indicators clear of the trust list */
  .hero-slide .container { padding-top: 40px; padding-bottom: 110px; }
  .hero p.lead { font-size: 1rem; margin: .9rem 0 1.3rem; }
  .hero-trust { gap: .5rem 1rem; margin-top: 1.25rem; font-size: .84rem; }
  .hero .carousel-indicators { bottom: 72px; }

  /* Page header: decorative triangle must not sit behind the text */
  .page-header { padding: 48px 0 56px; }
  .page-header::after { width: 110px; height: 110px; right: -60px; bottom: -60px; }

  /* About photo badge: place below the photo instead of covering it */
  .about-media .badge-float { position: relative; left: auto; bottom: auto; margin: 12px 0 0; max-width: none; box-shadow: var(--shadow); }
  .about-media::before { display: none; }

  /* CTA band: decorative shapes must not cover buttons */
  .cta-band::after { display: none; }
  .cta-band::before { width: 110px; height: 110px; right: -40px; top: -40px; }

  /* Course facts: certification gets a full-width row */
  .fact:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .fact:nth-child(3) { border-right: 0; }

  /* Fee table becomes stacked cards (no hidden fee column) */
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table td { display: block; width: 100%; }
  .fee-table tr { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; margin-bottom: .75rem; display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; }
  .fee-table td { border: 0 !important; padding: 0 !important; }
  .fee-table td:nth-child(1) { grid-column: 1 / -1; }
  .fee-table td:nth-child(2) { color: var(--muted); font-size: .88rem; }
  .fee-table td.fee { grid-column: 1; }
  .fee-table td:last-child { grid-column: 2; grid-row: 2 / span 2; }
  .content-block .table-responsive { overflow: visible; }

  /* Team cards */
  .avatar { width: 68px; height: 68px; font-size: 1.35rem; }
  .team-card { padding: 1.1rem .6rem; }
  .team-card h4 { font-size: .92rem; }

  /* Floating back-to-top would cover content; the bottom bar replaces it */
  .float-actions { display: none; }

  .content-block { padding: 1.2rem; }
  .card-form { padding: 1.25rem; }
}

/* ---------- Empty states / misc ---------- */
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty i { font-size: 2.4rem; color: var(--brand); display: block; margin-bottom: .6rem; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.error-page .code { font-family: var(--font-head); font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; color: var(--brand); line-height: 1; }
