/* ==========================================================================
   AQ English Academy — Design System
   Phase 1 foundation. Loaded on every frontend page via
   resources/views/frontend/layouts/app.blade.php.

   Conventions
   -----------
   - All values come from the custom properties in :root. No raw hex in rules.
   - Component classes are prefixed `aq-` where new; legacy class names are
     preserved verbatim because page-level @push('style') blocks and existing
     Blade markup depend on them.
   - The legacy aliases --primary / --secondary / --accent / --dark / --light
     MUST stay: several page views reference them directly.

   Docs: docs/DESIGN-SYSTEM.md
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
    /* --- Brand ------------------------------------------------------------ */
    --aq-primary: #0ea5e9;
    /* DECORATIVE ONLY: 2.77:1 behind white. Use -600/-ink behind text. */
    --aq-primary-600: #0279b8; /* was #0284c7 (4.10:1 behind white); now 4.74:1 */
    --aq-primary-ink: #0369a1;
    /* 5.6:1 on white — use for text/links */
    --aq-secondary: #8b5cf6;
    --aq-secondary-ink: #6d28d9;
    --aq-accent: #f59e0b;
    /* DECORATIVE ONLY: 2.15:1 behind white. Never a text background. */
    --aq-cta: #b45309;
    /* white text passes AA (4.7:1)        */
    --aq-cta-dark: #92400e;

    /* --- Neutrals --------------------------------------------------------- */
    --aq-ink: #0f172a;
    --aq-heading: #1e293b;
    --aq-body: #475569;
    --aq-muted: #5b6878;
    /* 5.7:1 on white, 5.2:1 on surface-2 — smallest safe grey */
    --aq-faint: #94a3b8;
    /* decorative / icons only            */
    --aq-line: #e2e8f0;
    --aq-surface: #ffffff;
    --aq-surface-2: #f1f5f9;
    --aq-surface-3: #f8fafc;

    /* --- Status ----------------------------------------------------------- */
    --aq-success: #047857;
    --aq-success-soft: rgba(5, 120, 87, .1);
    --aq-warn: #b45309;
    --aq-warn-soft: rgba(245, 158, 11, .14);
    --aq-danger: #dc2626;
    --aq-danger-soft: rgba(239, 68, 68, .08);
    --aq-info-soft: rgba(14, 165, 233, .1);

    /* --- Gradients -------------------------------------------------------- */
    --aq-grad-brand: linear-gradient(135deg, #0369a1, #6d28d9);
    --aq-grad-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #5b21b6 100%);
    --aq-grad-header: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 60%, #6d28d9 100%);
    --aq-grad-cta: linear-gradient(135deg, #b45309, #92400e);
    --aq-grad-dark: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --aq-grad-soft: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    --aq-grad-media: linear-gradient(135deg, #e0f2fe, #ede9fe);

    /* --- Typography ------------------------------------------------------- */
    --aq-font-sans: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --aq-font-display: 'Lora', 'Noto Sans Bengali', Georgia, 'Times New Roman', serif;
    --aq-font-bn: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;

    --aq-fs-xs: .8125rem;
    --aq-fs-sm: .9375rem;
    --aq-fs-base: 1rem;
    --aq-fs-lg: 1.125rem;
    --aq-fs-xl: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
    --aq-fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
    --aq-fs-3xl: clamp(1.85rem, 1.5rem + 1.8vw, 2.5rem);
    --aq-fs-4xl: clamp(2.1rem, 1.5rem + 3.2vw, 3.4rem);

    --aq-lh-tight: 1.2;
    --aq-lh-snug: 1.45;
    --aq-lh-base: 1.7;
    --aq-lh-loose: 1.85;

    /* --- Space (4px base) -------------------------------------------------- */
    --aq-space-1: .25rem;
    --aq-space-2: .5rem;
    --aq-space-3: .75rem;
    --aq-space-4: 1rem;
    --aq-space-5: 1.25rem;
    --aq-space-6: 1.5rem;
    --aq-space-8: 2rem;
    --aq-space-10: 2.5rem;
    --aq-space-12: 3rem;
    --aq-space-16: 4rem;
    --aq-space-20: 5rem;

    /* --- Radius ----------------------------------------------------------- */
    --aq-radius-sm: 10px;
    --aq-radius-md: 14px;
    --aq-radius-lg: 18px;
    --aq-radius-xl: 22px;
    --aq-radius-pill: 999px;

    /* --- Shadow ----------------------------------------------------------- */
    --aq-shadow-sm: 0 3px 10px rgba(15, 23, 42, .06);
    --aq-shadow-md: 0 8px 24px rgba(15, 23, 42, .07);
    --aq-shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
    --aq-shadow-xl: 0 24px 60px rgba(15, 23, 42, .22);
    --aq-shadow-brand: 0 8px 20px rgba(14, 165, 233, .3);
    --aq-shadow-cta: 0 8px 20px rgba(180, 83, 9, .35);

    /* --- Motion ----------------------------------------------------------- */
    --aq-dur: .25s;
    --aq-dur-slow: .4s;
    --aq-ease: cubic-bezier(.4, 0, .2, 1);

    /* --- Focus ------------------------------------------------------------ */
    --aq-focus: #0369a1;
    --aq-focus-light: #fbbf24;

    /* --- Layout ----------------------------------------------------------- */
    --aq-header-h: 78px;

    /* --- LEGACY ALIASES — do not remove --------------------------------- */
    --primary: #0ea5e9;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f1f5f9;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    /* `clip` (not `hidden`) — keeps position:sticky working on the navbar
       and the policy table of contents. */
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--aq-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--aq-font-sans);
    font-size: var(--aq-fs-base);
    line-height: var(--aq-lh-base);
    color: var(--aq-body);
    background: var(--aq-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe,
embed {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style-position: outside;
}

table {
    border-collapse: collapse;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--aq-heading);
    font-weight: 700;
    line-height: var(--aq-lh-snug);
    text-wrap: balance;
}

h1 {
    font-family: var(--aq-font-display);
    font-size: var(--aq-fs-4xl);
    line-height: var(--aq-lh-tight);
}

h2 {
    font-family: var(--aq-font-display);
    font-size: var(--aq-fs-3xl);
}

h3 {
    font-size: var(--aq-fs-2xl);
}

h4 {
    font-size: var(--aq-fs-xl);
}

h5 {
    font-size: var(--aq-fs-lg);
}

h6 {
    font-size: var(--aq-fs-base);
}

p {
    margin-bottom: var(--aq-space-4);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--aq-primary-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--aq-secondary-ink);
}

strong,
b {
    font-weight: 700;
    color: var(--aq-heading);
}

small {
    font-size: var(--aq-fs-sm);
}

/* Bangla copy — ensures the Bengali face is used even inside display headings */
.bn,
[lang="bn"] {
    font-family: var(--aq-font-bn);
    line-height: 1.9;
}

/* Section headings (replaces the old clipped-gradient text, which failed in
   forced-colors mode and muddied small type). */
.section-title {
    font-family: var(--aq-font-display);
    font-size: var(--aq-fs-3xl);
    font-weight: 700;
    color: var(--aq-ink);
    margin-bottom: var(--aq-space-3);
}

.section-title .accent {
    color: var(--aq-primary-ink);
}

.section-subtitle {
    color: var(--aq-muted);
    font-size: var(--aq-fs-lg);
    margin-bottom: var(--aq-space-10);
    max-width: 62ch;
}

.text-center .section-subtitle,
.aq-section-head .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Centred section heading block */
.aq-section-head {
    text-align: center;
    max-width: 70ch;
    margin: 0 auto var(--aq-space-10);
}

.aq-section-head .section-subtitle {
    margin-bottom: 0;
}

/* ---- Rich text authored in the admin editor ---------------------------- */
.aq-prose {
    color: var(--aq-body);
    line-height: var(--aq-lh-loose);
}

.aq-prose> :last-child {
    margin-bottom: 0;
}

.aq-prose h1,
.aq-prose h2,
.aq-prose h3,
.aq-prose h4,
.aq-prose h5 {
    font-family: var(--aq-font-display);
    color: var(--aq-ink);
    margin: var(--aq-space-6) 0 var(--aq-space-3);
}

.aq-prose p,
.aq-prose ul,
.aq-prose ol,
.aq-prose table,
.aq-prose blockquote {
    margin-bottom: var(--aq-space-4);
}

.aq-prose ul,
.aq-prose ol {
    padding-left: 1.35rem;
}

.aq-prose li {
    margin-bottom: var(--aq-space-2);
}

.aq-prose img {
    height: auto;
    border-radius: var(--aq-radius-md);
    margin: var(--aq-space-4) 0;
}

.aq-prose a {
    color: var(--aq-primary-ink);
    text-decoration: underline;
}

.aq-prose table {
    width: 100%;
}

.aq-prose th,
.aq-prose td {
    border: 1px solid var(--aq-line);
    padding: 10px 12px;
    text-align: left;
}

.aq-prose blockquote {
    border-left: 4px solid var(--aq-primary);
    padding-left: var(--aq-space-4);
    color: var(--aq-muted);
}

/* ==========================================================================
   4. ACCESSIBILITY & UTILITIES
   ========================================================================== */

:focus-visible {
    outline: 3px solid var(--aq-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Darker surfaces need a light ring */
.hero :focus-visible,
.page-hero :focus-visible,
.policy-hero :focus-visible,
.cta-section :focus-visible,
.site-footer :focus-visible,
.aq-auth-shell :focus-visible,
.mobile-menu-head :focus-visible,
.policy-footer-card :focus-visible,
.instructor-section :focus-visible {
    outline-color: var(--aq-focus-light);
}

.aq-skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    z-index: 2000;
    background: var(--aq-ink);
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 0 0 var(--aq-radius-sm) var(--aq-radius-sm);
    text-decoration: none;
    transition: transform var(--aq-dur) var(--aq-ease);
}

.aq-skip-link:focus {
    transform: translate(-50%, 0);
    color: #fff;
}

.aq-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Vertical rhythm for page bodies */
.page-section {
    padding: var(--aq-space-20) 0;
}

.page-section.tight {
    padding: var(--aq-space-12) 0;
}

.bg-soft {
    background: var(--aq-grad-soft);
}

@media (max-width: 768px) {
    .page-section {
        padding: var(--aq-space-12) 0;
    }
}

/* ==========================================================================
   5. HEADER / NAVBAR
   ========================================================================== */

.navbar {
    background: var(--aq-surface);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
    padding: 14px 0;
    min-height: var(--aq-header-h);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--aq-font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--aq-ink);
    text-decoration: none;
    line-height: 1.15;
}

.navbar-brand:hover {
    color: var(--aq-primary-ink);
}

.navbar-brand .aq-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: var(--aq-grad-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--aq-shadow-brand);
}

