/* ==========================================================================
   AADHINI ePUBLICATION — CONCEPT D (REFINED & AUTHENTIC)
   Contemporary Digital Academic Publishing & Clinical Examination Platform
   Synthesis of Architectural Dual-Canvas, Academic Typographic Restraint & Digital Bookstore
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --ed-font-display: 'Newsreader', Georgia, serif;
    --ed-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ed-font-mono: 'JetBrains Mono', monospace;

    /* Architectural Dual Canvas */
    --ed-dark-bg: #0b111d;
    --ed-dark-surface: #121926;
    --ed-dark-border: rgba(255, 255, 255, 0.1);
    --ed-dark-text: #f8fafc;
    --ed-dark-muted: #94a3b8;

    --ed-light-bg: #f9f8f5;
    --ed-light-surface: #ffffff;
    --ed-light-border: #e3ded5;
    --ed-light-text: #17191e;
    --ed-light-muted: #4e5562;

    /* Authentic Accents */
    --ed-gold: #b38838;
    --ed-gold-hover: #c99a42;
    --ed-blue-clinical: #1e40af;
    --ed-emerald: #047857;
    --ed-emerald-subtle: #ecfdf5;
    --ed-burgundy: #831843;

    --ed-max-width: 1380px;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--ed-light-bg);
    color: var(--ed-light-text);
    font-family: var(--ed-font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

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

.ed-container {
    width: 100%;
    max-width: var(--ed-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

/* Prototype Banner */
.ed-prototype-header {
    background-color: #06090e;
    color: #94a3b8;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ed-prototype-header strong {
    color: var(--ed-gold);
}

.ed-prototype-links {
    display: flex;
    gap: 1.25rem;
}

.ed-prototype-links a {
    color: #e2e8f0;
    text-decoration: underline;
}

/* ==========================================================================
   MASTHEAD & NAVIGATION
   ========================================================================== */
.ed-masthead {
    background-color: var(--ed-light-surface);
    border-bottom: 1px solid var(--ed-light-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ed-masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ed-light-border);
    font-size: 0.8rem;
    color: var(--ed-light-muted);
}

.ed-masthead-top .ed-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.ed-masthead-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 0;
    gap: 1.5rem;
}

.ed-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    flex-shrink: 0;
}

.ed-brand-name {
    font-family: var(--ed-font-display);
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ed-light-text);
    line-height: 1;
}

.ed-brand-sub {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ed-gold);
}

.ed-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ed-nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ed-light-muted);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.ed-nav-links a:hover,
.ed-nav-links a.active {
    color: var(--ed-light-text);
    border-bottom-color: var(--ed-gold);
}

.ed-masthead-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ed-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--ed-light-border);
    background-color: var(--ed-light-surface);
    color: var(--ed-light-text);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ed-btn-outline:hover {
    border-color: var(--ed-gold);
    color: var(--ed-gold);
    background-color: #ffffff;
}

.ed-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--ed-dark-bg);
    color: #ffffff;
    border: 1.5px solid var(--ed-dark-bg);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ed-btn-solid:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

/* ==========================================================================
   HERO: ARCHITECTURAL DUAL-CANVAS
   ========================================================================== */
.ed-split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--ed-light-border);
    min-height: 520px;
}

/* Left Canvas: Mock Examination Portal (Dark) */
.ed-hero-exam {
    background-color: var(--ed-dark-bg);
    color: var(--ed-dark-text);
    padding: clamp(3rem, 5vw, 4.75rem) clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--ed-dark-border);
    position: relative;
}

.ed-hero-kicker-dark {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ed-gold);
    font-weight: 700;
    margin-bottom: 1.15rem;
    display: block;
}

.ed-hero-exam-title {
    font-family: var(--ed-font-display);
    font-size: clamp(2.1rem, 3.2vw, 2.85rem);
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.ed-hero-exam-p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ed-dark-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

/* Real Database Verified Telemetry */
.ed-exam-telemetry-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--ed-dark-border);
    border-bottom: 1px solid var(--ed-dark-border);
    padding: 1.35rem 0;
    margin-bottom: 2.25rem;
}

