/* =========================================================
   DANMAWEB ACADEMY
   MASTER DESIGN SYSTEM
========================================================= */
/* =========================================================
   1. DESIGN TOKENS
========================================================= */

:root {

    /* Brand */
    --primary: #4B2E24;
    --primary-dark: #4B2E24;
    --primary-light: #F3E8D5;

    /* Supporting colours */
    --teal: #4B2E24;
    --teal-dark: #4B2E24;

    --gold: #4B2E24;
    --gold-light: #F3E8D5;

    /* Backgrounds */
    --background: #F3E8D5;
    --surface: #FFFFFF;
    --surface-soft: #F3E8D5;

    /* Text */
    --text: #4B2E24;
    --text-muted: #4B2E24;
    --text-light: #4B2E24;

    /* Borders */
    --border: #F3E8D5;

    /* Status */
    --success: #2D9C58;
    --danger: #C43D4F;
    --warning: #4B2E24;

    /* Typography */
    --heading-font: "Poppins", sans-serif;
    --body-font: "Inter", sans-serif;

    /* Layout */
    --container: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm:
        0 2px 8px rgba(41, 36, 30, 0.05);

    --shadow-md:
        0 10px 30px rgba(41, 36, 30, 0.08);

    /* Compatibility aliases used by older page sections.
       Keep these mapped to the main design tokens so every page
       uses the same text colours and shadow strengths. */
    --muted-text: var(--text-muted);
    --light-text: var(--text-light);
    --shadow-small: var(--shadow-sm);
    --shadow-medium: var(--shadow-md);

}
/* =========================================================
   2. GLOBAL RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {

    background: var(--background);

    color: var(--text);

    font-family: var(--body-font);

    min-height: 100vh;

    line-height: 1.5;

}
a {
    color: inherit;
}
button,
input,
select,
textarea {

    font-family: var(--body-font);
}
/* =========================================================
   3. TYPOGRAPHY
========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
 font-family: var(--heading-font);

    color: var(--text);

}
h1 {
    font-weight: 700;
}
h2,
h3 {
    font-weight: 600;
}
/* =========================================================
   4. TOP BAR
========================================================= */
.top-bar {

    height: 50px;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 40px;

    font-size: 12px;

    color: var(--text-muted);

    letter-spacing: 0.5px;

}
.holiday-links {

    display: flex;

    gap: 24px;

}
/* =========================================================
   5. NAVIGATION
========================================================= */
.navbar {

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 40px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

}
.logo {

    display: flex;

    align-items: baseline;

    gap: 8px;

}
.logo-main {

    font-family: var(--heading-font);

    font-size: 24px;

    font-weight: 700;

    color: var(--primary);

}
.logo-sub {

    font-size: 10px;

    letter-spacing: 3px;

    color: var(--text-muted);

}
.sign-in-button {

    text-decoration: none;

    background: var(--primary);

    color: white;

    padding: 11px 20px;

    border-radius: var(--radius-sm);

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;

}
.sign-in-button:hover {

    background: var(--primary-dark);

    transform: translateY(-1px);

}
/* =========================================================
   6. HERO
========================================================= */
.hero {

    max-width: var(--container);

    margin: 0 auto;

    padding: 70px 40px 60px;

    display: grid;

    grid-template-columns: 1fr 260px;

    gap: 60px;

    align-items: center;

}


.hero-content {

    max-width: 760px;

}


.eyebrow {

    font-size: 11px;

    letter-spacing: 3px;

    color: var(--teal);

    margin-bottom: 12px;

    font-weight: 700;

}
.hero h1 {

    font-family: var(--heading-font);

    font-size: clamp(45px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;

    color: var(--primary);

}
.hero-description {

    max-width: 650px;

    color: var(--text-muted);

    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 25px;

}


/* =========================================================
   7. BUTTONS
========================================================= */

.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


.primary-button,
.secondary-button {

    text-decoration: none;

    padding: 13px 20px;

    border-radius: var(--radius-sm);

    font-size: 14px;

    display: inline-block;

    cursor: pointer;

    transition: 0.2s;

}


.primary-button {

    background: var(--teal);

    color: white;

    font-weight: 700;

    border: none;

}


.primary-button:hover {

    background: var(--teal-dark);

    transform: translateY(-1px);

}


.secondary-button {

    background: var(--surface);

    color: var(--primary);

    border: 1px solid var(--border);

    font-weight: 600;

}


.secondary-button:hover {

    border-color: var(--primary);

}


/* =========================================================
   8. MARKING CARD
========================================================= */

.marking-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    padding: 25px;

    text-align: center;

    box-shadow: var(--shadow-sm);

}


.marking-card p {

    font-size: 10px;

    letter-spacing: 3px;

    color: var(--teal);

    margin-bottom: 8px;

}


.marking-card strong {

    display: block;

    font-family: var(--heading-font);

    font-size: 42px;

    color: var(--success);

    margin-bottom: 4px;

}


.marking-card span {

    display: block;

    font-family: monospace;

    font-size: 10px;

    color: var(--text-light);

}


/* =========================================================
   9. SUBJECTS
========================================================= */

.subjects-section {

    max-width: var(--container);

    margin: 0 auto;

    padding: 0 40px 60px;

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 14px;

}


.section-heading h2 {

    font-family: var(--heading-font);

    font-size: 26px;

    color: var(--primary);

}


.section-heading span {

    font-family: monospace;

    font-size: 11px;

    color: var(--text-muted);

}


/* =========================================================
   10. SUBJECT GRID
========================================================= */

.subject-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

}


.subject-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-top: 4px solid;

    border-radius: var(--radius-md);

    padding: 24px 16px;

    min-height: 110px;

    box-shadow: var(--shadow-sm);

    transition: 0.2s;

}


.subject-card:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);

}


.subject-card h3 {

    font-family: var(--heading-font);

    font-size: 20px;

    margin-bottom: 8px;

}


.subject-card p {

    font-family: monospace;

    font-size: 11px;

    color: var(--text-muted);

}


/* Subject colours */

.mathematics {
    border-top-color: #4B2E24;
}

.science {
    border-top-color: #4B2E24;
}

.kiswahili {
    border-top-color: #C43D73;
}

.ptec {
    border-top-color: #4B2E24;
}

.sst {
    border-top-color: #3CA35D;
}

.creative-arts {
    border-top-color: #4B2E24;
}


/* =========================================================
   11. AUTHENTICATION PAGE
========================================================= */

.auth-page {

    min-height: 100vh;

    display: flex;

}


/* ---------- BRAND PANEL ---------- */

.brand-panel {

    width: 48%;

    min-height: 100vh;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;

    position: relative;

    overflow: hidden;

}


.brand-panel::after {

    content: "";

    position: absolute;

    width: 360px;

    height: 360px;

    border-radius: 50%;

    background: rgba(21, 155, 122, 0.14);

    bottom: -150px;

    right: -120px;

}


.brand-panel::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    border-radius: 50%;

    border: 1px solid rgba(213, 155, 22, 0.25);

    top: -80px;

    left: -80px;

}


.brand-content {

    max-width: 500px;

    position: relative;

    z-index: 2;

}


.brand-logo {

    width: 58px;

    height: 58px;

    background: var(--gold);

    color: var(--primary);

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: var(--heading-font);

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 28px;

}


.brand-content h1 {

    font-size: 42px;

    line-height: 1.2;

    color: white;

    margin-bottom: 10px;

}


.brand-tagline {

    font-size: 20px;

    color: #F3E8D5;

    font-weight: 600;

    margin-bottom: 22px;

}


.brand-description {

    font-size: 16px;

    line-height: 1.8;

    color: #F3E8D5;

    max-width: 450px;

}


.learning-points {

    margin-top: 35px;

    display: flex;

    flex-direction: column;

    gap: 17px;

}


.learning-point {

    display: flex;

    align-items: center;

    gap: 12px;

}


.learning-point span {

    width: 25px;

    height: 25px;

    border-radius: 50%;

    background: rgba(21, 155, 122, 0.25);

    color: #F3E8D5;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    font-weight: 700;

}


.learning-point p {

    color: #F3E8D5;

    font-size: 14px;

}


/* ---------- AUTH PANEL ---------- */

.auth-panel {

    width: 52%;

    min-height: 100vh;

    background: var(--background);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px;

}


.auth-card {

    width: 100%;

    max-width: 470px;

    background: var(--surface);

    padding: 45px;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);

}


.form-header .small-heading {

    display: block;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--teal);

    margin-bottom: 9px;

}


.form-header h2 {

    font-size: 27px;

    color: var(--primary);

    margin-bottom: 8px;

}


.form-header p {

    font-size: 14px;

    color: var(--text-muted);

    line-height: 1.6;

    margin-bottom: 30px;

}


/* =========================================================
   12. FORM ELEMENTS
========================================================= */

.input-group {

    margin-bottom: 19px;

}


.input-group label {

    display: block;

    font-size: 13px;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 8px;

}


.label-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.label-row a {

    color: var(--teal);

    font-size: 12px;

    text-decoration: none;

    font-weight: 500;

}


.input-group input,
.input-group select,
.input-group textarea {

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    background: #FFFFFF;

    color: var(--text);

    font-size: 14px;

    outline: none;

    transition: 0.2s;

}


.input-group textarea {

    resize: vertical;

}


.input-group input::placeholder {

    color: #4B2E24;

}


.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {

    border-color: var(--teal);

    background: var(--surface);

    box-shadow:
        0 0 0 3px rgba(21, 155, 122, 0.10);

}


/* =========================================================
   13. REMEMBER ME
========================================================= */

.remember-me {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-muted);

    font-size: 13px;

    margin: 5px 0 23px;

}


.remember-me input {

    accent-color: var(--teal);

}


/* =========================================================
   14. AUTH BUTTON
========================================================= */

.auth-card .primary-button {

    width: 100%;

    height: 49px;

}


/* =========================================================
   15. DIVIDER
========================================================= */

.divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 27px 0;

}


.divider::before,
.divider::after {

    content: "";

    height: 1px;

    background: var(--border);

    flex: 1;

}


.divider span {

    font-size: 10px;

    color: #4B2E24;

    font-weight: 600;

}


/* =========================================================
   16. ACCOUNT SWITCH
========================================================= */

.account-switch {

    text-align: center;

    font-size: 13px;

    color: var(--text-muted);

}


.account-switch button {

    border: none;

    background: none;

    color: var(--teal);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}


.account-switch button:hover {

    text-decoration: underline;

}


/* =========================================================
   17. UTILITY
========================================================= */

.hidden {

    display: none !important;

}


/* =========================================================
   18. RESPONSIVE DESIGN
========================================================= */

@media (max-width: 950px) {

    .brand-panel {

        padding: 40px;

    }

    .brand-content h1 {

        font-size: 34px;

    }

    .auth-panel {

        padding: 30px;

    }

    .auth-card {

        padding: 35px;

    }

}


@media (max-width: 800px) {

    .top-bar {

        padding: 0 20px;

    }


    .navbar {

        padding: 0 20px;

    }


    .hero {

        grid-template-columns: 1fr;

        padding: 50px 20px;

    }


    .marking-card {

        max-width: 260px;

    }


    .subjects-section {

        padding-left: 20px;

        padding-right: 20px;

    }


    .subject-grid {

        grid-template-columns: 1fr;

    }


    .hero h1 {

        font-size: 46px;

    }

}


@media (max-width: 750px) {

    .auth-page {

        flex-direction: column;

    }


    .brand-panel {

        width: 100%;

        min-height: auto;

        padding: 45px 30px;

    }


    .brand-content h1 {

        font-size: 32px;

    }


    .brand-description {

        font-size: 14px;

    }


    .learning-points {

        margin-top: 25px;

    }


    .auth-panel {

        width: 100%;

        min-height: auto;

        padding: 30px 20px;

    }


    .auth-card {

        padding: 30px 25px;

        border-radius: var(--radius-md);

    }

}


@media (max-width: 400px) {

    .brand-panel {

        padding: 35px 20px;

    }


    .auth-panel {

        padding: 20px 15px;

    }


    .auth-card {

        padding: 25px 20px;

    }

}

/* =========================================================
   DANMAWEB ACADEMY — HOMEPAGE STYLES
   ========================================================= */


/* =========================
   NAVIGATION
========================= */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-dark);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 21px;
    font-weight: 700;
    box-shadow: var(--shadow-small);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    letter-spacing: 0.3px;
    color: var(--primary-dark);
}