.navbar-brand .aq-brand-text small {
    display: block;
    font-family: var(--aq-font-sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--aq-muted);
}

/* Bootstrap 5.3 drives navbar link colour through these custom properties —
   setting them here beats the `.navbar-nav .nav-link` selector. */
.navbar {
    --bs-navbar-color: var(--aq-heading);
    --bs-navbar-hover-color: var(--aq-primary-ink);
    --bs-navbar-active-color: var(--aq-primary-ink);
}

.navbar .nav-link {
    color: var(--aq-heading);
    font-weight: 600;
    font-size: var(--aq-fs-sm);
    padding: 8px 12px;
    border-radius: var(--aq-radius-sm);
    white-space: nowrap;
    transition: color var(--aq-dur) var(--aq-ease), background var(--aq-dur) var(--aq-ease);
    /* The dropdown triggers are <button> elements, not links. */
    background: none;
    border: 0;
    font-family: inherit;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: var(--aq-primary-ink);
    background: var(--aq-surface-2);
}

.navbar .nav-link.active {
    color: var(--aq-primary-ink);
}

.navbar .nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--aq-primary-600);
    margin: 4px 10px -2px;
}

/* --- Desktop dropdowns ---------------------------------------------------- */
/*
   `position: absolute` is NOT redundant here. This navbar deliberately omits
   `.navbar-expand-xl` (see navbar.blade.php) because desktop/mobile visibility
   is handled with `d-none d-xl-flex` instead. But Bootstrap ships
   `.navbar-nav .dropdown-menu { position: static }` and only restores
   `absolute` inside a `.navbar-expand-*` container. With no such class the open
   menu stayed in normal flow: it stretched its `.nav-item` tall, and because the
   `<ul>` is `align-items-center` the toggle got shoved up out of the nav row.
   Restoring `absolute` lets Popper position the menu over the page as intended.
*/
.navbar .dropdown-menu {
    position: absolute;
    border: 1px solid var(--aq-line);
    border-radius: var(--aq-radius-md);
    box-shadow: var(--aq-shadow-lg);
    padding: 8px;
    min-width: 248px;
    margin-top: 10px;
}

.navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--aq-radius-sm);
    padding: 10px 12px;
    font-size: var(--aq-fs-sm);
    font-weight: 600;
    color: var(--aq-body);
}

.navbar .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--aq-primary);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--aq-surface-2);
    color: var(--aq-primary-ink);
}

.navbar .dropdown-item.active {
    background: var(--aq-info-soft);
    color: var(--aq-primary-ink);
}

.navbar .dropdown-header {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--aq-muted);
    padding: 10px 12px 6px;
}

/* --- Header action buttons ----------------------------------------------- */
.btn-nav-login {
    background: var(--aq-grad-brand);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: var(--aq-radius-md);
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: var(--aq-shadow-brand);
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 165, 233, .45);
}

.btn-nav-admission {
    background: var(--aq-grad-cta);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--aq-radius-md);
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: var(--aq-shadow-cta);
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.btn-nav-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(180, 83, 9, .5);
}

/* --- Toggler -------------------------------------------------------------- */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--aq-radius-sm);
    background: var(--aq-grad-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aq-shadow-brand);
}

.navbar-toggler:focus {
    box-shadow: var(--aq-shadow-brand);
}

.toggler-bars {
    width: 20px;
    height: 14px;
    position: relative;
}

.toggler-bars span {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all var(--aq-dur) var(--aq-ease);
}

.toggler-bars span:nth-child(1) {
    top: 0;
}

.toggler-bars span:nth-child(2) {
    top: 6px;
    width: 70%;
}

.toggler-bars span:nth-child(3) {
    top: 12px;
}

.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(2) {
    opacity: 0;
}

/* ==========================================================================
   6. MOBILE MENU (offcanvas)
   ========================================================================== */

.mobile-menu {
    width: 330px !important;
    border: none;
    background: var(--aq-surface);
}

.mobile-menu-head {
    background: var(--aq-grad-header);
    color: #fff;
    padding: 24px 24px 26px;
    position: relative;
    overflow: hidden;
}

.mobile-menu-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
}

.mobile-menu-head .mm-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--aq-font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: #fff;
}

.mobile-menu-head .mm-brand .mm-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.mobile-menu-head .mm-sub {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, .85);
    font-size: var(--aq-fs-xs);
    margin: 10px 0 0;
}

.mm-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aq-dur) var(--aq-ease);
}

.mm-close:hover {
    background: #fff;
    color: var(--aq-secondary-ink);
}

.mobile-menu .offcanvas-body {
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
}

.mm-label {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: .68rem;
    font-weight: 800;
    color: var(--aq-muted);
    margin: 18px 10px 8px;
}

.mm-label:first-child {
    margin-top: 0;
}

.mm-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--aq-radius-md);
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    color: var(--aq-body);
    text-decoration: none;
    transition: all var(--aq-dur) var(--aq-ease);
}

.mm-link .mm-ico {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--aq-surface-2);
    color: var(--aq-primary-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: all var(--aq-dur) var(--aq-ease);
}

.mm-link .mm-arrow {
    margin-left: auto;
    color: var(--aq-faint);
    font-size: .78rem;
    transition: all var(--aq-dur) var(--aq-ease);
}

.mm-link:hover,
.mm-link.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, .1), rgba(139, 92, 246, .06));
    color: var(--aq-primary-ink);
}

.mm-link:hover .mm-ico,
.mm-link.active .mm-ico {
    background: var(--aq-grad-brand);
    color: #fff;
    box-shadow: 0 6px 14px rgba(14, 165, 233, .35);
}

.mm-link:hover .mm-arrow {
    color: var(--aq-primary-ink);
    transform: translateX(3px);
}

.mm-cta {
    display: block;
    margin: 20px 4px 12px;
    padding: 18px 20px;
    border-radius: var(--aq-radius-lg);
    background: var(--aq-grad-cta);
    color: #fff !important;
    text-decoration: none;
    box-shadow: var(--aq-shadow-cta);
    position: relative;
    overflow: hidden;
}

.mm-cta::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
}

.mm-cta span.mm-cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, .25);
    padding: 4px 11px;
    border-radius: var(--aq-radius-pill);
    position: relative;
    z-index: 2;
}

.mm-cta strong {
    display: block;
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    margin: 9px 0 2px;
    position: relative;
    z-index: 2;
}

.mm-cta small {
    position: relative;
    z-index: 2;
    opacity: .95;
    font-weight: 600;
    font-family: var(--aq-font-bn);
}

.mm-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 4px 4px 0;
    padding: 14px;
    border-radius: var(--aq-radius-md);
    font-weight: 800;
    text-decoration: none;
    background: var(--aq-grad-brand);
    color: #fff !important;
    box-shadow: var(--aq-shadow-brand);
}

.mm-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--aq-line);
    text-align: center;
}

.mm-foot a.mm-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--aq-ink);
    text-decoration: none;
    font-size: var(--aq-fs-sm);
}

.mm-foot a.mm-phone i {
    color: var(--aq-primary-ink);
}

.mm-social {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mm-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--aq-surface-2);
    color: var(--aq-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aq-dur) var(--aq-ease);
}

.mm-social a:hover {
    background: var(--aq-grad-brand);
    color: #fff;
    transform: translateY(-3px);
}

.offcanvas-backdrop.show {
    opacity: .55;
}

@media (max-width: 360px) {
    .mobile-menu {
        width: 290px !important;
    }
}

/* ==========================================================================
   7. HEROES
   ========================================================================== */

/* --- Home hero ------------------------------------------------------------ */
.hero {
    background: var(--aq-grad-hero);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
    background-size: 34px 34px;
    opacity: .7;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--aq-space-20) 0;
}

.hero h1 {
    color: #fff;
    margin-bottom: var(--aq-space-5);
    text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

.hero-subtitle {
    font-size: var(--aq-fs-2xl);
    color: rgba(255, 255, 255, .92);
    margin-bottom: var(--aq-space-8);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(10px);
    padding: 11px 26px;
    border-radius: var(--aq-radius-pill);
    color: #fff;
    font-weight: 600;
    margin-bottom: var(--aq-space-6);
}

/* --- Standard inner-page hero -------------------------------------------- */
.page-hero {
    background: var(--aq-grad-header);
    padding: var(--aq-space-20) 0 var(--aq-space-16);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: var(--aq-fs-3xl);
    color: #fff;
}

.page-hero .lead {
    color: rgba(255, 255, 255, .88);
    margin-bottom: 0;
    font-size: var(--aq-fs-lg);
}

.hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 3px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
    margin-bottom: var(--aq-space-5);
}

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--aq-radius-pill);
    display: inline-flex;
    margin-bottom: 0;
    font-size: var(--aq-fs-sm);
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, .85);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .6);
}