.ed-telemetry-item strong {
    font-family: var(--ed-font-mono);
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
    white-space: nowrap;
}

.ed-telemetry-item span {
    font-size: 0.8rem;
    color: var(--ed-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.ed-hero-exam-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ed-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    background-color: var(--ed-gold);
    color: #0b111d;
    border: 1.5px solid var(--ed-gold);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(179, 136, 56, 0.25);
}

.ed-btn-gold:hover {
    background-color: var(--ed-gold-hover);
    border-color: var(--ed-gold-hover);
    transform: translateY(-1px);
}

.ed-btn-dark-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    color: #ffffff;
    border: 1.5px solid var(--ed-dark-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ed-btn-dark-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Right Canvas: Digital Academic Press (Warm Linen) */
.ed-hero-press {
    background-color: var(--ed-light-bg);
    color: var(--ed-light-text);
    padding: clamp(3rem, 5vw, 4.75rem) clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ed-hero-kicker-light {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ed-burgundy);
    font-weight: 700;
    margin-bottom: 1.15rem;
    display: block;
}

.ed-hero-press-title {
    font-family: var(--ed-font-display);
    font-size: clamp(2.1rem, 3.2vw, 2.85rem);
    line-height: 1.2;
    font-weight: 600;
    color: var(--ed-light-text);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.ed-hero-press-p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ed-light-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

/* Contemporary Digital Book Showcase Card */
.ed-digital-book-card-hero {
    background-color: var(--ed-light-surface);
    border: 1px solid var(--ed-light-border);
    border-radius: 6px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.75rem;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

/* Clean Flat Digital Book Cover (Contemporary Bookstore Style) */
.ed-flat-digital-cover {
    width: 120px;
    height: 165px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 4px;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #334155;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ed-flat-digital-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--ed-gold);
    border-radius: 4px 0 0 4px;
}

.ed-flat-cover-tag {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ed-gold);
    font-family: var(--ed-font-mono);
}

.ed-flat-cover-title {
    font-family: var(--ed-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

.ed-flat-cover-author {
    font-size: 0.65rem;
    color: #94a3b8;
}

.ed-hero-book-details h4 {
    font-family: var(--ed-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ed-light-text);
    margin: 0 0 0.25rem 0;
    line-height: 1.25;
}

.ed-hero-book-author {
    font-size: 0.8125rem;
    color: var(--ed-light-muted);
    margin-bottom: 0.65rem;
}

.ed-hero-book-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ed-light-muted);
    margin-bottom: 0.85rem;
}

.ed-hero-book-meta-row {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: var(--ed-light-muted);
    border-top: 1px solid var(--ed-light-border);
    padding-top: 0.75rem;
}

.ed-hero-book-meta-row strong {
    color: var(--ed-light-text);
}

.ed-hero-press-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   EXAMINATION MATRIX & LIVE CLINICAL DECISION SIMULATOR
   ========================================================================== */
.ed-section-examination {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--ed-light-surface);
    border-bottom: 1px solid var(--ed-light-border);
}

.ed-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ed-light-border);
}

.ed-section-title {
    font-family: var(--ed-font-display);
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--ed-light-text);
    margin: 0;
    line-height: 1.15;
}

.ed-section-subline {
    font-size: 0.9375rem;
    color: var(--ed-light-muted);
    margin: 0.35rem 0 0 0;
}

.ed-exam-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
}

/* Database-Backed Examination Schedule Table */
.ed-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ed-light-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.ed-schedule-table th {
    background-color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1.5px solid var(--ed-light-border);
}

.ed-schedule-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--ed-light-border);
    font-size: 0.92rem;
    color: #334155;
    vertical-align: middle;
}

.ed-schedule-table tr:last-child td {
    border-bottom: none;
}

.ed-schedule-table tr:hover td {
    background-color: #fbfbf9;
}

.ed-table-test-name {
    font-family: var(--ed-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ed-dark-bg);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.ed-table-test-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-family: var(--ed-font-mono);
}

.ed-badge-status-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ed-emerald);
    background-color: var(--ed-emerald-subtle);
    border: 1px solid #a7f3d0;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: var(--ed-font-mono);
}

