/* ==========================================================================
   PlusPhysics Master Home Page — Global Stylesheet
   Designed for Plus One & Plus Two Interactive Physics Suite
   Department of Physics • D B Pampa College, Parumala
   ========================================================================== */

:root {
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --accent-color: #0284c7;
    --success-color: #15803d;
    --success-light: #f0fdf4;
    --warning-color: #b45309;
    --bg-color: #f6f8fb;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-sub: #334155;
    --text-muted: #5b6b82;
    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px -10px rgba(15, 23, 42, 0.25);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.55;
    min-height: 100vh;
}

[hidden] { display: none !important; }

:where(a, button, input):focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 50;
    padding: 0.6rem 0.9rem;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}
.skip-link:focus { top: 0.75rem; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   1. Top Navigation Bar (Standard 4.1)
   ========================================================================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.25rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-text { color: var(--primary-color); }

.nav-dept-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
}

/* ==========================================================================
   2. Hero Header
   ========================================================================== */
.hero-header {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: end;
    padding: 2.5rem 2.5rem 2.25rem;
    color: #fff;
    background:
        radial-gradient(60rem 30rem at 105% -20%, rgba(56, 189, 248, 0.22), transparent 60%),
        radial-gradient(40rem 26rem at -10% 120%, rgba(29, 78, 216, 0.35), transparent 60%),
        #0b1329;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 32px -18px rgba(11, 19, 41, 0.6);
}

/* faint orbit rings: the brand mark, enlarged */
.hero-header::after {
    content: '';
    position: absolute;
    right: -7rem;
    top: -9rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    border: 1px solid rgba(148, 197, 255, 0.16);
    box-shadow: 0 0 0 4.5rem rgba(148, 197, 255, 0.035), 0 0 0 9rem rgba(148, 197, 255, 0.025);
    pointer-events: none;
}

.hero-copy, .hero-metrics { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bfdbfe;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 0.9rem;
    max-width: 18ch;
    text-wrap: balance;
}