@media (max-width: 768px) {
    .page-hero {
        padding: var(--aq-space-12) 0 var(--aq-space-10);
    }

    .hero-content {
        padding: var(--aq-space-12) 0;
    }
}

/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.btn-aq,
.btn-cta,
.btn-submit,
.btn-hero-login,
.btn-ghost-light {
    font-family: var(--aq-font-sans);
    cursor: pointer;
}

/* Primary pill button */
.btn-aq {
    background: var(--aq-grad-brand);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: var(--aq-radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.btn-aq:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 165, 233, .35);
}

.btn-aq-sm {
    padding: 7px 16px;
    font-size: var(--aq-fs-sm);
}

.btn-aq-soft {
    background: var(--aq-surface-2);
    color: var(--aq-heading);
    border: 1px solid var(--aq-line);
}

.btn-aq-soft:hover {
    background: var(--aq-surface);
    color: var(--aq-primary-ink);
    box-shadow: var(--aq-shadow-md);
}

/* Large call-to-action (admission) */
.btn-cta {
    background: var(--aq-grad-cta);
    border: none;
    padding: 16px 44px;
    font-size: var(--aq-fs-lg);
    font-weight: 700;
    border-radius: var(--aq-radius-pill);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--aq-shadow-cta);
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.btn-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(180, 83, 9, .5);
}

/* Secondary action on a dark/photographic surface */
.btn-hero-login,
.btn-ghost-light {
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--aq-radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--aq-dur) var(--aq-ease);
}

.btn-hero-login {
    padding: 15px 40px;
    font-size: var(--aq-fs-lg);
}

.btn-ghost-light {
    padding: 10px 24px;
    font-size: var(--aq-fs-base);
}

.btn-hero-login:hover,
.btn-ghost-light:hover {
    background: #fff;
    color: var(--aq-secondary-ink) !important;
    transform: translateY(-2px);
}

/* Form submit */
.btn-submit {
    background: var(--aq-grad-brand);
    color: #fff;
    border: none;
    padding: 14px 44px;
    font-size: var(--aq-fs-lg);
    font-weight: 700;
    border-radius: var(--aq-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.btn-submit:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 165, 233, .4);
}

/* Bootstrap button harmonisation */
.btn {
    font-weight: 600;
    border-radius: var(--aq-radius-sm);
}

.btn-primary {
    --bs-btn-bg: var(--aq-primary-ink);
    --bs-btn-border-color: var(--aq-primary-ink);
    --bs-btn-hover-bg: #075985;
    --bs-btn-hover-border-color: #075985;
    --bs-btn-active-bg: #075985;
}

.btn-outline-primary {
    --bs-btn-color: var(--aq-primary-ink);
    --bs-btn-border-color: var(--aq-primary-600);
    --bs-btn-hover-bg: var(--aq-primary-600);
    --bs-btn-hover-border-color: var(--aq-primary-600);
}

/* Minimum comfortable target on touch screens */
@media (pointer: coarse) {

    .btn-aq,
    .btn-cta,
    .btn-submit,
    .btn-hero-login,
    .btn-nav-login,
    .btn-nav-admission {
        min-height: 44px;
    }
}

@media (max-width: 768px) {

    .btn-cta,
    .btn-hero-login {
        width: 100%;
        padding: 14px 28px;
        font-size: var(--aq-fs-base);
    }
}

/* ==========================================================================
   9. SURFACES & CARDS
   ========================================================================== */

/* --- Generic card -------------------------------------------------------- */
.aq-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    box-shadow: var(--aq-shadow-md);
    border: 1px solid rgba(15, 23, 42, .05);
    overflow: hidden;
}

.aq-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
    border-bottom: 2px solid var(--aq-surface-2);
}

.aq-card-head i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: var(--aq-grad-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aq-shadow-brand);
}

.aq-card-head h2,
.aq-card-head h5 {
    margin: 0;
    font-weight: 700;
    color: var(--aq-ink);
}

.aq-card-body {
    padding: 26px;
}

/* --- Elevated content card (legacy name, still used by Home) ------------- */
.modern-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    padding: 32px;
    box-shadow: var(--aq-shadow-md);
    border: 1px solid rgba(15, 23, 42, .05);
    height: 100%;
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--aq-shadow-lg);
}

.card-icon {
    width: 66px;
    height: 66px;
    background: var(--aq-grad-brand);
    border-radius: var(--aq-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: var(--aq-space-5);
    box-shadow: var(--aq-shadow-brand);
}

/* --- Media/list card (blogs, sheets, batches) ---------------------------- */
.list-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--aq-shadow-md);
    border: 1px solid rgba(15, 23, 42, .05);
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
    text-decoration: none;
    color: inherit;
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--aq-shadow-lg);
    color: inherit;
}

.list-card-media {
    aspect-ratio: 16 / 10;
    background: var(--aq-grad-media);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.list-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--aq-dur-slow) var(--aq-ease);
}

.list-card:hover .list-card-media img {
    transform: scale(1.05);
}

.list-card-media .placeholder-icon {
    font-size: 2.6rem;
    color: var(--aq-primary);
    opacity: .45;
}

.list-card-body {
    padding: 20px 22px 22px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.list-card-title {
    font-weight: 700;
    color: var(--aq-ink);
    font-size: 1.05rem;
    line-height: var(--aq-lh-snug);
    margin-bottom: var(--aq-space-2);
}

.list-card:hover .list-card-title {
    color: var(--aq-primary-ink);
}

.list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--aq-muted);
    font-size: var(--aq-fs-xs);
    font-weight: 600;
    margin-top: auto;
    padding-top: 12px;
}

.list-card-meta i {
    margin-right: 5px;
    color: var(--aq-primary-ink);
}

/* --- Question-bank tile -------------------------------------------------- */
.q-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    height: 100%;
    min-height: 150px;
    padding: 24px 18px;
    border-radius: var(--aq-radius-lg);
    background: var(--aq-surface);
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow: var(--aq-shadow-md);
    text-decoration: none;
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.q-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--aq-shadow-lg);
}

.q-tile .q-count {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    background: var(--aq-grad-brand);
    box-shadow: var(--aq-shadow-brand);
}

.q-tile .q-name {
    font-weight: 700;
    color: var(--aq-ink);
    font-size: .98rem;
    line-height: var(--aq-lh-snug);
}

.q-tile:hover .q-name {
    color: var(--aq-primary-ink);
}

.q-tile .q-sub {
    font-size: var(--aq-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--aq-muted);
}

/* --- Card that overlaps the hero ----------------------------------------- */
.float-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    padding: 30px;
    box-shadow: var(--aq-shadow-xl);
    /* Home page compensates for this overlap with extra hero bottom padding —
       keep the value in sync with pages/index.blade.php. */
    margin-top: -100px;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .float-card {
        padding: 20px;
    }
}