.logo-text small {
    margin-top: 3px;
    color: var(--muted-text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: var(--muted-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nav-login:hover {
    color: var(--teal-dark);
}

.nav-button {
    padding: 11px 19px;
    font-size: 13px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0 105px;
    background:
        radial-gradient(circle at 85% 20%, rgba(21, 155, 122, 0.10), transparent 27%),
        radial-gradient(circle at 10% 80%, rgba(213, 155, 22, 0.08), transparent 25%),
        var(--background);
}

.hero::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(23, 59, 103, 0.06);
    border-radius: 50%;
    top: -170px;
    right: -70px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-text {
    max-width: 630px;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.hero-label {
    padding: 7px 12px;
    margin-bottom: 19px;
    border-radius: 30px;
    background: rgba(21, 155, 122, 0.09);
}

.hero h1 {
    margin: 0 0 22px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -1.8px;
}

.hero h1 span {
    display: block;
    color: var(--teal);
}

.hero-text > p {
    max-width: 570px;
    margin: 0;
    color: var(--muted-text);
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 21px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    color: var(--light-text);
    font-size: 12px;
}

.hero-note span {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(45, 156, 88, 0.12);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 410px;
    height: 410px;
    border-radius: 50%;
    background: rgba(21, 155, 122, 0.06);
}

.learning-card {
    position: relative;
    z-index: 2;
    width: min(100%, 390px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 25px 60px rgba(23, 59, 103, 0.13);
    backdrop-filter: blur(10px);
}

.learning-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-label {
    color: var(--light-text);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(45, 156, 88, 0.10);
}

.learning-icon {
    width: 65px;
    height: 65px;
    margin: 28px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-light);
    font-size: 30px;
}

.learning-card h3 {
    margin: 0;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 23px;
    line-height: 1.35;
}

.learning-card > p {
    margin: 12px 0 25px;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.7;
}

.mini-progress {
    padding: 17px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.mini-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: var(--muted-text);
    font-size: 11px;
    font-weight: 600;
}

.mini-progress-header strong {
    color: var(--teal-dark);
}

.progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #F3E8D5;
}

.progress-fill {
    width: 82%;
    height: 100%;
    border-radius: inherit;
    background: var(--teal);
}

.learning-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.learning-stats div {
    text-align: center;
}

.learning-stats strong {
    display: block;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
}

.learning-stats span {
    display: block;
    margin-top: 2px;
    color: var(--light-text);
    font-size: 10px;
}


/* Floating cards */

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(23, 59, 103, 0.12);
}

.floating-card > span {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    color: var(--primary-dark);
    font-size: 11px;
}

.floating-card small {
    margin-top: 3px;
    color: var(--light-text);
    font-size: 9px;
}

.floating-card-one {
    left: -12px;
    bottom: 70px;
}

.floating-card-two {
    right: -18px;
    top: 70px;
}

.floating-card-two > span {
    background: var(--gold-light);
    color: var(--gold);
}


/* =========================
   ABOUT SECTION
========================= */

.about-section {
    padding: 105px 0;
    background: var(--surface);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 50px;
}

.section-heading-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 12px 0 14px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.section-heading h2 span {
    color: var(--teal);
}

.section-heading > p {
    margin: 0;
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 700;
}

.navy-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.teal-icon {
    background: rgba(21, 155, 122, 0.10);
    color: var(--teal-dark);
}

.gold-icon {
    background: var(--gold-light);
    color: var(--gold);
}

.feature-card h3 {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
}

.feature-card p {
    margin: 0;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.75;
}


/* =========================
   SUBJECTS
========================= */

.subjects-section {
    padding: 105px 0;
    background: var(--background);
}

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

.subject-card {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: all 0.25s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.subject-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    right: -45px;
    bottom: -50px;
    opacity: 0.08;
}

.subject-maths::after {
    background: var(--primary);
}

.subject-science::after {
    background: var(--teal);
}

.subject-kiswahili::after {
    background: var(--gold);
}

.subject-ptec::after {
    background: #4B2E24;
}

.subject-sst::after {
    background: #4B2E24;
}

.subject-creative::after {
    background: #4B2E24;
}

.subject-number {
    color: var(--light-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.subject-icon {
    width: 44px;
    height: 44px;
    margin: 17px 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.subject-card h3 {
    margin: 0 0 7px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 17px;
}

.subject-card p {
    max-width: 285px;
    margin: 0;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.65;
}

.subject-arrow {
    position: absolute;
    right: 24px;
    top: 24px;
    color: var(--light-text);
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.subject-card:hover .subject-arrow {
    color: var(--teal);
    transform: translateX(4px);
}


/* =========================
   HOW IT WORKS
========================= */

.how-section {
    padding: 105px 0;
    background: var(--surface);
}

.steps-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.step-card {
    flex: 1;
    max-width: 250px;
    padding: 10px 22px;
    text-align: center;
}

.step-number {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.step-card:nth-of-type(3) .step-number {
    background: rgba(21, 155, 122, 0.10);
    color: var(--teal-dark);
}

.step-card:nth-of-type(5) .step-number {
    background: var(--gold-light);
    color: var(--gold);
}

.step-content h3 {
    margin: 0 0 9px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

.step-content p {
    margin: 0;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.7;
}

.step-line {
    width: 55px;
    height: 1px;
    margin-top: 27px;
    background: var(--border);
}


/* =========================
   CTA
========================= */

.cta-section {
    padding: 0 0 105px;
    background: var(--surface);
}

.cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px 65px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 20%, rgba(21, 155, 122, 0.25), transparent 28%),
        var(--primary-dark);
}

.cta-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 180px;
    bottom: -150px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-label {
    color: #F3E8D5;
}

.cta-card h2 {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 10px 0 10px;
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.2;
}

.cta-card p {
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.light-button {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border-radius: 8px;
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.light-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


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

.footer {
    padding: 38px 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand p {
    margin: 9px 0 0;
    color: var(--light-text);
    font-size: 11px;
}

.footer-logo .logo-mark {
    width: 35px;
    height: 35px;
    font-size: 17px;
}

.footer-logo .logo-text strong {
    font-size: 14px;
}

.footer-logo .logo-text small {
    font-size: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-links a {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    margin: 0;
    color: var(--light-text);
    font-size: 10px;
}


/* =========================
   HOMEPAGE RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .hero-content {
        gap: 40px;
    }

    .hero h1 {
        font-size: 47px;
    }

    .floating-card-one {
        left: -5px;
    }

    .floating-card-two {
        right: -5px;
    }

    .cta-card {
        padding: 45px;
    }
}


@media (max-width: 850px) {

    .nav-container {
        gap: 15px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 65px 0 75px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-note {
        justify-content: center;
    }

    .hero-visual {
        min-height: 450px;
    }

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

    .steps-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .step-card {
        max-width: none;
    }

    .step-line {
        display: none;
    }

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-copy {
        text-align: center;
    }
}


@media (max-width: 600px) {

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

    .logo-mark {
        width: 37px;
        height: 37px;
        font-size: 18px;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .logo-text small {
        font-size: 8px;
    }

    .nav-login {
        display: none;
    }

    .nav-button {
        padding: 9px 13px;
    }

    .hero {
        padding: 55px 0 65px;
    }

    .hero h1 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .hero-text > p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
    }

    .learning-card {
        padding: 23px;
    }

    .learning-card h3 {
        font-size: 20px;
    }

    .floating-card {
        padding: 9px 11px;
    }

    .floating-card strong {
        font-size: 9px;
    }

    .floating-card small {
        font-size: 8px;
    }

    .floating-card-one {
        left: -2px;
        bottom: 30px;
    }

    .floating-card-two {
        right: -2px;
        top: 30px;
    }

    .about-section,
    .subjects-section,
    .how-section {
        padding: 75px 0;
    }

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

    .feature-grid,
    .subject-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .subject-card {
        padding: 23px;
    }

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

    .cta-section {
        padding-bottom: 75px;
    }

    .cta-card {
        padding: 35px 25px;
        border-radius: 14px;
    }

    .cta-card h2 {
        font-size: 28px;
    }

    .light-button {
        width: 100%;
    }

    .footer-links {
        gap: 15px;
    }
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}
/* =========================================================
   DANMAWEB ACADEMY — POLISHED STUDENT SIDEBAR
========================================================= */

.dashboard-sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;

    position: sticky;
    top: 0;

    display: flex;
    flex-direction: column;

    padding: 24px 15px 18px;

    background: var(--primary-dark);
    color: #FFFFFF;

    border-right: 1px solid rgba(255, 255, 255, 0.06);

    overflow-y: auto;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar-brand {
    padding: 2px 10px 27px;
}

.dashboard-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;

    color: #FFFFFF;

    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;

    text-decoration: none;
    letter-spacing: -0.3px;
}

.dashboard-logo span {
    color: rgba(255, 255, 255, 0.68);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.2px;
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-nav-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 45px;

    padding: 0 12px;

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dashboard-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
}

.dashboard-nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.dashboard-nav-item.active::before {
    content: "";

    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: var(--teal);
}


/* =========================================================
   NAVIGATION ICONS
========================================================= */

.nav-icon {
    width: 24px;
    height: 24px;

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

    flex-shrink: 0;

    color: rgba(255, 255, 255, 0.65);

    font-size: 16px;
    line-height: 1;
}

.dashboard-nav-item.active .nav-icon {
    color: #FFFFFF;
}


/* =========================================================
   ASSIGNMENT BADGE
========================================================= */

.nav-badge {
    min-width: 21px;
    height: 21px;

    margin-left: auto;

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

    padding: 0 6px;

    border-radius: 20px;

    background: var(--gold);
    color: #FFFFFF;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   NAVIGATION SECTION LABEL
========================================================= */

.nav-section-title {
    margin: 25px 11px 8px;

    color: rgba(255, 255, 255, 0.38);

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

    letter-spacing: 1.4px;
}


/* =========================================================
   HELP CARD
========================================================= */

.sidebar-help {
    margin: auto 4px 16px;
    padding: 17px;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.06);
}

.help-icon {
    width: 29px;
    height: 29px;

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

    margin-bottom: 11px;

    border-radius: 9px;

    background: rgba(21, 155, 122, 0.16);
    color: #4B2E24;

    font-size: 13px;
    font-weight: 700;
}

.sidebar-help h4 {
    margin: 0 0 5px;

    color: #FFFFFF;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.sidebar-help p {
    margin: 0 0 11px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
    line-height: 1.55;
}

.help-link {
    color: #F3E8D5;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none;
}

.help-link:hover {
    color: #FFFFFF;
}


/* =========================================================
   LOGOUT
========================================================= */

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 42px;

    padding: 0 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}

.sidebar-logout span {
    font-size: 16px;
}

.sidebar-logout:hover {
    color: #FFFFFF;
}


/* =========================================================
   SIDEBAR SCROLLBAR
========================================================= */

.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}


/* =========================================================
   POLISHED DASHBOARD MAIN AREA
========================================================= */
.dashboard-main {
    min-height: 100vh;
    width: 100%;
    background: var(--background);
    position: relative;
}


/* =========================================================
   TOP BAR
========================================================= */

.dashboard-topbar {
    height: 72px;

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

    padding: 0 34px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* Notification */

.notification-button {
    position: relative;

    width: 38px;
    height: 38px;

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

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    color: var(--primary-dark);

    font-size: 17px;

    cursor: pointer;
}

.notification-button:hover {
    background: var(--primary-light);
}

.notification-dot {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--gold);

    border: 1.5px solid #FFFFFF;
}


/* Student profile */

.student-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-left: 20px;

    border-left: 1px solid var(--border);
}

.student-avatar {
    width: 37px;
    height: 37px;

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

    border-radius: 50%;

    background: var(--primary-light);
    color: var(--primary);

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.student-info strong {
    color: var(--primary-dark);

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

.student-info span {
    color: var(--light-text);

    font-size: 10px;
}

.profile-arrow {
    margin-left: 3px;

    color: var(--light-text);

    font-size: 13px;
}


/* =========================================================
   DASHBOARD CONTENT
========================================================= */

.dashboard-content {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 32px 34px 45px;
}


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

@media (max-width: 800px) {

    .dashboard-sidebar {
        width: 215px;
        min-width: 215px;
    }

    .dashboard-content {
        padding: 25px 22px 35px;
    }

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

}

@media (max-width: 650px) {

    .dashboard-sidebar {
        width: 70px;
        min-width: 70px;

        padding-left: 9px;
        padding-right: 9px;
    }

    .sidebar-brand {
        padding-left: 4px;
        padding-right: 4px;
    }

    .dashboard-logo {
        font-size: 0;
    }

    .dashboard-logo::before {
        content: "B";
        font-size: 22px;
        color: #FFFFFF;
    }

    .dashboard-logo span {
        display: none;
    }

    .dashboard-nav-item {
        justify-content: center;
        padding: 0;
    }

    .dashboard-nav-item span:not(.nav-icon):not(.nav-badge) {
        display: none;
    }

    .dashboard-nav-item.active::before {
        left: -9px;
    }

    .nav-badge {
        position: absolute;
        top: 4px;
        right: 1px;

        min-width: 17px;
        height: 17px;

        padding: 0 4px;

        font-size: 8px;
    }

    .nav-section-title {
        height: 1px;
        margin: 20px 4px;

        overflow: hidden;

        border-top: 1px solid rgba(255, 255, 255, 0.08);

        font-size: 0;
    }

    .sidebar-help {
        display: none;
    }

    .sidebar-logout {
        justify-content: center;
        padding: 0;
    }

    .sidebar-logout span {
        font-size: 17px;
    }

    .sidebar-logout {
        font-size: 0;
    }

    .dashboard-topbar {
        height: 64px;
    }

    .student-info,
    .profile-arrow {
        display: none;
    }

    .student-profile {
        padding-left: 13px;
    }

    .dashboard-content {
        padding: 22px 15px 30px;
    }

}
/* =========================
   DASHBOARD CONTENT
========================= */

.dashboard-content {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 38px 42px 55px;
}


/* =========================
   WELCOME
========================= */

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

.dashboard-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.dashboard-welcome h1 {
    margin: 0;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 27px;
    line-height: 1.25;
}

.dashboard-welcome p {
    margin: 7px 0 0;
    color: var(--muted-text);
    font-size: 12px;
}

.date-card {
    min-width: 150px;
    padding: 14px 17px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-small);
}

.date-card span {
    display: block;
    color: var(--light-text);
    font-size: 9px;
}

.date-card strong {
    display: block;
    margin-top: 4px;
    color: var(--teal-dark);
    font-size: 11px;
}


/* =========================
   STAT CARDS
========================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 27px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-small);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}

.stat-icon-navy {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon-gold {
    background: var(--gold-light);
    color: var(--gold);
}

.stat-icon-teal {
    background: rgba(21, 155, 122, 0.10);
    color: var(--teal-dark);
}

.stat-icon-purple {
    background: #F3E8D5;
    color: #4B2E24;
}

.stat-info {
    min-width: 0;
}

.stat-info span {
    display: block;
    color: var(--light-text);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.stat-info strong {
    display: block;
    margin: 4px 0 2px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 21px;
}

.stat-info small {
    display: block;
    overflow: hidden;
    color: var(--muted-text);
    font-size: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================
   DASHBOARD GRIDS
========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}


/* =========================
   DASHBOARD SECTIONS
========================= */

.dashboard-section {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: white;
    box-shadow: var(--shadow-small);
}

.dashboard-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-section-header .section-label {
    font-size: 8px;
}

.dashboard-section-header h2 {
    margin: 5px 0 0;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 17px;
}

.view-all-link {
    color: var(--teal-dark);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

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


/* =========================
   SUBJECT CARDS
========================= */

.dashboard-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


.dashboard-subject-card {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
}


.dashboard-subject-card:hover {
    border-color: rgba(21, 155, 122, 0.35);
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.dashboard-subject-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-subject-card h3 {
    margin: 0;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
}

.dashboard-subject-card p {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--light-text);
    font-size: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-subject-card > span {
    color: var(--light-text);
    font-size: 15px;
    transition: transform 0.2s ease;
}

.dashboard-subject-card:hover > span {
    color: var(--teal);
    transform: translateX(3px);
}


/* Subject variations */

.science-dashboard .dashboard-subject-icon {
    background: rgba(21, 155, 122, 0.10);
    color: var(--teal-dark);
}

.kiswahili-dashboard .dashboard-subject-icon {
    background: var(--gold-light);
    color: var(--gold);
}

.ptec-dashboard .dashboard-subject-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.sst-dashboard .dashboard-subject-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.creative-dashboard .dashboard-subject-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

/* Subject card layout with registration details */

.dashboard-subject-card h3 {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-subject-card > p {
    grid-column: 2;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dashboard-subject-card .subject-registration-details {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dashboard-subject-card .subject-registration-details p {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
}


/* =========================
   LEARNING PROGRESS
========================= */

.progress-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    padding: 13px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.progress-circle {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 7px solid rgba(21, 155, 122, 0.16);
    border-top-color: var(--teal);
    border-right-color: var(--teal);
    border-radius: 50%;
}

.progress-circle strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

.progress-circle span {
    margin-top: 1px;
    color: var(--light-text);
    font-size: 7px;
}

.progress-summary-text strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
}

.progress-summary-text p {
    margin: 4px 0 0;
    color: var(--muted-text);
    font-size: 9px;
    line-height: 1.5;
}

.progress-subject {
    margin-top: 15px;
}

.progress-subject > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.progress-subject span {
    color: var(--muted-text);
    font-size: 9px;
}

.progress-subject strong {
    color: var(--primary-dark);
    font-size: 9px;
}

.dashboard-progress-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: #F3E8D5;
}

.dashboard-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--teal);
}

.progress-science {
    background: var(--primary);
}

.progress-kiswahili {
    background: var(--gold);
}

.progress-sst {
    background: #4B2E24;
}


/* =========================
   ASSIGNMENTS
========================= */

.assignment-list,
.results-list {
    display: flex;
    flex-direction: column;
}

.assignment-item,
.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #F3E8D5;
}

.assignment-item:first-child,
.result-item:first-child {
    padding-top: 0;
}

.assignment-item:last-child,
.result-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.assignment-icon,
.result-subject-icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.assignment-science,
.science-result {
    background: rgba(21, 155, 122, 0.10);
    color: var(--teal-dark);
}

.assignment-kiswahili,
.kiswahili-result {
    background: var(--gold-light);
    color: var(--gold);
}

.assignment-details,
.result-details {
    min-width: 0;
    flex: 1;
}

.assignment-details strong,
.result-details strong {
    display: block;
    overflow: hidden;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.assignment-details span,
.result-details span {
    display: block;
    margin-top: 3px;
    color: var(--light-text);
    font-size: 8px;
}

.assignment-due {
    text-align: right;
}

.assignment-due strong {
    display: block;
    color: var(--primary-dark);
    font-size: 9px;
}

.assignment-due small {
    display: block;
    margin-top: 2px;
    color: var(--light-text);
    font-size: 7px;
}

.due-tomorrow strong {
    color: var(--gold);
}


/* =========================
   RESULTS
========================= */

.result-score {
    min-width: 45px;
    text-align: right;
}

.result-score strong {
    display: block;
    color: var(--teal-dark);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.result-score small {
    display: block;
    margin-top: 2px;
    color: var(--light-text);
    font-size: 7px;
}


/* =========================
   MOTIVATIONAL CARD
========================= */

.dashboard-motivation {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 27px;
    border-radius: 13px;
    background:
        radial-gradient(circle at 90% 20%, rgba(21, 155, 122, 0.20), transparent 30%),
        var(--primary-dark);
}

.dashboard-motivation::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: 30px;
    bottom: -130px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.motivation-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(213, 155, 22, 0.17);
    color: #F3E8D5;
    font-size: 19px;
}

.dashboard-motivation span {
    color: #F3E8D5;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.dashboard-motivation h2 {
    margin: 5px 0 4px;
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

.dashboard-motivation p {
    margin: 0;
    color: rgba(255, 255, 255, 0.60);
    font-size: 9px;
}


/* =========================
   DASHBOARD RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .dashboard-layout {
        grid-template-columns: 215px 1fr;
    }

    .dashboard-content {
        padding: 32px 27px 45px;
    }

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

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

    .progress-dashboard-section {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 25px;
    }

    .progress-dashboard-section .dashboard-section-header {
        grid-column: 1 / -1;
    }

    .progress-summary {
        margin-bottom: 0;
    }
}


@media (max-width: 850px) {

    .dashboard-layout {
        display: block;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-topbar {
        justify-content: space-between;
        height: 68px;
        padding: 0 20px;
    }

    .mobile-dashboard-brand {
        display: block;
    }

    .mobile-dashboard-brand .logo-mark {
        width: 35px;
        height: 35px;
        font-size: 17px;
    }

    .mobile-dashboard-brand .logo-text strong {
        font-size: 14px;
    }

    .mobile-dashboard-brand .logo-text small {
        font-size: 8px;
    }

    .dashboard-content {
        padding: 28px 20px 40px;
    }

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

    .progress-dashboard-section {
        display: block;
    }

    .progress-summary {
        margin-bottom: 20px;
    }
}


@media (max-width: 600px) {

    .dashboard-topbar-actions {
        gap: 10px;
    }

    .student-profile {
        padding-left: 10px;
    }

    .student-profile-info,
    .profile-arrow {
        display: none;
    }

    .dashboard-content {
        padding: 25px 15px 35px;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-welcome h1 {
        font-size: 22px;
    }

    .dashboard-welcome p {
        font-size: 10px;
        line-height: 1.6;
    }

    .date-card {
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .stat-card {
        padding: 13px;
        gap: 9px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .stat-info strong {
        font-size: 17px;
    }

    .stat-info span {
        font-size: 7px;
    }

    .stat-info small {
        font-size: 7px;
    }

    .dashboard-section {
        padding: 18px;
    }

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

    .dashboard-section-header h2 {
        font-size: 15px;
    }

    .dashboard-motivation {
        align-items: flex-start;
        padding: 20px;
    }

    .dashboard-motivation h2 {
        font-size: 14px;
    }
}


@media (max-width: 400px) {

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

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

    .notification-button {
        width: 33px;
        height: 33px;
    }
}
/* =========================================================
   DANMAWEB ACADEMY — MY SUBJECTS PAGE
========================================================= */

/* Page Heading */

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 6px 0 8px;
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    line-height: 1.2;
    color: var(--primary-dark);
}

.page-heading p {
    margin: 0;
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.6;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: var(--teal);
}


/* =========================================================
   SUBJECT OVERVIEW CARDS
========================================================= */

.subjects-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.overview-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;

    font-size: 21px;
    font-weight: 600;
}

.overview-card:nth-child(2) .overview-icon {
    background: var(--gold-light);
    color: var(--gold);
}

.overview-card:nth-child(3) .overview-icon {
    background: #F3E8D5;
    color: var(--teal);
}

.overview-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.overview-card strong {
    font-family: "Poppins", sans-serif;
    font-size: 23px;
    color: var(--text);
    line-height: 1;
}

.overview-card div span {
    color: var(--muted-text);
    font-size: 13px;
}


/* =========================================================
   SUBJECT SECTION
========================================================= */

.subjects-page-section {
    margin-bottom: 34px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0 0 5px;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    color: var(--primary-dark);
}

.section-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted-text);
}


/* =========================================================
   SUBJECT GRID
========================================================= */

.subjects-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.subject-page-card {
    position: relative;
    display: flex;
    flex-direction: column;

    padding: 22px;
    min-height: 370px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

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

.subject-page-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(23, 59, 103, 0.18);
}


/* Subject Top */

.subject-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.subject-large-icon {
    width: 54px;
    height: 54px;

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

    border-radius: 14px;

    font-family: "Poppins", sans-serif;
    font-size: 25px;
    font-weight: 600;
}

.subject-status {
    padding: 5px 10px;
    border-radius: 20px;

    background: #F3E8D5;
    color: var(--teal);

    font-size: 11px;
    font-weight: 700;
}


/* Subject Colours */

.subject-mathematics .subject-large-icon {
    background: #F3E8D5;
    color: var(--primary);
}

.subject-science .subject-large-icon {
    background: #F3E8D5;
    color: var(--teal);
}

.subject-kiswahili .subject-large-icon {
    background: #F3E8D5;
    color: var(--gold);
}

.subject-ptec .subject-large-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.subject-social .subject-large-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.subject-creative .subject-large-icon {
    background: #F3E8D5;
    color: #4B2E24;
}


/* Subject Text */

.subject-page-card h3 {
    margin: 0 0 8px;

    font-family: "Poppins", sans-serif;
    font-size: 18px;

    color: var(--primary-dark);
}

.subject-page-card > p {
    margin: 0;

    min-height: 54px;

    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.6;
}


/* Subject Meta */

.subject-meta {
    display: flex;
    align-items: center;
    gap: 16px;

    margin: 17px 0;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    color: var(--light-text);
    font-size: 11px;
}

.subject-meta span {
    position: relative;
}

.subject-meta span + span::before {
    content: "";

    position: absolute;
    left: -9px;
    top: 50%;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--border);

    transform: translateY(-50%);
}


/* =========================================================
   SUBJECT PROGRESS
========================================================= */

.subject-progress {
    margin-top: auto;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 7px;

    font-size: 11px;
    color: var(--muted-text);
}

.progress-label strong {
    color: var(--primary);
    font-size: 11px;
}

.progress-track {
    width: 100%;
    height: 7px;

    overflow: hidden;

    background: var(--surface-soft);
    border-radius: 20px;
}

.progress-fill {
    height: 100%;

    border-radius: inherit;

    background: var(--teal);
}


/* Different Progress Colours */

.subject-mathematics .progress-fill {
    background: var(--primary);
}

.subject-science .progress-fill {
    background: var(--teal);
}

.subject-kiswahili .progress-fill {
    background: var(--gold);
}

.subject-ptec .progress-fill {
    background: #4B2E24;
}

.subject-social .progress-fill {
    background: #4B2E24;
}

.subject-creative .progress-fill {
    background: #4B2E24;
}


/* =========================================================
   SUBJECT ACTION
========================================================= */

.subject-action {
    display: flex;
    align-items: center;

    margin-top: 18px;

    color: var(--primary);
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

.subject-action:hover {
    color: var(--teal);
}


/* =========================================================
   LEARNING TIP
========================================================= */

.learning-tip {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px 24px;

    background: var(--gold-light);
    border: 1px solid rgba(213, 155, 22, 0.18);

    border-radius: var(--radius-lg);
}

.tip-icon {
    width: 48px;
    height: 48px;

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

    flex-shrink: 0;

    border-radius: 50%;

    background: #FFFFFF;
    color: var(--gold);

    font-size: 20px;

    box-shadow: var(--shadow-sm);
}

.tip-label {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}
.learning-tip h3 {
    margin: 0 0 4px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: var(--primary-dark);
}
.learning-tip p {
    margin: 0;
    color: var(--muted-text);

    font-size: 12px;
    line-height: 1.5;
}
/* =========================================================
   MY SUBJECTS — RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

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

    .subjects-overview {
        grid-template-columns: repeat(3, 1fr);
    }

}
@media (max-width: 800px) {

    .subjects-overview {
        grid-template-columns: 1fr;
    }

    .subjects-page-grid {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 26px;
    }

}
@media (max-width: 600px) {

    .page-heading {
        align-items: flex-start;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .overview-card {
        padding: 17px;
    }

    .subject-page-card {
        padding: 19px;
    }

    .learning-tip {
        align-items: flex-start;
        padding: 19px;
    }

}

/* =========================================================
   LEARNING MATERIALS PAGE
========================================================= */

.materials-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.materials-overview-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.materials-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 27px;
    font-weight: 700;
}

.materials-overview-icon.teal {
    background: #F3E8D5;
    color: var(--teal-dark);
}

.materials-overview-card > div:last-child > span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.materials-overview-card strong {
    display: block;
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 23px;
}

.materials-overview-card p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.materials-content-section {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.materials-content-section .section-header {
    margin-bottom: 24px;
}

.materials-content-section .section-header h2 {
    margin: 0 0 7px;
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 20px;
}

.materials-content-section .section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

.material-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.2s ease;
}

.material-card:hover {
    border-color: #F3E8D5;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.material-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.material-type {
    padding: 6px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.material-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 54px;
    border-radius: 10px;
    background: #F3E8D5;
    color: #BD3D4C;
    font-size: 13px;
    font-weight: 800;
}

.material-icon.science-material {
    background: #F3E8D5;
    color: var(--teal-dark);
}

.material-icon.kiswahili-material {
    background: #F3E8D5;
    color: var(--primary);
}

.material-icon.gold-material {
    background: var(--gold-light);
    color: #4B2E24;
}

.material-icon.math-material {
    background: #F3E8D5;
    color: var(--primary);
}

.material-info {
    flex: 1;
}

.material-subject {
    color: var(--teal-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.material-info h3 {
    margin: 9px 0;
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 17px;
}

.material-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.material-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.material-meta {
    color: var(--text-muted);
    font-size: 12px;
}

.material-button:disabled {
    padding: 9px 13px;
    background: var(--surface-soft);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: not-allowed;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .materials-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .materials-overview {
        grid-template-columns: 1fr;
    }

    .materials-content-section {
        padding: 16px;
    }

    .material-card {
        padding: 17px;
    }
}
/* =========================================================
   ASSIGNMENTS PAGE
========================================================= */

.assignment-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0 34px;
}

.assignment-overview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.assignment-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    font-size: 23px;
    font-weight: 700;
}

.pending-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.completed-icon {
    background: #F3E8D5;
    color: var(--success);
}

.total-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.assignment-overview-card span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.assignment-overview-card h2 {
    margin: 5px 0;
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 28px;
}

.assignment-overview-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 12px;
}

.assignments-content-section {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.assignments-content-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.assignments-content-heading h2 {
    margin: 0 0 7px;
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 20px;
}

.assignments-content-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.assignment-count {
    padding: 8px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.assignment-page-card {
    min-width: 0;
    padding: 22px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.assignment-page-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.assignment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.assignment-subject-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.assignment-status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.assignment-status.pending {
    background: #F3E8D5;
    color: #4B2E24;
}

.assignment-status.completed {
    background: #F3E8D5;
    color: #247A43;
}

.assignment-main h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 17px;
}

.assignment-main p {
    min-height: 42px;
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.assignment-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.assignment-due span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.assignment-due strong {
    color: var(--text);
    font-size: 13px;
}

.completed-assignment {
    border-color: #F3E8D5;
}

.assignment-button {
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
}

.assignment-button.secondary {
    background: var(--primary-light);
    color: var(--primary);
}

.assignment-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 1000px) {
    .assignment-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assignments-page-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .assignment-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .assignment-overview-card {
        padding: 18px;
    }

    .assignments-content-section {
        padding: 18px;
    }

    .assignments-content-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .assignment-page-card {
        padding: 17px;
    }
}
/* =========================================================
   RESULTS PAGE
========================================================= */

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0 32px;
}

.result-summary-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.result-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 5px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
}

.average-icon {
    color: var(--primary);
    background: var(--primary-light);
}

.assessments-icon {
    color: var(--success);
    background: #F3E8D5;
}

.highest-icon {
    color: #4B2E24;
    background: var(--gold-light);
}

.result-summary-card > span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.result-summary-card > strong {
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 30px;
}

.result-summary-card > small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.results-table-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.results-heading h2 {
    margin: 0 0 7px;
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 20px;
}

.results-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.results-subject-count {
    padding: 8px 12px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.results-list {
    display: flex;
    flex-direction: column;
}

.result-row {
    display: grid;
    grid-template-columns: 42px minmax(150px, 1.4fr) minmax(100px, 1fr) 55px;
    align-items: center;
    gap: 16px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}

.result-row:last-child {
    border-bottom: none;
}

.result-subject-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 12px;
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
}

.result-subject-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.result-subject-details strong {
    color: var(--text);
    font-size: 13px;
}

.result-subject-details span {
    color: var(--text-muted);
    font-size: 12px;
}

.result-progress-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: var(--surface-soft);
    border-radius: 20px;
}

.result-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 20px;
}

.result-performance {
    font-size: 11px;
    font-weight: 600;
}

.result-excellent {
    color: var(--success);
}

.result-good {
    color: #4B2E24;
}

.result-needs-work {
    color: var(--danger);
}

.result-score {
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 17px;
    text-align: right;
}

@media (max-width: 900px) {
    .results-summary {
        grid-template-columns: 1fr;
    }

    .result-row {
        grid-template-columns: 40px minmax(120px, 1fr) 55px;
    }

    .result-progress-area {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .result-score {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 600px) {
    .results-table-card {
        padding: 18px;
    }

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

    .result-row {
        gap: 12px;
    }

    .result-subject-details strong {
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   DANMAWEB ACADEMY — QUIZ TAKING PAGE
========================================================= */

.quiz-taking-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.quiz-back-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 24px;
}

.quiz-taking-heading {
    background: linear-gradient(135deg, #4B2E24, #4B2E24);
    color: white;
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 22px;
}

.quiz-taking-heading .section-eyebrow {
    color: #F3E8D5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.quiz-taking-heading h1 {
    color: white;
    font-family: var(--heading-font);
    font-size: clamp(26px, 4vw, 36px);
    margin: 12px 0;
}

.quiz-taking-heading p {
    color: #F3E8D5;
    line-height: 1.7;
    margin: 0;
}

.quiz-instructions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.quiz-instructions > div {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-info-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.quiz-instructions strong {
    color: var(--primary);
    font-size: 23px;
}

.quiz-question-list {
    display: grid;
    gap: 20px;
}

.quiz-question-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.quiz-question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.quiz-question-number {
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.quiz-mark-label {
    background: var(--gold-light);
    color: #4B2E24;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

.quiz-question-card h3 {
    color: var(--text);
    font-family: var(--heading-font);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.quiz-answer-options {
    display: grid;
    gap: 12px;
}

.quiz-answer-option {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 15px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.quiz-answer-option:hover {
    border-color: var(--teal);
    background: #F3E8D5;
}

.quiz-answer-option:has(input:checked) {
    border-color: var(--teal);
    background: #F3E8D5;
}

.quiz-answer-option input {
    accent-color: var(--teal);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.quiz-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.quiz-submit-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.quiz-submit-panel p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.quiz-submit-button {
    border: 0;
    border-radius: 10px;
    background: var(--teal);
    color: white;
    padding: 14px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.quiz-submit-button:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.quiz-result-page {
    padding-top: 30px;
}

.quiz-result-card {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 42px 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.quiz-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #F3E8D5;
    color: var(--teal-dark);
    font-size: 30px;
    font-weight: 800;
}

.quiz-result-card h1 {
    font-family: var(--heading-font);
    color: var(--primary);
    margin: 12px 0;
}

.quiz-result-card > p {
    color: var(--text-muted);
    line-height: 1.7;
}

.quiz-score-circle {
    width: 150px;
    height: 150px;
    border: 8px solid #F3E8D5;
    border-radius: 50%;
    margin: 28px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.quiz-score-circle strong {
    font-size: 35px;
    color: var(--teal-dark);
}

.quiz-score-circle span,
.quiz-result-stats span {
    color: var(--text-muted);
    font-size: 13px;
}

.quiz-result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}

.quiz-result-stats > div {
    background: var(--surface-soft);
    border-radius: 12px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-result-stats strong {
    color: var(--primary);
    font-size: 22px;
}

.quiz-result-feedback {
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .quiz-taking-heading {
        padding: 25px 20px;
    }

    .quiz-instructions {
        gap: 9px;
    }

    .quiz-instructions > div {
        padding: 14px 10px;
    }

    .quiz-info-label {
        font-size: 9px;
    }

    .quiz-instructions strong {
        font-size: 20px;
    }

    .quiz-question-card {
        padding: 20px 16px;
    }

    .quiz-submit-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

    .quiz-result-card {
        padding: 32px 18px;
    }
}


/* =========================================================
   DANMAWEB ACADEMY — PROFILE PAGE
========================================================= */

.profile-page-card {
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-cover {
    height: 145px;
    background: linear-gradient(
        115deg,
        #4B2E24 0%,
        #4B2E24 65%,
        #4B2E24 100%
    );
    position: relative;
}

.profile-main {
    padding: 0 32px 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: -42px;
    position: relative;
    flex-wrap: wrap;
}

.large-profile-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 5px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(23, 59, 103, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background-color: #4B2E24;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-identity {
    flex: 1;
    min-width: 180px;
    padding-top: 40px;
}

.profile-identity h2 {
    margin: 0 0 7px;
    color: #4B2E24;
    font-size: 23px;
    font-weight: 700;
}

.profile-identity p {
    margin: 0 0 12px;
    color: #4B2E24;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.profile-role-badge {
    display: inline-block;
    background: #F3E8D5;
    color: #4B2E24;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.profile-edit-button {
    margin-left: auto;
    align-self: center;
    background: #4B2E24;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-edit-button:hover {
    background: #4B2E24;
}

.profile-section-heading {
    margin: 34px 0 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #F3E8D5;
}

.profile-section-heading h3 {
    margin: 0 0 7px;
    color: #4B2E24;
    font-size: 18px;
}

.profile-section-heading p {
    margin: 0;
    color: #4B2E24;
    font-size: 13px;
}

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

.profile-field {
    background: #F3E8D5;
    border: 1px solid #F3E8D5;
    border-radius: 10px;
    padding: 19px;
    min-width: 0;
}

.profile-field span {
    display: block;
    margin-bottom: 10px;
    color: #4B2E24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.profile-field strong {
    display: block;
    color: #4B2E24;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.profile-learning-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 26px;
    padding: 20px;
    background: #F3E8D5;
    border: 1px solid #F3E8D5;
    border-radius: 12px;
}

.profile-note-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4B2E24;
    color: #FFFFFF;
    font-weight: 700;
}

.profile-learning-note h4 {
    margin: 0 0 7px;
    color: #4B2E24;
    font-size: 15px;
}

.profile-learning-note p {
    margin: 0;
    color: #4B2E24;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 650px) {

    .profile-main {
        padding: 0 18px 22px;
    }

    .profile-header {
        gap: 12px;
    }

    .profile-identity {
        min-width: 0;
        padding-top: 40px;
    }

    .profile-identity h2 {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .profile-edit-button {
        margin: 12px 0 0;
        width: 100%;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .profile-field {
        padding: 16px;
    }
}


/* =========================================================
   PROFILE EDIT MODAL
========================================================= */

.profile-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(16, 45, 79, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-edit-dialog {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.profile-edit-dialog h2 {
    margin: 0 0 8px;
    color: #4B2E24;
    font-size: 23px;
}

.profile-edit-description {
    color: #4B2E24;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.profile-edit-dialog label {
    display: block;
    color: #4B2E24;
    font-size: 13px;
    font-weight: 600;
    margin: 18px 0 8px;
}

.profile-edit-dialog input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #F3E8D5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #4B2E24;
    outline: none;
}

.profile-edit-dialog input:focus {
    border-color: #4B2E24;
    box-shadow: 0 0 0 3px rgba(21, 155, 122, 0.12);
}

.profile-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.profile-edit-actions button {
    border: none;
    border-radius: 8px;
    padding: 12px 17px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.profile-cancel-button {
    background: #F3E8D5;
    color: #4B2E24;
}

.profile-save-button {
    background: #4B2E24;
    color: #FFFFFF;
}

.profile-save-button:hover {
    background: #4B2E24;
}

@media (max-width: 480px) {
    .profile-edit-dialog {
        padding: 22px;
    }

    .profile-edit-actions {
        flex-direction: column-reverse;
    }

    .profile-edit-actions button {
        width: 100%;
    }
}


/* =========================================================
   QUIZZES — AVAILABLE QUIZZES PAGE
========================================================= */

.quiz-welcome-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 30px 34px;
    margin: 24px 0;
    background: linear-gradient(115deg, #4B2E24, #4B2E24);
    border-radius: 16px;
    color: #FFFFFF;
}

.quiz-welcome-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.quiz-welcome-label {
    color: #F3E8D5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.quiz-welcome-content h2 {
    margin: 12px 0;
    color: #FFFFFF;
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.3;
}

.quiz-welcome-content p {
    max-width: 500px;
    margin: 0;
    color: #F3E8D5;
    font-size: 14px;
    line-height: 1.8;
}

.quiz-welcome-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
    color: #FFFFFF;
    font-size: 12px;
}

.quiz-welcome-art {
    position: relative;
    flex-shrink: 0;
    width: 145px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.quiz-art-circle {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #FFFFFF;
    color: #4B2E24;
    font-size: 48px;
    font-weight: 700;
    transform: rotate(-8deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.quiz-art-star {
    position: absolute;
    top: 12px;
    right: 7px;
    color: #F3E8D5;
    font-size: 29px;
}

.quiz-art-dot {
    position: absolute;
    left: 5px;
    bottom: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F3E8D5;
}

.quiz-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 34px;
}

.quiz-overview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 21px;
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 12px;
}

.quiz-overview-icon {
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
}

.available-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.subjects-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.quiz-overview-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quiz-overview-card div:last-child > span {
    color: #4B2E24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.quiz-overview-card strong {
    color: #4B2E24;
    font-size: 25px;
}

.quiz-overview-card small {
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.5;
}

.available-quizzes-section {
    margin-bottom: 30px;
}

.available-quizzes-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.available-quizzes-heading h2 {
    margin: 7px 0;
    color: #4B2E24;
    font-size: 23px;
}

.available-quizzes-heading p {
    margin: 0;
    color: #4B2E24;
    font-size: 13px;
    line-height: 1.7;
}

.quiz-section-tag {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #F3E8D5;
    border: 1px solid #F3E8D5;
    border-radius: 20px;
    color: #4B2E24;
    font-size: 11px;
    font-weight: 600;
}

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

.redesigned-quiz-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(23, 59, 103, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.redesigned-quiz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(23, 59, 103, 0.09);
    border-color: #F3E8D5;
}

.quiz-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 23px;
}

.redesigned-quiz-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 27px;
    font-weight: 700;
}

.math-quiz-card .redesigned-quiz-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.science-quiz-card .redesigned-quiz-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.kiswahili-quiz-card .redesigned-quiz-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.ptec-quiz-card .redesigned-quiz-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.social-quiz-card .redesigned-quiz-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.arts-quiz-card .redesigned-quiz-icon {
    color: #4B2E24;
    background: #F3E8D5;
}

.quiz-status-ready,
.quiz-status-coming {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.quiz-status-ready {
    color: #4B2E24;
    background: #F3E8D5;
}

.quiz-status-coming {
    color: #4B2E24;
    background: #F3E8D5;
}

.quiz-subject-label {
    margin-bottom: 8px;
    color: #4B2E24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.redesigned-quiz-card h3 {
    margin: 0 0 10px;
    color: #4B2E24;
    font-size: 19px;
    line-height: 1.45;
}

.quiz-card-description {
    min-height: 63px;
    margin: 0 0 18px;
    color: #4B2E24;
    font-size: 13px;
    line-height: 1.8;
}

.quiz-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 16px 0;
    margin-top: auto;
    border-top: 1px solid #F3E8D5;
    color: #4B2E24;
    font-size: 12px;
}

.quiz-card-meta > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.quiz-meta-icon {
    color: #4B2E24;
    font-size: 17px;
    font-weight: 700;
}

.redesigned-quiz-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
    padding: 13px 16px;
    background: #4B2E24;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.redesigned-quiz-button:hover:not(:disabled) {
    background: #4B2E24;
}

.redesigned-quiz-button > span {
    font-size: 18px;
}

.quiz-disabled-button,
.quiz-disabled-button:disabled {
    background: #F3E8D5;
    color: #4B2E24;
    cursor: not-allowed;
    opacity: 1;
}

.quiz-empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 850px) {
    .quiz-welcome-banner {
        padding: 25px;
    }

    .quiz-welcome-art {
        width: 105px;
        height: 105px;
    }

    .quiz-art-circle {
        width: 68px;
        height: 68px;
        font-size: 38px;
    }
}

@media (max-width: 650px) {
    .quiz-welcome-banner {
        padding: 23px;
    }

    .quiz-welcome-art {
        display: none;
    }

    .quiz-overview-grid,
    .quiz-page-grid {
        grid-template-columns: 1fr;
    }

    .available-quizzes-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .quiz-card-description {
        min-height: 0;
    }

    .redesigned-quiz-card {
        padding: 20px;
    }
}

/* =========================================================
   DANMAWEB ACADEMY — TEACHER DASHBOARD
========================================================= */

.teacher-dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #F3E8D5;
    color: #4B2E24;
    font-family: 'Inter', sans-serif;
}

/* SIDEBAR */

.teacher-sidebar {
    width: 260px;
    min-width: 260px;
    min-height: 100vh;
    padding: 28px 18px 20px;
    background: #4B2E24;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.teacher-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.teacher-brand-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #FFFFFF;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.teacher-brand h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    color: #FFFFFF;
}

.teacher-brand span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #F3E8D5;
}

.teacher-sidebar-label {
    margin: 28px 10px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: #F3E8D5;
}

.teacher-navigation {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.teacher-nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #F3E8D5;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.teacher-nav-link > span {
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.teacher-nav-link:hover,
.teacher-nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.teacher-nav-link.active {
    box-shadow: inset 3px 0 #4B2E24;
}

.teacher-sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.teacher-sidebar-note {
    padding: 17px 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.teacher-sidebar-note strong {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.teacher-sidebar-note p {
    margin: 7px 0 0;
    color: #F3E8D5;
    font-size: 11px;
    line-height: 1.7;
}

.teacher-logout-button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.teacher-logout-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* MAIN CONTENT */

.teacher-main {
    flex: 1;
    min-width: 0;
}

.teacher-topbar {
    min-height: 86px;
    padding: 18px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #F3E8D5;
    box-sizing: border-box;
}

.teacher-topbar-label {
    display: block;
    margin-bottom: 5px;
    color: #4B2E24;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.teacher-topbar h2 {
    margin: 0;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.teacher-account {
    display: flex;
    align-items: center;
    gap: 11px;
}

.teacher-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F3E8D5;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.teacher-account strong {
    display: block;
    color: #4B2E24;
    font-size: 12px;
}

.teacher-account span {
    display: block;
    margin-top: 4px;
    color: #4B2E24;
    font-size: 11px;
}

.teacher-content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 38px 45px;
    box-sizing: border-box;
}

/* WELCOME BANNER */

.teacher-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 185px;
    padding: 32px 35px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(115deg, #4B2E24 0%, #4B2E24 100%);
    color: #FFFFFF;
    box-sizing: border-box;
}

.teacher-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #F3E8D5;
}

.teacher-welcome h1 {
    margin: 12px 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
}

.teacher-welcome p {
    max-width: 520px;
    margin: 0;
    color: #F3E8D5;
    font-size: 13px;
    line-height: 1.8;
}

.teacher-welcome-decoration {
    width: 118px;
    height: 118px;
    min-width: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 33px;
    font-weight: 700;
    transform: rotate(5deg);
}

/* OVERVIEW STATISTICS */

.teacher-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.teacher-stat-card {
    min-width: 0;
    padding: 22px 20px;
    border: 1px solid #F3E8D5;
    border-radius: 13px;
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(32, 47, 65, 0.025);
    box-sizing: border-box;
}

.teacher-stat-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 11px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 19px;
}

.teacher-stat-card:nth-child(2) .teacher-stat-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teacher-stat-card:nth-child(3) .teacher-stat-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teacher-stat-card:nth-child(4) .teacher-stat-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teacher-stat-card > span {
    display: block;
    color: #4B2E24;
    font-size: 11px;
    font-weight: 500;
}

.teacher-stat-card > strong {
    display: block;
    margin: 7px 0;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 29px;
    font-weight: 600;
}

.teacher-stat-card > small {
    color: #4B2E24;
    font-size: 10px;
    line-height: 1.6;
}

/* SECTION HEADINGS */

.teacher-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.teacher-section-heading h2 {
    margin: 0;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.teacher-section-heading p {
    margin: 6px 0 0;
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.7;
}

/* QUICK ACTIONS */

.teacher-section-heading:not(:first-child) {
    margin-top: 32px;
}

.teacher-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.teacher-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 22px;
    border: 1px solid #F3E8D5;
    border-radius: 13px;
    background: #FFFFFF;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease;
    box-sizing: border-box;
}

.teacher-action-card:hover {
    border-color: #F3E8D5;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(23, 59, 103, 0.07);
}

.teacher-action-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 12px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 20px;
}

.teacher-action-card:nth-child(2) .teacher-action-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teacher-action-card:nth-child(3) .teacher-action-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teacher-action-card:nth-child(4) .teacher-action-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teacher-action-card > strong {
    padding-right: 20px;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.teacher-action-card > small {
    margin-top: 7px;
    padding-right: 15px;
    color: #4B2E24;
    font-size: 11px;
    line-height: 1.7;
}

.teacher-action-arrow {
    position: absolute;
    top: 24px;
    right: 21px;
    color: #4B2E24;
    font-size: 20px;
}

/* UPCOMING CLASSES */

.teacher-upcoming-panel {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid #F3E8D5;
    border-radius: 14px;
    background: #FFFFFF;
}

.teacher-upcoming-panel .teacher-section-heading {
    margin-top: 0;
}

.teacher-text-button {
    padding: 9px 0 9px 10px;
    border: none;
    background: transparent;
    color: #4B2E24;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.teacher-text-button:hover {
    color: #4B2E24;
}

.teacher-upcoming-empty {
    padding: 29px 15px;
    border: 1px dashed #F3E8D5;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
}

.teacher-empty-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 21px;
}

.teacher-upcoming-empty h3 {
    margin: 0 0 8px;
    color: #4B2E24;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.teacher-upcoming-empty p {
    max-width: 440px;
    margin: 0 auto 18px;
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.8;
}

/* BUTTONS */

.teacher-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 9px;
    background: #4B2E24;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.teacher-primary-button:hover {
    background: #4B2E24;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 1150px) {
    .teacher-sidebar {
        width: 230px;
        min-width: 230px;
    }

    .teacher-content {
        padding-right: 25px;
        padding-left: 25px;
    }

    .teacher-topbar {
        padding-right: 25px;
        padding-left: 25px;
    }

    .teacher-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .teacher-dashboard-layout {
        display: block;
    }

    .teacher-sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 18px;
    }

    .teacher-brand {
        padding-bottom: 18px;
    }

    .teacher-sidebar-label {
        margin-top: 18px;
    }

    .teacher-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-nav-link {
        padding: 11px 9px;
        font-size: 11px;
        gap: 8px;
    }

    .teacher-sidebar-bottom {
        padding-top: 15px;
    }

    .teacher-sidebar-note {
        display: none;
    }

    .teacher-logout-button {
        margin-top: 8px;
    }

    .teacher-topbar {
        min-height: 75px;
        padding: 15px 18px;
    }

    .teacher-topbar h2 {
        font-size: 16px;
    }

    .teacher-account {
        gap: 8px;
    }

    .teacher-avatar {
        width: 36px;
        height: 36px;
    }

    .teacher-account strong {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .teacher-account span {
        font-size: 9px;
    }

    .teacher-content {
        padding: 22px 16px 35px;
    }

    .teacher-welcome {
        min-height: 155px;
        padding: 24px 20px;
    }

    .teacher-welcome-decoration {
        width: 66px;
        height: 66px;
        min-width: 66px;
        border-radius: 19px;
        font-size: 22px;
    }

    .teacher-welcome h1 {
        font-size: 21px;
    }

    .teacher-welcome p {
        font-size: 11px;
    }

    .teacher-stat-grid {
        gap: 12px;
        margin-top: 18px;
    }

    .teacher-stat-card {
        padding: 17px 14px;
    }

    .teacher-stat-card > strong {
        font-size: 25px;
    }

    .teacher-quick-actions {
        gap: 12px;
    }

    .teacher-action-card {
        padding: 17px 14px;
    }

    .teacher-action-card > strong {
        font-size: 12px;
    }

    .teacher-upcoming-panel {
        padding: 17px;
    }
}

@media (max-width: 420px) {
    .teacher-account > div:last-child {
        display: none;
    }

    .teacher-welcome-decoration {
        display: none;
    }

    .teacher-quick-actions {
        grid-template-columns: 1fr;
    }

    .teacher-section-heading h2 {
        font-size: 15px;
    }
}

/* =========================================
   TEACHER SUBJECT AND GRADE SELECTION
========================================= */

.teacher-subject-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.teacher-subject-option {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.teacher-subject-option:hover {
    border-color: #4B2E24;
    box-shadow: 0 6px 18px rgba(23, 59, 103, 0.08);
    transform: translateY(-2px);
}

.teacher-subject-option > input[type="checkbox"] {
    accent-color: #4B2E24;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.teacher-subject-option > span {
    color: #4B2E24;
    font-size: 16px;
    font-weight: 600;
}

.teacher-subject-option input:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

#teacher-subject-count {
    color: #4B2E24;
    font-size: 14px;
    margin: 12px 0;
}

.teacher-form-message {
    margin-top: 14px;
    color: #4B2E24;
    font-size: 14px;
}

.teacher-form-message.error {
    color: #B42318;
}

@media (max-width: 700px) {
    .teacher-subject-selection-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* =========================================================
   STUDENT ONLINE CLASSES
========================================================= */

.student-online-class-card {
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(23, 59, 103, 0.05);
}

.student-online-class-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.student-online-class-subject {
    color: #4B2E24;
    background: #F3E8D5;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
}

.student-online-class-status {
    color: #4B2E24;
    background: #F3E8D5;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
}

.student-online-class-card h3 {
    color: #4B2E24;
    font-size: 20px;
    margin: 0 0 10px;
}

.student-online-class-card > p {
    color: #4B2E24;
    line-height: 1.7;
}

.student-online-class-details {
    background: #F3E8D5;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 18px 0;
}

.student-online-class-details p {
    margin: 8px 0;
    color: #4B2E24;
    line-height: 1.6;
}

.student-join-class-button {
    display: inline-block;
    background: #4B2E24;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.student-join-class-button:hover {
    background: #4B2E24;
}

#student-online-classes-list .empty-state {
    padding: 28px 20px;
    text-align: center;
    background: #F3E8D5;
    border-radius: 12px;
}

#student-online-classes-list .empty-state h3 {
    color: #4B2E24;
    margin-bottom: 10px;
}

#student-online-classes-list .empty-state p {
    color: #4B2E24;
    line-height: 1.7;
}


/* =========================================================
   TEACHER STUDY MATERIALS
========================================================= */

.teacher-material-form-panel,
.teacher-material-list-panel {
    margin-top: 24px;
}

.teacher-material-form-panel h3,
.teacher-material-list-panel h3 {
    color: #4B2E24;
    margin-bottom: 18px;
}

.teacher-material-intro {
    color: #4B2E24;
    line-height: 1.7;
    margin-bottom: 20px;
}

.teacher-material-card {
    margin-top: 16px;
}

.teacher-material-card h4 {
    color: #4B2E24;
    font-size: 18px;
    margin: 14px 0 10px;
}

.teacher-material-card p {
    color: #4B2E24;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.teacher-material-card .teacher-join-link {
    display: inline-block;
    margin-top: 12px;
}

#teacher-material-form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed #F3E8D5;
    border-radius: 8px;
    background: #F3E8D5;
}

#teacher-material-form small {
    display: block;
    color: #4B2E24;
    margin-top: 8px;
}

#teacher-material-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Fix My Performance Summary heading */
.performance-summary-header {
    margin-top: 0 !important;
    padding-top: 12px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.performance-summary-header h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    padding: 4px 0;
    font-size: 22px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

/* Fix Assignment Results & Feedback heading */
.assignment-results-header {
    margin-top: 0 !important;
    padding-top: 12px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.assignment-results-header h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    padding: 4px 0;
    font-size: 22px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

/* =========================================================
   STUDENT QUIZ RESULTS — DANMAWEB ACADEMY
========================================================= */

.student-quiz-results-panel {
    margin-top: 28px;
    padding: 33px;
    border: 1pxsolid #F3E8D5;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 8px 28px rgba(23, 59, 103, 0.06);
}

/* Section heading */

.student-quiz-results-panel > .profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3E8D5;
}

.student-quiz-results-panel .profile-header h2 {
    margin: 0 0 7px;
    color: #4B2E24;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.student-quiz-results-panel .profile-header p {
    margin: 0;
    color: #4B2E24;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Individual quiz result cards */

.student-quiz-results-panel .teacher-material-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(23, 59, 103, 0.035);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.student-quiz-results-panel .teacher-material-card:last-child {
    margin-bottom: 0;
}

.student-quiz-results-panel .teacher-material-card:hover {
    transform: translateY(-3px);
    border-color: #F3E8D5;
    box-shadow: 0 10px 24px rgba(23, 59, 103, 0.09);
}

/* Subject and percentage row */

.student-quiz-results-panel .teacher-material-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 17px;
}

.student-quiz-results-panel .teacher-subject-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.student-quiz-results-panel .teacher-material-date {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #F3E8D5;
    border-radius: 999px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 0.85rem;
    font-weight: 750;
}

/* Quiz title */

.student-quiz-results-panel .teacher-material-card h3 {
    margin: 0 0 18px;
    color: #4B2E24;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.5;
}

/* Score and answer details */

.student-quiz-results-panel .teacher-material-card p {
    margin: 10px 0;
    color: #4B2E24;
    font-size: 0.92rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.student-quiz-results-panel .teacher-material-card p strong {
    color: #4B2E24;
    font-weight: 700;
}

/* Completion date */

.student-quiz-results-panel .teacher-material-card p.teacher-material-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #F3E8D5;
    color: #4B2E24;
    font-size: 0.82rem;
}

/* Empty state */

.student-quiz-results-panel .teacher-empty-state {
    padding: 32px 20px;
    border: 1px dashed #F3E8D5;
    border-radius: 16px;
    background: #F3E8D5;
    text-align: center;
}

.student-quiz-results-panel .teacher-empty-state h3 {
    margin: 0 0 8px;
    color: #4B2E24;
    font-size: 1.05rem;
}

.student-quiz-results-panel .teacher-empty-state p {
    margin: 0;
    color: #4B2E24;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Mobile layout */

@media (max-width: 600px) {
    .student-quiz-results-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .student-quiz-results-panel > .profile-header {
        margin-bottom: 18px;
    }

    .student-quiz-results-panel .teacher-material-card {
        padding: 17px;
        border-radius: 14px;
    }

    .student-quiz-results-panel .teacher-material-card-header {
        align-items: flex-start;
    }

    .student-quiz-results-panel .teacher-material-card h3 {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-quiz-results-panel .teacher-material-card {
        transition: none;
    }

    .student-quiz-results-panel .teacher-material-card:hover {
        transform: none;
    }
}

/* Quiz result performance progress bar */

.student-quiz-results-panel .quiz-result-progress {
    margin: 18px 0 20px;
    padding: 16px;
    border-radius: 12px;
    background: #F3E8D5;
}

.student-quiz-results-panel .quiz-result-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.student-quiz-results-panel .quiz-result-progress-heading span {
    color: #4B2E24;
    font-size: 0.84rem;
    font-weight: 600;
}

.student-quiz-results-panel .quiz-result-progress-heading strong {
    color: #4B2E24;
    font-size: 0.95rem;
    font-weight: 800;
}

.student-quiz-results-panel .quiz-result-progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #F3E8D5;
}

.student-quiz-results-panel .quiz-result-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4B2E24, #4B2E24);
    transition: width 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .student-quiz-results-panel .quiz-result-progress-fill {
        transition: none;
    }
}

/* Completed teacher-published quizzes */

.quiz-already-attempted,
.quiz-already-attempted:disabled {
    background: #F3E8D5 !important;
    color: #4B2E24 !important;
    border: 1px solid #F3E8D5 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.quiz-already-attempted:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================
   DANMAWEB ACADEMY
   TEACHER MY SUBJECTS PAGE
========================================= */

.teacher-subject-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 26px 0;
    align-items: stretch;
}

.teacher-subject-option {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(23, 59, 103, 0.035);
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.teacher-subject-option:hover {
    border-color: #4B2E24;
    box-shadow: 0 8px 22px rgba(23, 59, 103, 0.08);
    transform: translateY(-2px);
}

.teacher-subject-option:has(
    .teacher-subject-title input:checked
) {
    border-color: #4B2E24;
    background: #FFFFFF;
}

.teacher-subject-title {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    color: #4B2E24;
    font-size: 17px;
    font-weight: 700;
}

.teacher-subject-title input {
    width: 19px;
    height: 19px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #4B2E24;
    cursor: pointer;
}

.teacher-subject-grades {
    padding-top: 17px;
    border-top: 1px solid #F3E8D5;
}

.teacher-grade-heading {
    margin: 0 0 13px;
    color: #4B2E24;
    font-size: 13px;
    font-weight: 600;
}

.teacher-grade-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.teacher-grade-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #F3E8D5;
    border-radius: 10px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease,
                border-color 0.2s ease;
}

.teacher-grade-choice:has(input:checked) {
    background: #F3E8D5;
    border-color: #4B2E24;
    color: #4B2E24;
}

.teacher-grade-choice input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4B2E24;
    cursor: pointer;
}

.teacher-grade-choice:has(input:disabled) {
    opacity: 0.45;
    cursor: not-allowed;
}

.teacher-grade-choice input:disabled {
    cursor: not-allowed;
}

#teacher-subject-count {
    margin: 16px 0;
    color: #4B2E24;
    font-size: 14px;
}

#teacher-subjects-message {
    margin-top: 16px;
    color: #4B2E24;
    font-size: 14px;
    line-height: 1.6;
}

#teacher-subjects-message.error {
    color: #B42318;
}

#teacher-subjects-form .teacher-form-actions {
    margin-top: 20px;
}

@media (max-width: 700px) {
    .teacher-subject-selection-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .teacher-subject-option {
        padding: 19px;
    }

    .teacher-grade-options {
        gap: 8px;
    }
}

/* =========================================
   STUDENT SUBJECT REGISTRATION
========================================= */

.subject-registration-intro {
    margin-bottom: 26px;
}

.subject-registration-intro h3 {
    color: #4B2E24;
    margin-bottom: 8px;
}

.subject-registration-intro p {
    line-height: 1.7;
}

.subject-registration-note {
    color: #4B2E24;
    font-size: 14px;
}

.student-registration-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.student-registration-subject-card {
    padding: 22px;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    background: #FFFFFF;
}

.student-registration-subject-card:has(
    .subject-choice:checked
) {
    border-color: #4B2E24;
    background: #FFFFFF;
}

.student-registration-subject-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4B2E24;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.student-registration-subject-title input {
    width: 18px;
    height: 18px;
    accent-color: #4B2E24;
}

.student-registration-fields {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.student-registration-field {
    display: grid;
    gap: 8px;
}

.student-registration-field label {
    color: #4B2E24;
    font-size: 13px;
    font-weight: 600;
}

.student-registration-field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #F3E8D5;
    border-radius: 9px;
    background: #FFFFFF;
    color: #4B2E24;
    font: inherit;
}

.student-registration-field select:disabled {
    background: #F3E8D5;
    color: #4B2E24;
    cursor: not-allowed;
}

.subject-availability-message {
    margin: 0;
    color: #4B2E24;
    font-size: 13px;
    line-height: 1.5;
}

#registrationMessage {
    margin: 16px 0;
    line-height: 1.6;
}

#registrationMessage.error {
    color: #B42318;
}

