/* ============================================================
   BOOMATT ACADEMY
   INTERNATIONAL ACADEMY WEBSITE STYLESHEET
   ============================================================

   Responsive across:
   - Large desktop
   - Desktop
   - Laptop
   - Tablet
   - Mobile
   - Small mobile

   Brand:
   Boomatt Academy
   Building Confident Learners, One Lesson at a Time.
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
    --primary-color: #238b87;
    --primary-dark: #176d69;
    --primary-light: #eaf7f6;

    --secondary-color: #d9a441;
    --secondary-dark: #b98220;
    --secondary-light: #fff7e5;

    --navy: #0b1f3a;
    --navy-light: #132f55;
    --navy-dark: #071529;

    --heading-color: #10243e;
    --body-color: #334155;
    --text-muted: #64748b;

    --white: #ffffff;
    --black: #0f172a;

    --background: #f8fafc;
    --background-light: #f7f9fb;
    --background-soft: #f2f6f8;

    --border-color: #e2e8f0;
    --border-light: #edf1f5;

    --success: #16855b;
    --success-light: #ecfdf3;

    --warning: #b7791f;
    --warning-light: #fff7e6;

    --danger: #b42318;
    --danger-light: #fff1f0;

    --info: #2563eb;
    --info-light: #eff6ff;

    --container: 1240px;
    --dashboard-container: 1440px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-2xl: 34px;

    --shadow-xs: 0 2px 8px rgba(11, 31, 58, 0.05);
    --shadow-sm: 0 5px 18px rgba(11, 31, 58, 0.07);
    --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.10);
    --shadow-lg: 0 20px 55px rgba(11, 31, 58, 0.13);
    --shadow-xl: 0 30px 80px rgba(11, 31, 58, 0.16);

    --transition-fast: 0.18s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.35s ease;
}


/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    background: var(--white);
    color: var(--body-color);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.mobile-menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--heading-color);
    font-weight: 800;
}

p {
    margin-top: 0;
}

::selection {
    background: rgba(35, 139, 135, 0.18);
    color: var(--navy);
}


/* ============================================================
   03. ACCESSIBILITY
   ============================================================ */

:focus-visible {
    outline: 3px solid rgba(35, 139, 135, 0.35);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 20px;
}


/* ============================================================
   04. GLOBAL LAYOUT
   ============================================================ */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section,
.section-soft {
    padding: 90px 0;
}

.section-soft {
    background: var(--background-soft);
}

.section-heading {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading .eyebrow,
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
}


/* ============================================================
   05. HEADER
   ============================================================ */

.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 14px rgba(11, 31, 58, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    width: auto;
    max-width: 185px;
    height: 58px;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-left: auto;
}

.main-navigation a {
    position: relative;
    padding: 8px 0;
    color: var(--heading-color);
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--secondary-color);
    transition: width var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 8px;
    color: var(--navy);
    font-size: 0.74rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.login-link:hover {
    color: var(--primary-color);
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border-radius: 9px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(11, 31, 58, 0.15);
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.header-button:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}


/* ============================================================
   06. MOBILE NAVIGATION
   ============================================================ */

.mobile-menu-button {
    display: none;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-navigation {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 20px 35px rgba(11, 31, 58, 0.12);
}

.mobile-navigation.is-open {
    display: block !important;
}

.mobile-navigation-inner {
    display: flex;
    flex-direction: column;
    padding: 12px 24px 18px;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--heading-color);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-navigation a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-navigation-divider {
    height: 1px;
    margin: 10px 0;
    background: var(--border-color);
}

.mobile-navigation .mobile-trial-button {
    justify-content: center;
    margin-top: 10px;
    background: var(--navy);
    color: var(--white);
}


/* ============================================================
   07. BUTTON SYSTEM
   ============================================================ */

.btn,
.primary-button,
.secondary-button,
.academy-primary-button,
.academy-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.btn:hover,
.primary-button:hover,
.secondary-button:hover,
.academy-primary-button:hover,
.academy-secondary-button:hover {
    transform: translateY(-1px);
}

.btn-primary,
.primary-button,
.academy-primary-button {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(35, 139, 135, 0.18);
}

.btn-primary:hover,
.primary-button:hover,
.academy-primary-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary,
.secondary-button,
.academy-secondary-button {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary:hover,
.secondary-button:hover,
.academy-secondary-button:hover {
    background: var(--navy-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--heading-color);
}

.btn-outline:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.76rem;
}

.btn-lg {
    min-height: 52px;
    padding: 0 25px;
    font-size: 0.92rem;
}


/* ============================================================
   08. GENERAL CARDS / GRIDS
   ============================================================ */

.card-grid,
.feature-grid,
.programme-grid,
.subject-grid,
.tutor-grid,
.resource-grid,
.steps-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card,
.programme-card,
.subject-card,
.resource-card,
.process-card,
.step-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.feature-card:hover,
.programme-card:hover,
.subject-card:hover,
.resource-card:hover,
.process-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(35, 139, 135, 0.25);
    box-shadow: var(--shadow-md);
}