/* --- Instructor panel ---------------------------------------------------- */
.instructor-section {
    background: var(--aq-grad-brand);
    border-radius: var(--aq-radius-xl);
    padding: 44px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.instructor-section h2,
.instructor-section h3 {
    color: #fff;
}

.instructor-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.instructor-avatar {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, .45);
    box-shadow: var(--aq-shadow-lg);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* <picture> (WebP + JPG fallback) must not change the avatar's sizing */
.instructor-avatar picture { display: contents; }

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.credential-badge {
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: var(--aq-radius-md);
    margin-bottom: 15px;
    border-left: 4px solid var(--aq-accent);
    position: relative;
    z-index: 2;
}

.credential-badge strong {
    color: #fff;
}

@media (max-width: 768px) {
    .instructor-section {
        padding: 26px 20px;
    }

    .instructor-avatar {
        width: 140px;
        height: 140px;
    }
}

/* --- Feature row --------------------------------------------------------- */
.feature-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 18px 20px;
    background: var(--aq-surface-2);
    border-radius: var(--aq-radius-md);
    margin-bottom: 14px;
    transition: background var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.feature-item:hover {
    background: var(--aq-surface);
    box-shadow: var(--aq-shadow-md);
}

.feature-icon-sm {
    width: 45px;
    height: 45px;
    background: var(--aq-grad-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* --- Info / alert blocks ------------------------------------------------- */
.info-box {
    background: var(--aq-grad-brand);
    color: #fff;
    padding: 24px;
    border-radius: var(--aq-radius-md);
    margin-bottom: var(--aq-space-6);
}

.info-box h5,
.info-box .h5 {
    color: #fff;
}

.alert-custom {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    border-radius: var(--aq-radius-md);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(220, 38, 38, .3);
}

.alert-custom h4,
.alert-custom .h5 {
    color: #fff;
}

/* --- Numbered step ------------------------------------------------------- */
.step-number {
    width: 66px;
    height: 66px;
    background: var(--aq-grad-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: var(--aq-shadow-brand);
}

/* --- CTA band ------------------------------------------------------------ */
.cta-section {
    background: var(--aq-grad-dark);
    color: #fff;
    padding: var(--aq-space-20) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 2px, transparent 2px);
    background-size: 60px 60px;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: #fff;
}

/* --- Pricing card (used by the currently commented-out pricing block) ---- */
.pricing-card {
    background: var(--aq-grad-cta);
    border-radius: var(--aq-radius-xl);
    padding: 36px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--aq-shadow-cta);
}

.pricing-card h4,
.pricing-card h5 {
    color: #fff;
}

.price-amount {
    font-size: 3.2rem;
    font-weight: 800;
    margin: var(--aq-space-5) 0;
}

/* --- Compact link row (notice lists, announcement strips) ---------------- */
.aq-link-row {
    display: flex;
    align-items: center;
    gap: var(--aq-space-4);
    padding: 15px 0;
    border-top: 1px solid var(--aq-line);
    text-decoration: none;
    color: inherit;
    transition: color var(--aq-dur) var(--aq-ease);
}

.aq-link-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.aq-link-row .alr-title {
    font-weight: 600;
    color: var(--aq-ink);
    line-height: var(--aq-lh-snug);
}

.aq-link-row:hover .alr-title {
    color: var(--aq-primary-ink);
}

.aq-link-row .alr-arrow {
    margin-left: auto;
    color: var(--aq-faint);
    font-size: .8rem;
    transition: transform var(--aq-dur) var(--aq-ease), color var(--aq-dur) var(--aq-ease);
}

.aq-link-row:hover .alr-arrow {
    color: var(--aq-primary-ink);
    transform: translateX(3px);
}

.map-container {
    border-radius: var(--aq-radius-xl);
    overflow: hidden;
    box-shadow: var(--aq-shadow-md);
    background: var(--aq-surface-2);
    width: 100%;
}

/* ==========================================================================
   10. PILLS & BADGES
   ========================================================================== */

.aq-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    border-radius: var(--aq-radius-pill);
    font-size: var(--aq-fs-xs);
    font-weight: 700;
    background: var(--aq-info-soft);
    color: var(--aq-primary-ink);
}

.aq-pill.free {
    background: var(--aq-success-soft);
    color: var(--aq-success);
}

.aq-pill.paid {
    background: var(--aq-warn-soft);
    color: var(--aq-warn);
}

.aq-pill.danger {
    background: var(--aq-danger-soft);
    color: var(--aq-danger);
}

.seat-badge {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #fff;
    padding: 7px 18px;
    border-radius: var(--aq-radius-pill);
    font-weight: 600;
    font-size: var(--aq-fs-sm);
    display: inline-block;
    white-space: nowrap;
}

/* ==========================================================================
   11. TABLES
   ========================================================================== */

.aq-table-wrap,
.schedule-wrapper {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    overflow: hidden;
    box-shadow: var(--aq-shadow-md);
}

.aq-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* left/right shadow affordance so the scrollable edge is visible */
    background:
        linear-gradient(to right, var(--aq-surface) 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), var(--aq-surface) 70%) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, .14), rgba(0, 0, 0, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .14), rgba(0, 0, 0, 0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

.aq-table-scroll:focus-visible {
    outline: 3px solid var(--aq-focus);
    outline-offset: -3px;
}

.aq-table,
.schedule-table {
    margin: 0;
    width: 100%;
}

.aq-table {
    min-width: 640px;
}

.aq-table thead,
.schedule-table thead {
    background: var(--aq-grad-dark);
}

.aq-table thead th,
.schedule-table thead th {
    color: #fff;
    font-weight: 600;
    padding: 16px 20px;
    border: none;
    white-space: nowrap;
    font-size: var(--aq-fs-sm);
}

.aq-table tbody td,
.schedule-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--aq-line);
    color: var(--aq-body);
}

.aq-table tbody tr,
.schedule-table tbody tr {
    transition: background var(--aq-dur) var(--aq-ease);
}

.aq-table tbody tr:hover,
.schedule-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, .05), rgba(139, 92, 246, .05));
}

.aq-table tbody tr:last-child td,
.schedule-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ==========================================================================
   12. FORMS
   ========================================================================== */

.form-label {
    font-weight: 600;
    color: var(--aq-heading);
    margin-bottom: 7px;
    font-size: var(--aq-fs-sm);
}

.form-control,
.form-select {
    border: 1.5px solid var(--aq-line);
    border-radius: var(--aq-radius-sm);
    padding: 11px 16px;
    min-height: 46px;
    color: var(--aq-ink);
    transition: border-color var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.form-control::placeholder {
    color: var(--aq-muted);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aq-primary-600);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--aq-danger);
}

.input-group-text {
    background: var(--aq-surface-2);
    border: 1.5px solid var(--aq-line);
    border-right: 0;
    color: var(--aq-muted);
}

.invalid-feedback,
.text-danger {
    font-size: var(--aq-fs-sm);
    font-weight: 600;
}

/* ==========================================================================
   13. EMPTY STATE & PAGINATION
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    box-shadow: var(--aq-shadow-md);
}

.empty-state .empty-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: var(--aq-primary-ink);
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(139, 92, 246, .12));
}

.empty-state h2,
.empty-state h5 {
    font-weight: 700;
    color: var(--aq-ink);
    margin-bottom: var(--aq-space-2);
}

.empty-state p {
    color: var(--aq-muted);
    margin-bottom: 0;
}

.aq-pagination .pagination {
    justify-content: center;
    margin: var(--aq-space-8) 0 0;
    gap: 6px;
    flex-wrap: wrap;
}

.aq-pagination .page-link {
    border: 1px solid var(--aq-line);
    border-radius: 11px;
    padding: 10px 16px;
    color: var(--aq-body);
    font-weight: 600;
    background: var(--aq-surface);
}

.aq-pagination .page-link:hover {
    color: var(--aq-primary-ink);
    background: var(--aq-surface-2);
}

.aq-pagination .page-item.active .page-link {
    background: var(--aq-grad-brand);
    border-color: transparent;
    color: #fff;
}

.aq-pagination .page-item.disabled .page-link {
    opacity: .5;
}

/* --- Key/value list (detail side panels) -------------------------------- */
.aq-dl {
    margin: 0;
}

.aq-dl>div {
    display: flex;
    align-items: baseline;
    gap: var(--aq-space-3);
    padding: 11px 0;
    border-bottom: 1px solid var(--aq-line);
}

.aq-dl>div:last-child {
    border-bottom: 0;
}

.aq-dl dt {
    color: var(--aq-muted);
    font-weight: 600;
    font-size: var(--aq-fs-sm);
}

.aq-dl dd {
    margin: 0 0 0 auto;
    text-align: right;
    font-weight: 700;
    color: var(--aq-ink);
}

/* --- Meta chip row (batch detail) --------------------------------------- */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: var(--aq-space-5) 0;
}

.meta-chip {
    flex: 1 1 160px;
    background: var(--aq-surface-2);
    border-radius: var(--aq-radius-md);
    padding: 14px 18px;
}

.meta-chip span {
    display: block;
    font-size: var(--aq-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--aq-muted);
    margin-bottom: 4px;
}

.meta-chip strong {
    color: var(--aq-ink);
    font-size: 1.02rem;
}

/* --- Sticky detail sidebar ---------------------------------------------- */
.sticky-side {
    position: sticky;
    top: calc(var(--aq-header-h) + 16px);
}

@media (max-width: 991px) {
    .sticky-side {
        position: static;
    }
}

/* ==========================================================================
   14. CALLOUTS
   ========================================================================== */

.policy-callout {
    display: flex;
    gap: 16px;
    border-radius: var(--aq-radius-md);
    padding: 20px 24px;
    margin-top: var(--aq-space-5);
    align-items: flex-start;
}

.callout-info {
    background: var(--aq-info-soft);
    border-left: 5px solid var(--aq-primary-600);
}

.callout-warn {
    background: var(--aq-danger-soft);
    border-left: 5px solid var(--aq-danger);
}

.callout-ok {
    background: var(--aq-success-soft);
    border-left: 5px solid var(--aq-success);
}

.policy-callout i {
    font-size: 1.4rem;
    margin-top: 2px;
    flex: 0 0 auto;
}

.callout-info i {
    color: var(--aq-primary-ink);
}

.callout-warn i {
    color: var(--aq-danger);
}

.callout-ok i {
    color: var(--aq-success);
}

.policy-callout p {
    margin: 0;
    color: var(--aq-body);
    line-height: var(--aq-lh-base);
}

/* ==========================================================================
   15. POLICY / REGULATION PAGES
   (moved out of the former frontend/layouts/policy-style.blade.php)
   ========================================================================== */

.policy-hero {
    background: var(--aq-grad-header);
    padding: var(--aq-space-20) 0 var(--aq-space-16);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.policy-hero .container {
    position: relative;
    z-index: 2;
}

.policy-hero h1 {
    font-size: var(--aq-fs-3xl);
    color: #fff;
    margin-bottom: 12px;
}

.policy-seal {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 3px solid rgba(255, 255, 255, .5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: var(--aq-space-5);
    backdrop-filter: blur(10px);
}

.effective-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .38);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--aq-radius-pill);
    font-weight: 600;
    letter-spacing: .3px;
}

.policy-tools .btn {
    border-radius: var(--aq-radius-pill);
    font-weight: 600;
    padding: 10px 24px;
}

/* --- Sticky table of contents -------------------------------------------- */
.policy-toc {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-lg);
    padding: 22px;
    box-shadow: var(--aq-shadow-md);
    position: sticky;
    top: calc(var(--aq-header-h) + 16px);
}

.policy-toc .toc-head {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--aq-fs-xs);
    color: var(--aq-muted);
    font-weight: 700;
    margin-bottom: var(--aq-space-4);
}