@media (max-width: 700px) {
    .student-registration-subject-grid {
        grid-template-columns: 1fr;
    }

    .student-registration-subject-card {
        padding: 18px;
    }
}

/* =========================================================
   DANMAWEB ACADEMY — MY STUDENTS PAGE
   Clean, professional teacher dashboard design
========================================================= */

/* Student statistics */
.teacher-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 20px;
    margin: 28px 0;
}

.teacher-stat-card {
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(23, 59, 103, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(23, 59, 103, 0.08);
}

.teacher-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 25px;
    margin-bottom: 18px;
}

.teacher-stat-card > span {
    display: block;
    color: #4B2E24;
    font-size: 14px;
    margin-bottom: 8px;
}

.teacher-stat-card > strong {
    display: block;
    color: #4B2E24;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.teacher-stat-card > small {
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.5;
}

/* Student register panel */
.teacher-material-list-panel {
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 18px;
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 4px 18px rgba(23, 59, 103, 0.035);
}

.teacher-material-list-panel > h2 {
    color: #4B2E24;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F3E8D5;
}

/* Individual student card */
.teacher-material-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.teacher-material-card:last-child {
    margin-bottom: 0;
}

.teacher-material-card:hover {
    border-color: #F3E8D5;
    box-shadow: 0 6px 20px rgba(23, 59, 103, 0.06);
}