/* ============================================================
   09. MAIN ACADEMY HERO
   ============================================================ */

.academy-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 100px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(35, 139, 135, 0.12),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f6fafb 0%,
            #ffffff 48%,
            #f5f8fc 100%
        );
}

.academy-hero-grid,
.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(35px, 5vw, 70px);
}

.academy-hero-content {
    max-width: 700px;
}

.academy-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.academy-hero h1 {
    margin-bottom: 22px;
    color: var(--navy);
    font-size: clamp(2.7rem, 5.5vw, 5.3rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.academy-hero-description {
    max-width: 640px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.academy-hero-actions,
.hero-buttons,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.academy-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.academy-hero-trust span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--body-color);
    font-size: 0.74rem;
    font-weight: 700;
}

.academy-hero-visual {
    position: relative;
    min-width: 0;
}

.academy-hero-image {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--background-soft);
    box-shadow: var(--shadow-xl);
}

.academy-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
}

.academy-floating-card {
    position: absolute;
    z-index: 2;
    min-width: 210px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.academy-floating-card-top {
    top: 25px;
    left: -24px;
}

.academy-floating-card-bottom {
    right: -24px;
    bottom: 25px;
}

.academy-floating-card strong {
    display: block;
    color: var(--navy);
    font-size: 0.78rem;
}

.academy-floating-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.academy-floating-icon,
.academy-progress-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 800;
}


/* ============================================================
   10. TRUST STRIP
   ============================================================ */

.academy-trust {
    padding: 0 0 25px;
}

.academy-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.academy-trust-item {
    padding: 25px 22px;
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.academy-trust-item:last-child {
    border-right: 0;
}

.academy-trust-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 1.5rem;
}

.academy-trust-item span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}


/* ============================================================
   11. GENERAL HERO
   ============================================================ */

.hero,
.page-hero {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--navy), #12385c);
    color: var(--white);
}

.hero h1,
.page-hero h1 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.hero-image-card,
.hero-image-placeholder {
    min-height: 430px;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}


/* ============================================================
   12. ABOUT
   ============================================================ */

.about-grid,
.about-leadership-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(35px, 5vw, 60px);
}

.about-image-card,
.about-leadership-photo {
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--background-soft);
}

.about-image-card img,
.about-leadership-photo img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.85;
}

.about-support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
}


/* ============================================================
   13. CTA / TRIAL
   ============================================================ */

.cta-section,
.trial-section {
    padding: 90px 0;
}

.cta-card,
.trial-card {
    padding: clamp(35px, 6vw, 60px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--navy), #123d61);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-card h2,
.trial-card h2 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-card p,
.trial-card p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   14. FORMS
   ============================================================ */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 35px;
    align-items: start;
}

.form-card {
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-intro {
    max-width: 600px;
}

.form-intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.form-intro p {
    color: var(--text-muted);
    line-height: 1.8;
}

.form-grid,
.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    min-width: 0;
    margin-bottom: 18px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--heading-color);
    font-size: 0.82rem;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control,
.auth-form-grid input,
.auth-form-grid select,
.auth-form-grid textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--white);
    color: var(--body-color);
    outline: none;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(35, 139, 135, 0.09);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.form-submit-button {
    min-width: 180px;
}


/* ============================================================
   15. LOGIN / AUTH
   ============================================================ */

.login-page,
.auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: linear-gradient(135deg, #f4f8fa, #ffffff, #f5f8fc);
}

.login-card,
.auth-card {
    width: 100%;
    max-width: 560px;
    padding: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.login-card h1,
.auth-card h1 {
    margin-bottom: 12px;
    color: var(--navy);
}

.login-card p,
.auth-card p {
    color: var(--text-muted);
}


/* ============================================================
   16. SUCCESS
   ============================================================ */

.success-card {
    width: min(calc(100% - 40px), 800px);
    margin: 80px auto;
    padding: 50px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.success-card h1 {
    color: var(--success);
}

.success-next-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* ============================================================
   17. FOOTER
   ============================================================ */

.site-footer {
    margin-top: 0;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
}

.footer-container,
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr) 1.2fr;
    gap: 34px;
    padding: 70px 0 55px;
}