.policy-toc .nav-link {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--aq-radius-sm);
    font-size: var(--aq-fs-sm);
    font-weight: 600;
    color: var(--aq-body);
    border-left: 3px solid transparent;
    background: none;
}

.policy-toc .nav-link::after {
    display: none;
}

.policy-toc .nav-link:hover {
    background: var(--aq-surface-2);
    color: var(--aq-primary-ink);
}

.policy-toc .nav-link.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, .12), transparent);
    border-left-color: var(--aq-primary);
    color: var(--aq-primary-ink);
}

.policy-toc .toc-num {
    display: inline-block;
    width: 24px;
    font-weight: 800;
    opacity: .6;
}

/* --- Preamble ------------------------------------------------------------ */
.policy-preamble {
    background: var(--aq-grad-brand);
    color: #fff;
    border-radius: var(--aq-radius-xl);
    padding: 32px 36px;
    margin-bottom: var(--aq-space-8);
    box-shadow: 0 14px 36px rgba(99, 102, 241, .28);
}

.policy-preamble p {
    font-size: var(--aq-fs-lg);
    line-height: var(--aq-lh-loose);
    margin-bottom: 0;
}

/* --- Article cards ------------------------------------------------------- */
.article-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    padding: 30px 32px;
    margin-bottom: var(--aq-space-6);
    box-shadow: var(--aq-shadow-md);
    border: 1px solid rgba(15, 23, 42, .04);
    scroll-margin-top: calc(var(--aq-header-h) + 20px);
    transition: box-shadow var(--aq-dur) var(--aq-ease);
}

.article-card:hover {
    box-shadow: var(--aq-shadow-lg);
}

.article-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--aq-surface-2);
}

.article-badge {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: var(--aq-radius-md);
    background: var(--aq-grad-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: var(--aq-shadow-brand);
}

.article-head .eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: var(--aq-fs-xs);
    font-weight: 700;
    color: var(--aq-muted);
    display: block;
}

.article-head h2 {
    font-family: var(--aq-font-display);
    font-size: var(--aq-fs-xl);
    font-weight: 700;
    color: var(--aq-ink);
    margin: 2px 0 0;
}

/* --- Clauses ------------------------------------------------------------- */
.clause {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    align-items: flex-start;
}

.clause+.clause {
    border-top: 1px dashed var(--aq-line);
}

.clause-no {
    flex: 0 0 auto;
    min-width: 44px;
    font-weight: 800;
    color: var(--aq-primary-ink);
    font-size: var(--aq-fs-sm);
    padding-top: 2px;
}

.clause p {
    margin: 0;
    color: var(--aq-body);
    line-height: var(--aq-lh-loose);
}

.sub-head {
    font-size: var(--aq-fs-lg);
    font-weight: 700;
    color: var(--aq-ink);
    font-size: var(--aq-fs-lg);
    margin: var(--aq-space-6) 0 var(--aq-space-3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-head .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--aq-accent);
    flex: 0 0 9px;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--aq-surface-2);
    border-radius: var(--aq-radius-sm);
    padding: 14px 18px;
    margin-bottom: 10px;
    color: var(--aq-body);
    line-height: var(--aq-lh-base);
    transition: background var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.rule-list li:hover {
    background: var(--aq-surface);
    box-shadow: var(--aq-shadow-sm);
}

.rule-list li i {
    color: var(--aq-primary-ink);
    margin-top: 5px;
    flex: 0 0 auto;
}

/* --- Graduated-procedure stepper ---------------------------------------- */
.stage-wrap {
    background: #fff8f1;
    border: 1px solid #fde4c8;
    border-radius: var(--aq-radius-md);
    padding: 22px 22px 8px;
    margin-top: var(--aq-space-5);
}

.stage-wrap .stage-title {
    font-weight: 800;
    color: var(--aq-warn);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stage {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    position: relative;
}

.stage:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(#fcd34d, #fca5a5);
}

.stage-dot {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    z-index: 2;
}

.stage-1 .stage-dot {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.stage-2 .stage-dot {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.stage-3 .stage-dot {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.stage-body strong {
    display: block;
    color: var(--aq-ink);
    margin-bottom: 4px;
}

.stage-body p {
    margin: 0;
    color: var(--aq-muted);
    line-height: var(--aq-lh-base);
}

/* --- Agreement footer ---------------------------------------------------- */
.policy-footer-card {
    background: var(--aq-grad-dark);
    color: #fff;
    border-radius: var(--aq-radius-xl);
    padding: 42px;
    text-align: center;
    margin: var(--aq-space-2) 0 var(--aq-space-16);
}

.policy-footer-card h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: var(--aq-space-4);
}

.policy-footer-card p {
    color: rgba(255, 255, 255, .8);
    max-width: 720px;
    margin: 0 auto var(--aq-space-6);
    line-height: var(--aq-lh-loose);
}

@media (max-width: 991px) {
    .policy-toc {
        position: static;
        margin-bottom: var(--aq-space-6);
    }
}

@media (max-width: 768px) {
    .policy-hero {
        padding: var(--aq-space-12) 0 var(--aq-space-10);
    }

    .article-card {
        padding: 24px 20px;
    }

    .policy-preamble {
        padding: 26px 22px;
    }

    .policy-footer-card {
        padding: 30px 22px;
    }
}

/* --- Assessment-type cards (Exams & Assessment Policy, Article 2) -------- */
.assess-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    padding: 28px 24px;
    height: 100%;
    box-shadow: var(--aq-shadow-md);
    border: 1px solid rgba(15, 23, 42, .05);
    border-top: 5px solid var(--aq-primary);
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.assess-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--aq-shadow-lg);
}

.assess-card.type-monthly {
    border-top-color: var(--aq-secondary);
}

.assess-card.type-model {
    border-top-color: var(--aq-accent);
}

.assess-icon {
    width: 62px;
    height: 62px;
    border-radius: var(--aq-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: var(--aq-space-4);
    background: linear-gradient(135deg, var(--aq-primary-600), var(--aq-primary-ink));
}

.type-monthly .assess-icon {
    background: linear-gradient(135deg, var(--aq-secondary), var(--aq-secondary-ink));
}

.type-model .assess-icon {
    background: var(--aq-grad-cta);
}

.assess-card h3 {
    font-weight: 700;
    color: var(--aq-ink);
    margin-bottom: 6px;
}

.assess-card .freq {
    display: block;
    font-size: var(--aq-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--aq-muted);
    margin-bottom: var(--aq-space-4);
}

.assess-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assess-card li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    color: var(--aq-body);
    line-height: var(--aq-lh-base);
    font-size: var(--aq-fs-sm);
    border-top: 1px dashed var(--aq-line);
}

.assess-card li:first-child {
    border-top: 0;
}

.assess-card li i {
    color: var(--aq-primary-ink);
    margin-top: 5px;
    flex: 0 0 auto;
}

.type-monthly li i {
    color: var(--aq-secondary-ink);
}

.type-model li i {
    color: var(--aq-warn);
}

/* --- Reporting-channel tiles (Article 7) --------------------------------- */
.channel-tile {
    background: var(--aq-surface-2);
    border-radius: var(--aq-radius-md);
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    transition: background var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.channel-tile:hover {
    background: var(--aq-surface);
    box-shadow: var(--aq-shadow-md);
}

.channel-tile i {
    font-size: 1.9rem;
    margin-bottom: 12px;
    color: var(--aq-primary-ink);
}

.channel-tile strong {
    display: block;
    color: var(--aq-ink);
    margin-bottom: 6px;
}

.channel-tile p {
    margin: 0;
    color: var(--aq-muted);
    font-size: var(--aq-fs-sm);
    line-height: var(--aq-lh-base);
}

/* --- Do / don't columns (Article 5) ------------------------------------- */
.integrity-col h3 {
    font-weight: 700;
    font-size: var(--aq-fs-base);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.integrity-col.allowed h3 {
    color: var(--aq-success);
}

.integrity-col.banned h3 {
    color: var(--aq-danger);
}

.integrity-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.integrity-col li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 16px;
    border-radius: var(--aq-radius-sm);
    margin-bottom: 9px;
    line-height: var(--aq-lh-base);
    color: var(--aq-body);
}

.integrity-col.allowed li {
    background: var(--aq-success-soft);
}

.integrity-col.banned li {
    background: var(--aq-danger-soft);
}

.integrity-col li i {
    margin-top: 4px;
    flex: 0 0 auto;
}

.integrity-col.allowed li i {
    color: var(--aq-success);
}

.integrity-col.banned li i {
    color: var(--aq-danger);
}

/* ==========================================================================
   16. AUTH SCREENS
   ========================================================================== */

.aq-auth-shell {
    min-height: calc(100vh - var(--aq-header-h));
    display: flex;
    align-items: center;
    padding: var(--aq-space-12) 0;
    background: var(--aq-grad-header);
    position: relative;
    overflow: hidden;
}

.aq-auth-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.aq-auth-shell .container {
    position: relative;
    z-index: 2;
}

.aq-auth-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    padding: 38px;
    box-shadow: var(--aq-shadow-xl);
    max-width: 480px;
    margin: 0 auto;
}

.aq-auth-card .aq-auth-ico {
    width: 68px;
    height: 68px;
    border-radius: var(--aq-radius-lg);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: var(--aq-grad-brand);
    box-shadow: var(--aq-shadow-brand);
}

.aq-auth-card h3 {
    font-weight: 700;
    color: var(--aq-ink);
    text-align: center;
    margin-bottom: 6px;
    font-size: var(--aq-fs-xl);
}

.aq-auth-card .aq-auth-sub {
    text-align: center;
    color: var(--aq-muted);
    margin-bottom: var(--aq-space-6);
}

.aq-auth-card .form-label {
    font-weight: 700;
}

.aq-auth-foot {
    text-align: center;
    margin: var(--aq-space-5) 0 0;
    color: var(--aq-muted);
    font-size: var(--aq-fs-sm);
}

.aq-auth-foot a {
    color: var(--aq-primary-ink);
    font-weight: 700;
    text-decoration: none;
}

.aq-auth-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .aq-auth-card {
        padding: 28px 20px;
    }
}