/* Student name */
.teacher-material-card h3 {
    color: #4B2E24;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

/* Student email */
.teacher-material-card > p {
    color: #4B2E24;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 22px;
    overflow-wrap: anywhere;
}

.teacher-material-card > p strong {
    color: #4B2E24;
    font-weight: 600;
}

/* Registered subjects section */
.teacher-material-card > div {
    background: #F3E8D5;
    border: 1px solid #F3E8D5;
    border-radius: 12px;
    padding: 16px 18px;
}

.teacher-material-card > div > strong {
    display: block;
    color: #4B2E24;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Subject list */
.teacher-material-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.teacher-material-card ul li {
    background: #F3E8D5;
    color: #4B2E24;
    border: 1px solid #F3E8D5;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Empty student register */
.teacher-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #F3E8D5;
    border: 1px dashed #F3E8D5;
    border-radius: 14px;
}

.teacher-empty-state h3 {
    color: #4B2E24;
    font-size: 19px;
    margin: 0 0 10px;
}

.teacher-empty-state p {
    color: #4B2E24;
    font-size: 14px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .teacher-stat-grid {
        grid-template-columns: 1fr;
    }

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

    .teacher-material-list-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .teacher-material-list-panel > h2 {
        font-size: 19px;
    }

    .teacher-material-card {
        padding: 18px;
    }

    .teacher-material-card h3 {
        font-size: 18px;
    }

    .teacher-material-card > div {
        padding: 14px;
    }

    .teacher-material-card ul {
        flex-direction: column;
        gap: 8px;
    }

    .teacher-material-card ul li {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   DANMAWEB ACADEMY — ADMIN DASHBOARD
   Clean professional navy, white and teal design
========================================================= */

.admin-dashboard-page {
    margin: 0;
    min-height: 100vh;
    background: #F3E8D5;
    color: #4B2E24;
    font-family: "Inter", sans-serif;
}

.admin-dashboard-page * {
    box-sizing: border-box;
}

.admin-dashboard-page button,
.admin-dashboard-page a {
    font: inherit;
}

.admin-dashboard-page a {
    text-decoration: none;
}

/* MAIN LAYOUT */

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: 255px;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 18px;
    background: #4B2E24;
    color: #FFFFFF;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 30px;
    color: #FFFFFF;
}

.admin-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #4B2E24;
    color: #FFFFFF;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -1px;
}

.admin-brand > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-brand strong {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    line-height: 1.3;
}

.admin-brand small {
    color: #F3E8D5;
    font-size: 12px;
}

.admin-nav-heading {
    padding: 0 12px;
    margin: 0 0 12px;
    color: #F3E8D5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #F3E8D5;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    font-size: 19px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.13);
    color: #FFFFFF;
}

.admin-nav a.active {
    box-shadow: inset 3px 0 0 #4B2E24;
}

.admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 20px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F3E8D5;
    color: #4B2E24;
    font-weight: 700;
}

.admin-account {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.admin-account strong {
    overflow: hidden;
    color: #FFFFFF;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-account small {
    color: #F3E8D5;
    font-size: 11px;
}

.admin-logout-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
}

.admin-logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* MAIN CONTENT */

.admin-main {
    min-width: 0;
    margin-left: 255px;
    padding: 32px 36px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.admin-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #4B2E24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.admin-topbar h1 {
    margin: 0;
    color: #4B2E24;
    font-family: "Poppins", sans-serif;
    font-size: clamp(23px, 2.5vw, 30px);
    line-height: 1.35;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid #F3E8D5;
    border-radius: 30px;
    background: #FFFFFF;
    color: #4B2E24;
    font-size: 12px;
    white-space: nowrap;
}

.admin-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4B2E24;
}