.footer-logo img {
    max-width: 175px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 750;
}

.footer-description {
    max-width: 320px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.86rem;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.73rem;
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
}

.footer-bottom-right a {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
    text-decoration: none;
}


/* ============================================================
   18. DASHBOARD
   ============================================================ */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 82px);
    background: var(--background);
}

.dashboard-sidebar {
    position: fixed;
    top: 82px;
    bottom: 0;
    left: 0;
    z-index: 900;
    width: 260px;
    padding: 25px 18px;
    overflow-y: auto;
    background: var(--navy);
}

.dashboard-main {
    width: calc(100% - 260px);
    margin-left: 260px;
    min-width: 0;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
    padding: 0 30px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-content {
    width: min(calc(100% - 60px), var(--dashboard-container));
    margin: 0 auto;
    padding: 40px 0 70px;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 32px;
}

.dashboard-page-header,
.management-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.dashboard-page-header h1,
.management-page-header h2 {
    margin-bottom: 5px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.dashboard-page-header p,
.management-page-header p {
    margin: 0;
    color: var(--text-muted);
}

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--body-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dashboard-stat-grid,
.dashboard-management-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.dashboard-stat-card,
.dashboard-card,
.dashboard-panel,
.dashboard-system-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.dashboard-stat-card {
    padding: 23px;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 7px;
    color: var(--navy);
    font-size: 1.65rem;
}

.dashboard-stat-card span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-card,
.dashboard-panel,
.dashboard-system-panel {
    padding: 25px;
    margin-bottom: 22px;
}

.dashboard-card h2,
.dashboard-panel h2,
.dashboard-system-panel h2 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.dashboard-filter-grid,
.management-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}


/* ============================================================
   19. TABLE SYSTEM
   ============================================================ */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th {
    padding: 14px 17px;
    background: #f7f9fb;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 17px;
    border-bottom: 1px solid var(--border-light);
    color: var(--body-color);
    font-size: 0.83rem;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfcfd;
}


/* ============================================================
   20. MANAGEMENT
   ============================================================ */

.management-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.management-filter-grid {
    margin-bottom: 22px;
}

.enquiry-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.enquiry-detail-card-wide {
    grid-column: 1 / -1;
}

.enquiry-record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.enquiry-status-card {
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.enquiry-status-update-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.enquiry-status-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.enquiry-status-select {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
}


/* ============================================================
   21. TUTOR MANAGEMENT
   ============================================================ */

.tutor-management-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.tutor-review {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.tutor-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tutor-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}


/* ============================================================
   22. PORTAL LOGIN
   ============================================================ */

.portal-login-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: linear-gradient(
        135deg,
        #f5f8fc 0%,
        #eef4f8 50%,
        #f8fafc 100%
    );
}

.portal-login-container {
    width: 100%;
    max-width: 560px;
}

.portal-login-card {
    padding: 42px;
    background: var(--white);
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.portal-login-header {
    margin-bottom: 32px;
    text-align: center;
}

.portal-login-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--navy);
    color: var(--white);
    font-size: 30px;
}

.portal-login-label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.portal-login-header h1 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 34px;
}

.portal-login-header p {
    max-width: 440px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.portal-form-group {
    margin-bottom: 20px;
}

.portal-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}

.portal-form-group input,
.portal-form-group select,
.portal-form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #d8e0e8;
    border-radius: 10px;
    background: var(--white);
    color: #172033;
}

.portal-help-text {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.portal-field-errors {
    margin-top: 7px;
    color: var(--danger);
    font-size: 13px;
}

.portal-error-box,
.portal-message {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.portal-error-box {
    margin-bottom: 22px;
    border: 1px solid #f3b8b3;
    background: var(--danger-light);
    color: var(--danger);
}

.portal-message.success {
    background: var(--success-light);
    color: var(--success);
}

.portal-message.error {
    background: var(--danger-light);
    color: var(--danger);
}

.portal-login-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
}

.portal-login-button:hover {
    background: var(--navy-light);
}

.portal-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 24px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portal-login-divider::before,
.portal-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.portal-login-information {
    display: grid;
    gap: 12px;
}

.portal-info-item {
    padding: 15px 16px;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: #f8fafc;
}

.portal-info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 14px;
}