/* Genuine Database Clinical Vignette Demonstrator */
.ed-simulator-preview-box {
    background-color: var(--ed-dark-surface);
    border: 1px solid var(--ed-dark-border);
    border-radius: 10px;
    overflow: hidden;
    color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ed-sim-topbar {
    background-color: var(--ed-dark-bg);
    padding: 0.9rem 1.35rem;
    border-bottom: 1px solid var(--ed-dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--ed-font-mono);
    font-size: 0.78rem;
}

.ed-sim-tag {
    color: var(--ed-gold);
    font-weight: 700;
}

.ed-sim-disclaimer {
    color: #94a3b8;
    font-size: 0.72rem;
}

.ed-sim-body {
    padding: 1.75rem;
}

.ed-sim-stem {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 3.5px solid var(--ed-blue-clinical);
    padding: 1rem 1.15rem;
    border-radius: 0 6px 6px 0;
    color: #f1f5f9;
}

.ed-sim-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.35rem;
}

.ed-sim-opt {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--ed-dark-border);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #e2e8f0;
}

.ed-sim-opt:hover {
    border-color: #64748b;
    background-color: rgba(255, 255, 255, 0.07);
}

.ed-sim-opt.correct {
    border-color: var(--ed-emerald);
    background-color: rgba(4, 120, 87, 0.2);
}

.ed-sim-opt-letter {
    font-family: var(--ed-font-mono);
    font-weight: 700;
    color: var(--ed-gold);
    width: 22px;
    font-size: 0.9rem;
}

.ed-sim-explanation-box {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-top: 1rem;
}

.ed-sim-explanation-box strong {
    color: #38bdf8;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ed-sim-footer {
    border-top: 1px solid var(--ed-dark-border);
    padding: 0.85rem 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ed-dark-muted);
    background-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   DIGITAL BOOKSTORE CATALOGUE
   ========================================================================== */
.ed-section-library {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--ed-light-bg);
    border-bottom: 1px solid var(--ed-light-border);
}