/* WELCOME BANNER */

.admin-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 175px;
    margin-bottom: 28px;
    padding: 30px 34px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(120deg, #4B2E24 0%, #4B2E24 100%);
    color: #FFFFFF;
}

.admin-welcome > div:first-child {
    position: relative;
    z-index: 1;
}

.admin-welcome-label {
    display: block;
    margin-bottom: 12px;
    color: #F3E8D5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.admin-welcome h2 {
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.4;
}

.admin-welcome p {
    max-width: 510px;
    margin: 0;
    color: #F3E8D5;
    font-size: 13px;
    line-height: 1.8;
}

.admin-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #F3E8D5;
    font-size: 52px;
    transform: rotate(8deg);
}

/* STATISTICS */

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

.admin-stat-card {
    min-width: 0;
    padding: 23px 21px;
    border: 1px solid #F3E8D5;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(23, 59, 103, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(23, 59, 103, 0.07);
}

.admin-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 21px;
}

.admin-stat-top > span:first-child {
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.5;
}

.admin-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 11px;
    font-size: 20px;
}

.students-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.teachers-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.subjects-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.registrations-icon {
    background: #F3E8D5;
    color: #4B2E24;
}

.admin-stat-card > strong {
    display: block;
    margin-bottom: 8px;
    color: #4B2E24;
    font-family: "Poppins", sans-serif;
    font-size: 31px;
    line-height: 1.2;
}