.portal-info-item span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.portal-login-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.portal-login-footer p {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.portal-login-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.portal-login-links a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* ============================================================
   23. PARENT PORTAL
   ============================================================ */

.parent-portal-page {
    width: min(calc(100% - 48px), 1400px);
    margin: 0 auto;
    padding: 48px 0 80px;
}

.parent-portal-page .portal-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    padding: 36px;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        135deg,
        rgba(10, 35, 66, 0.98),
        rgba(18, 70, 91, 0.96)
    );
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.parent-portal-page .portal-header .eyebrow {
    color: var(--secondary-color);
}

.parent-portal-page .portal-header h1 {
    margin: 8px 0 12px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.parent-portal-page .portal-header p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.portal-header-actions,
.portal-support-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


/* ============================================================
   24. PORTAL STATISTICS
   ============================================================ */

.portal-stats-grid,
.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 52px;
}

.portal-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 138px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.portal-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 15px;
    background: rgba(35, 139, 135, 0.1);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
}

.portal-stat-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portal-stat-card strong {
    display: block;
    margin-bottom: 3px;
    color: var(--heading-color);
    font-size: 1.65rem;
    line-height: 1.1;
}

.portal-stat-card small {
    color: var(--text-muted);
    font-size: 0.78rem;
}


/* ============================================================
   25. PORTAL SECTIONS
   ============================================================ */

.portal-section {
    margin-top: 58px;
}

.portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.portal-section-heading .eyebrow {
    display: block;
    margin-bottom: 7px;
}

.portal-section-heading h2 {
    margin-bottom: 8px;
    color: var(--heading-color);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.portal-section-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ============================================================
   26. STUDENT CARDS
   ============================================================ */

.portal-student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.portal-student-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.portal-student-card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.portal-avatar,
.portal-avatar-large {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--navy)
    );
    color: var(--white);
    font-weight: 800;
}

.portal-avatar {
    width: 48px;
    height: 48px;
}

.portal-avatar-large {
    width: 70px;
    height: 70px;
    font-size: 1.2rem;
}

.portal-student-card h3 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.portal-student-card small {
    color: var(--text-muted);
}

.portal-student-details {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.portal-student-detail {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.82rem;
}

.portal-student-detail span:first-child {
    color: var(--text-muted);
}

.portal-student-detail strong {
    color: var(--heading-color);
    text-align: right;
}


/* ============================================================
   27. STATUS BADGES
   ============================================================ */

.status-badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge.success,
.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.warning,
.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.status-badge.danger,
.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.status-badge.info,
.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.status-badge.neutral,
.badge-neutral {
    background: #f1f5f9;
    color: #475569;
}


/* ============================================================
   28. EMPTY STATES
   ============================================================ */

.empty-state {
    padding: 45px 25px;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-light);
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 550px;
    margin: 0 auto;
    color: var(--text-muted);
}


/* ============================================================
   29. RESPONSIVE — LARGE DESKTOP
   ============================================================ */

@media (min-width: 1441px) {

    .container {
        width: min(calc(100% - 80px), 1360px);
    }

    .dashboard-content {
        width: min(calc(100% - 80px), 1500px);
    }

    .academy-hero {
        padding-top: 115px;
        padding-bottom: 120px;
    }
}


/* ============================================================
   30. RESPONSIVE — LAPTOP
   ============================================================ */

