/* AirCrewU design system — builds on Bootstrap 5.3 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --acu-navy: #0B1F3A;
  --acu-navy-2: #12305a;
  --acu-blue: #1264A3;
  --acu-blue-dark: #0d4f82;
  --acu-sky: #0EA5E9;
  --acu-bg: #F5F8FC;
  --acu-text: #172B4D;
  --acu-muted: #64748B;
  --acu-border: #E2E8F0;
  --acu-orange: #F59E0B;
  --acu-orange-dark: #b45309;
  --acu-green: #16A34A;
  --acu-radius: 14px;
  --acu-radius-sm: 10px;
  --acu-shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 4px 16px rgba(11, 31, 58, .06);
  --acu-shadow-lg: 0 10px 30px rgba(11, 31, 58, .12);
  --acu-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --acu-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bs-body-font-family: var(--acu-font-body);
  --bs-body-color: var(--acu-text);
  --bs-body-bg: #fff;
  --bs-primary: #1264A3;
  --bs-primary-rgb: 18, 100, 163;
  --bs-link-color: #1264A3;
  --bs-link-color-rgb: 18, 100, 163;
  --bs-link-hover-color: #0d4f82;
  --bs-link-hover-color-rgb: 13, 79, 130;
  --bs-border-color: #E2E8F0;
  --bs-secondary-color: #64748B;
  --bs-focus-ring-color: rgba(14, 165, 233, .45);
}

/* Academy accents (thumbnails, icons) */
.ac-pilot-training { --ac: #1264A3; --ac-soft: #e3effa; }
.ac-cabin-crew { --ac: #0e7490; --ac-soft: #dff4f8; }
.ac-aircraft-maintenance { --ac: #475569; --ac-soft: #eaeef3; }
.ac-flight-dispatch { --ac: #4338ca; --ac-soft: #e8e7fb; }
.ac-airport-ground-operations { --ac: #15803d; --ac-soft: #e2f4e8; }
.ac-airline-operations-control { --ac: #7c3aed; --ac-soft: #efe7fd; }
.ac-aviation-safety-compliance { --ac: #b45309; --ac-soft: #fcf0de; }
[class*="ac-"] { --ac: var(--acu-blue); }

body { font-family: var(--acu-font-body); color: var(--acu-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .font-head { font-family: var(--acu-font-head); color: var(--acu-navy); letter-spacing: -.01em; }
h1, .h1 { font-weight: 700; }
h2, .h2, h3, .h3 { font-weight: 600; }
.text-muted, .text-body-secondary { color: var(--acu-muted) !important; }
a { text-underline-offset: .15em; }
.bg-soft { background: var(--acu-bg); }
.bg-navy { background: var(--acu-navy); color: #fff; }
.text-navy { color: var(--acu-navy) !important; }
.text-sky { color: var(--acu-sky) !important; }
.text-orange { color: var(--acu-orange-dark) !important; }
.fw-semi { font-weight: 600; }
.small-caps { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* Focus visibility (WCAG 2.2) */
:focus-visible { outline: 3px solid var(--acu-sky); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(14, 165, 233, .35); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: #fff; color: var(--acu-navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; box-shadow: var(--acu-shadow-lg); }
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; padding: .6rem 1.15rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: .35rem .75rem; border-radius: 8px; }
.btn-primary { --bs-btn-bg: var(--acu-blue); --bs-btn-border-color: var(--acu-blue); --bs-btn-hover-bg: var(--acu-blue-dark); --bs-btn-hover-border-color: var(--acu-blue-dark); --bs-btn-active-bg: var(--acu-blue-dark); --bs-btn-disabled-bg: var(--acu-blue); --bs-btn-disabled-border-color: var(--acu-blue); }
.btn-outline-primary { --bs-btn-color: var(--acu-blue); --bs-btn-border-color: var(--acu-blue); --bs-btn-hover-bg: var(--acu-blue); --bs-btn-hover-border-color: var(--acu-blue); --bs-btn-active-bg: var(--acu-blue-dark); }
.btn-accent { --bs-btn-color: #1c1300; --bs-btn-bg: var(--acu-orange); --bs-btn-border-color: var(--acu-orange); --bs-btn-hover-color: #1c1300; --bs-btn-hover-bg: #fbbf24; --bs-btn-hover-border-color: #fbbf24; --bs-btn-active-bg: #d97706; --bs-btn-active-color: #1c1300; }
.btn-navy { --bs-btn-color: #fff; --bs-btn-bg: var(--acu-navy); --bs-btn-border-color: var(--acu-navy); --bs-btn-hover-bg: var(--acu-navy-2); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--acu-navy-2); }
.btn-ghost-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.4); --bs-btn-hover-bg: rgba(255,255,255,.12); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--acu-navy); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .navbar { padding-top: .55rem; padding-bottom: .55rem; }
.site-header .nav-link { color: rgba(255,255,255,.86); font-weight: 500; font-size: .95rem; padding: .55rem .8rem !important; border-radius: 8px; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link.active, .site-header .show > .nav-link { color: #fff; background: rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-family: var(--acu-font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand .brand-u { color: var(--acu-sky); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.header-search { position: relative; }
.header-search .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; padding-left: 2.3rem; border-radius: 999px; min-width: 220px; }
.header-search .form-control::placeholder { color: rgba(255,255,255,.62); }
.header-search .form-control:focus { background: #fff; color: var(--acu-text); }
.header-search .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.7); pointer-events: none; }
.header-search .form-control:focus + .bi, .header-search:focus-within .bi { color: var(--acu-muted); }

.mega-menu { width: min(980px, calc(100vw - 2rem)); border: 0; border-radius: var(--acu-radius); box-shadow: var(--acu-shadow-lg); padding: 1.25rem; margin-top: .6rem !important; }
.dropdown-menu.menu-panel { border: 0; border-radius: var(--acu-radius); box-shadow: var(--acu-shadow-lg); padding: .6rem; min-width: 260px; margin-top: .6rem !important; }
.menu-panel .dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 500; color: var(--acu-text); }
.menu-panel .dropdown-item:hover, .menu-panel .dropdown-item:focus { background: var(--acu-bg); color: var(--acu-blue); }
.mega-item { display: flex; gap: .85rem; padding: .75rem; border-radius: 12px; text-decoration: none; color: var(--acu-text); }
.mega-item:hover, .mega-item:focus-visible { background: var(--acu-bg); }
.mega-item .t { font-weight: 600; color: var(--acu-navy); line-height: 1.3; }
.mega-item .d { font-size: .82rem; color: var(--acu-muted); line-height: 1.4; }
.icon-tile { width: 44px; height: 44px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--ac-soft, #e3effa); color: var(--ac, var(--acu-blue)); }
.icon-tile.lg { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 14px; }
.offcanvas-nav { background: var(--acu-navy); color: #fff; }
.offcanvas-nav .nav-link, .offcanvas-nav .acc-btn { color: #fff; padding: .7rem 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.offcanvas-nav .acc-btn { background: none; border: 0; width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.offcanvas-nav .acc-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.offcanvas-nav .sub a { display: block; color: rgba(255,255,255,.8); padding: .45rem 0 .45rem .9rem; text-decoration: none; font-size: .95rem; }
.offcanvas-nav .sub a:hover { color: #fff; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head .eyebrow, .eyebrow { display: inline-block; color: var(--acu-blue); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .6rem; }
.section-head p { color: var(--acu-muted); font-size: 1.05rem; margin: 0; }

/* Hero */
.hero { background: var(--acu-navy); color: #fff; position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.1; margin-bottom: 1.1rem; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 560px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(14,165,233,.14); color: #bae6fd; border: 1px solid rgba(14,165,233,.3); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 1.2rem; }
.hero-search { background: #fff; border-radius: 14px; padding: .4rem; display: flex; gap: .4rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: 600px; }
.hero-search .form-control { border: 0; font-size: 1.02rem; padding: .7rem .9rem; }
.hero-search .form-control:focus { box-shadow: none; }
.hero-search .bi-search { color: var(--acu-muted); align-self: center; margin-left: .8rem; }
.hero-chips a { color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; text-decoration: none; display: inline-block; margin: 0 .35rem .45rem 0; }
.hero-chips a:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-visual { position: relative; }
.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.prof-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem; color: #fff; text-decoration: none; transition: background .2s, transform .2s; display: block; }
.prof-card:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.prof-card .bi { font-size: 1.5rem; color: var(--acu-sky); }
.prof-card .t { display: block; font-weight: 600; font-size: .9rem; margin-top: .45rem; line-height: 1.25; }
.prof-card .d { display: block; font-size: .76rem; color: rgba(255,255,255,.65); margin-top: .15rem; }
.prof-card.span-2 { grid-column: span 2; }
.hero-progress { background: #fff; color: var(--acu-text); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--acu-shadow-lg); }
.hero-progress .progress { height: 8px; }
.flight-path { position: absolute; right: -40px; top: -30px; width: 340px; opacity: .45; pointer-events: none; }

/* Cards */
.card { border-color: var(--acu-border); border-radius: var(--acu-radius); }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--acu-shadow-lg); transform: translateY(-3px); border-color: #cfdae8; }
.shadow-soft { box-shadow: var(--acu-shadow); }
.stretched-link:focus-visible::after { outline: 3px solid var(--acu-sky); outline-offset: 2px; border-radius: var(--acu-radius); }

.course-card { height: 100%; overflow: hidden; }
.course-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ac-soft); color: var(--ac); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.course-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.75) 0, transparent 40%), repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.35) 22px 23px); }
.course-thumb .bi { font-size: 3.1rem; position: relative; }
.course-thumb .thumb-band { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ac); }
.course-thumb .thumb-label { position: absolute; left: .75rem; top: .7rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--ac); padding: .2rem .5rem; border-radius: 6px; }
.course-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-card .card-title { font-size: 1.02rem; line-height: 1.35; margin-bottom: .35rem; }
.course-card .card-title a { color: var(--acu-navy); text-decoration: none; }
.course-card .meta { font-size: .82rem; color: var(--acu-muted); }
.course-card .price { font-family: var(--acu-font-head); font-weight: 700; color: var(--acu-navy); }
.course-card .price.free { color: var(--acu-green); }
.badge-level { font-weight: 600; font-size: .72rem; padding: .32em .6em; border-radius: 6px; }
.lvl-beginner { background: #e2f4e8; color: #166534; }
.lvl-intermediate { background: #e3effa; color: #0d4f82; }
.lvl-advanced { background: #fdecd3; color: #92400e; }
.badge-soft { background: var(--acu-bg); color: var(--acu-text); border: 1px solid var(--acu-border); font-weight: 500; }
.badge-demo { background: #fff7e6; color: #92400e; border: 1px dashed #f59e0b; font-weight: 600; font-size: .7rem; }
.rating { color: #b45309; font-weight: 600; font-size: .85rem; }

.academy-card { height: 100%; }
.academy-card .card-body { padding: 1.4rem; }
.academy-card h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.academy-card h3 a { color: var(--acu-navy); text-decoration: none; }
.academy-card .count { font-size: .83rem; color: var(--acu-muted); }

.program-card .card-body { padding: 1.4rem; }
.program-card .courses-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.program-card .courses-list li { padding: .3rem 0; display: flex; gap: .5rem; color: var(--acu-text); }
.program-card .courses-list .bi { color: var(--acu-sky); }

.career-card { height: 100%; }
.career-card .skills span { display: inline-block; background: var(--acu-bg); border: 1px solid var(--acu-border); color: var(--acu-text); font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; margin: 0 .25rem .3rem 0; }

.avatar { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ac-soft, #e3effa); color: var(--ac, var(--acu-blue)); font-family: var(--acu-font-head); font-weight: 600; font-size: 1.25rem; flex: none; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar.xl { width: 112px; height: 112px; font-size: 2rem; }

.feature-item .icon-tile { background: #e3effa; color: var(--acu-blue); }
.feature-item h3 { font-size: 1.02rem; margin: .9rem 0 .35rem; }
.feature-item p { color: var(--acu-muted); font-size: .93rem; margin: 0; }

.step { position: relative; padding: 1.5rem; background: #fff; border: 1px solid var(--acu-border); border-radius: var(--acu-radius); height: 100%; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--acu-navy); color: #fff; font-family: var(--acu-font-head); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

.testimonial { background: #fff; border: 1px solid var(--acu-border); border-radius: var(--acu-radius); padding: 1.5rem; height: 100%; position: relative; }
.testimonial blockquote { font-size: .98rem; color: var(--acu-text); margin: .75rem 0 1rem; }

.premium-band { background: var(--acu-navy); color: #fff; border-radius: 20px; padding: 3rem; position: relative; overflow: hidden; }
.premium-band h2 { color: #fff; }
.premium-band p, .premium-band li { color: rgba(255,255,255,.82); }
.premium-band .org-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .55rem .85rem; margin: 0 .5rem .6rem 0; font-weight: 500; color: #fff; }
.premium-band .org-chip .bi { color: var(--acu-sky); }

.post-card .cat { font-size: .75rem; font-weight: 600; color: var(--acu-blue); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.08rem; line-height: 1.35; }
.post-card h3 a { color: var(--acu-navy); text-decoration: none; }
.post-cover { aspect-ratio: 16/8; background: var(--acu-bg); border-bottom: 1px solid var(--acu-border); display: flex; align-items: center; justify-content: center; color: var(--acu-blue); font-size: 2.4rem; position: relative; overflow: hidden; }
.post-cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(18,100,163,.05) 18px 19px); }

/* Page header */
.page-hero { background: var(--acu-navy); color: #fff; padding: 2.75rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 760px; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); margin-bottom: 1rem; font-size: .88rem; }
.page-hero .breadcrumb a { color: #bae6fd; text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero.light { background: var(--acu-bg); color: var(--acu-text); }
.page-hero.light::before { display: none; }
.page-hero.light h1 { color: var(--acu-navy); }
.page-hero.light .lead { color: var(--acu-muted); }
.page-hero.light .breadcrumb { --bs-breadcrumb-divider-color: var(--acu-muted); --bs-breadcrumb-item-active-color: var(--acu-muted); }
.page-hero.light .breadcrumb a { color: var(--acu-blue); }

/* Catalog */
.filter-panel .filter-group { border-bottom: 1px solid var(--acu-border); padding: 1rem 0; }
.filter-panel .filter-group:first-child { padding-top: 0; }
.filter-panel legend, .filter-panel .filter-title { font-size: .92rem; font-weight: 600; color: var(--acu-navy); margin-bottom: .55rem; font-family: var(--acu-font-body); }
.filter-panel .form-check { margin-bottom: .3rem; font-size: .92rem; }
.filter-panel .form-check-label .count { color: var(--acu-muted); font-size: .8rem; }
.active-filters .badge { background: #e3effa; color: var(--acu-blue-dark); font-weight: 500; padding: .45em .7em; border-radius: 999px; text-decoration: none; }
.active-filters .badge:hover { background: #cde3f6; }

/* Course detail */
.course-hero { background: var(--acu-navy); color: #fff; padding: 2.5rem 0 3rem; }
.course-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.course-hero .subtitle { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.course-hero .meta-line { color: rgba(255,255,255,.78); font-size: .92rem; }
.course-hero .meta-line .bi { color: var(--acu-sky); }
.course-hero a { color: #bae6fd; }
.enroll-card { position: sticky; top: 90px; }
@media (min-width: 992px) { .enroll-card-wrap { margin-top: -15rem; } }
.outcomes li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.outcomes .bi { color: var(--acu-green); margin-top: .15rem; }
.curriculum .accordion-button { font-weight: 600; color: var(--acu-navy); background: var(--acu-bg); }
.curriculum .accordion-button:not(.collapsed) { box-shadow: none; background: #eaf2fb; }
.curriculum .lesson-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--acu-border); font-size: .93rem; }
.curriculum .lesson-row:last-child { border-bottom: 0; }
.notice-box { border-left: 4px solid var(--acu-orange); background: #fffbeb; padding: 1rem 1.15rem; border-radius: 0 10px 10px 0; font-size: .93rem; }
.info-box { border-left: 4px solid var(--acu-blue); background: #eff6fc; padding: 1rem 1.15rem; border-radius: 0 10px 10px 0; font-size: .93rem; }
.prose { font-size: 1.02rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: .8rem; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6rem; margin-bottom: .6rem; }
.prose table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--acu-border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--acu-bg); }
.prose blockquote { border-left: 4px solid var(--acu-sky); padding: .4rem 1rem; color: var(--acu-muted); margin: 1.2rem 0; }
.prose .placeholder-token { background: #fef3c7; color: #92400e; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; background: var(--acu-bg); padding: 3rem 0; }
.auth-card { max-width: 460px; margin: 0 auto; border-radius: 18px; }
.auth-card .card-body { padding: 2.25rem; }

/* Dashboard */
.dash-shell { background: var(--acu-bg); min-height: calc(100vh - 66px); }
.dash-sidebar { background: #fff; border-right: 1px solid var(--acu-border); }
.dash-sidebar .nav-link { color: var(--acu-text); border-radius: 10px; padding: .55rem .8rem; font-weight: 500; display: flex; align-items: center; gap: .65rem; font-size: .94rem; }
.dash-sidebar .nav-link .bi { color: var(--acu-muted); font-size: 1.05rem; }
.dash-sidebar .nav-link:hover { background: var(--acu-bg); }
.dash-sidebar .nav-link.active { background: #e3effa; color: var(--acu-blue-dark); }
.dash-sidebar .nav-link.active .bi { color: var(--acu-blue); }
.dash-sidebar .side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--acu-muted); font-weight: 600; padding: 1rem .8rem .35rem; }
@media (min-width: 992px) { .dash-sidebar { position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; } }
.stat-card { background: #fff; border: 1px solid var(--acu-border); border-radius: var(--acu-radius); padding: 1.15rem 1.25rem; height: 100%; }
.stat-card .v { font-family: var(--acu-font-head); font-size: 1.7rem; font-weight: 700; color: var(--acu-navy); line-height: 1.1; }
.stat-card .l { color: var(--acu-muted); font-size: .85rem; }
.progress { background: #e7edf5; border-radius: 999px; }
.progress-bar { background: var(--acu-blue); }
.progress-bar.bg-success { background: var(--acu-green) !important; }
.table > :not(caption) > * > * { padding: .75rem .8rem; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--acu-muted); font-weight: 600; background: var(--acu-bg); }

/* Course player */
.player-shell { display: flex; min-height: calc(100vh - 66px); background: #fff; }
.player-side { width: 340px; flex: none; border-right: 1px solid var(--acu-border); background: #fff; overflow-y: auto; max-height: calc(100vh - 66px); position: sticky; top: 66px; }
.player-main { flex: 1; min-width: 0; }
.player-side .mod-title { font-weight: 600; font-size: .9rem; color: var(--acu-navy); padding: .85rem 1rem; background: var(--acu-bg); border-bottom: 1px solid var(--acu-border); }
.player-side .lesson-link { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem 1rem; color: var(--acu-text); text-decoration: none; font-size: .9rem; border-bottom: 1px solid #f1f5f9; }
.player-side .lesson-link:hover { background: #f8fafc; }
.player-side .lesson-link.active { background: #e3effa; box-shadow: inset 3px 0 0 var(--acu-blue); font-weight: 600; }
.player-side .lesson-link .done { color: var(--acu-green); }
.player-side .lesson-link .todo { color: #cbd5e1; }
.player-side .lesson-link.locked { color: var(--acu-muted); }
.lesson-stage { background: var(--acu-navy); }
.lesson-stage .ratio { max-width: 1100px; margin: 0 auto; }
.lesson-body { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
@media (max-width: 991.98px) { .player-side { display: none; } }

/* Quiz */
.quiz-q { background: #fff; border: 1px solid var(--acu-border); border-radius: var(--acu-radius); padding: 1.4rem; margin-bottom: 1.1rem; }
.quiz-q .q-num { font-size: .78rem; font-weight: 600; color: var(--acu-blue); text-transform: uppercase; letter-spacing: .06em; }
.quiz-q .scenario { background: var(--acu-bg); border-radius: 10px; padding: .9rem 1rem; font-size: .95rem; margin: .6rem 0; }
.quiz-q .form-check { padding: .55rem .75rem .55rem 2.2rem; border: 1px solid var(--acu-border); border-radius: 10px; margin-bottom: .45rem; }
.quiz-q .form-check:hover { background: #f8fafc; }
.quiz-q .form-check-input { margin-left: -1.6rem; }
.quiz-timer { position: sticky; top: 76px; z-index: 5; }
.answer-correct { border-color: #86efac !important; background: #f0fdf4; }
.answer-wrong { border-color: #fca5a5 !important; background: #fef2f2; }

/* Certificate preview */
.cert-preview { border: 10px solid var(--acu-navy); outline: 2px solid var(--acu-orange); outline-offset: -18px; background: #fff; padding: 3rem 2.5rem; text-align: center; border-radius: 6px; }

/* Empty state & skeleton */
.empty-state { text-align: center; padding: 3rem 1.5rem; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--acu-radius); }
.empty-state .bi { font-size: 2.4rem; color: #94a3b8; }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f6f8fb 37%, #eef2f7 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Footer */
.site-footer { background: #081629; color: rgba(255,255,255,.72); padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer h2 { color: #fff; font-size: .95rem; font-family: var(--acu-font-body); font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); margin-right: .4rem; font-size: 1.05rem; }
.site-footer .social a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }

.newsletter-box { background: #fff; border: 1px solid var(--acu-border); border-radius: 20px; padding: 2.5rem; }
.toast-container { z-index: 1090; }

@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .premium-band { padding: 2rem 1.25rem; }
  .newsletter-box { padding: 1.5rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .prof-grid { grid-template-columns: repeat(2, 1fr); }
  .prof-card.span-2 { grid-column: span 2; }
  .auth-card .card-body { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
}

/* Header fit: keep nav labels on one line; show the inline search only on wide screens */
.site-header .nav-link, .site-header .btn { white-space: nowrap; }
.hs-wide { display: none; }
@media (min-width: 1600px) { .hs-wide { display: block; } .hs-narrow { display: none !important; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-header .nav-link { padding: .5rem .55rem !important; font-size: .9rem; } }
.course-crumbs .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 1rem; }
.course-crumbs .breadcrumb a { color: #bae6fd; text-decoration: none; }

/* WCAG non-text contrast for form controls */
.form-check-input { border-color: #7b8aa0; }
.form-control, .form-select { border-color: #cbd5e1; }