.admin-stat-card > small {
    color: #4B2E24;
    font-size: 10px;
    line-height: 1.6;
}

/* ACCOUNT PANELS */

.admin-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.admin-panel {
    min-width: 0;
    padding: 25px;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(23, 59, 103, 0.025);
    scroll-margin-top: 24px;
}

.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F3E8D5;
}

.admin-panel-heading h2,
.admin-placeholder-panel h2 {
    margin: 0 0 7px;
    color: #4B2E24;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.admin-panel-heading p,
.admin-placeholder-panel p {
    margin: 0;
    color: #4B2E24;
    font-size: 11px;
    line-height: 1.7;
}

.admin-text-link {
    flex-shrink: 0;
    color: #4B2E24;
    font-size: 12px;
    font-weight: 600;
}

.admin-text-link:hover {
    color: #4B2E24;
    text-decoration: underline;
}

.admin-recent-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-recent-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 13px;
    font-weight: 700;
}

.admin-recent-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.admin-recent-details strong {
    overflow-wrap: anywhere;
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.5;
}

.admin-recent-details span {
    overflow-wrap: anywhere;
    color: #4B2E24;
    font-size: 11px;
    line-height: 1.5;
}

.admin-loading {
    margin: 0;
    padding: 12px 0;
    color: #4B2E24;
    font-size: 12px;
    line-height: 1.8;
}