@media (max-width: 1200px) {

    .container {
        width: min(calc(100% - 40px), 1120px);
    }

    .main-navigation {
        gap: 14px;
    }

    .main-navigation a {
        font-size: 0.78rem;
    }

    .header-actions {
        gap: 4px;
    }

    .header-button {
        padding-inline: 13px;
    }

    .footer-container,
    .footer-main {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }

    .footer-contact {
        grid-column: span 2;
    }

    .academy-hero-grid,
    .hero-container {
        gap: 40px;
    }

    .dashboard-stat-grid,
    .dashboard-management-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portal-stats-grid,
    .portal-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   31. RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {

    .section,
    .section-soft {
        padding: 70px 0;
    }

    .main-navigation,
    .header-actions {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .academy-hero {
        padding: 70px 0 80px;
    }

    .academy-hero-grid,
    .hero-container {
        grid-template-columns: 1fr;
    }

    .academy-hero-content {
        max-width: 800px;
    }

    .academy-hero-visual {
        max-width: 760px;
        width: 100%;
        margin: 0 auto;
    }

    .academy-hero-image,
    .academy-hero-image img {
        min-height: 480px;
    }

    .card-grid,
    .feature-grid,
    .programme-grid,
    .subject-grid,
    .tutor-grid,
    .resource-grid,
    .steps-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .about-leadership-grid {
        grid-template-columns: 1fr;
    }

    .about-image-card,
    .about-leadership-photo {
        max-width: 760px;
        width: 100%;
        margin: 0 auto;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .footer-container,
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
    }

    .footer-contact {
        grid-column: auto;
    }

    .dashboard-sidebar {
        width: 220px;
    }

    .dashboard-main {
        width: calc(100% - 220px);
        margin-left: 220px;
    }

    .dashboard-stat-grid,
    .dashboard-management-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-student-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .parent-portal-page .portal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .enquiry-record-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   32. RESPONSIVE — SMALL TABLET / LARGE PHONE
   ============================================================ */

@media (max-width: 768px) {

    .container {
        width: min(calc(100% - 32px), 680px);
    }

    .section,
    .section-soft {
        padding: 58px 0;
    }

    .header-container {
        min-height: 72px;
    }

    .site-logo img {
        max-width: 155px;
        height: 50px;
    }

    .mobile-navigation {
        max-height: calc(100vh - 72px);
    }

    .academy-hero {
        padding: 58px 0 65px;
    }

    .academy-hero h1 {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }

    .academy-hero-description {
        font-size: 0.98rem;
    }

    .academy-hero-image,
    .academy-hero-image img {
        min-height: 400px;
    }

    .academy-floating-card {
        min-width: 175px;
        padding: 12px;
    }

    .academy-floating-card-top {
        left: 12px;
    }

    .academy-floating-card-bottom {
        right: 12px;
    }

    .academy-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .academy-trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .academy-trust-item:nth-child(odd) {
        border-right: 1px solid var(--border-light);
    }

    .academy-trust-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .card-grid,
    .feature-grid,
    .programme-grid,
    .subject-grid,
    .tutor-grid,
    .resource-grid,
    .steps-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .about-support-grid,
    .form-grid,
    .auth-form-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .cta-section,
    .trial-section {
        padding: 60px 0;
    }

    .cta-card,
    .trial-card {
        padding: 38px 25px;
    }

    .success-card {
        margin: 50px auto;
        padding: 35px 22px;
    }

    .success-next-steps {
        grid-template-columns: 1fr;
    }

    .footer-container,
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        padding: 55px 0 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-layout {
        display: block;
        min-height: auto;
    }

    .dashboard-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-topbar {
        padding: 0 20px;
    }

    .dashboard-content {
        width: min(calc(100% - 32px), 700px);
        padding: 30px 0 55px;
    }

    .dashboard-welcome,
    .dashboard-page-header,
    .management-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stat-grid,
    .dashboard-management-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-filter-grid,
    .management-filter-grid {
        grid-template-columns: 1fr;
    }

    .enquiry-detail-grid {
        grid-template-columns: 1fr;
    }

    .enquiry-detail-card-wide {
        grid-column: auto;
    }

    .tutor-review-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-login-page {
        padding: 45px 16px;
    }

    .portal-login-card {
        padding: 30px 22px;
    }

    .parent-portal-page {
        width: min(calc(100% - 32px), 700px);
        padding: 32px 0 55px;
    }

    .parent-portal-page .portal-header {
        padding: 28px 22px;
    }

    .portal-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-stats-grid,
    .portal-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-student-grid {
        grid-template-columns: 1fr;
    }

    .portal-header-actions,
    .portal-support-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .portal-header-actions .btn,
    .portal-support-actions .btn {
        flex: 1 1 180px;
    }
}


/* ============================================================
   33. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 576px) {

    .container {
        width: calc(100% - 28px);
    }

    .section,
    .section-soft {
        padding: 48px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 1.9rem;
    }

    .header-container {
        min-height: 68px;
    }

    .site-logo img {
        max-width: 140px;
        height: 46px;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
    }

    .mobile-navigation {
        max-height: calc(100vh - 68px);
    }

    .mobile-navigation-inner {
        padding-inline: 14px;
    }

    .academy-hero {
        padding: 48px 0 55px;
    }

    .academy-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(2.15rem, 11vw, 3.2rem);
    }

    .academy-hero-description {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .academy-hero-actions,
    .hero-buttons,
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .academy-hero-actions .btn,
    .hero-buttons .btn,
    .hero-actions .btn,
    .academy-hero-actions a,
    .hero-buttons a,
    .hero-actions a {
        width: 100%;
    }

    .academy-hero-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .academy-hero-trust span {
        justify-content: center;
        text-align: center;
    }

    .academy-hero-image,
    .academy-hero-image img {
        min-height: 320px;
    }

    .academy-floating-card {
        min-width: 145px;
        max-width: 170px;
        padding: 10px;
    }

    .academy-floating-card-top {
        top: 12px;
        left: 10px;
    }

    .academy-floating-card-bottom {
        right: 10px;
        bottom: 12px;
    }

    .academy-floating-card strong {
        font-size: 0.68rem;
    }

    .academy-floating-card small {
        font-size: 0.6rem;
    }

    .academy-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .academy-trust-item {
        padding: 20px 10px;
    }

    .academy-trust-item strong {
        font-size: 1.2rem;
    }

    .academy-trust-item span {
        font-size: 0.67rem;
    }

    .hero,
    .page-hero {
        padding: 58px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.4rem;
    }

    .hero-image-card,
    .hero-image-placeholder {
        min-height: 300px;
    }

    .about-image-card,
    .about-leadership-photo {
        min-height: 330px;
    }

    .feature-card,
    .programme-card,
    .subject-card,
    .resource-card,
    .process-card,
    .step-card {
        padding: 22px;
    }

    .form-card {
        padding: 24px 18px;
    }

    .form-submit-area {
        align-items: stretch;
        flex-direction: column;
    }

    .form-submit-button {
        width: 100%;
    }

    .login-page,
    .auth-page {
        padding: 45px 14px;
    }

    .login-card,
    .auth-card {
        padding: 30px 20px;
    }

    .footer-container,
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        gap: 12px;
    }

    .dashboard-topbar {
        min-height: 62px;
        padding: 0 14px;
    }

    .dashboard-content {
        width: calc(100% - 28px);
        padding: 25px 0 45px;
    }

    .dashboard-stat-grid,
    .dashboard-management-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .dashboard-panel,
    .dashboard-system-panel {
        padding: 20px 16px;
    }

    .dashboard-stat-card {
        padding: 20px;
    }

    .dashboard-page-header h1,
    .management-page-header h2 {
        font-size: 1.8rem;
    }

    .management-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .management-header-actions .btn {
        flex: 1 1 150px;
    }

    .tutor-review-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tutor-review-grid {
        grid-template-columns: 1fr;
    }

    .enquiry-record-grid {
        grid-template-columns: 1fr;
    }

    .enquiry-status-update-content,
    .enquiry-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-login-card {
        padding: 26px 17px;
        border-radius: 18px;
    }

    .portal-login-header h1 {
        font-size: 28px;
    }

    .portal-login-icon {
        width: 58px;
        height: 58px;
        font-size: 25px;
    }

    .parent-portal-page {
        width: calc(100% - 28px);
        padding: 24px 0 45px;
    }

    .parent-portal-page .portal-header {
        margin-bottom: 28px;
        padding: 25px 18px;
        border-radius: 18px;
    }

    .parent-portal-page .portal-header h1 {
        font-size: 2rem;
    }

    .portal-stats-grid,
    .portal-stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 38px;
    }

    .portal-stat-card {
        min-height: 110px;
        padding: 18px;
    }

    .portal-section {
        margin-top: 42px;
    }

    .portal-student-card {
        padding: 20px;
    }

    .portal-student-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .portal-student-detail strong {
        text-align: left;
    }

    .portal-header-actions .btn,
    .portal-support-actions .btn {
        width: 100%;
        flex-basis: 100%;
    }

    .success-card {
        width: calc(100% - 28px);
        padding: 30px 18px;
    }
}


/* ============================================================
   34. RESPONSIVE — VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 22px);
    }

    .site-logo img {
        max-width: 125px;
    }

    .academy-hero h1 {
        font-size: 2rem;
    }

    .academy-hero-trust {
        grid-template-columns: 1fr;
    }

    .academy-trust-grid {
        grid-template-columns: 1fr;
    }

    .academy-trust-item,
    .academy-trust-item:nth-child(odd) {
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .academy-trust-item:last-child {
        border-bottom: 0;
    }

    .academy-floating-card {
        display: none;
    }

    .portal-login-card {
        padding: 24px 14px;
    }

    .parent-portal-page .portal-header h1 {
        font-size: 1.75rem;
    }
}


/* ============================================================
   35. PRINT
   ============================================================ */

@media print {

    .site-header,
    .site-footer,
    .mobile-menu-button,
    .dashboard-sidebar,
    .dashboard-topbar,
    .header-actions,
    .btn,
    button {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .dashboard-main {
        width: 100%;
        margin: 0;
    }

    .dashboard-content {
        width: 100%;
        padding: 0;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}


/* ============================================================
   36. TRIAL SUCCESS
   ============================================================ */

.trial-success-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #f8fafc;
}

.trial-success-container {
    width: 100%;
    max-width: 760px;
    padding: 60px 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 15px 45px rgba(11, 31, 58, 0.08);
}

.trial-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf7f6;
    color: #238b87;
    font-size: 34px;
    font-weight: 700;
}

.trial-success-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #238b87;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.trial-success-container h1 {
    margin: 0 auto 20px;
    max-width: 650px;
    color: #0b1f3a;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
}

.trial-success-container p {
    max-width: 620px;
    margin: 0 auto 16px;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.trial-success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.trial-success-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.trial-success-actions .btn-primary {
    background: #238b87;
    color: #ffffff;
}

.trial-success-actions .btn-secondary {
    background: #ffffff;
    color: #0b1f3a;
    border: 1px solid #dbe3ea;
}


/* ============================================================
   BOOMATT ACADEMY — STUDENT LOGIN
   ============================================================ */

.student-login-page {
    min-height: calc(100vh - 82px);
    padding: 80px 20px;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef7f6 100%
        );
}

.student-login-page .portal-auth-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}


/* ============================================================
   INTRO
   ============================================================ */

.student-login-page .portal-auth-intro {
    text-align: center;
    margin-bottom: 32px;
}

.student-login-page .portal-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #238b87;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.student-login-page .portal-auth-intro h1 {
    margin: 0;
    color: #0b1f3a;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 800;
}