/* --- Split-panel auth card (login / admission form) --------------------- */
.auth-shell {
    min-height: calc(100vh - var(--aq-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--aq-space-12) 0;
    background: var(--aq-grad-header);
    position: relative;
    overflow: hidden;
}

.auth-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 var(--aq-space-4);
    margin: 0 auto;
}

.auth-card {
    background: var(--aq-surface);
    border-radius: var(--aq-radius-xl);
    overflow: hidden;
    box-shadow: var(--aq-shadow-xl);
}

.auth-left {
    background: var(--aq-grad-brand);
    color: #fff;
    padding: 54px 44px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.auth-left-content {
    position: relative;
    z-index: 2;
}

.auth-left h3,
.auth-left .h3 {
    color: #fff;
    font-family: var(--aq-font-display);
}

.auth-left p {
    color: rgba(255, 255, 255, .9);
}

.brand-logo {
    width: 76px;
    height: 76px;
    border-radius: var(--aq-radius-lg);
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--aq-space-5);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--aq-space-6) 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-weight: 600;
    color: rgba(255, 255, 255, .95);
}

.feature-list li i {
    color: #fff;
    opacity: .85;
    flex: 0 0 auto;
}

.auth-illustration {
    margin-top: var(--aq-space-8);
    font-size: 3.6rem;
    opacity: .28;
    text-align: right;
}

.auth-right {
    padding: 50px 44px;
}

.auth-header {
    margin-bottom: var(--aq-space-6);
}

.auth-header h1,
.auth-header h2 {
    font-family: var(--aq-font-display);
    color: var(--aq-ink);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--aq-muted);
    margin-bottom: 0;
}

.btn-auth {
    width: 100%;
    background: var(--aq-grad-brand);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--aq-radius-pill);
    font-weight: 700;
    font-size: var(--aq-fs-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--aq-shadow-brand);
    transition: transform var(--aq-dur) var(--aq-ease), box-shadow var(--aq-dur) var(--aq-ease);
}

.btn-auth:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(14, 165, 233, .45);
}

.remember-forgot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--aq-space-5);
}

.remember-forgot a {
    color: var(--aq-primary-ink);
    font-weight: 600;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: var(--aq-space-4);
    margin: var(--aq-space-6) 0;
    color: var(--aq-muted);
    font-size: var(--aq-fs-sm);
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--aq-line);
}

.auth-footer {
    text-align: center;
    color: var(--aq-muted);
    font-size: var(--aq-fs-sm);
}

.auth-footer a {
    color: var(--aq-primary-ink);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password field with a show/hide control */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--aq-radius-sm);
    background: transparent;
    color: var(--aq-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
}

.password-toggle:hover {
    color: var(--aq-primary-ink);
    background: var(--aq-surface-2);
}

.password-wrapper .form-control {
    padding-right: 52px;
}

@media (max-width: 991px) {
    .auth-left {
        padding: 36px 28px;
    }

    .auth-right {
        padding: 36px 28px;
    }
}

@media (max-width: 576px) {
    .auth-right {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--aq-grad-dark);
    color: #fff;
    padding: var(--aq-space-16) 0 var(--aq-space-6);
}

.site-footer .ft-brand,
.site-footer .ft-heading {
    color: #fff;
}

.site-footer .ft-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--aq-font-display);
    font-weight: 700;
    margin-bottom: var(--aq-space-3);
}

.site-footer .ft-tag {
    color: rgba(255, 255, 255, .72);
    font-size: var(--aq-fs-sm);
    line-height: var(--aq-lh-loose);
    margin-bottom: var(--aq-space-4);
}

.site-footer .ft-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 9px 18px;
    border-radius: var(--aq-radius-pill);
    transition: background var(--aq-dur) var(--aq-ease);
}

.site-footer .ft-phone i {
    color: #7dd3fc;
}

.site-footer .ft-phone:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.site-footer .ft-heading {
    font-weight: 700;
    margin-bottom: var(--aq-space-4);
    font-size: var(--aq-fs-sm);
    text-transform: uppercase;
    letter-spacing: .9px;
}

.site-footer .ft-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .ft-links li {
    margin-bottom: 10px;
}

.site-footer .ft-links a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: var(--aq-fs-sm);
    transition: color var(--aq-dur) var(--aq-ease), padding-left var(--aq-dur) var(--aq-ease);
}

.site-footer .ft-links a:hover {
    color: #fff;
    padding-left: 5px;
    text-decoration: underline;
}

.site-footer .ft-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--aq-grad-cta);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    padding: 11px 18px;
    border-radius: var(--aq-radius-pill);
    box-shadow: var(--aq-shadow-cta);
    transition: transform var(--aq-dur) var(--aq-ease);
}

.site-footer .ft-cta:hover {
    color: #fff;
    transform: translateY(-2px);
}

.site-footer .ft-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.site-footer .ft-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aq-dur) var(--aq-ease);
}

.site-footer .ft-social a:hover {
    background: var(--aq-grad-brand);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.site-footer .ft-divider {
    border-color: rgba(255, 255, 255, .14);
    opacity: 1;
    margin: var(--aq-space-8) 0 var(--aq-space-5);
}

.site-footer .ft-bottom {
    text-align: center;
    color: rgba(255, 255, 255, .68);
    font-size: var(--aq-fs-sm);
}

/* ==========================================================================
   18. MOTION PREFERENCES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .list-card:hover,
    .modern-card:hover,
    .q-tile:hover,
    .btn-aq:hover,
    .btn-cta:hover,
    .btn-submit:hover,
    .btn-nav-login:hover,
    .btn-nav-admission:hover,
    .site-footer .ft-cta:hover,
    .site-footer .ft-social a:hover,
    .mm-social a:hover {
        transform: none;
    }
}

/* ==========================================================================
   W1 (Class 5-12 refresh): Bangla sub-lines, class picker, parent updates,
   notice bar, mobile quick-action bar
   ========================================================================== */

/* Small Bangla line under an English heading */
.aq-bn-sub {
    font-family: var(--aq-font-bn);
    color: var(--aq-secondary-ink);
    font-size: var(--aq-fs-sm);
    font-weight: 600;
    margin: -4px 0 var(--aq-space-2);
}
.aq-bn-sub-light { color: #fde68a; }
.aq-update-head .aq-bn-sub { margin: 0; font-size: var(--aq-fs-xs); display: block; }

/* ---- Class picker ---- */
.aq-picker-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--aq-space-2);
    margin-bottom: var(--aq-space-6);
}
.aq-picker-chip {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 80px;
    padding: var(--aq-space-2) var(--aq-space-2);
    border: 2px solid var(--aq-line);
    border-radius: var(--aq-radius-md);
    background: var(--aq-surface);
    color: var(--aq-heading);
    cursor: pointer;
    transition: border-color var(--aq-dur) var(--aq-ease), background var(--aq-dur) var(--aq-ease);
}
.aq-picker-chip:hover { border-color: var(--aq-primary); }
.aq-picker-chip:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: 2px; }
.aq-picker-chip[aria-selected="true"] {
    background: var(--aq-grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--aq-shadow-brand);
}
.aq-picker-num { font-size: var(--aq-fs-2xl); font-weight: 800; line-height: 1; }
.aq-picker-label { font-size: var(--aq-fs-xs); font-weight: 600; margin-top: 4px; white-space: nowrap; }
.aq-picker-bn { font-family: var(--aq-font-bn); font-size: .72rem; opacity: .85; white-space: nowrap; }
/* green dot = this class has an open batch */
.aq-picker-chip.has-batch::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aq-success);
}
.aq-picker-chip[aria-selected="true"].has-batch::after { background: #fde68a; }
.aq-picker-panel:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: 4px; border-radius: var(--aq-radius-md); }

.aq-batch-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    background: var(--aq-surface);
    border: 1px solid var(--aq-line);
    border-radius: var(--aq-radius-lg);
    padding: var(--aq-space-5);
    box-shadow: var(--aq-shadow-sm);
}
.aq-batch-card.is-full { background: var(--aq-surface-3); }
.aq-batch-name { font-size: var(--aq-fs-lg); font-weight: 700; color: var(--aq-heading); margin: 0; }
.aq-batch-times { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--aq-space-2); }
.aq-batch-times li { display: flex; gap: var(--aq-space-2); color: var(--aq-body); font-size: var(--aq-fs-sm); }
.aq-batch-times i { color: var(--aq-primary-ink); margin-top: 4px; }
.aq-batch-seats { margin: 0; font-size: var(--aq-fs-sm); color: var(--aq-success); }
.aq-batch-card.is-full .aq-batch-seats { color: var(--aq-danger); }
.aq-batch-seats [lang="bn"] { font-family: var(--aq-font-bn); }
.aq-batch-branch { margin: 0; font-size: var(--aq-fs-sm); font-weight: 600; color: var(--aq-primary-ink); }
.aq-batch-branch i { margin-right: 4px; }
.aq-batch-branch [lang="bn"] { font-family: var(--aq-font-bn); font-weight: 500; }