/* SUBJECT CARDS */

.admin-subject-panel {
    margin-bottom: 24px;
}

.admin-subject-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-subject-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #F3E8D5;
    border-radius: 12px;
    background: #FFFFFF;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-subject-item:hover {
    border-color: #F3E8D5;
    background: #F3E8D5;
}

.admin-subject-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 11px;
    font-weight: 700;
}

.admin-subject-item strong {
    overflow-wrap: anywhere;
    color: #4B2E24;
    font-size: 13px;
    line-height: 1.6;
}

.admin-subject-label {
    color: #4B2E24;
    font-size: 10px;
}

/* FUTURE SECTIONS */

.admin-placeholder-panel {
    margin-bottom: 20px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0 5px;
    color: #4B2E24;
    font-size: 11px;
}

/* TABLET */

@media (max-width: 1100px) {
    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
        padding: 27px 24px;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-panel {
        padding: 21px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .admin-sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 17px 16px;
        overflow: visible;
    }

    .admin-brand {
        padding: 0 4px 17px;
    }

    .admin-nav-heading {
        margin-bottom: 8px;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 7px;
    }

    .admin-nav a {
        min-height: 39px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .admin-nav a > span {
        width: auto;
        font-size: 15px;
    }

    .admin-sidebar-footer {
        margin-top: 17px;
        padding-top: 14px;
    }

    .admin-main {
        margin-left: 0;
        padding: 22px 16px;
    }

    .admin-topbar {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .admin-topbar-user {
        padding: 8px 10px;
        font-size: 10px;
    }

    .admin-welcome {
        min-height: auto;
        padding: 25px 22px;
        border-radius: 15px;
    }

    .admin-welcome-icon {
        width: 61px;
        height: 61px;
        border-radius: 19px;
        font-size: 31px;
    }

    .admin-stat-grid {
        gap: 12px;
    }

    .admin-stat-card {
        padding: 17px;
    }

    .admin-stat-top {
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .admin-stat-top > span:first-child {
        font-size: 11px;
    }

    .admin-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .admin-stat-card > strong {
        font-size: 27px;
    }

    .admin-content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* SMALL PHONES */

@media (max-width: 420px) {
    .admin-topbar {
        flex-direction: column;
        gap: 12px;
    }

    .admin-welcome-icon {
        display: none;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-subject-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 17px;
    }

    .admin-footer {
        flex-direction: column;
        gap: 7px;
    }
}

/* =========================================================
   ADMIN STUDENT MANAGEMENT
========================================================= */

.admin-student-search {
    margin: 24px 0;
}

.admin-student-search label {
    display: block;
    margin-bottom: 8px;
    color: #4B2E24;
    font-weight: 600;
}

.admin-student-search input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #F3E8D5;
    border-radius: 10px;
    background: #FFFFFF;
    font: inherit;
    outline: none;
}

.admin-student-search input:focus {
    border-color: #4B2E24;
    box-shadow: 0 0 0 3px rgba(21, 155, 122, 0.12);
}

.admin-student-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
}

.admin-student-results-heading h3 {
    margin: 0;
    color: #4B2E24;
}

.admin-student-results-heading span {
    color: #4B2E24;
    font-size: 0.9rem;
}

.admin-student-management-card {
    padding: 18px 0;
    border-bottom: 1px solid #F3E8D5;
}

.admin-student-management-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-student-management-info .admin-recent-details {
    flex: 1;
    min-width: 0;
}

.admin-student-management-info .admin-recent-details strong,
.admin-student-management-info .admin-recent-details span,
.admin-student-management-info .admin-recent-details small {
    display: block;
    overflow-wrap: anywhere;
}

.admin-student-management-info .admin-recent-details small {
    margin-top: 5px;
    color: #4B2E24;
}

.admin-student-view-button {
    margin: 14px 0 0 52px;
    padding: 9px 13px;
    border: 1px solid #F3E8D5;
    border-radius: 8px;
    background: #F3E8D5;
    color: #4B2E24;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-student-view-button:hover {
    background: #F3E8D5;
}

.admin-student-registration-details {
    margin: 16px 0 0 52px;
    padding: 16px;
    border-radius: 10px;
    background: #F3E8D5;
}

.admin-student-registration-details[hidden] {
    display: none;
}

.admin-student-registration-details h4 {
    margin: 0 0 12px;
    color: #4B2E24;
}

.admin-student-registration-list {
    display: grid;
    gap: 10px;
}

.admin-student-registration-item {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid #F3E8D5;
    border-radius: 8px;
    background: #FFFFFF;
}

.admin-student-registration-item strong {
    color: #4B2E24;
}

.admin-student-registration-item span {
    color: #4B2E24;
    font-weight: 600;
}

.admin-student-registration-item small {
    color: #4B2E24;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .admin-student-registration-details,
    .admin-student-view-button {
        margin-left: 0;
    }

    .admin-student-registration-details {
        padding: 12px;
    }
}

/* =========================================================
   ADMIN DASHBOARD PAGE NAVIGATION
========================================================= */

.admin-page {
    display: none;
}

.admin-page.active {
    display: block;
}

/* =========================================================
   ADMIN REGISTRATIONS PAGE
========================================================= */

.admin-registration-panel {
    min-width: 0;
}

.admin-registration-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-registration-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #F3E8D5;
    border-radius: 12px;
    background: #FFFFFF;
}

.admin-registration-student strong,
.admin-registration-detail strong {
    display: block;
    color: #4B2E24;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-registration-student span,
.admin-registration-detail span {
    display: block;
    margin-top: 5px;
    color: #4B2E24;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-registration-subject {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 12px;
    font-weight: 600;
}

.admin-registration-empty {
    padding: 28px 18px;
    border: 1px dashed #F3E8D5;
    border-radius: 12px;
    color: #4B2E24;
    text-align: center;
}

@media (max-width: 760px) {
    .admin-registration-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* =========================================================
   ADMIN TEACHER MANAGEMENT
========================================================= */

.admin-teacher-management {
    min-width: 0;
}

.admin-teacher-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.admin-teacher-card {
    padding: 20px;
    border: 1px solid #F3E8D5;
    border-radius: 14px;
    background: #FFFFFF;
}

.admin-teacher-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3E8D5;
}

.admin-teacher-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F3E8D5;
    color: #4B2E24;
    font-weight: 700;
}

.admin-teacher-identity {
    min-width: 0;
}

.admin-teacher-identity h3 {
    margin: 0 0 5px;
    color: #4B2E24;
    font-size: 16px;
}

.admin-teacher-identity p {
    margin: 0;
    color: #4B2E24;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-teacher-subjects {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.admin-teacher-subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #F3E8D5;
}

.admin-teacher-subject-name {
    color: #4B2E24;
    font-size: 14px;
    font-weight: 600;
}

.admin-teacher-grade-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.admin-teacher-grade {
    padding: 5px 9px;
    border-radius: 20px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 11px;
    font-weight: 600;
}

.admin-teacher-no-subjects {
    margin: 16px 0 0;
    color: #4B2E24;
    font-size: 13px;
}

.admin-teacher-empty {
    padding: 28px 18px;
    border: 1px dashed #F3E8D5;
    border-radius: 12px;
    color: #4B2E24;
    text-align: center;
}

@media (max-width: 600px) {
    .admin-teacher-subject-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-teacher-grade-list {
        justify-content: flex-start;
    }
}

/* =========================================================
   ADMIN SUBJECT MANAGEMENT
========================================================= */

.admin-subject-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.admin-subject-toolbar strong {
    display: block;
    color: #4B2E24;
    font-size: 16px;
}

.admin-subject-toolbar p {
    margin: 6px 0 0;
    color: #4B2E24;
    font-size: 13px;
}

.admin-subject-toolbar input {
    width: min(100%, 320px);
    padding: 12px 14px;
    border: 1px solid #F3E8D5;
    border-radius: 10px;
    background: #FFFFFF;
    color: #4B2E24;
    font: inherit;
    outline: none;
}

.admin-subject-toolbar input:focus {
    border-color: #4B2E24;
    box-shadow: 0 0 0 3px rgba(21, 155, 122, 0.12);
}

.admin-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.admin-subject-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #F3E8D5;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(23, 59, 103, 0.04);
}

.admin-subject-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-subject-card .admin-subject-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #F3E8D5;
    color: #4B2E24;
    font-weight: 700;
}

.admin-subject-card .admin-subject-label {
    color: #4B2E24;
    font-size: 11px;
}

.admin-subject-card h3 {
    margin: 18px 0 12px;
    color: #4B2E24;
    font-size: 19px;
}