.student-login-page .portal-auth-intro p {
    max-width: 500px;
    margin: 16px auto 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.student-login-page .portal-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 42px;
    box-shadow:
        0 20px 50px rgba(11, 31, 58, 0.08);
}


/* ============================================================
   CARD HEADER
   ============================================================ */

.student-login-page .portal-auth-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.student-login-page .portal-auth-card-header h2 {
    margin: 18px 0 8px;
    color: #0b1f3a;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.student-login-page .portal-auth-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}


/* ============================================================
   ACADEMY ICON
   ============================================================ */

.student-login-page .portal-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #eaf7f6;
    border: 1px solid #d2eeec;

    color: #176d69;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* ============================================================
   DJANGO MESSAGES
   ============================================================ */

.student-login-page .portal-messages {
    margin-bottom: 24px;
}

.student-login-page .portal-message {
    padding: 13px 15px;
    margin-bottom: 10px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.5;
}

.student-login-page .portal-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.student-login-page .portal-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.student-login-page .portal-message.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.student-login-page .portal-message.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}


/* ============================================================
   FORM
   ============================================================ */

.student-login-page .portal-auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.student-login-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-login-page .form-group label {
    color: #0b1f3a;
    font-size: 14px;
    font-weight: 700;
}


/* ============================================================
   INPUT WRAPPER
   ============================================================ */