.ed-bookstore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ed-digital-book-card {
    background-color: var(--ed-light-surface);
    border: 1px solid var(--ed-light-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ed-digital-book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ed-card-cover-container {
    background-color: #f3f1eb;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--ed-light-border);
}

.ed-flat-digital-cover.cov-eng {
    background: linear-gradient(135deg, #33201d 0%, #1e1210 100%);
    border-color: #4b302a;
}

.ed-flat-digital-cover.cov-eng::before {
    background-color: #ea580c;
}

.ed-flat-digital-cover.cov-lit {
    background: linear-gradient(135deg, #162c24 0%, #0d1a15 100%);
    border-color: #27483c;
}

.ed-flat-digital-cover.cov-lit::before {
    background-color: #059669;
}

.ed-book-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ed-book-discipline {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--ed-gold);
    margin-bottom: 0.35rem;
}

.ed-book-card-title {
    font-family: var(--ed-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ed-light-text);
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.ed-book-card-author {
    font-size: 0.8125rem;
    color: var(--ed-light-muted);
    margin-bottom: 0.75rem;
}

.ed-book-card-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ed-light-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.ed-book-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ed-light-border);
    padding-top: 1rem;
}

.ed-book-price-tag {
    font-family: var(--ed-font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ed-light-text);
}

/* ==========================================================================
   ACADEMIC PUBLISHING CHARTER (FOR AUTHORS)
   ========================================================================== */
.ed-section-publishing-charter {
    background-color: var(--ed-dark-bg);
    color: #ffffff;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.ed-charter-wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    align-items: center;
}

.ed-charter-title {
    font-family: var(--ed-font-display);
    font-size: 2.35rem;
    line-height: 1.15;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.ed-charter-desc {
    font-size: 1rem;
    color: var(--ed-dark-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ed-charter-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background-color: var(--ed-dark-surface);
    border: 1px solid var(--ed-dark-border);
    padding: 2rem;
    border-radius: 6px;
}

.ed-charter-col h5 {
    font-family: var(--ed-font-display);
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.ed-charter-col p {
    font-size: 0.8125rem;
    color: var(--ed-dark-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   ACADEMIC FOOTER
   ========================================================================== */
.ed-footer {
    background-color: var(--ed-light-surface);
    border-top: 1px solid var(--ed-light-border);
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    font-size: 0.875rem;
    color: var(--ed-light-muted);
}

.ed-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--ed-light-border);
}

.ed-footer-brand-col h4 {
    font-family: var(--ed-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ed-light-text);
    margin: 0 0 0.5rem 0;
}

.ed-footer-col h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--ed-light-text);
    margin: 0 0 1rem 0;
}

.ed-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ed-footer-col ul li {
    margin-bottom: 0.5rem;
}

.ed-footer-col ul a:hover {
    color: var(--ed-light-text);
}

.ed-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (1366px, 768px, 375px)
   ========================================================================== */
@media (max-width: 1200px) {
    .ed-hero-exam, .ed-hero-press {
        padding: 3.5rem 2.5rem;
    }
    .ed-hero-exam-title, .ed-hero-press-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 991px) {
    .ed-split-hero {
        grid-template-columns: 1fr;
    }
    .ed-hero-exam {
        border-right: none;
        border-bottom: 1px solid var(--ed-dark-border);
        padding: 3.5rem 2rem;
    }
    .ed-hero-press {
        padding: 3.5rem 2rem;
    }
    .ed-exam-grid-layout {
        grid-template-columns: 1fr;
    }
    .ed-bookstore-grid {
        grid-template-columns: 1fr;
    }
    .ed-charter-wrap {
        grid-template-columns: 1fr;
    }
    .ed-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ed-masthead-top {
        display: none;
    }
    .ed-masthead-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
    .ed-nav-links {
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        gap: 1.25rem;
        padding-bottom: 0.35rem;
    }
    .ed-hero-exam-title,
    .ed-hero-press-title {
        font-size: 2.15rem;
        line-height: 1.15;
    }
    .ed-exam-telemetry-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .ed-digital-book-card-hero {
        grid-template-columns: 1fr;
    }
    .ed-charter-pillars {
        grid-template-columns: 1fr;
    }
    .ed-footer-grid {
        grid-template-columns: 1fr;
    }
    .ed-prototype-header {
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }
}

/* ==========================================================================
   AUTHENTICATION & ACCESS PORTAL STYLES (CONCEPT D)
   ========================================================================== */
.ae-auth-page {
    background-color: var(--ed-light-bg);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.ae-auth-container {
    width: 100%;
    max-width: 480px;
}

.ae-auth-container-wide {
    width: 100%;
    max-width: 640px;
}

.ae-auth-card {
    background: #ffffff;
    border: 1px solid var(--ed-light-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(11, 17, 29, 0.05), 0 8px 10px -6px rgba(11, 17, 29, 0.05);
    overflow: hidden;
}

.ae-auth-header {
    background: var(--ed-dark-bg);
    color: var(--ed-dark-text);
    padding: 2.25rem 2rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--ed-gold);
    position: relative;
}

.ae-auth-kicker {
    display: inline-block;
    font-family: var(--ed-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ed-gold);
    margin-bottom: 0.5rem;
}

.ae-auth-title {
    font-family: var(--ed-font-display);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 0.4rem;
}

.ae-auth-subtitle {
    font-size: 0.875rem;
    color: var(--ed-dark-muted);
    margin: 0;
}

.ae-auth-body {
    padding: 2.25rem 2rem;
}

.ae-auth-label {
    display: block;
    font-family: var(--ed-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ed-light-text);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ae-auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.ae-auth-input-icon {
    position: absolute;
    left: 0.95rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    pointer-events: none;
    z-index: 2;
}

.ae-auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    font-family: var(--ed-font-sans);
    font-size: 0.9375rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #dcd7ce;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.ae-auth-input:focus {
    outline: none;
    border-color: var(--ed-gold);
    box-shadow: 0 0 0 3px rgba(179, 136, 56, 0.15);
}

.ae-auth-pw-toggle {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.35rem;
    font-size: 0.9375rem;
    z-index: 2;
    transition: color 0.15s ease;
}

.ae-auth-pw-toggle:hover {
    color: var(--ed-dark-bg);
}

.ae-auth-submit-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--ed-dark-bg);
    color: #ffffff;
    font-family: var(--ed-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--ed-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ae-auth-submit-btn:hover {
    background: var(--ed-gold);
    color: #0b111d;
    border-color: var(--ed-gold-hover);
}

.ae-auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ae-auth-footer-nav {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ed-light-border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--ed-light-muted);
}

.ae-auth-footer-nav a {
    color: var(--ed-blue-clinical);
    font-weight: 600;
    text-decoration: none;
}

.ae-auth-footer-nav a:hover {
    color: var(--ed-gold);
    text-decoration: underline;
}

/* Plan Selection Cards */
.ae-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ae-plan-card {
    border: 2px solid var(--ed-light-border);
    border-radius: 10px;
    padding: 1.25rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ae-plan-card:hover {
    border-color: #cbd5e1;
}

.ae-plan-card.active,
.ae-plan-card:has(input[type="radio"]:checked) {
    border-color: var(--ed-gold);
    background: #fffdf9;
    box-shadow: 0 4px 12px rgba(179, 136, 56, 0.12);
}

.ae-plan-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--ed-font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ed-gold);
    text-transform: uppercase;
}

.ae-plan-name {
    font-family: var(--ed-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.25rem;
}

.ae-plan-price {
    font-family: var(--ed-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ed-dark-bg);
    margin-bottom: 0.25rem;
}

.ae-plan-gst {
    font-family: var(--ed-font-mono);
    font-size: 0.6875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.ae-plan-desc {
    font-size: 0.8125rem;
    color: var(--ed-light-muted);
    line-height: 1.45;
    margin-top: auto;
}

/* Cost Summary */
.ae-cost-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.ae-cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

.ae-cost-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #cbd5e1;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    font-weight: 700;
    color: #0b111d;
}

.ae-cost-total-amount {
    font-family: var(--ed-font-display);
    font-size: 1.35rem;
    color: var(--ed-dark-bg);
}

@media (max-width: 576px) {
    .ae-plan-grid {
        grid-template-columns: 1fr;
    }
    .ae-auth-body {
        padding: 1.5rem 1.25rem;
    }
    .ae-auth-header {
        padding: 1.75rem 1.25rem 1.5rem;
    }
}

/* ==========================================================================
   ACADEMIC EXAMINATION CATALOGUE STYLES (CONCEPT D — SPRINT 2)
   ========================================================================== */
.ae-catalogue-hero {
    background-color: var(--ed-dark-bg);
    color: var(--ed-dark-text);
    padding: 3.5rem 1.5rem 3rem;
    border-bottom: 2px solid var(--ed-gold);
    position: relative;
    overflow: hidden;
}

.ae-catalogue-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(179, 136, 56, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ae-catalogue-kicker {
    font-family: var(--ed-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ed-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ae-catalogue-title {
    font-family: var(--ed-font-display);
    font-size: 2.35rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.ae-catalogue-subline {
    font-size: 1rem;
    color: var(--ed-dark-muted);
    max-width: 680px;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.ae-catalogue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ae-catalogue-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ae-tab-btn {
    background: none;
    border: none;
    color: var(--ed-dark-muted);
    font-family: var(--ed-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ae-tab-btn:hover {
    color: #ffffff;
}

.ae-tab-btn.active {
    background: var(--ed-gold);
    color: #0b111d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ae-catalogue-search-box {
    position: relative;
    min-width: 280px;
}

.ae-catalogue-search-input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.ae-catalogue-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ed-gold);
    box-shadow: 0 0 0 3px rgba(179, 136, 56, 0.2);
}

.ae-catalogue-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ed-dark-muted);
    font-size: 0.8125rem;
    pointer-events: none;
}

/* Examination Card Grid */
.ae-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    padding: 3rem 0;
}

.ae-exam-card {
    background: #ffffff;
    border: 1px solid var(--ed-light-border);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(11, 17, 29, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ae-exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(11, 17, 29, 0.08);
    border-color: #cbd5e1;
}

.ae-exam-card-header {
    padding: 1rem 1.25rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ae-exam-module-tag {
    font-family: var(--ed-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.ae-exam-status-badge {
    font-family: var(--ed-font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.ae-exam-status-badge.live {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ae-exam-status-badge.completed {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ae-exam-status-badge.upcoming {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.ae-exam-status-badge.closed {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ae-exam-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ae-exam-name {
    font-family: var(--ed-font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 1rem;
    min-height: 2.8rem;
}

.ae-exam-metadata-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1.25rem;
}

.ae-exam-meta-item {
    text-align: center;
}

.ae-exam-meta-label {
    font-family: var(--ed-font-mono);
    font-size: 0.625rem;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.15rem;
}

.ae-exam-meta-val {
    font-family: var(--ed-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
}

.ae-exam-schedule-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ae-exam-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.ae-exam-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-family: var(--ed-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 0.4rem;
    text-decoration: none;
}

.ae-exam-action-btn.primary {
    background: var(--ed-dark-bg);
    color: #ffffff;
    border: 1px solid var(--ed-gold);
}

.ae-exam-action-btn.primary:hover {
    background: var(--ed-gold);
    color: #0b111d;
    border-color: var(--ed-gold-hover);
}

.ae-exam-action-btn.resume {
    background: #f59e0b;
    color: #0b111d;
    border: 1px solid #d97706;
}

.ae-exam-action-btn.resume:hover {
    background: #d97706;
    color: #ffffff;
}

.ae-exam-action-btn.outline {
    background: #ffffff;
    color: var(--ed-blue-clinical);
    border: 1px solid #cbd5e1;
}

.ae-exam-action-btn.outline:hover {
    background: #f8fafc;
    border-color: var(--ed-blue-clinical);
}

.ae-exam-action-btn.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.ae-exam-card-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.ae-locked-icon {
    font-size: 2.25rem;
    color: var(--ed-gold);
    margin-bottom: 0.75rem;
}

.ae-locked-title {
    font-family: var(--ed-font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.ae-locked-desc {
    font-size: 0.8125rem;
    color: #64748b;
    max-width: 240px;
    margin-bottom: 1.25rem;
}

/* Empty State */
.ae-empty-catalogue {
    text-align: center;
    padding: 5rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--ed-light-border);
    border-radius: 12px;
    margin: 3rem 0;
}

.ae-empty-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.ae-empty-title {
    font-family: var(--ed-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.ae-empty-desc {
    font-size: 0.9375rem;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ae-exam-grid {
        grid-template-columns: 1fr;
    }
    .ae-catalogue-hero {
        padding: 2.5rem 1rem 2rem;
    }
    .ae-catalogue-title {
        font-size: 1.85rem;
    }
    .ae-catalogue-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .ae-catalogue-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    .ae-catalogue-search-box {
        min-width: 100%;
    }
}

/* ==========================================================================
   CLINICAL EXAMINATION INTERFACE STYLES (CONCEPT D — SPRINT 3)
   ========================================================================= */
.ae-exam-workspace {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: var(--ed-font-sans);
    color: #1e293b;
}

/* Exam Top Bar */
.ae-exam-topbar {
    background: var(--ed-dark-bg);
    color: var(--ed-dark-text);
    border-bottom: 2px solid var(--ed-gold);
    padding: 0.65rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ae-exam-topbar-title {
    font-family: var(--ed-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.ae-exam-topbar-candidate {
    font-size: 0.8125rem;
    color: var(--ed-dark-muted);
}

.ae-exam-timer-display {
    font-family: var(--ed-font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ae-exam-sync-indicator {
    font-size: 0.75rem;
    font-family: var(--ed-font-mono);
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ae-sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

/* Question Workspace Card */
.ae-q-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    overflow: hidden;
}

.ae-q-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ae-q-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ae-q-num-badge {
    font-family: var(--ed-font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.ae-q-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
}

.ae-q-stem {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* Options */
.ae-opt-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.ae-opt-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.15rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.ae-opt-label:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ae-opt-label.selected,
.ae-opt-label:has(input[type="radio"]:checked) {
    background: #f0f7ff;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
}

.ae-opt-radio {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #1e40af;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.ae-opt-text {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.5;
    flex-grow: 1;
}

/* Action Bar below Question */
.ae-q-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

/* Question Status borders */
.ae-q-card.question-answered {
    border-left: 5px solid #10b981;
}

.ae-q-card.question-marked {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Question Navigator Palette Sidebar */
.ae-palette-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 75px;
    overflow: hidden;
}

.ae-palette-header {
    background: var(--ed-dark-bg);
    color: #ffffff;
    padding: 0.9rem 1.15rem;
    border-bottom: 2px solid var(--ed-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ae-palette-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
}

.ae-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ae-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ae-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.45rem;
    padding: 1rem 1.15rem;
    max-height: 380px;
    overflow-y: auto;
}

.ae-palette-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ed-font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ae-palette-btn:hover {
    transform: scale(1.08);
}

.ae-palette-btn.answered {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.ae-palette-btn.marked {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}

.ae-palette-btn.unanswered {
    background: #ffffff;
    color: #475569;
    border-color: #94a3b8;
}

@media (max-width: 991px) {
    .ae-exam-topbar-title {
        max-width: 250px;
    }
    .ae-palette-panel {
        position: static;
        margin-top: 2rem;
    }
}


/* ==========================================================================
   PHASE 2 - SPRINT 4: STUDENT DASHBOARD, SCORECARD & PRACTICE MISTAKES (CONCEPT D)
   ========================================================================== */

/* --- Student Dashboard Architectural Header --- */
.ae-dash-header {
    background: linear-gradient(135deg, #0b111d 0%, #111a2e 60%, #0f192b 100%);
    border-bottom: 1px solid rgba(179, 136, 56, 0.25);
    color: #ffffff;
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.ae-dash-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 85% 20%, rgba(179, 136, 56, 0.08) 0%, transparent 40%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    pointer-events: none;
}

.ae-dash-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ed-font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.ae-dash-title {
    font-family: var(--ed-font-display, 'Newsreader', Georgia, serif);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

.ae-dash-subtitle {
    font-family: var(--ed-font-body, system-ui, sans-serif);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin-bottom: 0;
}

.ae-dash-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Telemetry Metric Cards --- */
.ae-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 2px 8px rgba(11, 17, 29, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ae-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 17, 29, 0.08);
    border-color: #cbd5e1;
}

.ae-stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ae-stat-number {
    font-family: var(--ed-font-mono, monospace);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0b111d;
    margin-top: 0.5rem;
}

.ae-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-top: 0.25rem;
}

.ae-stat-subtext {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* --- SVG Circular Gauge --- */
.ae-gauge-circle {
    display: block;
    margin: 0 auto;
    width: 72px;
    height: 72px;
}

.ae-gauge-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.5;
}

.ae-gauge-progress {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

/* --- Analytics & Content Cards --- */
.ae-panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(11, 17, 29, 0.04);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ae-panel-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.ae-panel-title {
    font-family: var(--ed-font-display, 'Newsreader', serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b111d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ae-panel-body {
    padding: 1.35rem;
    flex-grow: 1;
}

/* --- Editorial Table Styling --- */
.ae-table-editorial {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.ae-table-editorial thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
}

.ae-table-editorial tbody td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    vertical-align: middle;
}

.ae-table-editorial tbody tr:last-child td {
    border-bottom: none;
}

.ae-table-editorial tbody tr:hover {
    background-color: #f8fafc;
}

/* --- Scorecard Specific Styling --- */
.ae-scorecard-header {
    background: linear-gradient(135deg, #0b111d 0%, #162032 100%);
    color: #ffffff;
    border-bottom: 2px solid #b38838;
    padding: 2.25rem 0 1.75rem;
}

.ae-scorecard-kpi {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(11, 17, 29, 0.03);
}

.ae-scorecard-kpi-val {
    font-family: var(--ed-font-mono, monospace);
    font-size: 1.75rem;
    font-weight: 700;
    color: #0b111d;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.ae-scorecard-kpi-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

/* Filter Buttons */
.ae-filter-pill-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ae-filter-pill-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.ae-filter-pill-btn.active {
    background: #0b111d;
    color: #ffffff;
    border-color: #0b111d;
}

.ae-filter-pill-btn.active.filter-correct {
    background: #10b981;
    border-color: #10b981;
}

.ae-filter-pill-btn.active.filter-wrong {
    background: #e11d48;
    border-color: #e11d48;
}

/* Question Review Cards */
.ae-qreview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(11, 17, 29, 0.03);
    overflow: hidden;
    transition: transform 0.15s ease;
}

.ae-qreview-card.status-correct {
    border-left: 5px solid #10b981;
}

.ae-qreview-card.status-wrong {
    border-left: 5px solid #e11d48;
}

.ae-qreview-card.status-not_attempted {
    border-left: 5px solid #94a3b8;
}

.ae-qreview-header {
    padding: 1.15rem 1.35rem 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ae-qreview-stem {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #0f172a;
    margin-bottom: 0;
}

.ae-qreview-body {
    padding: 0.75rem 1.35rem 1.25rem;
}

/* Option Items in Review */
.ae-qreview-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: background 0.15s ease;
}

.ae-qreview-opt-letter {
    font-family: var(--ed-font-mono, monospace);
    font-weight: 700;
    font-size: 0.8125rem;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #475569;
}

.ae-qreview-opt.opt-correct {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #064e3b;
}

.ae-qreview-opt.opt-correct .ae-qreview-opt-letter {
    background: #10b981;
    color: #ffffff;
}

.ae-qreview-opt.opt-chosen-wrong {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.ae-qreview-opt.opt-chosen-wrong .ae-qreview-opt-letter {
    background: #e11d48;
    color: #ffffff;
}

.ae-qreview-opt.opt-normal {
    background-color: #ffffff;
    border-color: #f1f5f9;
    color: #334155;
}

/* Clinical Explanation Box */
.ae-explanation-box {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    background: #fafaf9;
    border-left: 3px solid #b38838;
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
}

.ae-explanation-header {
    font-family: var(--ed-font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b38838;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Modern Audio Controls */
.ae-audio-toolbar {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ae-audio-toolbar .btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Go To Navigator Floating Panel */
.ae-goto-floater {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 280px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(11, 17, 29, 0.16);
    z-index: 1050;
    overflow: hidden;
    transition: width 0.2s ease;
}

.ae-goto-floater.collapsed {
    width: auto;
}

.ae-goto-floater-header {
    background: #0b111d;
    color: #ffffff;
    padding: 0.6rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ae-goto-floater-body {
    padding: 0.75rem 0.85rem;
    max-height: 280px;
    overflow-y: auto;
}

.ae-goto-floater.collapsed .ae-goto-floater-body {
    display: none;
}

/* --- Practice Mistakes Specific Styling --- */
.ae-mistakes-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 0.5rem;
    background: #ffffff;
}

.ae-mistakes-option-label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.form-check-input:checked + .ae-mistakes-option-label {
    border-color: #0b111d;
    background: #f8fafc;
    box-shadow: 0 0 0 1px #0b111d;
}


/* ==========================================================================
   PAGE-SCOPED ACCESSORY WORKFLOW ENHANCEMENTS (CONCEPT D - WORKFLOW V2)
   DO NOT MODIFY OR TOUCH PROTECTED EXAM OR ANSWER REVIEW CLASSES ABOVE.
   ========================================================================== */

/* High-Priority Active Exam Resume Banner */
.ae-dash-v2-alert-resume {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e1b4b 100%);
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-left: 6px solid #818cf8;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.25);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ae-dash-v2-alert-resume::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 140px;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
    transform: rotate(25deg);
    pointer-events: none;
}

.ae-dash-v2-resume-badge {
    font-family: var(--ed-font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ae-dash-v2-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: ae-pulse 1.8s infinite;
}

@keyframes ae-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Recommended Next Action Card */
.ae-dash-v2-next-action {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #b38838;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(11, 17, 29, 0.04);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ae-dash-v2-action-kicker {
    font-family: var(--ed-font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b38838;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ae-dash-v2-action-title {
    font-family: var(--ed-font-display, 'Newsreader', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b111d;
    margin-bottom: 0.25rem;
}

.ae-dash-v2-action-desc {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0;
}

/* Subscription Telemetry Badge */
.ae-dash-v2-sub-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* Spaced Repetition Due Card */
.ae-dash-v2-srs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 2px 6px rgba(11, 17, 29, 0.03);
}

/* Last Result Overview Box */
.ae-dash-v2-last-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