.admin-subject-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F3E8D5;
    color: #4B2E24;
    font-size: 13px;
}

.admin-subject-summary span:first-child {
    color: #4B2E24;
    font-size: 24px;
    font-weight: 700;
}

.admin-subject-teachers {
    padding-top: 17px;
}

.admin-subject-teachers h4 {
    margin: 0 0 12px;
    color: #4B2E24;
    font-size: 13px;
}

.admin-subject-teacher {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 13px 0;
    border-bottom: 1px solid #F3E8D5;
}

.admin-subject-teacher:last-child {
    border-bottom: none;
}

.admin-subject-teacher strong {
    display: block;
    color: #4B2E24;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-subject-teacher small {
    display: block;
    margin-top: 4px;
    color: #4B2E24;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.admin-subject-grade-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-grade-tag {
    padding: 5px 9px;
    border-radius: 20px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 11px;
    font-weight: 600;
}

.admin-grade-unset {
    color: #4B2E24;
    font-size: 11px;
}

.admin-subject-empty {
    margin: 0;
    padding: 12px;
    border-radius: 9px;
    background: #F3E8D5;
    color: #4B2E24;
    font-size: 12px;
}

@media (max-width: 600px) {
    .admin-subject-toolbar {
        align-items: stretch;
    }

    .admin-subject-toolbar input {
        width: 100%;
    }

    .admin-subject-card {
        padding: 17px;
    }
}

/* ADMIN SUBJECT MANAGEMENT CONTROLS */

.admin-subject-management-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.admin-subject-management-toolbar h3 {
    margin: 0;
    color: #4B2E24;
    font-size: 17px;
}

.admin-subject-management-toolbar p {
    margin: 6px 0 0;
    color: #4B2E24;
    font-size: 13px;
}

.admin-add-subject-form {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #F3E8D5;
    border-radius: 14px;
    background: #FFFFFF;
}

.admin-add-subject-form[hidden] {
    display: none !important;
}

.admin-add-subject-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
}

.admin-add-subject-field label {
    color: #4B2E24;
    font-size: 13px;
    font-weight: 600;
}

.admin-add-subject-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #F3E8D5;
    border-radius: 9px;
    font: inherit;
}

.admin-add-subject-field input:focus {
    outline: 2px solid rgba(21, 155, 122, 0.2);
    border-color: #4B2E24;
}

.admin-add-subject-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-subject-cancel-button {
    padding: 11px 18px;
    border: 1px solid #F3E8D5;
    border-radius: 9px;
    background: #FFFFFF;
    color: #4B2E24;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

#adminSubjectFormMessage {
    margin: 12px 0 0;
    font-size: 13px;
}

/* SUBJECT CARD EDIT CONTROLS */

.admin-subject-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 12px;
}

.admin-subject-title-row h3 {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-subject-edit-button {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid #F3E8D5;
    border-radius: 8px;
    background: #F3E8D5;
    color: #4B2E24;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-subject-edit-button:hover {
    background: #F3E8D5;
}

/* =========================================================
   DANMAWEB ACADEMY — STUDENT PERFORMANCE REPORT
========================================================= */

#adminStudentPerformanceReport {
    margin-top: 26px;
    color: #4B2E24;
}

.student-report-print {
    --report-navy: #4B2E24;
    --report-navy-dark: #4B2E24;
    --report-teal: #4B2E24;
    --report-gold: #4B2E24;
    --report-cream: #F3E8D5;
    --report-border: #F3E8D5;

    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--report-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(23, 59, 103, 0.07);
}

/* Report heading */

.student-report-heading {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: linear-gradient(
        125deg,
        #4B2E24 0%,
        #4B2E24 65%,
        #4B2E24 100%
    );
    color: #FFFFFF;
}

.student-report-heading::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -55px;
    top: -85px;
    border: 30px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.student-report-eyebrow {
    margin: 0 0 10px;
    color: #F3E8D5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.student-report-heading h2 {
    margin: 0 0 9px;
    color: #FFFFFF;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.25;
    font-weight: 750;
}

.student-report-heading > p:last-child {
    margin: 0;
    color: #F3E8D5;
    font-size: 14px;
}

/* Student information */

.student-report-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 24px 28px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--report-border);
}

.student-report-details p {
    margin: 0;
    color: #4B2E24;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.student-report-details strong {
    display: inline-block;
    min-width: 100px;
    color: #4B2E24;
    font-weight: 700;
}

/* Performance summary cards */

.student-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 26px 28px;
    background: #F3E8D5;
}

.student-report-summary > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 19px 17px;
    background: #FFFFFF;
    border: 1px solid #F3E8D5;
    border-radius: 13px;
    border-top: 3px solid #4B2E24;
}

.student-report-summary > div:nth-child(2) {
    border-top-color: #4B2E24;
}

.student-report-summary > div:nth-child(3) {
    border-top-color: #4B2E24;
}

.student-report-summary > div:nth-child(4) {
    border-top-color: #4B2E24;
}

.student-report-summary span {
    color: #4B2E24;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.student-report-summary strong {
    color: #4B2E24;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Subject results table */

.student-report-print > h3 {
    margin: 8px 28px 16px;
    color: #4B2E24;
    font-size: 19px;
    font-weight: 750;
}

.student-report-table-wrap {
    width: auto;
    margin: 0 28px;
    overflow-x: auto;
    border: 1px solid #F3E8D5;
    border-radius: 12px;
}

.student-report-table-wrap table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 13px;
}

.student-report-table-wrap thead th {
    padding: 15px 13px;
    background: #4B2E24;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.35px;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

.student-report-table-wrap tbody td {
    padding: 15px 13px;
    color: #4B2E24;
    border-bottom: 1px solid #F3E8D5;
    vertical-align: top;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.student-report-table-wrap tbody tr:nth-child(even) {
    background: #F3E8D5;
}

.student-report-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.student-report-table-wrap tbody td:first-child {
    color: #4B2E24;
    font-weight: 750;
}

.student-report-table-wrap tbody td:last-child {
    color: #4B2E24;
    font-weight: 800;
}

/* Report explanation */

.student-report-note {
    margin: 22px 28px 28px;
    padding: 15px 18px;
    color: #4B2E24;
    background: #F3E8D5;
    border-left: 4px solid #4B2E24;
    border-radius: 0 9px 9px 0;
    font-size: 12px;
    line-height: 1.8;
}

/* Mobile and tablet layout */

@media screen and (max-width: 900px) {
    .student-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .student-report-heading {
        padding: 24px 20px;
    }

    .student-report-details {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 13px;
    }

    .student-report-summary {
        padding: 18px;
        gap: 10px;
    }

    .student-report-summary > div {
        padding: 14px;
    }

    .student-report-print > h3 {
        margin-left: 18px;
        margin-right: 18px;
    }

    .student-report-table-wrap {
        margin-left: 18px;
        margin-right: 18px;
    }

    .student-report-note {
        margin: 18px;
    }
}

/* PDF / print layout */

@media print {
    #adminStudentPerformanceReport {
        margin: 0;
    }

    .student-report-print {
        border: 1px solid #F3E8D5;
        border-radius: 0;
        box-shadow: none;
    }

    .student-report-heading {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .student-report-summary > div,
    .student-report-table-wrap thead th,
    .student-report-table-wrap tbody tr:nth-child(even),
    .student-report-note {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .student-report-table-wrap {
        overflow: visible;
    }

    .student-report-table-wrap table {
        min-width: 0;
        font-size: 10px;
    }

    .student-report-table-wrap th,
    .student-report-table-wrap td {
        padding: 7px;
    }

    .student-report-summary {
        gap: 8px;
    }

    .student-report-summary > div {
        padding: 10px;
    }

    .student-report-print > h3 {
        break-after: avoid;
    }

    .student-report-table-wrap tr {
        break-inside: avoid;
    }
}


/* =========================================================
   FINAL BRAND ALIGNMENT — DANMAWEB ACADEMY
   Approved brand palette: rich chocolate brown, warm cream beige and crisp white.
   Functional success/error indicators remain distinct for usability.
========================================================= */
:root {
    --brand-navy: #4B2E24;
    --brand-navy-dark: #4B2E24;
    --brand-gold: #4B2E24;
    --brand-gold-dark: #4B2E24;
    --brand-cream: #F3E8D5;
}

/* Keep key calls to action within the chocolate-brown / cream / white palette. */
.primary-button,
.quiz-submit-button {
    background: var(--brand-gold);
    color: var(--brand-navy-dark);
    border-color: var(--brand-gold);
}

.primary-button:hover,
.quiz-submit-button:hover {
    background: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    color: #FFFFFF;
}

/* Brand-led labels and heading accents use chocolate brown. */
.hero-label,
.section-label,
.hero h1 span,
.section-heading h2 span,
.section-eyebrow {
    color: var(--brand-gold-dark);
}

/* Navigation and utility links use chocolate brown for consistent branding. */
.nav-login:hover,
.label-row a,
.view-all-link,
.subject-action:hover {
    color: var(--brand-gold-dark);
}

/* Visible keyboard focus using the approved chocolate-brown accent. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 3px;
}


/* =========================================================
   FINAL THREE-COLOUR BRAND OVERRIDES
   Rich chocolate brown: #4B2E24
   Warm cream beige:     #F3E8D5
   Crisp white:          #FFFFFF
========================================================= */
:root {
    --primary: #4B2E24;
    --primary-dark: #4B2E24;
    --primary-light: #F3E8D5;
    --background: #F3E8D5;
    --surface: #FFFFFF;
    --surface-soft: #F3E8D5;
    --text: #4B2E24;
    --text-muted: #4B2E24;
    --text-light: #4B2E24;
    --border: #F3E8D5;
    --teal: #4B2E24;
    --teal-dark: #4B2E24;
    --gold: #4B2E24;
    --gold-light: #F3E8D5;
    --brand-navy: #4B2E24;
    --brand-navy-dark: #4B2E24;
    --brand-gold: #4B2E24;
    --brand-gold-dark: #4B2E24;
    --brand-cream: #F3E8D5;
}

/* Ensure common page shells and cards follow the same palette. */
body, .page-container, .dashboard-main, .dashboard-content,
.admin-content, .teacher-content, .student-content {
    color: #4B2E24;
}
body, .page-container {
    background-color: #F3E8D5;
}
.dashboard-sidebar, .admin-sidebar, .teacher-sidebar,
.sidebar, .dashboard-nav, .admin-nav, .teacher-nav {
    background-color: #4B2E24;
}
.card, .dashboard-card, .stat-card, .admin-card, .teacher-card,
.student-card, .report-card, .subject-card, .assignment-card,
.material-card, .quiz-card, .content-card {
    background-color: #FFFFFF;
    border-color: #F3E8D5;
}
button, .btn, .primary-button, .quiz-submit-button,
.admin-primary-button, .teacher-primary-button {
    background-color: #4B2E24;
    border-color: #4B2E24;
    color: #FFFFFF;
}
button:hover, .btn:hover, .primary-button:hover,
.quiz-submit-button:hover, .admin-primary-button:hover,
.teacher-primary-button:hover {
    background-color: #F3E8D5;
    border-color: #4B2E24;
    color: #4B2E24;
}
input, select, textarea {
    border-color: #F3E8D5;
    color: #4B2E24;
}
input:focus, select:focus, textarea:focus {
    border-color: #4B2E24;
    outline-color: #4B2E24;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid #4B2E24;
    outline-offset: 2px;
}

/* =========================================================
   DANMAWeb ACADEMY — SIGN IN & SIGN UP LAYOUT
   Form LEFT | Background image RIGHT
========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: #FBF7F0;
    font-family: 'Inter', sans-serif;
}

/* LEFT SIDE — AUTHENTICATION FORMS */

.auth-panel {
    order: 2;
    width: 50%;
    min-height: 100vh;
    padding: 55px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FBF7F0;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 42px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 12px 45px rgba(75, 46, 36, 0.09);
}

/* RIGHT SIDE — EXISTING BACKGROUND PHOTO */

.brand-panel {
    order: 1;
    width: 50%;
    min-height: 100vh;
    padding: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(53, 32, 24, 0.58),
            rgba(53, 32, 24, 0.72)
        ),
        url("images/login-background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brand-panel::before,
.brand-panel::after {
    display: none;
}

.brand-content {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.brand-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.25;
    color: #FFFFFF;
}

.brand-tagline {
    font-family: 'Poppins', sans-serif;
    color: #F3E8D5;
}

.brand-description,
.learning-point p {
    color: #FFFFFF;
}

/* FORM TYPOGRAPHY */

.form-header h2 {
    font-family: 'Poppins', sans-serif;
    color: #4B2E24;
}

.form-header .small-heading {
    color: #B98A55;
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px) {
    .auth-panel,
    .brand-panel {
        width: 50%;
        padding: 30px;
    }

    .auth-card {
        padding: 30px;
    }
}

@media (max-width: 700px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-panel {
        order: 1;
        width: 100%;
        min-height: auto;
        padding: 35px 18px;
    }

    .brand-panel {
        order: 2;
        width: 100%;
        min-height: 360px;
        padding: 40px 25px;
    }

    .auth-card {
        max-width: 500px;
        padding: 28px 22px;
    }

    .brand-content h1 {
        font-size: 30px;
    }
}