.hero-lead {
    font-size: 1.02rem;
    color: #cbd5e1;
    max-width: 56ch;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    min-height: 2.9rem;
    padding: 0 1.25rem;
    background: #fff;
    color: #0b1329;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta::after { content: '\2193'; margin-left: 0.55rem; }
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(255, 255, 255, 0.5); }

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.metric-chip {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
}
.metric-chip dd {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.15;
    color: #7dd3fc;
    font-variant-numeric: tabular-nums;
}
.metric-chip dd small { font-size: 0.85rem; font-weight: 500; color: #94a3b8; }
.metric-chip dt { font-size: 0.76rem; color: #a5b4c8; font-weight: 500; }
.metric-chip.is-active dd { color: #86efac; }

/* ==========================================================================
   3. Resume card
   ========================================================================== */
.resume-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.resume-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 1rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.resume-tile:hover { border-color: #93c5fd; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.resume-tile.is-primary { border-left: 4px solid var(--primary-color); }
.resume-kicker {
    font: 700 0.7rem/1.3 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.resume-tile:not(.is-primary) .resume-kicker { color: var(--text-muted); }
.resume-tile strong { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.resume-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   4. Curriculum Grade Switcher
   ========================================================================== */
.switcher-tabs {
    display: flex;
    background: #e5eaf1;
    padding: 0.3rem;
    border-radius: var(--radius-md);
    gap: 0.3rem;
}

.switcher-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 2.9rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, color 0.15s ease;
}
.switcher-tab:hover { color: var(--text-main); }
.switcher-tab.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.tab-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
}
.tab-badge.upcoming { background: #fef3c7; color: var(--warning-color); }

.curriculum-panel { display: none; flex-direction: column; gap: 1.25rem; }
.curriculum-panel.active { display: flex; }

/* ==========================================================================
   5. Search & Topic Filter Toolbar
   ========================================================================== */
.hub-toolbar {
    position: sticky;
    top: 0.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.35);
    scroll-margin-top: 0.75rem;
}

.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 0.9rem; color: var(--text-muted); pointer-events: none; }
.search-box input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.6rem 2.9rem 0.6rem 2.6rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box input::placeholder { color: #7b8aa0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
.search-kbd {
    position: absolute;
    right: 0.75rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #f8fafc;
    color: var(--text-muted);
    font: 600 0.75rem/1.4 var(--font-mono);
    pointer-events: none;
}
.search-box input:focus ~ .search-kbd,
.search-box input:not(:placeholder-shown) ~ .search-kbd { display: none; }
.search-clear-btn {
    position: absolute;
    right: 0.3rem;
    width: 2.4rem;
    height: 2.4rem;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.search-clear-btn:hover { color: var(--text-main); background: #f1f5f9; }

.topic-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-chip {
    min-height: 2.1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text-sub);
    border-radius: 999px;
    font: 600 0.8rem/1.2 var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip span { font-weight: 500; color: var(--text-muted); margin-left: 0.2rem; }
.filter-chip:hover { background: var(--primary-light); border-color: #93c5fd; color: var(--primary-color); }
.filter-chip.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.filter-chip.active span { color: #bfdbfe; }

.toolbar-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
}
.result-count { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.chapter-jump { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); }
.chapter-jump span { margin-right: 0.35rem; font-weight: 600; }
.chapter-jump a {
    display: grid;
    place-items: center;
    min-width: 1.7rem;
    height: 1.7rem;
    border-radius: 6px;
    color: var(--text-sub);
    font: 600 0.75rem/1 var(--font-mono);
    text-decoration: none;
}
.chapter-jump a:hover { background: var(--primary-light); color: var(--primary-color); }

/* ==========================================================================
   6. Chapters & Simulation Cards Grid
   ========================================================================== */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 370px), 1fr));
    gap: 1.1rem;
    align-items: start;
}

.chapter-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.2rem 1.2rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 13.75rem;
}
.chapter-card.is-target { animation: targetPulse 1.6s ease-out 1; }
@keyframes targetPulse {
    0% { box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.45); border-color: var(--primary-color); }
    100% { box-shadow: 0 0 0 3px rgba(29, 78, 216, 0); }
}

.chapter-header { display: flex; flex-direction: column; gap: 0.4rem; }
.chapter-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.chapter-number {
    font: 700 0.7rem/1 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
}
.category-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.chapter-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.chapter-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

.chapter-progress { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.15rem; }
.chapter-progress-bar { flex: 1; height: 5px; border-radius: 999px; background: #e5eaf1; overflow: hidden; }
.chapter-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: #22c55e; transition: width 0.3s ease; }
.chapter-progress-text { font-size: 0.72rem; font-weight: 600; color: var(--success-color); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Lab list */
.sim-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 0.4rem;
}
.sim-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.7rem;
    padding: 0.55rem 0.5rem;
    margin: 0 -0.5rem;
    min-height: 2.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.12s ease, color 0.12s ease;
}
.sim-link:hover { background: var(--primary-light); color: var(--primary-color); }
.sim-no {
    font: 600 0.74rem/1.7 var(--font-mono);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.sim-link:hover .sim-no { color: var(--primary-color); }
.sim-name { min-width: 0; overflow-wrap: anywhere; }
.sim-name mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
.sim-state {
    min-width: 1.5rem;
    text-align: center;
    font: 700 0.7rem/1.75 var(--font-mono);
    color: transparent;
    border-radius: 999px;
}
.sim-state::before { content: '\203A'; color: #a3b1c6; font-size: 1.1rem; line-height: 1.1; font-family: var(--font-sans); }
.sim-link:hover .sim-state::before { color: var(--primary-color); }
.sim-link.is-seen .sim-state { color: var(--success-color); background: var(--success-light); padding: 0 0.45rem; }
.sim-link.is-seen .sim-state::before { content: none; }
.sim-link.is-mastered .sim-state { background: #16a34a; color: #fff; }

.no-results {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--card-bg);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
}
.no-results h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.no-results p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.no-results button {
    min-height: 2.6rem;
    padding: 0 1.25rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font: 600 0.9rem/1 var(--font-sans);
    cursor: pointer;
}
.no-results button:hover { background: var(--primary-hover); }

.progress-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.progress-note button {
    background: none;
    border: none;
    padding: 0.4rem 0.2rem;
    color: var(--primary-color);
    font: 600 0.8rem/1 var(--font-sans);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ==========================================================================
   7. Plus One (Class 11) Roadmap Section
   ========================================================================== */
.upcoming-banner {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.upcoming-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fbbf24;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}
.upcoming-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.upcoming-lead { font-size: 0.98rem; color: #cbd5e1; max-width: 64ch; line-height: 1.6; }

.plusone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}
.plusone-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
.plusone-card.highlight { border-left: 4px solid #f59e0b; }
.plusone-unit-tag { font: 700 0.72rem/1 var(--font-mono); color: var(--primary-color); letter-spacing: 0.05em; text-transform: uppercase; }
.plusone-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.plusone-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.plusone-status {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    background: #f1f5f9;
    color: var(--text-sub);
}
.plusone-card.highlight .plusone-status { background: #fef3c7; color: var(--warning-color); }

.plusone-cta-box {
    background: var(--success-light);
    border: 1.5px dashed #86efac;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.plusone-cta-box h4 { font-size: 1.05rem; font-weight: 700; color: #14532d; }
.plusone-cta-box p { font-size: 0.88rem; color: #166534; max-width: 60ch; }
.plusone-cta-btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.35rem;
    background: #15803d;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-top: 0.4rem;
}
.plusone-cta-btn:hover { background: #166534; }

/* ==========================================================================
   8. Series Card (Standard 4.2)
   ========================================================================== */
.series-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    box-shadow: var(--shadow-sm);
}
.series-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.series-tagline { font-size: 0.9rem; font-style: italic; color: var(--primary-color); margin-bottom: 0.45rem; font-weight: 500; }
.series-card p { font-size: 0.88rem; color: var(--text-sub); line-height: 1.6; max-width: 95ch; }

/* ==========================================================================
   9. Institutional Admission Callout Card (Standard 4.3)
   ========================================================================== */
.admission-card {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.attention-flash { animation: bannerGlowPulse 3s infinite ease-in-out; }
@keyframes bannerGlowPulse {
    0%, 100% { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: rgba(251, 191, 36, 0.2); }
    50% { box-shadow: 0 0 25px 6px rgba(251, 191, 36, 0.45); border-color: rgba(251, 191, 36, 0.85); }
}
.promo-copy { display: flex; flex-direction: column; gap: 0.25rem; }
.promo-kicker { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fbbf24; font-weight: 700; }
.promo-lead { font-size: 1.1rem; color: #e2e8f0; font-weight: 500; }
.promo-headline { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.program-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.program-card strong { font-size: 1.15rem; color: #fbbf24; }
.program-card span { font-size: 0.86rem; color: #e2e8f0; }
.program-card small { font-size: 0.78rem; color: #a5b4c8; }
.promo-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0 1.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.promo-button.main-cta { background: #fbbf24; color: #0f172a; }
.promo-button.main-cta:hover { background: #f59e0b; transform: translateY(-1px); }
.promo-button.sub-cta { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.promo-button.sub-cta:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ==========================================================================
   10. Feedback Channel (Standard 4.4)
   ========================================================================== */
.feedback-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.feedback-content { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: min(100%, 260px); }
.feedback-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    flex-shrink: 0;
}
.feedback-text h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.15rem; }
.feedback-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    background: #f1f5f9;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font: 600 0.84rem/1.2 var(--font-mono);
    text-decoration: none;
}
.feedback-btn:hover { background: #e2e8f0; border-color: #94a3b8; }

/* ==========================================================================
   11. Standard Series Footer (Standard 4.5)
   ========================================================================== */
.series-footer { text-align: center; padding: 1.5rem 0 0; border-top: 1px solid var(--border-color); }
.series-footer p { font-size: 0.82rem; color: var(--text-muted); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero-header { grid-template-columns: minmax(0, 1fr); padding: 2rem 1.5rem; gap: 1.5rem; }
    .hero-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .metric-chip { padding: 0.7rem 0.8rem; }
    .metric-chip dd { font-size: 1.25rem; }
}

@media (max-width: 680px) {
    .container { padding: 0.75rem 0.75rem 2.5rem; gap: 1.1rem; }
    .nav-dept-tag { font-size: 0.74rem; }
    .hero-header { padding: 1.5rem 1.15rem; border-radius: 14px; }
    .hero-lead { font-size: 0.95rem; margin-bottom: 1.2rem; }
    .hero-cta { width: 100%; justify-content: center; }
    .hero-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
    .metric-chip { padding: 0.55rem 0.5rem; border-radius: 10px; }
    .metric-chip dd { font-size: 1.05rem; }
    .metric-chip dd small { font-size: 0.7rem; }
    .metric-chip dt { font-size: 0.66rem; line-height: 1.25; }
    .hero-badge { font-size: 0.62rem; margin-bottom: 0.75rem; }
    .resume-card { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .switcher-tab { flex-direction: column; gap: 0.25rem; padding: 0.5rem; font-size: 0.88rem; }

    /* the sticky toolbar must stay short on a phone: chips scroll sideways, jump row goes */
    .hub-toolbar { top: 0.35rem; padding: 0.6rem; gap: 0.55rem; }
    .topic-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -0.6rem; padding: 0 0.6rem 2px; scrollbar-width: none; }
    .topic-filters::-webkit-scrollbar { display: none; }
    .filter-chip { min-height: 2.5rem; flex: none; }
    .chapter-jump, .search-kbd { display: none; }
    .chapter-card { padding: 1rem 0.95rem 0.75rem; scroll-margin-top: 10rem; }
    .sim-link { min-height: 3rem; align-items: center; }

    .upcoming-banner { padding: 1.5rem 1.15rem; }
    .upcoming-title { font-size: 1.4rem; }
    .admission-card { padding: 1.5rem 1.15rem; }
    .promo-actions { flex-direction: column; }
    .promo-button { width: 100%; }
    .feedback-card { flex-direction: column; align-items: stretch; padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .attention-flash, .chapter-card.is-target { animation: none; }
    * { transition: none !important; }
}