.student-login-page .portal-input-wrapper {
    position: relative;
}

.student-login-page .portal-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    color: #238b87;

    font-size: 16px;
    font-weight: 700;

    pointer-events: none;
}


/* ============================================================
   INPUTS
   ============================================================ */

.student-login-page .form-input {
    width: 100%;
    min-height: 54px;

    box-sizing: border-box;

    padding: 0 16px 0 46px;

    border: 1px solid #dbe3ea;
    border-radius: 11px;

    background: #ffffff;

    color: #0b1f3a;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.student-login-page .form-input::placeholder {
    color: #94a3b8;
}

.student-login-page .form-input:hover {
    border-color: #b8c8d6;
}

.student-login-page .form-input:focus {
    border-color: #238b87;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(35, 139, 135, 0.10);
}


/* ============================================================
   SIGN IN BUTTON
   ============================================================ */

.student-login-page .portal-auth-submit {
    width: 100%;
    min-height: 54px;

    margin-top: 4px;

    border: none;
    border-radius: 11px;

    background: #238b87;

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.student-login-page .portal-auth-submit:hover {
    background: #176d69;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(35, 139, 135, 0.20);
}

.student-login-page .portal-auth-submit:active {
    transform: translateY(0);
}


/* ============================================================
   SECURITY NOTE
   ============================================================ */

.student-login-page .portal-auth-footer {
    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid #edf1f5;
}

.student-login-page .portal-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 13px 14px;

    border-radius: 10px;

    background: #f8fafc;
}