/* Branches (Sakha) */
.aq-branch-card {
    height: 100%;
    display: flex;
    gap: var(--aq-space-3);
    background: var(--aq-surface);
    border: 1px solid var(--aq-line);
    border-radius: var(--aq-radius-lg);
    padding: var(--aq-space-5);
    box-shadow: var(--aq-shadow-sm);
}
.aq-branch-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aq-primary-600);
    color: #fff;
    font-size: 1.2rem;
}
.aq-branch-name { font-size: var(--aq-fs-lg); font-weight: 700; color: var(--aq-heading); margin: 0; }
.aq-branch-bn { margin: 0; font-family: var(--aq-font-bn); color: var(--aq-muted, #64748b); font-size: var(--aq-fs-sm); }
.aq-branch-line { margin: var(--aq-space-2) 0 0; font-size: var(--aq-fs-sm); color: var(--aq-body); }
.aq-batch-card .btn-cta,
.aq-batch-card .btn-aq { margin-top: auto; min-height: 44px; }

.aq-picker-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-4);
    background: var(--aq-surface-3);
    border: 1px dashed var(--aq-faint);
    border-radius: var(--aq-radius-lg);
    padding: var(--aq-space-5);
    color: var(--aq-body);
}
.aq-picker-empty > i { font-size: 1.6rem; color: var(--aq-warn); }
.aq-picker-empty [lang="bn"] { font-family: var(--aq-font-bn); font-size: var(--aq-fs-sm); }

/* ---- What parents get ---- */
.aq-update-card {
    height: 100%;
    background: var(--aq-surface);
    border: 1px solid var(--aq-line);
    border-radius: var(--aq-radius-lg);
    padding: var(--aq-space-6);
    box-shadow: var(--aq-shadow-sm);
}
.aq-update-head { display: flex; align-items: center; gap: var(--aq-space-3); margin-bottom: var(--aq-space-3); }
.aq-update-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aq-radius-md);
    background: var(--aq-info-soft);
    color: var(--aq-primary-ink);
    font-size: 1.25rem;
}
.aq-update-icon.is-violet { background: rgba(139, 92, 246, .12); color: var(--aq-secondary-ink); }
.aq-update-icon.is-amber { background: var(--aq-warn-soft); color: var(--aq-warn); }
.aq-update-card > p { color: var(--aq-body); font-size: var(--aq-fs-sm); }
.aq-sample {
    position: relative;
    background: var(--aq-surface-2);
    border-radius: var(--aq-radius-md);
    padding: var(--aq-space-6) var(--aq-space-4) var(--aq-space-4);
}
.aq-sample-tag {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--aq-muted);
}
.aq-sms {
    background: var(--aq-surface);
    border-radius: 12px 12px 12px 2px;
    padding: var(--aq-space-3);
    font-family: var(--aq-font-bn);
    font-size: var(--aq-fs-sm);
    line-height: 1.7;
    color: var(--aq-ink);
    box-shadow: var(--aq-shadow-sm);
}
.aq-mini-stats { list-style: none; padding: 0; margin: 0 0 var(--aq-space-2); display: grid; gap: 6px; }
.aq-mini-stats li { display: flex; justify-content: space-between; font-size: var(--aq-fs-sm); color: var(--aq-body); }
.aq-mini-stats strong { color: var(--aq-ink); }
.aq-mini-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.aq-mini-bar span:nth-child(1) { background: #0f766e; }
.aq-mini-bar span:nth-child(2) { background: #e0954a; }
.aq-mini-bar span:nth-child(3) { background: #b91c1c; }

/* ---- Latest notice strip ---- */
.aq-notice-bar {
    background: #fef3c7;
    color: #78350f;
    font-size: var(--aq-fs-sm);
    padding: 8px 0;
    border-bottom: 1px solid #fde68a;
}
.aq-notice-bar .container > i { color: var(--aq-warn); }
.aq-notice-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aq-notice-close {
    background: none;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: inherit;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
}
.aq-notice-close:focus-visible { outline: 2px solid var(--aq-focus); }

/* ---- Mobile quick-action bar ---- */
.aq-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--aq-line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
}
.aq-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    border-radius: var(--aq-radius-md);
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    text-decoration: none;
}
.aq-mcta-main { flex: 1 1 auto; background: var(--aq-grad-cta); color: #fff; }
.aq-mcta-main:hover { color: #fff; }
.aq-mcta-main [lang="bn"] { font-family: var(--aq-font-bn); }
.aq-mcta-btn { flex: 0 0 auto; padding: 0 14px; background: var(--aq-surface-2); color: var(--aq-heading); }
.aq-mobile-cta a:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: 2px; }
@media (max-width: 767.98px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .aq-picker-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
    .aq-picker-chip { min-width: 0; }
}
@media print {
    .aq-mobile-cta,
    .aq-notice-bar { display: none !important; }
}

/* ---- W2: class filter on resource pages ---- */
.aq-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin-bottom: var(--aq-space-6);
}
.aq-cf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 var(--aq-space-4);
    border: 1px solid var(--aq-line);
    border-radius: var(--aq-radius-pill);
    background: var(--aq-surface);
    color: var(--aq-heading);
    font-weight: 600;
    font-size: var(--aq-fs-sm);
    text-decoration: none;
}
.aq-cf-chip [lang="bn"] { font-family: var(--aq-font-bn); font-weight: 500; color: var(--aq-muted); }
.aq-cf-chip:hover { border-color: var(--aq-primary); color: var(--aq-heading); }
.aq-cf-chip:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: 2px; }
.aq-cf-chip.is-active { background: var(--aq-grad-brand); border-color: transparent; color: #fff; }
.aq-cf-chip.is-active [lang="bn"] { color: rgba(255, 255, 255, .85); }
.aq-cf-count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: var(--aq-radius-pill);
    background: var(--aq-surface-2);
    color: var(--aq-body);
    font-size: .75rem;
    text-align: center;
}
.aq-cf-chip.is-active .aq-cf-count { background: rgba(255, 255, 255, .22); color: #fff; }
/* page-hero / policy-hero Bangla line sits between the h1 and the lead */
.page-hero .aq-bn-sub,
.policy-hero .aq-bn-sub { margin: 4px 0 var(--aq-space-2); }

/* ==========================================================================
   19. LANGUAGE (English / বাংলা toggle)
   ========================================================================== */
.aq-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--aq-radius-pill);
    background: var(--aq-surface-2);
    border: 1px solid var(--aq-line);
}
.aq-lang a {
    min-height: 32px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--aq-radius-pill);
    color: var(--aq-primary-ink);
    font-weight: 700;
    font-size: var(--aq-fs-xs);
    text-decoration: none;
}
.aq-lang a[lang="bn"] { font-family: var(--aq-font-bn); }
.aq-lang a.is-on { background: var(--aq-primary-600); color: #fff; }
.aq-lang a:not(.is-on):hover { background: var(--aq-info-soft); }
.aq-lang a:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: 1px; }
.aq-lang-sm a { min-height: 30px; min-width: 36px; padding: 0 9px; }

/* Bangla mode: Bangla font first, and hide Bangla lines that repeat a translated heading. */
body.locale-bn { font-family: var(--aq-font-bn); }
body.locale-bn .aq-bn-dup,
body.locale-bn.is-translated .aq-bn-sub { display: none !important; }

/* ==========================================================================
   20. KID-FRIENDLY HOME (AQ blue, playful)
   Tones k-blue k-violet k-amber k-green k-pink k-sky set --k (decor),
   --k-ink (text) and --k-soft (tint).
   ========================================================================== */
.k-blue   { --k: #0ea5e9; --k-ink: #0369a1; --k-soft: #e0f2fe; }
.k-violet { --k: #8b5cf6; --k-ink: #6d28d9; --k-soft: #ede9fe; }
.k-amber  { --k: #f59e0b; --k-ink: #b45309; --k-soft: #fef3c7; }
.k-green  { --k: #10b981; --k-ink: #047857; --k-soft: #d1fae5; }
.k-pink   { --k: #ec4899; --k-ink: #be185d; --k-soft: #fce7f3; }
.k-sky    { --k: #06b6d4; --k-ink: #0e7490; --k-soft: #cffafe; }

/* --- Hero --- */
.k-hero {
    position: relative;
    overflow: hidden;
    padding: var(--aq-space-16) 0 160px;
    background: linear-gradient(160deg, #e0f2fe 0%, #eef2ff 55%, #fdf4ff 100%);
}
.k-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.k-blob-1 { width: 380px; height: 380px; right: -120px; top: -140px; background: rgba(14, 165, 233, .18); }
.k-blob-2 { width: 240px; height: 240px; left: -90px; bottom: 40px; background: rgba(139, 92, 246, .14); }
.k-hero .container { position: relative; z-index: 1; }
.k-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--aq-space-4);
    padding: 8px 16px;
    border-radius: var(--aq-radius-pill);
    background: #fff;
    border: 1px solid #fde68a;
    color: var(--aq-cta-dark);
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    box-shadow: var(--aq-shadow-sm);
}
.live-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.k-hero-title {
    font-size: var(--aq-fs-4xl);
    font-weight: 800;
    line-height: var(--aq-lh-tight);
    color: var(--aq-ink);
    margin-bottom: var(--aq-space-2);
}
.k-hero .aq-bn-sub { margin: 0 0 var(--aq-space-3); font-size: var(--aq-fs-lg); }
.k-hero-lead { font-size: var(--aq-fs-lg); color: var(--aq-body); max-width: 560px; }
.k-chips { list-style: none; padding: 0; margin: var(--aq-space-4) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.k-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--aq-radius-pill);
    background: #fff;
    border: 1px solid var(--aq-line);
    color: var(--aq-heading);
    font-weight: 600;
    font-size: var(--aq-fs-sm);
}
.k-chips li i { color: var(--aq-primary-ink); }
.btn-k-lg { min-height: 52px; padding: 0 26px; font-size: var(--aq-fs-base); }
.btn-k-outline,
.btn-k-white,
.btn-k-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--aq-radius-pill);
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-k-outline { background: #fff; color: var(--aq-primary-ink); border: 2px solid var(--aq-primary-600); }
.btn-k-outline:hover { background: var(--aq-primary-600); color: #fff; }
.btn-k-white { background: #fff; color: var(--aq-primary-ink); border: 0; }
.btn-k-white:hover { color: var(--aq-primary-ink); transform: translateY(-2px); box-shadow: var(--aq-shadow-md); }
.btn-k-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .8); }
.btn-k-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-k-outline:focus-visible,
.btn-k-white:focus-visible,
.btn-k-ghost:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: 2px; }
.k-teach-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: var(--aq-space-5);
    text-decoration: none;
}
.k-teach-link .lbl { font-weight: 700; color: var(--aq-heading); margin-right: 4px; }
.k-teach-link b {
    padding: 3px 12px;
    border-radius: var(--aq-radius-pill);
    background: rgba(2, 121, 184, .1);
    color: var(--aq-primary-ink);
    font-size: var(--aq-fs-xs);
    font-weight: 700;
}
.k-teach-link:hover b { background: var(--aq-primary-600); color: #fff; }
.k-hero-note { margin: var(--aq-space-5) 0 0; color: var(--aq-body); font-size: var(--aq-fs-sm); }
.k-hero-note a { color: var(--aq-primary-ink); font-weight: 700; }

/* hero art: book in a circle with letter tiles, speech bubbles and floating emoji */
.k-art { position: relative; height: 400px; }
.k-art-circle {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #e0f2fe 55%, #c7d2fe 100%);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .7), var(--aq-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.k-art-emoji { font-size: 120px; line-height: 1; }
.k-tile {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 800 2rem/1 var(--aq-font-display);
    color: #fff;
    box-shadow: var(--aq-shadow-md);
    animation: k-bob 4s ease-in-out infinite;
}
.k-tile.t1 { left: 4%; top: 12%; background: #0ea5e9; rotate: -10deg; }
.k-tile.t2 { right: 6%; top: 4%; background: #8b5cf6; rotate: 8deg; animation-delay: -1.3s; }
.k-tile.t3 { right: 2%; bottom: 18%; background: #f59e0b; rotate: -6deg; animation-delay: -2.6s; }
.k-bubble {
    position: absolute;
    padding: 8px 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--aq-heading);
    font-weight: 700;
    font-size: var(--aq-fs-sm);
    box-shadow: var(--aq-shadow-md);
}
.k-bubble.b1 { left: 0; bottom: 22%; border-bottom-left-radius: 4px; }
.k-bubble.b2 { right: 12%; bottom: 0; border-bottom-right-radius: 4px; }
.k-float { position: absolute; font-size: 2rem; animation: k-bob 5s ease-in-out infinite; }
.k-float.f1 { left: 18%; bottom: 4%; animation-delay: -2s; }
.k-float.f2 { left: 30%; top: 0; }
@keyframes k-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* --- Section titles: playful colour bar under the heading --- */
.k-title span[aria-hidden="true"] { font-size: .85em; }
.k-squig {
    display: block;
    width: 90px;
    height: 8px;
    margin: 6px auto 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #0ea5e9 0 25%, #8b5cf6 25% 50%, #f59e0b 50% 75%, #10b981 75%);
}

/* --- Cards --- */
.k-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--aq-line);
    border-radius: 22px;
    padding: var(--aq-space-6);
    box-shadow: var(--aq-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.k-card:hover { transform: translateY(-4px); box-shadow: var(--aq-shadow-md); }
.k-card-title { font-size: var(--aq-fs-lg); font-weight: 800; color: var(--aq-heading); margin: 0 0 6px; }
.k-card p { color: var(--aq-body); margin: 0; }

.k-teach { border-top: 6px solid var(--k); }
.k-teach-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--aq-space-4); }
.k-teach-emoji {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 18px;
    background: var(--k-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.k-tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: var(--aq-radius-pill);
    background: var(--k-soft);
    color: var(--k-ink);
    font-weight: 700;
    font-size: var(--aq-fs-xs);
}
.k-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.k-topics li {
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--aq-surface-3);
    border: 1px solid var(--aq-line);
    color: var(--aq-heading);
    font-size: var(--aq-fs-sm);
    font-weight: 600;
}

.k-ico {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--k);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: var(--aq-space-4);
    box-shadow: 0 8px 18px -6px var(--k);
}
.k-ico-sm { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; font-size: 1.15rem; margin: 0; }
.k-why { text-align: center; }

.k-step { position: relative; text-align: center; padding-top: var(--aq-space-8); }
.k-step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    translate: -50% 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--aq-cta);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aq-shadow-cta);
}
.k-step-ico { display: block; font-size: 2rem; color: var(--aq-primary-ink); margin-bottom: var(--aq-space-2); }

.k-mini {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: var(--aq-space-4);
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--aq-line);
    border-left: 5px solid var(--k);
}

.k-serious {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: var(--aq-space-6);
    border-radius: 22px;
    background: var(--aq-warn-soft);
    border: 1px dashed #f59e0b;
}
.k-serious > span { font-size: 2rem; line-height: 1; }

/* --- Online band and help band --- */
.k-online {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-5);
    padding: var(--aq-space-6) var(--aq-space-8);
    border-radius: 24px;
    background: linear-gradient(135deg, #047857, #0e7490);
    color: #fff;
}
.k-online h2 { color: #fff; }
.k-online p { color: rgba(255, 255, 255, .92); }
.k-online-ico {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.k-band {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: var(--aq-space-12) var(--aq-space-6);
    border-radius: 28px;
    background: linear-gradient(135deg, #0369a1, #4338ca);
    color: #fff;
}
.k-band h2 { color: #fff; font-weight: 800; font-size: var(--aq-fs-2xl); position: relative; }
.k-band p { color: rgba(255, 255, 255, .92); position: relative; margin: 0; }
.k-band .d-flex { position: relative; }
.k-band-dot { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.k-band-dot.d1 { width: 200px; height: 200px; right: -60px; top: -70px; }
.k-band-dot.d2 { width: 120px; height: 120px; left: -40px; bottom: -50px; }

/* --- FAQ --- */
.k-faq { max-width: 860px; }
.k-faq .accordion-item { border: 1px solid var(--aq-line); border-radius: 16px !important; margin-bottom: 12px; overflow: hidden; }
.k-faq .accordion-button { font-weight: 700; color: var(--aq-ink); padding: 18px 20px; }
.k-faq .accordion-button:not(.collapsed) { background: var(--aq-info-soft); color: var(--aq-primary-ink); box-shadow: none; }
.k-faq .accordion-button:focus { box-shadow: none; }
.k-faq .accordion-button:focus-visible { outline: 3px solid var(--aq-focus); outline-offset: -3px; }
.k-faq .accordion-button i { color: var(--aq-primary-ink); }
.k-faq .accordion-body { color: var(--aq-body); line-height: var(--aq-lh-loose); padding: 4px 20px 22px; }

/* --- Class picker: one bright colour per class --- */
.aq-picker-chip:nth-child(6n+1) { --k: #0ea5e9; }
.aq-picker-chip:nth-child(6n+2) { --k: #f59e0b; }
.aq-picker-chip:nth-child(6n+3) { --k: #10b981; }
.aq-picker-chip:nth-child(6n+4) { --k: #ec4899; }
.aq-picker-chip:nth-child(6n+5) { --k: #8b5cf6; }
.aq-picker-chip:nth-child(6n+6) { --k: #06b6d4; }
.aq-picker-chip { border-bottom: 4px solid var(--k); }

@media (max-width: 991px) {
    .k-hero { padding: var(--aq-space-10) 0 150px; }
    .k-online { padding: var(--aq-space-5); }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot, .k-tile, .k-float { animation: none; }
    .k-card:hover { transform: none; }
}

/* Header fit between 1200 and 1399px: the language pill made the row wrap. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar > .container { flex-wrap: nowrap; }
    .navbar .nav-link { padding: 8px 7px; }
    .navbar .navbar-nav .ms-xl-2 { margin-left: 6px !important; }
    .btn-nav-admission, .btn-nav-login { padding: 10px 12px; }
    .navbar-brand { font-size: 1.12rem; }
    .aq-lang a { padding: 0 8px; min-width: 34px; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .navbar .nav-link { padding: 8px 5px; }
    .btn-nav-admission i, .btn-nav-login i { display: none; }
}

/* Header on phones: brand, language pill and menu button stay on one row. */
@media (max-width: 575.98px) {
    .navbar > .container { flex-wrap: nowrap; gap: 8px; }
    .navbar-brand { font-size: 1.02rem; gap: 8px; margin-right: 0; min-width: 0; white-space: normal; }
    .navbar-brand .aq-brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 1rem; }
}
@media (max-width: 359.98px) {
    .navbar-brand .aq-brand-mark { display: none; }
}

.info-box strong { color: inherit; white-space: nowrap; }