.student-login-page .portal-security-icon {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf7f6;
    color: #176d69;

    font-size: 12px;
    font-weight: 800;
}

.student-login-page .portal-security-note p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.6;
}


/* ============================================================
   RETURN LINK
   ============================================================ */

.student-login-page .portal-auth-back {
    margin-top: 24px;
    text-align: center;
}

.student-login-page .portal-auth-back a {
    color: #176d69;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

.student-login-page .portal-auth-back a:hover {
    color: #0b1f3a;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .student-login-page {
        min-height: auto;
        padding: 55px 16px 65px;
    }

    .student-login-page .portal-auth-intro {
        margin-bottom: 24px;
    }

    .student-login-page .portal-auth-intro h1 {
        font-size: 34px;
    }

    .student-login-page .portal-auth-intro p {
        font-size: 14px;
    }

    .student-login-page .portal-auth-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .student-login-page .portal-auth-card-header h2 {
        font-size: 24px;
    }

    .student-login-page .portal-auth-icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .student-login-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .student-login-page .portal-auth-card {
        padding: 24px 16px;
    }

}
/* ============================================================
   BOOMATT ACADEMY — PARENT LOGIN
   ============================================================ */

.parent-login-page {
    min-height: calc(100vh - 82px);
    padding: 80px 20px;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #f4f8fb 48%,
            #eef7f6 100%
        );
}

.parent-login-page .container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.parent-login-page .auth-card {
    width: 100%;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow:
        0 20px 50px rgba(11, 31, 58, 0.09);
}

.parent-login-page .auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.parent-login-page .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 18px;
    background: #eaf7f6;
    border: 1px solid #d2eeec;
}

.parent-login-page .auth-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.parent-login-page .portal-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #238b87;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.parent-login-page .auth-header h1 {
    margin: 0 0 12px;
    color: #0b1f3a;
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.1;
    font-weight: 800;
}

.parent-login-page .auth-header > p:last-child {
    max-width: 460px;
    margin: 0 auto;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* ============================================================
   DJANGO MESSAGES
   ============================================================ */

.parent-login-page .auth-messages {
    margin-bottom: 22px;
}

.parent-login-page .auth-message {
    margin-bottom: 10px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.parent-login-page .auth-message.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.parent-login-page .auth-message.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.parent-login-page .auth-message.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}


/* ============================================================
   FORM
   ============================================================ */

.parent-login-page .auth-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.parent-login-page .form-group {
    margin-bottom: 18px;
}

.parent-login-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0b1f3a;
    font-size: 14px;
    font-weight: 700;
}

.parent-login-page .form-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #dbe3ea;
    border-radius: 11px;
    background: #ffffff;
    color: #0b1f3a;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.parent-login-page .form-input::placeholder {
    color: #94a3b8;
}

.parent-login-page .form-input:hover {
    border-color: #b8c8d6;
}

.parent-login-page .form-input:focus {
    border-color: #238b87;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(35, 139, 135, 0.10);
}


/* ============================================================
   SIGN IN BUTTON
   ============================================================ */

.parent-login-page .btn-full {
    width: 100%;
}

.parent-login-page .btn-primary {
    min-height: 54px;
    margin-top: 4px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    box-shadow:
        0 8px 20px rgba(35, 139, 135, 0.16);
}

.parent-login-page .btn-primary:hover {
    box-shadow:
        0 10px 24px rgba(35, 139, 135, 0.22);
}


/* ============================================================
   FOOTER
   ============================================================ */

.parent-login-page .auth-footer {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
    text-align: center;
}

.parent-login-page .auth-footer p {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
}

.parent-login-page .auth-footer a {
    color: #176d69;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.parent-login-page .auth-footer a:hover {
    color: #0b1f3a;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .parent-login-page {
        min-height: auto;
        padding: 55px 16px 65px;
    }

    .parent-login-page .auth-header {
        margin-bottom: 24px;
    }

    .parent-login-page .auth-header h1 {
        font-size: 34px;
    }

    .parent-login-page .auth-header > p:last-child {
        font-size: 14px;
    }

    .parent-login-page .auth-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .parent-login-page .auth-logo {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .parent-login-page .auth-logo img {
        width: 42px;
        height: 42px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .parent-login-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .parent-login-page .auth-card {
        padding: 24px 16px;
    }

    .parent-login-page .auth-header h1 {
        font-size: 30px;
    }

}