:root {
    --ink: #102a4c;
    --ink-soft: #557198;
    --ink-deep: #07152b;
    --paper: #f3f8ff;
    --surface: #ffffff;
    --gold: #8fd6ff;
    --coral: #2c78ff;
    --teal: #4fc7ff;
    --sky: #d8eeff;
    --line: rgba(16, 42, 76, 0.08);
    --shadow-xl: 0 30px 70px rgba(8, 38, 82, 0.18);
    --shadow-lg: 0 18px 45px rgba(8, 38, 82, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(79, 199, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(44, 120, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #eef5ff 0%, #f9fcff 42%, #eef7ff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(7, 21, 43, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    color: #fff;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--teal), var(--coral));
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-mark-image {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0;
}

.site-search-input {
    min-width: 250px;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 205, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.site-search-input::placeholder {
    color: rgba(219, 234, 255, 0.62);
}

.site-search-input:focus {
    border-color: rgba(143, 214, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(95, 176, 255, 0.1);
}

.site-search-button {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
}

.btn-brand {
    background: linear-gradient(135deg, #80d4ff, #2d7dff 55%, #1150d3);
    border: 0;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(44, 120, 255, 0.28);
}

.btn-brand:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(149, 205, 255, 0.28);
}

.btn-outline-brand {
    border: 1px solid rgba(44, 120, 255, 0.18);
    color: var(--coral);
    background: rgba(255, 255, 255, 0.84);
}

.btn-outline-brand:hover {
    background: #fff;
    color: var(--ink);
}

.hero-section,
.subpage-hero {
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 7rem 0 5.5rem;
    background:
        radial-gradient(circle at top right, rgba(89, 186, 255, 0.18), transparent 22%),
        radial-gradient(circle at bottom left, rgba(63, 138, 255, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(7, 21, 43, 0.98), rgba(11, 46, 98, 0.94) 54%, rgba(20, 97, 195, 0.84));
    color: #fff;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.24;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
}

.orb-one {
    width: 320px;
    height: 320px;
    top: 60px;
    right: -70px;
    background: radial-gradient(circle, rgba(111, 208, 255, 0.55), transparent 65%);
}

.orb-two {
    width: 260px;
    height: 260px;
    left: -50px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(49, 110, 255, 0.45), transparent 68%);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fd6ff;
}

.hero-title,
.section-heading h2,
.subpage-hero h1,
.cta-panel h2 {
    font-family: "Fraunces", serif;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    max-width: 12ch;
    margin-bottom: 1.35rem;
}

.hero-lead,
.subpage-lead,
.section-heading p,
.story-card p,
.experience-card p,
.course-card p,
.subject-card p,
.footer-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-panel {
    position: relative;
    padding: 1.3rem;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(160, 214, 255, 0.22);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 196, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 112, 255, 0.2), transparent 68%);
    pointer-events: none;
}

.hero-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panel-tag,
.panel-status,
.subject-count,
.course-level,
.summary-label,
.content-type,
.filter-pill,
.course-pill {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-tag,
.panel-status {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(143, 214, 255, 0.12);
    border: 1px solid rgba(143, 214, 255, 0.15);
}

.hero-course-card {
    padding: 1.4rem;
    border-radius: 26px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(104, 185, 255, 0.08));
    border: 1px solid rgba(173, 225, 255, 0.15);
}

.hero-course-card h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.hero-course-card p {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.hero-course-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(143, 214, 255, 0.16);
    color: #b6e7ff;
    margin-bottom: 1rem;
}

.panel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.panel-pills span,
.filter-pill {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-metrics strong {
    font-size: 2rem;
    line-height: 1;
}

.metric-card {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 210, 255, 0.16);
}

.metric-card span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
}

.story-strip {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.story-card,
.subject-card,
.course-card,
.experience-card,
.course-summary-card,
.content-block,
.cta-panel,
.filter-strip,
.accordion-item {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 75, 153, 0.08);
    box-shadow: var(--shadow-lg);
}

.story-card {
    padding: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 255, 0.92));
}

.story-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #76d2ff, #2c78ff);
}

.story-number {
    color: var(--coral);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.story-card p,
.subject-card p,
.course-card p,
.experience-card p,
.course-summary-card p,
.text-content p,
.text-content ul {
    color: var(--ink-soft);
}

.section-space {
    padding: 5.5rem 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-heading h2,
.subpage-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.06;
    color: var(--ink);
    margin-bottom: 1rem;
}

.subjects-section .section-heading p,
.course-showcase .section-heading p,
.immersive-section .section-heading p,
.subpage-hero p,
.lesson-row p,
.footer-copy {
    color: var(--ink-soft);
}

.subject-card {
    display: flex;
    gap: 1.1rem;
    padding: 1.6rem;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.88));
}

.subject-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.subject-count {
    display: inline-block;
    color: var(--coral);
    margin-bottom: 0.55rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem;
}

.course-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.course-pill,
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
}

.badge-math {
    background: rgba(44, 120, 255, 0.12);
    color: #1559d2;
}

.badge-tech {
    background: rgba(79, 199, 255, 0.16);
    color: #086f9f;
}

.course-level,
.summary-label {
    color: rgba(16, 35, 63, 0.54);
}

.course-visual {
    min-height: 170px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(143, 214, 255, 0.36), transparent 35%),
        linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-link,
.back-link {
    color: var(--coral);
    font-weight: 700;
}

.course-link:hover,
.back-link:hover {
    color: #0f55df;
}

.immersive-section {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.72), rgba(224, 239, 255, 0.82));
}

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

.experience-card,
.course-summary-card {
    padding: 1.4rem;
    height: 100%;
}

.cta-section {
    padding: 0 0 5.5rem;
}

.cta-panel {
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(7, 21, 43, 0.97), rgba(11, 53, 111, 0.94), rgba(35, 121, 255, 0.86));
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-panel h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0;
    max-width: 18ch;
}

.subpage-hero {
    padding: 5.5rem 0 2.5rem;
}

.subpage-hero.course-hero,
.subpage-hero.lesson-hero {
    padding-top: 6rem;
}

.filter-strip {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-pill {
    background: rgba(16, 35, 63, 0.06);
    color: var(--ink);
}

.course-accordion .accordion-item {
    overflow: hidden;
    margin-bottom: 1rem;
}

.course-accordion .accordion-button {
    background: transparent;
    font-weight: 700;
    box-shadow: none;
}

.course-accordion .accordion-button:not(.collapsed) {
    background: rgba(44, 120, 255, 0.08);
    color: var(--ink);
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.lesson-row:last-child {
    border-bottom: 0;
}

.lesson-row strong {
    display: block;
    margin-bottom: 0.35rem;
}

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.lesson-meta span {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 35, 63, 0.08);
}

.lesson-stream {
    display: grid;
    gap: 1.5rem;
}

.content-block {
    padding: 1.4rem;
}

.content-block-head {
    margin-bottom: 1rem;
}

.content-type {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--coral);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #08101b, #103872);
    padding-top: 56.25%;
}

.video-shell iframe,
.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    border-radius: 18px;
    padding: 2rem;
    background: rgba(16, 35, 63, 0.06);
    color: var(--ink-soft);
}

.text-content p,
.text-content ul {
    font-size: 1rem;
    line-height: 1.8;
}

.text-content ul {
    padding-left: 1.2rem;
}

.soft-section {
    background: linear-gradient(180deg, rgba(231, 242, 255, 0.75), rgba(255, 255, 255, 0));
}

.compact-card {
    min-height: 240px;
}

.site-footer {
    background: var(--ink-deep);
    color: #fff;
}

.home-page .hero-section {
    position: relative;
}

.home-page .hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(7, 21, 43, 0), rgba(7, 21, 43, 0.12));
    pointer-events: none;
}

.hero-support-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.support-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(143, 214, 255, 0.1);
    border: 1px solid rgba(143, 214, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

.hero-quote {
    margin: 1.15rem 0 0;
    max-width: 34rem;
    color: rgba(211, 230, 255, 0.86);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.hero-syllabus {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.syllabus-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 210, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.syllabus-item strong,
.mini-board-card strong,
.signature-cell strong {
    display: block;
}

.syllabus-item span,
.mini-board-card small,
.signature-cell span {
    color: rgba(216, 234, 255, 0.78);
}

.hero-mini-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.mini-board-card {
    padding: 0.95rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 210, 255, 0.14);
    color: #fff;
}

.mini-board-card small {
    display: block;
    margin-bottom: 0.35rem;
}

.signature-band {
    padding: 0 0 1rem;
}

.signature-panel {
    padding: 2.2rem;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(143, 214, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(8, 33, 68, 0.98), rgba(16, 69, 140, 0.9));
    border: 1px solid rgba(135, 204, 255, 0.18);
    box-shadow: var(--shadow-xl);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.signature-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 210, 255, 0.2), transparent 68%);
}

.signature-panel h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.signature-panel p {
    color: rgba(220, 237, 255, 0.82);
    line-height: 1.8;
    margin-bottom: 0;
}

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

.signature-cell {
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 210, 255, 0.14);
}

.subjects-section,
.course-showcase {
    position: relative;
}

.subjects-section::before,
.course-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(86, 165, 255, 0.08), transparent 18%),
        radial-gradient(circle at 90% 20%, rgba(79, 199, 255, 0.08), transparent 18%);
    pointer-events: none;
}

.footer-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-links li + li {
    margin-top: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
    color: #fff;
}

.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-title {
        max-width: 100%;
    }

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

    .signature-grid,
    .hero-mini-board {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        padding: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .subpage-hero {
        padding-top: 5rem;
    }

    .hero-panel,
    .story-card,
    .course-card,
    .subject-card,
    .experience-card,
    .content-block,
    .cta-panel,
    .accordion-item {
        border-radius: 20px;
    }

    .lesson-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-card strong {
        font-size: 1.7rem;
    }

    .signature-panel {
        padding: 1.5rem;
    }

    .syllabus-item {
        flex-direction: column;
    }
}

.home-page {
    position: relative;
}

.home-page .btn-brand {
    background: linear-gradient(135deg, #92ddff 0%, #3d8dff 52%, #174dc9 100%);
    box-shadow: 0 24px 50px rgba(24, 91, 215, 0.28);
}

.home-page .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(157, 215, 255, 0.22);
}

.home-page .btn-outline-brand {
    border-color: rgba(40, 104, 233, 0.14);
    color: #1f5ddd;
    background: rgba(255, 255, 255, 0.9);
}

.home-page .eyebrow {
    color: #8ddcff;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 8.25rem 0 9rem;
    background:
        radial-gradient(circle at 14% 20%, rgba(111, 209, 255, 0.15), transparent 16%),
        radial-gradient(circle at 82% 16%, rgba(61, 141, 255, 0.2), transparent 24%),
        radial-gradient(circle at 66% 84%, rgba(94, 210, 255, 0.11), transparent 20%),
        linear-gradient(135deg, #061224 0%, #0a2b57 42%, #0d4dad 100%);
    color: #fff;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(6, 18, 36, 0), rgba(6, 18, 36, 0.16));
    pointer-events: none;
}

.home-hero-shell {
    position: relative;
    z-index: 2;
}

.home-hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.38;
}

.home-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
}

.glow-left {
    width: 420px;
    height: 420px;
    left: -140px;
    top: 130px;
    background: radial-gradient(circle, rgba(82, 198, 255, 0.22), transparent 68%);
}

.glow-right {
    width: 460px;
    height: 460px;
    right: -150px;
    top: 20px;
    background: radial-gradient(circle, rgba(61, 141, 255, 0.26), transparent 68%);
}

.hero-copy {
    max-width: 42rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    background: rgba(146, 221, 255, 0.12);
    border: 1px solid rgba(146, 221, 255, 0.18);
    color: rgba(220, 240, 255, 0.92);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-display {
    font-family: "Fraunces", serif;
    font-size: clamp(3.3rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 11ch;
    margin-bottom: 1.35rem;
}

.hero-intro {
    max-width: 36rem;
    color: rgba(222, 237, 255, 0.84);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 0;
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(157, 215, 255, 0.16);
    color: rgba(229, 241, 255, 0.9);
    font-size: 0.92rem;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

.hero-stat-card {
    padding: 1.25rem 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(162, 219, 255, 0.17);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px rgba(5, 24, 52, 0.2);
}

.hero-stat-card small {
    display: inline-block;
    color: rgba(151, 212, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
}

.hero-stat-card strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.hero-stat-card span {
    display: block;
    margin-top: 0.55rem;
    color: rgba(224, 238, 255, 0.78);
    font-size: 0.95rem;
}

.hero-stage {
    position: relative;
    min-height: 640px;
}

.stage-core {
    position: relative;
    min-height: 640px;
    border-radius: 38px;
    padding: 1.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(154, 216, 255, 0.18);
    backdrop-filter: blur(20px);
    box-shadow: 0 36px 80px rgba(3, 18, 44, 0.36);
    overflow: hidden;
}

.stage-core::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -130px;
    left: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 214, 255, 0.2), transparent 70%);
}

.stage-core::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 120, 255, 0.22), transparent 70%);
}

.stage-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stage-label,
.stage-state,
.screen-badge,
.subject-panel-label,
.subject-chip,
.subject-arrow,
.feature-level {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.stage-label,
.stage-state {
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(154, 216, 255, 0.14);
    color: rgba(230, 241, 255, 0.88);
}

.stage-screen {
    position: absolute;
    top: 5.2rem;
    left: 2rem;
    right: 4.3rem;
    bottom: 8.8rem;
    z-index: 1;
    padding: 2rem;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(143, 220, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(5, 26, 56, 0.88), rgba(8, 40, 85, 0.86));
    border: 1px solid rgba(159, 217, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.screen-badge {
    display: inline-flex;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(141, 219, 255, 0.12);
    color: #bfe8ff;
    margin-bottom: 1rem;
}

.stage-screen h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.03;
    max-width: 12ch;
    margin-bottom: 1rem;
}

.stage-screen p {
    max-width: 30rem;
    color: rgba(219, 236, 255, 0.8);
    line-height: 1.85;
}

.screen-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.screen-pill-row span {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(162, 219, 255, 0.14);
    color: rgba(228, 241, 255, 0.9);
}

.screen-track-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.7rem;
}

.track-item {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(162, 219, 255, 0.12);
}

.track-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.track-item span {
    color: rgba(216, 234, 255, 0.76);
}

.stage-floating {
    position: absolute;
    z-index: 2;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(168, 223, 255, 0.18);
    box-shadow: 0 22px 40px rgba(4, 20, 45, 0.28);
    backdrop-filter: blur(18px);
    animation: homeFloat 7s ease-in-out infinite;
}

.stage-floating small {
    display: block;
    color: rgba(156, 219, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    margin-bottom: 0.45rem;
}

.stage-floating strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.stage-floating span,
.stage-floating li {
    color: rgba(223, 237, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.6;
}

.stage-floating-top {
    top: 5.8rem;
    right: 0.8rem;
    width: 220px;
    animation-delay: -1.6s;
}

.stage-floating-side {
    top: 17.5rem;
    right: -0.9rem;
    width: 195px;
    animation-delay: -0.8s;
}

.stage-floating-bottom {
    left: 0.9rem;
    bottom: 1rem;
    width: 250px;
}

.stage-floating-bottom ul {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
}

.home-overlap {
    position: relative;
    z-index: 5;
    margin-top: -4.6rem;
}

.overlap-ribbon {
    padding: 2rem;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(94, 184, 255, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.94));
    border: 1px solid rgba(44, 120, 255, 0.08);
    box-shadow: 0 28px 60px rgba(13, 49, 102, 0.12);
}

.overlap-ribbon h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.06;
    color: var(--ink);
    margin-bottom: 0;
}

.ribbon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ribbon-card {
    padding: 1.2rem;
    border-radius: 22px;
    background: rgba(238, 247, 255, 0.96);
    border: 1px solid rgba(38, 120, 255, 0.08);
}

.ribbon-card strong {
    display: block;
    color: #16489f;
    margin-bottom: 0.45rem;
}

.ribbon-card span {
    color: var(--ink-soft);
    line-height: 1.7;
}

.home-subjects {
    position: relative;
    padding-top: 6.7rem;
}

.home-heading {
    max-width: 52rem;
}

.subject-panel {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 1.65rem;
    border-radius: 34px;
    color: #fff;
    box-shadow: 0 28px 60px rgba(8, 38, 82, 0.16);
}

.subject-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.subject-panel-math {
    background: linear-gradient(135deg, #071a36 0%, #0b3d83 55%, #1a6ef0 100%);
}

.subject-panel-tech {
    background: linear-gradient(135deg, #08152c 0%, #09396d 45%, #1583e2 100%);
}

.subject-panel-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(164, 220, 255, 0.14);
    color: rgba(234, 243, 255, 0.92);
}

.subject-panel-watermark {
    position: absolute;
    right: 1rem;
    bottom: -0.8rem;
    font-family: "Fraunces", serif;
    font-size: clamp(8rem, 15vw, 12rem);
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.subject-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-top: 4rem;
}

.subject-panel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subject-chip,
.subject-arrow {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(164, 220, 255, 0.12);
    color: rgba(232, 242, 255, 0.92);
}

.subject-panel h3 {
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 0.98;
    max-width: 10ch;
    margin-bottom: 1rem;
}

.subject-panel p {
    max-width: 28rem;
    color: rgba(224, 237, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

.subject-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
}

.subject-panel-link::after {
    content: "\2192";
    font-size: 1rem;
}

.home-course-curation {
    position: relative;
}

.feature-spotlight,
.feature-stack-card {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 26px 56px rgba(11, 55, 120, 0.1);
}

.feature-spotlight {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem;
}

.feature-spotlight-top,
.feature-stack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-level {
    color: rgba(16, 42, 76, 0.55);
}

.feature-visual {
    position: relative;
    min-height: 360px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(160, 225, 255, 0.36), transparent 24%),
        linear-gradient(135deg, #061224 0%, #0b356d 48%, #136ce4 100%);
}

.feature-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.28;
}

.feature-visual::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 229, 255, 0.28), transparent 68%);
}

.feature-visual-content {
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 2;
}

.feature-visual-content small {
    display: inline-flex;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(184, 232, 255, 0.16);
    color: rgba(220, 237, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.feature-visual-content strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    max-width: 11ch;
    color: #fff;
}

.feature-copy {
    padding: 1.4rem 0 0.5rem;
}

.feature-copy h3,
.feature-stack-card h3,
.manifesto-shell h2 {
    font-family: "Fraunces", serif;
}

.feature-copy h3,
.feature-stack-card h3 {
    font-size: 1.8rem;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.feature-copy p,
.feature-stack-card p {
    color: var(--ink-soft);
    line-height: 1.8;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #1b5cda;
    font-weight: 700;
}

.feature-link::after {
    content: "\2192";
}

.feature-stack {
    display: grid;
    gap: 1rem;
    height: 100%;
}

.feature-stack-card {
    padding: 1.4rem;
}

.home-manifesto {
    position: relative;
}

.manifesto-shell {
    padding: 2.2rem;
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(143, 220, 255, 0.18), transparent 22%),
        linear-gradient(135deg, #07172f 0%, #0a2d5e 45%, #0c4faa 100%);
    border: 1px solid rgba(154, 216, 255, 0.16);
    color: #fff;
    box-shadow: 0 30px 70px rgba(6, 28, 65, 0.18);
}

.manifesto-shell h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.manifesto-shell p {
    color: rgba(219, 235, 255, 0.82);
    line-height: 1.85;
    margin-bottom: 0;
}

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

.manifesto-card {
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(162, 219, 255, 0.14);
    backdrop-filter: blur(16px);
}

.manifesto-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.manifesto-card span {
    color: rgba(220, 235, 255, 0.78);
    line-height: 1.7;
}

.home-cta-shell {
    padding: 2.3rem;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(162, 229, 255, 0.22), transparent 20%),
        linear-gradient(135deg, #08162d 0%, #0b3774 48%, #136de4 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    box-shadow: 0 30px 70px rgba(6, 28, 65, 0.16);
}

.home-cta-shell h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.03;
    max-width: 16ch;
    margin-bottom: 0;
}

@keyframes homeFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1199.98px) {
    .hero-stats-grid,
    .ribbon-grid,
    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage,
    .stage-core {
        min-height: 600px;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 7rem 0 8rem;
    }

    .hero-display {
        max-width: 100%;
    }

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

    .hero-stage,
    .stage-core {
        min-height: 560px;
    }

    .stage-screen {
        right: 2rem;
        bottom: 7.5rem;
    }

    .stage-floating-top,
    .stage-floating-side {
        right: 1rem;
    }

    .home-overlap {
        margin-top: -3.2rem;
    }

    .subject-panel {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 6.2rem 0 7rem;
    }

    .hero-kicker,
    .trust-chip,
    .stage-label,
    .stage-state,
    .screen-pill-row span,
    .subject-chip,
    .subject-arrow {
        font-size: 0.72rem;
    }

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

    .hero-stage,
    .stage-core {
        min-height: auto;
    }

    .stage-core {
        padding: 1rem;
    }

    .stage-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-screen {
        position: relative;
        inset: auto;
        padding: 1.35rem;
        margin-top: 1rem;
    }

    .stage-floating {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: auto;
        margin-top: 1rem;
        animation: none;
    }

    .overlap-ribbon,
    .manifesto-shell,
    .home-cta-shell {
        padding: 1.5rem;
    }

    .subject-panel {
        min-height: 280px;
        padding: 1.3rem;
        border-radius: 26px;
    }

    .subject-panel h3 {
        max-width: 100%;
    }

    .feature-spotlight,
    .feature-stack-card {
        border-radius: 24px;
    }

    .feature-visual {
        min-height: 260px;
    }
}

.premium-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    color: rgba(223, 237, 255, 0.84);
    font-weight: 700;
}

.premium-back-link::before {
    content: "\2190";
    font-size: 1rem;
}

.catalogue-page,
.course-page,
.lesson-page,
.not-found-page {
    position: relative;
}

.catalogue-page .eyebrow,
.course-page .eyebrow,
.lesson-page .eyebrow,
.not-found-page .eyebrow {
    color: #8fdcff;
}

.catalogue-hero,
.course-atlas-hero,
.lesson-flow-hero,
.not-found-hero {
    position: relative;
    overflow: hidden;
    padding: 7.2rem 0 6rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(112, 208, 255, 0.14), transparent 22%),
        radial-gradient(circle at bottom left, rgba(52, 123, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #061224 0%, #0a2d5b 46%, #0e58ba 100%);
}

.catalogue-hero-grid,
.course-atlas-grid,
.lesson-flow-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.34;
}

.catalogue-hero-copy,
.course-atlas-copy,
.lesson-flow-copy {
    position: relative;
    z-index: 2;
}

.catalogue-kicker {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(143, 220, 255, 0.12);
    border: 1px solid rgba(143, 220, 255, 0.16);
    color: rgba(222, 238, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
}

.catalogue-hero h1,
.course-atlas-copy h1,
.lesson-flow-copy h1,
.not-found-shell h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.96;
    max-width: 12ch;
    margin-bottom: 1.15rem;
}

.catalogue-hero p,
.course-atlas-lead,
.lesson-flow-lead,
.not-found-shell p {
    color: rgba(220, 236, 255, 0.82);
    line-height: 1.9;
    font-size: 1.08rem;
    max-width: 38rem;
    margin-bottom: 0;
}

.catalogue-metrics,
.course-atlas-meta,
.lesson-flow-meta,
.catalogue-panel-tags,
.course-rhythm-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.catalogue-metrics {
    margin-top: 2rem;
}

.catalogue-metric {
    min-width: 180px;
    padding: 1.15rem 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.16);
    backdrop-filter: blur(18px);
}

.catalogue-metric small,
.course-atlas-panel small,
.lesson-flow-panel small {
    display: inline-block;
    color: rgba(158, 221, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin-bottom: 0.7rem;
}

.catalogue-metric strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.catalogue-metric span {
    display: block;
    margin-top: 0.5rem;
    color: rgba(223, 237, 255, 0.76);
}

.catalogue-hero-panel,
.course-atlas-panel,
.lesson-flow-panel {
    position: relative;
    z-index: 2;
    padding: 1.6rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(157, 219, 255, 0.16);
    box-shadow: 0 30px 70px rgba(4, 20, 44, 0.28);
    backdrop-filter: blur(18px);
}

.catalogue-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(228, 240, 255, 0.84);
    font-size: 0.84rem;
}

.catalogue-panel-main h2,
.course-atlas-panel h2,
.lesson-flow-panel h2,
.catalogue-ribbon h2,
.course-rhythm-ribbon h2,
.not-found-shell h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
}

.catalogue-panel-main p,
.course-atlas-panel p,
.lesson-flow-panel p {
    color: rgba(221, 236, 255, 0.8);
    line-height: 1.82;
}

.catalogue-panel-tags {
    margin-top: 1rem;
}

.catalogue-panel-tags span,
.catalogue-panel-tags a,
.course-rhythm-mini span,
.catalogue-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.14);
    color: rgba(228, 241, 255, 0.9);
    font-size: 0.9rem;
}

.catalogue-ribbon-section,
.course-rhythm-section {
    position: relative;
    z-index: 4;
    margin-top: -3.5rem;
}

.catalogue-ribbon,
.course-rhythm-ribbon {
    padding: 1.8rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 249, 255, 0.95));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 26px 56px rgba(9, 47, 104, 0.12);
}

.catalogue-ribbon,
.course-rhythm-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: center;
}

.ribbon-copy h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 0;
}

.catalogue-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.catalogue-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    width: 100%;
    margin-top: 1rem;
}

.catalogue-search-input {
    flex: 1 1 320px;
    min-height: 52px;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 104, 226, 0.1);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: none;
    outline: none;
}

.catalogue-search-input:focus {
    border-color: rgba(30, 97, 220, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(32, 102, 219, 0.08);
}

.catalogue-search-button {
    min-height: 52px;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #8ad8ff 0%, #367ff9 55%, #174dc9 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(23, 77, 201, 0.18);
}

.catalogue-chip {
    background: rgba(235, 245, 255, 0.98);
    border-color: rgba(28, 104, 226, 0.08);
    color: #1a56c0;
}

.catalogue-collection,
.course-structure,
.lesson-stream-section,
.course-related-section {
    position: relative;
}

.catalogue-spotlight,
.catalogue-course-card,
.course-section-panel,
.lesson-block-card,
.not-found-shell {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.1);
}

.catalogue-spotlight {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem;
}

.catalogue-spotlight-top,
.catalogue-course-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.catalogue-spotlight-visual {
    position: relative;
    min-height: 330px;
    border-radius: 26px;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at top right, rgba(160, 225, 255, 0.32), transparent 24%),
        linear-gradient(135deg, #061224 0%, #0c3876 48%, #1674ec 100%);
    color: #fff;
}

.catalogue-spotlight-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.25;
}

.catalogue-spotlight-visual small,
.catalogue-spotlight-visual strong {
    position: relative;
    z-index: 2;
}

.catalogue-spotlight-visual small {
    display: inline-flex;
    width: fit-content;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(180, 232, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.catalogue-spotlight-visual strong {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    max-width: 11ch;
}

.catalogue-spotlight-copy,
.catalogue-course-card {
    padding-top: 1.2rem;
}

.catalogue-spotlight-copy h3,
.catalogue-course-card h3,
.course-section-head h3,
.lesson-block-head h2 {
    font-family: "Fraunces", serif;
    color: var(--ink);
}

.catalogue-spotlight-copy h3,
.catalogue-course-card h3 {
    font-size: 1.7rem;
    line-height: 1.08;
    margin-bottom: 0.7rem;
}

.catalogue-spotlight-copy p,
.catalogue-course-card p,
.course-section-head p,
.course-lesson-card p,
.lesson-text-card p,
.lesson-text-card ul {
    color: var(--ink-soft);
    line-height: 1.8;
}

.course-author-line {
    margin-top: -0.2rem;
    margin-bottom: 0.85rem;
    color: #1f5fe0;
    font-weight: 600;
    font-size: 0.95rem;
}

.course-author-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(154, 216, 255, 0.15);
    color: rgba(228, 241, 255, 0.92);
    font-weight: 600;
}

.empty-state-card {
    padding: 2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.1);
}

.empty-state-card h3 {
    font-family: "Fraunces", serif;
    color: var(--ink);
    margin-bottom: 0.8rem;
}

.empty-state-card p {
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.catalogue-course-card {
    height: 100%;
    padding: 1.35rem;
}

.course-atlas-meta,
.lesson-flow-meta {
    margin-top: 1.5rem;
}

.course-atlas-meta span,
.lesson-flow-meta span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(154, 216, 255, 0.15);
    color: rgba(228, 241, 255, 0.9);
}

.course-atlas-stats,
.lesson-flow-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.course-atlas-stats article,
.lesson-flow-stats article {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(157, 219, 255, 0.14);
}

.course-atlas-stats strong,
.lesson-flow-stats strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
}

.course-atlas-stats span,
.lesson-flow-stats span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(223, 236, 255, 0.8);
}

.course-structure {
    padding-top: 5.8rem;
}

.course-section-stack {
    display: grid;
    gap: 1.4rem;
}

.course-section-panel {
    padding: 1.5rem;
}

.course-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 1.25rem;
}

.section-index {
    display: inline-flex;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(33, 102, 219, 0.08);
    color: #1f5fe0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.course-section-head h3 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.05;
    margin-bottom: 0.65rem;
}

.section-lesson-count {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(236, 245, 255, 0.96);
    color: #1f5fe0;
    font-weight: 700;
}

.course-lesson-list {
    display: grid;
    gap: 0.9rem;
}

.course-lesson-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 246, 255, 0.95));
    border: 1px solid rgba(34, 106, 224, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(10, 54, 117, 0.1);
}

.course-lesson-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #1f5fe0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.course-lesson-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.course-lesson-time {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(32, 102, 219, 0.08);
    color: #1f5fe0;
    font-weight: 700;
}

.lesson-stream-shell {
    display: grid;
    gap: 1.4rem;
}

.lesson-block-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0;
    overflow: visible;
}

.lesson-block-index {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    background:
        linear-gradient(180deg, rgba(8, 30, 62, 0.98), rgba(16, 87, 183, 0.88));
}

.lesson-block-index span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(168, 223, 255, 0.18);
    color: #fff;
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
}

.lesson-block-content {
    padding: 1.45rem;
    min-width: 0;
}

.lesson-block-head {
    margin-bottom: 1rem;
}

.lesson-block-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.08;
    margin-bottom: 0;
}

.lesson-video-shell {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 45px rgba(8, 42, 90, 0.14);
}

.lesson-text-card {
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(241, 248, 255, 0.96));
    border: 1px solid rgba(32, 102, 219, 0.08);
    overflow-x: auto;
    overflow-y: visible;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.lesson-text-card ul {
    padding-left: 1.15rem;
}

.lesson-text-card table,
.lesson-text-card .lesson-table {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.lesson-video-fallback-link {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
}

.lesson-video-fallback-link a {
    color: #0b5cff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lesson-navigation-shell {
    margin-top: 1.6rem;
    display: grid;
    gap: 1rem;
}

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

.lesson-navigation-card,
.lesson-navigation-placeholder {
    min-height: 100%;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 40px rgba(8, 42, 90, 0.08);
}

.lesson-navigation-card {
    display: grid;
    gap: 0.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lesson-navigation-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 93, 215, 0.18);
    box-shadow: 0 24px 48px rgba(8, 42, 90, 0.12);
}

.lesson-navigation-card small,
.lesson-navigation-placeholder small {
    color: #1b5dd7;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lesson-navigation-card strong,
.lesson-navigation-placeholder strong {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.45;
}

.lesson-navigation-card span,
.lesson-navigation-placeholder span {
    color: var(--ink-soft);
}

.lesson-navigation-placeholder {
    opacity: 0.72;
}

.not-found-hero {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.not-found-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.not-found-code {
    display: inline-flex;
    margin-bottom: 1rem;
    font-family: "Fraunces", serif;
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: rgba(150, 220, 255, 0.9);
}

.footer-shell {
    padding: 2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(137, 217, 255, 0.16), transparent 22%),
        linear-gradient(135deg, rgba(9, 26, 53, 0.98), rgba(8, 35, 74, 0.96));
    border: 1px solid rgba(142, 219, 255, 0.1);
    box-shadow: 0 28px 60px rgba(3, 15, 32, 0.22);
}

.footer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.footer-chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(140, 214, 255, 0.12);
    color: rgba(227, 240, 255, 0.84);
    font-size: 0.88rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
}

.subject-page,
.admin-page {
    position: relative;
}

.subject-page .eyebrow,
.admin-page .eyebrow {
    color: #8fdcff;
}

.subject-hero,
.admin-hero {
    position: relative;
    overflow: hidden;
    padding: 7.2rem 0 6rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(112, 208, 255, 0.14), transparent 22%),
        radial-gradient(circle at bottom left, rgba(52, 123, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #061224 0%, #0a2d5b 46%, #0e58ba 100%);
}

.subject-hero-grid,
.admin-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.34;
}

.subject-hero-copy,
.admin-hero-copy {
    position: relative;
    z-index: 2;
}

.subject-hero-copy h1,
.admin-hero-copy h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.96;
    max-width: 12ch;
    margin-bottom: 1rem;
}

.subject-hero-lead,
.admin-hero-copy p {
    color: rgba(221, 236, 255, 0.82);
    line-height: 1.85;
    font-size: 1.08rem;
    max-width: 38rem;
    margin-bottom: 0;
}

.subject-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.subject-hero-meta span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(154, 216, 255, 0.15);
    color: rgba(228, 241, 255, 0.9);
}

.subject-hero-panel {
    position: relative;
    z-index: 2;
    padding: 1.6rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(157, 219, 255, 0.16);
    box-shadow: 0 30px 70px rgba(4, 20, 44, 0.28);
    backdrop-filter: blur(18px);
}

.subject-hero-panel small {
    display: inline-block;
    color: rgba(158, 221, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin-bottom: 0.7rem;
}

.subject-hero-panel h2,
.admin-card-head h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.subject-hero-panel p {
    color: rgba(221, 236, 255, 0.8);
    line-height: 1.82;
}

.subject-library,
.subject-other-section,
.admin-workspace {
    position: relative;
}

.admin-overview-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

.admin-overview-card {
    padding: 1.15rem 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.16);
    backdrop-filter: blur(18px);
}

.admin-overview-card small {
    display: inline-block;
    color: rgba(158, 221, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    margin-bottom: 0.65rem;
}

.admin-overview-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.admin-flash {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.4rem;
    font-weight: 600;
}

.admin-flash-success {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.18);
    color: #17663c;
}

.admin-flash-error {
    background: rgba(210, 60, 52, 0.1);
    border: 1px solid rgba(210, 60, 52, 0.16);
    color: #8d241d;
}

.admin-form-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.1);
}

.admin-card-head {
    margin-bottom: 1.2rem;
}

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

.admin-form-grid .full-span {
    grid-column: 1 / -1;
}

.admin-form-grid .form-label {
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.admin-form-grid .form-control,
.admin-form-grid .form-select {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(34, 106, 224, 0.12);
    background: rgba(247, 251, 255, 0.98);
    color: var(--ink);
    box-shadow: none;
}

.admin-form-grid textarea.form-control {
    min-height: 120px;
}

.admin-form-grid .form-control:focus,
.admin-form-grid .form-select:focus {
    border-color: rgba(30, 97, 220, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(32, 102, 219, 0.08);
}

@media (max-width: 1199.98px) {
    .course-atlas-stats,
    .lesson-flow-stats,
    .admin-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .catalogue-hero,
    .course-atlas-hero,
    .lesson-flow-hero,
    .not-found-hero {
        padding: 6.5rem 0 5.5rem;
    }

    .catalogue-ribbon-section,
    .course-rhythm-section {
        margin-top: -2.5rem;
    }

    .catalogue-ribbon,
    .course-rhythm-ribbon {
        padding: 1.45rem;
    }

    .course-section-head {
        flex-direction: column;
    }

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

@media (max-width: 767.98px) {
    .catalogue-hero h1,
    .course-atlas-copy h1,
    .lesson-flow-copy h1,
    .not-found-shell h1 {
        max-width: 100%;
    }

    .site-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .site-search-input {
        min-width: 100%;
    }

    .catalogue-spotlight-visual {
        min-height: 250px;
    }

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

    .lesson-block-card {
        grid-template-columns: 1fr;
    }

    .lesson-block-index {
        justify-content: flex-start;
        padding: 1rem 1rem 0;
        background: linear-gradient(180deg, rgba(8, 30, 62, 0.98), rgba(8, 30, 62, 0.9));
    }

    .lesson-block-content {
        padding: 1rem 1rem 1.2rem;
    }

    .not-found-shell,
    .footer-shell {
        padding: 1.5rem;
    }
}

.auth-page,
.admin-dashboard-page {
    position: relative;
}

.auth-hero,
.admin-console-hero {
    position: relative;
    overflow: hidden;
    padding: 7.25rem 0 5.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 14% 18%, rgba(122, 214, 255, 0.18), transparent 16%),
        radial-gradient(circle at 84% 14%, rgba(61, 141, 255, 0.24), transparent 22%),
        radial-gradient(circle at 68% 84%, rgba(91, 209, 255, 0.16), transparent 20%),
        linear-gradient(135deg, #061224 0%, #0b3164 46%, #0f5fc3 100%);
}

.auth-hero-soft {
    padding-bottom: 6rem;
}

.auth-copy,
.admin-console-copy {
    position: relative;
    z-index: 2;
}

.auth-copy h1,
.admin-console-copy h1,
.auth-card-head h2,
.admin-panel-head h2,
.admin-empty-card h3 {
    font-family: "Fraunces", serif;
}

.auth-copy h1,
.admin-console-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    line-height: 0.96;
    margin-bottom: 1rem;
    max-width: 12ch;
}

.auth-copy p,
.admin-console-copy p,
.auth-card-head p {
    color: rgba(222, 236, 255, 0.82);
    line-height: 1.86;
    font-size: 1.06rem;
}

.auth-copy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.auth-copy-pills span,
.admin-entity-meta span,
.admin-console-role,
.admin-form-hint,
.admin-inline-alert,
.auth-preview-card small {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
}

.auth-copy-pills span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.15);
    color: rgba(227, 239, 255, 0.9);
}

.auth-card {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 28px 68px rgba(6, 31, 70, 0.2);
}

.auth-card-head {
    margin-bottom: 1.35rem;
}

.auth-card-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.06;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.auth-card-head p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.auth-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-links-row a {
    color: #1b5dd7;
    font-weight: 700;
}

.auth-links-row-stack {
    margin-top: 1.25rem;
}

.auth-preview-card {
    margin-top: 1.35rem;
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(236, 245, 255, 0.95));
    border: 1px solid rgba(30, 97, 220, 0.1);
}

.auth-preview-card small {
    margin-bottom: 0.8rem;
    background: rgba(33, 102, 219, 0.08);
    color: #1b5dd7;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-preview-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.auth-preview-card p {
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.company-page {
    background:
        radial-gradient(circle at top left, rgba(66, 141, 255, 0.12), transparent 32rem),
        linear-gradient(180deg, #f5f9ff 0%, #f9fbff 100%);
}

.company-hero {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 4rem;
    background: linear-gradient(135deg, #071a35 0%, #0f3f86 55%, #1d67cf 100%);
}

.company-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.22;
}

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

.company-hero-copy h1 {
    margin-bottom: 1.35rem;
    color: #ffffff;
    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1.02;
}

.company-hero-copy p {
    max-width: 48rem;
    margin-bottom: 1.4rem;
    color: rgba(236, 244, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.85;
}

.company-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.company-hero-pills span {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #eff6ff;
    font-weight: 700;
}

.company-hero-panel {
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.09));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px rgba(2, 18, 42, 0.22);
    backdrop-filter: blur(14px);
}

.company-hero-panel small {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: #bcd7ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.company-hero-panel h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: "Fraunces", serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.company-hero-panel p,
.company-hero-panel li {
    color: rgba(237, 244, 255, 0.86);
    line-height: 1.8;
}

.company-hero-panel ul {
    display: grid;
    gap: 0.75rem;
    margin: 1.2rem 0 0;
    padding-left: 1.2rem;
}

.company-section-head {
    max-width: 64rem;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.company-section-head h2 {
    margin-bottom: 1rem;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.company-section-head p {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.9;
}

.company-feature-card,
.company-manifest-card,
.company-value-card,
.contact-info-card,
.contact-form-card {
    height: 100%;
    padding: 2rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 20px 44px rgba(10, 54, 117, 0.08);
}

.company-feature-card small,
.contact-card-head .eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: #1b5dd7;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.company-feature-card h3,
.company-value-card h3,
.contact-info-card h2,
.contact-card-head h2,
.company-manifest-card h2 {
    margin-bottom: 0.95rem;
    color: var(--ink);
    font-family: "Fraunces", serif;
}

.company-feature-card p,
.company-value-card p,
.contact-info-card p,
.contact-card-head p,
.company-manifest-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.85;
}

.company-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.contact-info-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-info-item {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(20, 86, 198, 0.06);
    border: 1px solid rgba(20, 86, 198, 0.08);
}

.contact-info-item small {
    display: block;
    margin-bottom: 0.35rem;
    color: #1b5dd7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info-item strong,
.contact-info-item a {
    color: var(--ink);
    text-decoration: none;
}

.contact-form-card {
    display: grid;
    gap: 1.4rem;
}

.contact-card-head p {
    margin-bottom: 0;
}

.student-space-page,
.student-auth-page {
    position: relative;
}

.student-hub-hero,
.student-auth-hero {
    position: relative;
    overflow: hidden;
    padding: 7.25rem 0 5.75rem;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(144, 226, 255, 0.18), transparent 16%),
        radial-gradient(circle at 86% 16%, rgba(67, 144, 255, 0.24), transparent 20%),
        radial-gradient(circle at 72% 78%, rgba(75, 202, 255, 0.18), transparent 18%),
        linear-gradient(135deg, #061224 0%, #0b3164 48%, #1182db 100%);
}

.student-hub-copy {
    position: relative;
    z-index: 2;
}

.student-hub-copy h1,
.student-access-head h2,
.student-heading h2,
.student-content-card h3,
.student-journey-step strong {
    font-family: "Fraunces", serif;
}

.student-hub-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.96;
    max-width: 12ch;
    margin-bottom: 1rem;
}

.student-hub-copy p,
.student-access-head p {
    color: rgba(223, 237, 255, 0.84);
    line-height: 1.86;
    font-size: 1.05rem;
}

.student-access-card {
    position: relative;
    z-index: 2;
    padding: 1.9rem;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 28px 68px rgba(6, 31, 70, 0.2);
}

.student-access-head {
    margin-bottom: 1.2rem;
}

.student-access-head h2 {
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.06;
    margin-bottom: 0.7rem;
}

.student-access-head p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.student-access-stack,
.student-content-grid {
    display: grid;
    gap: 1rem;
}

.student-access-link {
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 247, 255, 0.95));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-access-link-button {
    width: 100%;
    text-align: left;
    appearance: none;
    cursor: pointer;
}

.student-access-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(10, 54, 117, 0.1);
    border-color: rgba(27, 93, 215, 0.18);
}

.student-access-link small,
.student-content-card small {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.student-access-link strong,
.student-content-card h3 {
    display: block;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.student-access-link span,
.student-content-card p,
.student-journey-step p {
    display: block;
    color: var(--ink-soft);
    line-height: 1.75;
}

.student-heading {
    max-width: 860px;
    margin-bottom: 2rem;
}

.student-content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-content-card {
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
}

.student-journey-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.student-journey-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
}

.student-journey-step span {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #80d4ff, #2d7dff 55%, #1150d3);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(44, 120, 255, 0.28);
}

.student-journey-step strong {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
    margin-bottom: 0.4rem;
}

.student-form-note,
.student-verification-meta span {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(27, 93, 215, 0.05);
    border: 1px solid rgba(27, 93, 215, 0.08);
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 0.94rem;
}

.student-form-note-warning {
    background: rgba(255, 240, 214, 0.7);
    border-color: rgba(214, 152, 53, 0.18);
    color: #8b5a0a;
    margin-bottom: 1rem;
}

.student-verification-card {
    margin-top: 1.35rem;
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(236, 245, 255, 0.95));
    border: 1px solid rgba(30, 97, 220, 0.1);
    box-shadow: 0 22px 44px rgba(10, 54, 117, 0.08);
}

.student-verification-card small {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.student-verification-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.student-verification-card p {
    color: var(--ink-soft);
    line-height: 1.78;
    margin-bottom: 1rem;
}

.student-verification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.student-verification-meta span {
    padding: 0.65rem 0.9rem;
}

.student-code-preview {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1.05rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
    color: #fff;
}

.student-code-preview small {
    margin-bottom: 0;
    color: rgba(176, 227, 255, 0.9);
}

.student-code-preview strong {
    margin-bottom: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.16em;
}

.student-code-preview span {
    color: rgba(224, 238, 255, 0.82);
    line-height: 1.7;
}

.student-code-input {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
}

.student-dashboard-page {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(188, 230, 255, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(244, 249, 255, 0.94), rgba(233, 243, 255, 0.98));
}

.student-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 7.25rem 0 5.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(144, 226, 255, 0.18), transparent 16%),
        radial-gradient(circle at 86% 16%, rgba(67, 144, 255, 0.24), transparent 20%),
        radial-gradient(circle at 72% 78%, rgba(75, 202, 255, 0.18), transparent 18%),
        linear-gradient(135deg, #061224 0%, #0b3164 48%, #1182db 100%);
}

.student-dashboard-hero::before,
.student-dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.student-dashboard-hero::before {
    top: -120px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 235, 255, 0.28), transparent 66%);
    filter: blur(6px);
}

.student-dashboard-hero::after {
    left: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 170, 255, 0.22), transparent 70%);
}

.student-dashboard-flash {
    position: relative;
    z-index: 2;
    margin-bottom: 1.4rem;
}

.student-dashboard-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.student-dashboard-copy h1,
.student-dashboard-panel h2,
.student-empty-shell h2,
.student-course-card h3,
.student-resource-head strong,
.student-course-chapters strong {
    font-family: "Fraunces", serif;
}

.student-dashboard-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.96;
    max-width: 12ch;
    margin-bottom: 1rem;
}

.student-dashboard-copy p,
.student-dashboard-panel p {
    color: rgba(223, 237, 255, 0.84);
    line-height: 1.86;
    font-size: 1.05rem;
}

.student-dashboard-meta,
.student-course-metrics,
.student-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.student-dashboard-meta {
    margin-top: 1.35rem;
}

.student-dashboard-meta span,
.student-course-metrics span,
.student-course-count {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.student-dashboard-meta span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.15);
    color: rgba(227, 239, 255, 0.9);
}

.student-dashboard-panel {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 1.9rem;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 28px 68px rgba(6, 31, 70, 0.2);
}

.student-dashboard-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background: linear-gradient(135deg, rgba(57, 151, 255, 0.18), rgba(129, 214, 255, 0));
    pointer-events: none;
}

.student-dashboard-panel-head {
    margin-bottom: 1.2rem;
}

.student-dashboard-panel-head small,
.student-course-head small,
.student-resource-head small,
.student-course-chapter-item small,
.student-empty-shell small {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.student-dashboard-panel h2 {
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.06;
    margin-bottom: 0.7rem;
}

.student-dashboard-panel p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.student-dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.student-dashboard-stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 247, 255, 0.95));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-dashboard-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 176, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.student-dashboard-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 93, 215, 0.16);
    box-shadow: 0 26px 48px rgba(10, 54, 117, 0.11);
}

.student-dashboard-stat-card small {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.student-dashboard-stat-card strong {
    display: block;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
}

.student-dashboard-stat-card span {
    display: block;
    margin-top: 0.45rem;
    color: var(--ink-soft);
}

.student-dashboard-actions {
    margin-top: 1.2rem;
}

.student-dashboard-content {
    position: relative;
    z-index: 3;
    margin-top: -2.6rem;
}

.student-dashboard-section {
    margin-bottom: 2.2rem;
}

.student-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.student-course-card,
.student-resource-panel,
.student-empty-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.student-course-card,
.student-resource-panel {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.student-course-card::before,
.student-resource-panel::before,
.student-empty-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background: linear-gradient(135deg, rgba(73, 169, 255, 0.15), rgba(146, 221, 255, 0));
    pointer-events: none;
}

.student-course-card:hover,
.student-resource-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 93, 215, 0.16);
    box-shadow: 0 30px 62px rgba(10, 54, 117, 0.12);
}

.student-course-card {
    padding: 1.4rem;
}

.student-course-media {
    overflow: hidden;
    border-radius: 24px;
    min-height: 210px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
}

.student-course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-course-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.student-course-head h3 {
    color: var(--ink);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.08;
    margin-bottom: 0;
}

.student-course-card p {
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 0;
}

.student-course-count {
    background: rgba(27, 93, 215, 0.08);
    color: #1b5dd7;
    white-space: nowrap;
}

.student-course-metrics {
    margin-top: 1rem;
}

.student-course-metrics span {
    background: rgba(16, 42, 76, 0.06);
    color: var(--ink);
}

.student-course-chapters {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(24, 99, 215, 0.08);
}

.student-course-chapters strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.student-course-chapter-list,
.student-resource-list {
    display: grid;
    gap: 0.75rem;
}

.student-course-chapter-item,
.student-resource-item {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(248, 252, 255, 0.95);
    border: 1px solid rgba(24, 99, 215, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.student-course-chapter-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.student-course-chapter-item span,
.student-resource-item span,
.student-resource-empty,
.student-empty-shell p {
    color: var(--ink-soft);
    line-height: 1.75;
}

.student-course-chapter-item span {
    display: block;
    color: var(--ink);
    font-weight: 700;
}

.student-course-chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.student-course-chapter-meta span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(27, 93, 215, 0.08);
    color: #1b5dd7;
    font-size: 0.8rem;
    font-weight: 700;
}

.student-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.student-grade-summary-grid,
.student-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.student-settings-panel-danger {
    grid-column: 1 / -1;
    border: 1px solid rgba(190, 46, 46, 0.14);
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.98), rgba(255, 240, 240, 0.94));
}

.student-gradebook-stack {
    display: grid;
    gap: 1.2rem;
}

.student-gradebook-course-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-gradebook-course-head strong {
    display: block;
    color: var(--ink);
    font-size: 1.35rem;
}

.student-gradebook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.student-resource-panel {
    padding: 1.35rem;
}

.student-settings-form {
    display: grid;
    gap: 1rem;
}

.student-settings-field {
    display: grid;
    gap: 0.55rem;
}

.student-danger-actions {
    display: flex;
    justify-content: flex-end;
}

.student-resource-head {
    margin-bottom: 1rem;
}

.student-resource-head strong {
    display: block;
    color: var(--ink);
    font-size: 1.35rem;
}

.student-resource-item strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.student-course-chapter-item:hover,
.student-resource-item:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 93, 215, 0.14);
    background: rgba(252, 254, 255, 0.98);
}

.student-resource-empty {
    margin-bottom: 0;
}

.student-empty-shell {
    padding: 1.7rem;
}

.student-empty-shell h2 {
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    margin-bottom: 0.85rem;
}

.student-card-actions {
    margin-top: 1.15rem;
}

.student-card-actions .btn {
    width: 100%;
}

.student-resource-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.student-resource-page {
    position: relative;
    overflow: hidden;
}

.student-resource-hero {
    position: relative;
    padding: 7rem 0 3.6rem;
    background:
        radial-gradient(circle at 8% 22%, rgba(110, 204, 255, 0.22), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(110, 170, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #071c37 0%, #0b3f82 56%, #1372f2 100%);
    color: #f5fbff;
}

.student-resource-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    color: rgba(232, 247, 255, 0.78);
    font-size: 0.92rem;
}

.student-resource-breadcrumb a,
.student-resource-breadcrumb strong {
    color: #f7fbff;
    text-decoration: none;
}

.student-resource-hero-copy {
    max-width: 840px;
}

.student-resource-hero-copy h1 {
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.55rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.student-resource-hero-copy p {
    color: rgba(233, 246, 255, 0.84);
    line-height: 1.85;
    max-width: 780px;
}

.student-resource-summary-card,
.student-reader-card,
.student-detail-card,
.student-chapter-card,
.student-question-card,
.student-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.97));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.student-resource-summary-card {
    padding: 1.2rem;
}

.student-resource-summary-media {
    overflow: hidden;
    border-radius: 24px;
    min-height: 240px;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
    margin-bottom: 1rem;
}

.student-resource-summary-media img,
.student-detail-card-media img,
.student-image-frame img,
.student-question-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-resource-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.student-resource-summary-grid article {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(248, 252, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.student-resource-summary-grid small,
.student-reader-head small,
.student-detail-card-body small,
.student-chapter-head small,
.student-question-head small {
    display: inline-block;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 0.55rem;
}

.student-resource-summary-grid strong,
.student-reader-head h2,
.student-detail-card-body h3,
.student-chapter-head h3,
.student-question-head h3 {
    color: var(--ink);
}

.student-resource-summary-grid strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.student-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.student-detail-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.student-detail-card:hover,
.student-question-card:hover,
.student-chapter-card:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 93, 215, 0.16);
    box-shadow: 0 30px 62px rgba(10, 54, 117, 0.12);
}

.student-detail-card-media {
    min-height: 210px;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
}

.student-detail-card-media-placeholder,
.student-detail-card-media span {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-detail-card-body {
    padding: 1.2rem;
}

.student-detail-card-body p {
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.student-detail-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.student-detail-card-meta span,
.student-reader-head span,
.student-question-head span {
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: rgba(27, 93, 215, 0.08);
    color: #1b5dd7;
    font-size: 0.82rem;
    font-weight: 700;
}

.student-chapter-stack,
.student-question-stack {
    display: grid;
    gap: 1.15rem;
}

.student-chapter-card,
.student-question-card,
.student-reader-card {
    padding: 1.35rem;
}

.student-chapter-head,
.student-question-head,
.student-reader-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-inline-resource-group {
    height: 100%;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(248, 252, 255, 0.92);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.student-inline-resource-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.student-inline-resource-head strong {
    color: var(--ink);
}

.student-inline-resource-head span {
    color: #1b5dd7;
    font-size: 0.85rem;
    font-weight: 700;
}

.student-rich-copy {
    color: var(--ink-soft);
    line-height: 1.85;
}

.student-rich-copy > *:last-child {
    margin-bottom: 0;
}

.student-rich-copy h1,
.student-rich-copy h2,
.student-rich-copy h3,
.student-rich-copy h4 {
    color: var(--ink);
}

.student-rich-copy img {
    max-width: 100%;
    border-radius: 22px;
}

.student-reader-intro {
    margin-bottom: 1rem;
}

.student-pdf-shell,
.student-video-player {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(24, 99, 215, 0.08);
    background: #071c37;
}

.student-pdf-shell iframe,
.student-pdf-shell object,
.student-pdf-shell embed {
    display: block;
    width: 100%;
    min-height: 78vh;
    border: 0;
    background: #f7fbff;
}

.student-pdf-shell {
    padding: 1rem;
    background: linear-gradient(180deg, #eaf3ff 0%, #dfeeff 100%);
}

.student-pdf-status {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-soft);
    text-align: center;
    font-weight: 600;
}

.student-pdf-viewer {
    display: grid;
    gap: 1.2rem;
}

.student-pdf-page {
    display: flex;
    justify-content: center;
}

.student-pdf-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(8, 42, 90, 0.12);
}

.student-pdf-fallback {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    padding: 1.1rem 0 0.2rem;
    text-align: center;
}

.student-video-player iframe,
.student-video-player video {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
    background: #031122;
}

.student-image-gallery {
    display: grid;
    gap: 1rem;
}

.student-image-card {
    padding: 1rem;
}

.student-image-frame {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(7, 21, 43, 0.96);
}

.student-image-card figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0.35rem 0.2rem;
}

.student-image-card figcaption strong {
    color: var(--ink);
}

.student-image-card figcaption span {
    color: var(--ink-soft);
}

.student-question-image {
    overflow: hidden;
    border-radius: 22px;
    margin: 1rem 0 0.85rem;
}

.student-question-options {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.student-answer-group {
    margin-top: 1rem;
}

.student-answer-field {
    min-height: 150px;
}

.student-answer-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(248, 252, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.student-answer-option:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 93, 215, 0.16);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.08);
}

.student-answer-option input {
    margin-top: 0.28rem;
    accent-color: #1b5dd7;
}

.student-answer-option span {
    color: var(--ink);
    line-height: 1.75;
}

.student-answer-option.is-selected {
    background: rgba(228, 242, 255, 0.96);
    border-color: rgba(27, 93, 215, 0.18);
}

.student-answer-option.is-correct {
    background: rgba(233, 251, 243, 0.96);
    border-color: rgba(13, 156, 96, 0.18);
}

.student-answer-option.is-incorrect {
    background: rgba(255, 245, 245, 0.96);
    border-color: rgba(204, 68, 68, 0.18);
}

.student-answer-feedback {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.student-answer-feedback strong {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-answer-feedback span {
    color: var(--ink-soft);
    line-height: 1.7;
}

.student-answer-feedback.is-correct {
    background: rgba(233, 251, 243, 0.96);
    border-color: rgba(13, 156, 96, 0.18);
}

.student-answer-feedback.is-correct strong {
    color: #0d9c60;
}

.student-answer-feedback.is-incorrect {
    background: rgba(255, 245, 245, 0.96);
    border-color: rgba(204, 68, 68, 0.18);
}

.student-answer-feedback.is-incorrect strong {
    color: #c03d3d;
}

.student-option-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(248, 252, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.student-option-chip span {
    color: var(--ink);
    line-height: 1.7;
}

.student-option-chip strong {
    color: #0d9c60;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-option-chip.is-correct {
    border-color: rgba(13, 156, 96, 0.18);
    background: rgba(233, 251, 243, 0.96);
}

.student-question-details {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(12, 53, 109, 0.04);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.student-question-details summary {
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.student-exercise-form {
    display: grid;
    gap: 1.15rem;
}

.student-exercise-actions {
    display: flex;
    justify-content: flex-start;
}

.student-attempt-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.3rem;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(8, 30, 62, 0.98), rgba(14, 88, 186, 0.92));
    color: #fff;
    box-shadow: 0 24px 52px rgba(8, 42, 90, 0.14);
}

.student-attempt-summary small {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: rgba(191, 231, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.student-attempt-summary h2 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.student-attempt-summary p {
    margin: 0;
    color: rgba(229, 241, 255, 0.84);
    line-height: 1.75;
}

.student-attempt-summary > span {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 92px;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(183, 226, 255, 0.18);
    color: #fff;
    font-family: "Fraunces", serif;
    font-size: 1.6rem;
}

.student-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.student-pagination-pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.student-pagination-link,
.student-pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 99, 215, 0.12);
    background: rgba(248, 252, 255, 0.96);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.student-pagination-link:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 93, 215, 0.18);
    background: rgba(255, 255, 255, 0.99);
}

.student-pagination-link.is-active {
    background: linear-gradient(135deg, #0d3f83, #1674f3);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 72, 156, 0.18);
}

.student-pagination-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.student-pagination-gap {
    border-style: dashed;
}

.admin-console-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.1rem;
}

.admin-console-stats article {
    padding: 1.15rem 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.16);
    backdrop-filter: blur(18px);
}

.admin-console-stats small {
    display: inline-block;
    color: rgba(166, 224, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    margin-bottom: 0.65rem;
}

.admin-console-stats strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.admin-console-workspace {
    padding-top: 4.6rem;
}

.admin-console-window {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.96));
    border: 1px solid rgba(19, 87, 193, 0.08);
    box-shadow: 0 34px 78px rgba(8, 42, 90, 0.14);
}

.admin-console-sidebar {
    padding: 2rem 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(132, 216, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(7, 23, 46, 0.99), rgba(8, 35, 74, 0.98) 48%, rgba(11, 67, 141, 0.95) 100%);
    color: #fff;
}

.admin-console-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-console-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #88d8ff, #2d7dff);
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    box-shadow: 0 18px 35px rgba(18, 83, 197, 0.28);
}

.admin-console-profile strong {
    display: block;
    font-size: 1.05rem;
}

.admin-console-profile span {
    display: block;
    color: rgba(222, 236, 255, 0.78);
    font-size: 0.94rem;
    word-break: break-word;
}

.admin-console-role {
    justify-content: space-between;
    width: 100%;
    margin-top: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 216, 255, 0.14);
    color: rgba(226, 239, 255, 0.9);
    font-size: 0.92rem;
}

.admin-console-role strong {
    font-size: 0.98rem;
    color: #fff;
}

.admin-console-nav {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.admin-console-nav a {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: rgba(229, 240, 255, 0.88);
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-console-nav a:hover {
    transform: translateX(4px);
    border-color: rgba(153, 216, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-console-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(153, 216, 255, 0.18);
    color: #fff;
}

.admin-console-note {
    margin-top: 1.4rem;
    padding: 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(153, 216, 255, 0.14);
}

.admin-console-note small {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: rgba(165, 223, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
}

.admin-console-note p {
    margin-bottom: 0;
    color: rgba(227, 239, 255, 0.82);
    line-height: 1.8;
}

.admin-console-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.admin-crud-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.96));
    border: 1px solid rgba(19, 87, 193, 0.08);
    box-shadow: 0 34px 78px rgba(8, 42, 90, 0.14);
}

.admin-crud-sidebar {
    padding: 2rem 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(132, 216, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(7, 23, 46, 0.99), rgba(8, 35, 74, 0.98) 48%, rgba(11, 67, 141, 0.95) 100%);
    color: #fff;
}

.admin-crud-content {
    padding: 1.8rem;
    background:
        radial-gradient(circle at top left, rgba(121, 204, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 247, 255, 0.96));
}

.admin-crud-pane {
    display: grid;
    gap: 1.3rem;
}

.admin-crud-pills {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.admin-crud-pills .nav-link {
    text-align: left;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(229, 240, 255, 0.88);
    font-weight: 700;
}

.admin-crud-pills .nav-link:hover,
.admin-crud-pills .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(153, 216, 255, 0.16);
    color: #fff;
}

.admin-pane-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.admin-pane-head h2,
.admin-record-summary h3 {
    font-family: "Fraunces", serif;
}

.admin-pane-head h2 {
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.04;
    margin-bottom: 0;
}

.admin-pane-head p {
    max-width: 38rem;
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stack {
    display: grid;
    gap: 1rem;
}

.admin-record-card {
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
}

.admin-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-record-summary small {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #1b5dd7;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.admin-record-summary h3 {
    color: var(--ink);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.06;
    margin-bottom: 0.55rem;
}

.admin-record-summary p {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.admin-record-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 210px;
}

.admin-record-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(16, 42, 76, 0.06);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-record-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-brand-soft {
    background: rgba(30, 97, 220, 0.08);
    color: #1b5dd7;
    border: 1px solid rgba(30, 97, 220, 0.14);
    font-weight: 700;
}

.btn-brand-soft:hover {
    background: rgba(30, 97, 220, 0.14);
    color: #154bb1;
}

.admin-collapse-area {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-console-main {
    padding: 1.8rem;
    display: grid;
    gap: 1.4rem;
    background:
        radial-gradient(circle at top left, rgba(121, 204, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 247, 255, 0.96));
}

.admin-console-panel {
    padding: 1.6rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.admin-quick-card {
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 247, 255, 0.95));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(10, 54, 117, 0.1);
}

.admin-quick-card small,
.admin-inline-head span {
    display: block;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.admin-quick-card strong,
.admin-inline-head strong {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
}

.admin-quick-card span {
    display: block;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 0.94rem;
}

.admin-inline-head {
    margin-bottom: 1.15rem;
}

.admin-inline-head span {
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.75;
}

.admin-section-hint {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(21, 93, 210, 0.06);
    border: 1px solid rgba(21, 93, 210, 0.08);
    color: #2458b9;
    line-height: 1.75;
    font-weight: 600;
}

.admin-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.admin-panel-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 0;
}

.admin-panel-head p {
    max-width: 38rem;
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.admin-overview-grid-compact {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-console-form-card {
    margin-bottom: 1.35rem;
}

.admin-inline-alert {
    background: rgba(21, 93, 210, 0.08);
    border: 1px solid rgba(21, 93, 210, 0.12);
    color: #1b5dd7;
    font-weight: 600;
    line-height: 1.7;
}

.admin-entity-list {
    display: grid;
    gap: 1rem;
}

.admin-empty-card {
    padding: 1.6rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(240, 247, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-empty-card h3 {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.admin-empty-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.admin-entity-card {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
    overflow: hidden;
}

.admin-entity-card summary {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    cursor: pointer;
}

.admin-entity-card summary::-webkit-details-marker {
    display: none;
}

.admin-entity-card[open] summary {
    background: rgba(234, 244, 255, 0.72);
    border-bottom: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-entity-card summary small {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #1b5dd7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.admin-entity-card summary h3 {
    margin-bottom: 0.55rem;
    font-family: "Fraunces", serif;
    color: var(--ink);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.08;
}

.admin-entity-card summary p {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.admin-stat-drilldown-link {
    color: #1b5dd7;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 93, 215, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-stat-drilldown-link:hover,
.admin-stat-drilldown-link:focus {
    color: #0f4ab0;
    border-color: rgba(15, 74, 176, 0.55);
}

.admin-entity-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    min-width: 220px;
}

.admin-entity-meta span {
    background: rgba(16, 42, 76, 0.06);
    color: var(--ink);
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
}

.admin-open-pill {
    background: rgba(34, 108, 225, 0.12) !important;
    color: #1b5dd7 !important;
    font-weight: 700;
}

.admin-status-pill {
    font-weight: 700;
}

.admin-status-draft {
    background: rgba(255, 193, 7, 0.14);
    color: #916204;
}

.admin-status-published {
    background: rgba(39, 174, 96, 0.13);
    color: #1b6a40;
}

.admin-status-archived {
    background: rgba(16, 42, 76, 0.1);
    color: #355679;
}

.admin-entity-body {
    padding: 1.35rem 1.4rem 1.45rem;
    display: grid;
    gap: 1rem;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-form-hint {
    background: rgba(16, 42, 76, 0.06);
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.admin-danger-form {
    padding-top: 1rem;
    border-top: 1px solid rgba(24, 99, 215, 0.08);
    display: flex;
    justify-content: flex-end;
}

.admin-subpanel {
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(238, 246, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-subpanel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-subpanel-head strong {
    color: var(--ink);
    font-size: 1rem;
}

.admin-subpanel-head span {
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 0.92rem;
    max-width: 34rem;
}

@media (max-width: 1199.98px) {
    .admin-console-stats,
    .admin-overview-grid-compact,
    .admin-quick-actions,
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-console-window,
    .admin-crud-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .auth-hero,
    .admin-console-hero {
        padding-top: 6.5rem;
    }

    .admin-panel-head,
    .admin-entity-card summary,
    .admin-pane-head,
    .admin-record-head {
        flex-direction: column;
    }

    .admin-entity-meta,
    .admin-record-meta {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .auth-card,
    .admin-console-panel,
    .admin-subpanel {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .admin-console-sidebar,
    .admin-console-main,
    .admin-crud-sidebar,
    .admin-crud-content {
        padding: 1.25rem;
    }

    .auth-copy h1,
    .admin-console-copy h1 {
        max-width: 100%;
    }

    .admin-console-stats,
    .admin-overview-grid-compact,
    .admin-quick-actions,
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }

    .auth-links-row,
    .admin-form-actions,
    .admin-subpanel-head,
    .admin-record-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.feature-visual,
.catalogue-spotlight-visual,
.catalogue-card-media,
.course-atlas-media {
    position: relative;
    overflow: hidden;
}

.feature-visual-image,
.catalogue-media-image,
.course-atlas-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-visual::after,
.catalogue-spotlight-visual::after,
.catalogue-card-media::after,
.course-atlas-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 23, 46, 0.06), rgba(8, 23, 46, 0.52));
    pointer-events: none;
}

.feature-visual-content,
.catalogue-spotlight-visual small,
.catalogue-spotlight-visual strong {
    position: relative;
    z-index: 1;
}

.catalogue-card-media {
    min-height: 168px;
    margin-bottom: 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
}

.course-atlas-media {
    min-height: 240px;
    margin-bottom: 1.25rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.course-rich-card {
    padding: 1.75rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.94));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.text-content h2,
.text-content h3,
.text-content h4 {
    font-family: "Fraunces", serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 1.4rem 0 0.75rem;
}

.text-content h2:first-child,
.text-content h3:first-child,
.text-content h4:first-child {
    margin-top: 0;
}

.text-content ol {
    padding-left: 1.35rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

.text-content blockquote {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid rgba(33, 102, 219, 0.24);
    background: rgba(33, 102, 219, 0.06);
    border-radius: 0 18px 18px 0;
}

.text-content code {
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    background: rgba(7, 23, 46, 0.08);
    color: #0f4fcb;
}

.text-content a {
    color: #1b5dd7;
    font-weight: 700;
}

.text-content img {
    max-width: 100%;
}

.text-content .lesson-inline-media {
    width: min(100%, 820px);
    margin: 1.5rem 0;
}

.text-content .lesson-inline-media.align-left {
    margin-left: 0;
    margin-right: auto;
}

.text-content .lesson-inline-media.align-center {
    margin-left: auto;
    margin-right: auto;
}

.text-content .lesson-inline-media.align-right {
    margin-left: auto;
    margin-right: 0;
}

.text-content .lesson-inline-media img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(8, 42, 90, 0.16);
}

.text-content .lesson-inline-media figcaption {
    margin-top: 0.8rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

.text-content .lesson-inline-media-placeholder {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.text-content .lesson-inline-media-missing,
.text-content .lesson-inline-media.lesson-inline-media-pending {
    border-radius: 24px;
    padding: 1rem;
    background: rgba(33, 102, 219, 0.05);
    border: 1px dashed rgba(33, 102, 219, 0.18);
}

.text-content .align-left {
    text-align: left;
}

.text-content .align-center {
    text-align: center;
}

.text-content .align-right {
    text-align: right;
}

.text-content table,
.text-content .lesson-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(8, 42, 90, 0.08);
}

.text-content th,
.text-content td {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(24, 99, 215, 0.12);
    vertical-align: top;
}

.text-content th {
    background: rgba(30, 94, 212, 0.08);
    color: var(--ink);
    font-weight: 700;
}

.admin-studio-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.96));
    border: 1px solid rgba(19, 87, 193, 0.08);
    box-shadow: 0 34px 78px rgba(8, 42, 90, 0.14);
}

.admin-studio-sidebar {
    padding: 2rem 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(132, 216, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(7, 23, 46, 0.99), rgba(8, 35, 74, 0.98) 48%, rgba(11, 67, 141, 0.95) 100%);
    color: #fff;
}

.admin-studio-content {
    padding: 1.8rem;
    display: grid;
    gap: 1.35rem;
    background:
        radial-gradient(circle at top left, rgba(121, 204, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 247, 255, 0.96));
}

.admin-studio-tab-content {
    display: grid;
}

.admin-studio-tab-content > .tab-pane {
    margin: 0;
}

.admin-flash-floating {
    position: sticky;
    top: 1rem;
    z-index: 6;
    box-shadow: 0 20px 40px rgba(8, 42, 90, 0.12);
}

.admin-studio-nav {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.admin-studio-tab-link {
    display: block;
    width: 100%;
    text-align: left;
    appearance: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: rgba(229, 240, 255, 0.88);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-studio-tab-link:hover {
    transform: translateX(4px);
    border-color: rgba(153, 216, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-studio-tab-link.active {
    border-color: rgba(153, 216, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.1rem;
}

.admin-course-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
}

.admin-course-filter-form {
    gap: 0.9rem;
}

.admin-course-filter-actions {
    display: grid;
    gap: 0.7rem;
}

.admin-structure-shell,
.admin-course-shell {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 1.4rem;
}

.admin-structure-sidebar,
.admin-structure-detail,
.admin-course-sidebar,
.admin-course-detail {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.admin-structure-sidebar,
.admin-course-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    padding: 1.15rem;
    display: grid;
    gap: 1rem;
}

.admin-structure-sidebar-actions,
.admin-course-sidebar-actions {
    display: grid;
    gap: 0.7rem;
}

.admin-structure-link-list,
.admin-course-list {
    display: grid;
    gap: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.admin-structure-group {
    display: grid;
    gap: 0.7rem;
}

.admin-structure-group > small {
    display: inline-block;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-course-link {
    display: grid;
    gap: 0.3rem;
    text-decoration: none;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.94);
    border: 1px solid rgba(24, 99, 215, 0.08);
    color: var(--ink);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-course-link small {
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-course-link strong {
    color: var(--ink);
    line-height: 1.45;
}

.admin-course-link span,
.admin-course-link em {
    color: var(--ink-soft);
    font-style: normal;
    font-size: 0.9rem;
}

.admin-course-link:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 93, 215, 0.18);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.08);
}

.admin-course-link.active {
    background: linear-gradient(135deg, rgba(17, 130, 219, 0.1), rgba(109, 189, 255, 0.08));
    border-color: rgba(27, 93, 215, 0.22);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.1);
}

.admin-structure-detail,
.admin-course-detail {
    padding: 1.25rem;
    display: grid;
    gap: 1.2rem;
}

.admin-structure-records {
    display: grid;
    gap: 0.9rem;
}

.admin-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-check-tile {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(248, 252, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-check-tile input {
    margin-top: 0.25rem;
    accent-color: #1b5dd7;
}

.admin-check-tile strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.admin-check-tile small {
    display: block;
    color: var(--ink-soft);
    line-height: 1.65;
}

.admin-role-manager,
.admin-danger-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
}

.admin-role-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(23, 100, 219, 0.08);
    border: 1px solid rgba(27, 93, 215, 0.14);
}

.admin-role-chip span {
    color: #1b5dd7;
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-role-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(194, 34, 34, 0.12);
    color: #c03d3d;
    font-size: 1rem;
    line-height: 1;
}

.admin-user-browser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.admin-user-plain-summary {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: rgba(247, 251, 255, 0.94);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-user-plain-summary strong {
    color: var(--ink);
}

.admin-user-plain-summary span {
    color: var(--ink-soft);
    line-height: 1.7;
    word-break: break-word;
}

.admin-user-browser-item {
    display: grid;
    gap: 0.28rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    text-decoration: none;
    background: rgba(247, 251, 255, 0.94);
    border: 1px solid rgba(24, 99, 215, 0.08);
    color: var(--ink);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-user-browser-item small {
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-user-browser-item strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
}

.admin-user-browser-item span,
.admin-user-browser-item em {
    color: var(--ink-soft);
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.55;
}

.admin-user-browser-item:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 93, 215, 0.18);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.08);
}

.admin-user-browser-item.active {
    background: linear-gradient(135deg, rgba(17, 130, 219, 0.1), rgba(109, 189, 255, 0.08));
    border-color: rgba(27, 93, 215, 0.22);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.1);
}

.admin-user-editor-head {
    margin-bottom: 1rem;
}

.admin-user-filter-grid {
    align-items: end;
}

.admin-user-overview-grid {
    margin-top: 1rem;
}

.admin-user-management-grid {
    display: grid;
    gap: 1rem;
}

.admin-user-management-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
}

.admin-user-management-card.is-active {
    border-color: rgba(27, 93, 215, 0.2);
    box-shadow: 0 24px 46px rgba(10, 54, 117, 0.12);
}

.admin-user-management-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-user-management-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(27, 93, 215, 0.06);
    border: 1px solid rgba(27, 93, 215, 0.08);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.admin-user-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.admin-user-management-actions .admin-danger-form {
    margin: 0;
}

.admin-user-editor-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.admin-user-editor-summary article {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(247, 251, 255, 0.94);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-user-editor-summary small {
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-user-editor-summary strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.45;
}

.admin-user-editor-summary span {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-user-role-add-form {
    margin-top: 1rem;
}

.admin-user-create-shell {
    margin-top: 1.25rem;
}

.admin-user-create-shell summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--ink);
    padding: 0.2rem 0 1rem;
}

.admin-user-create-shell summary::-webkit-details-marker {
    display: none;
}

.admin-user-create-shell[open] summary {
    padding-bottom: 1.2rem;
}

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

@media (max-width: 767px) {
    .admin-user-editor-summary {
        grid-template-columns: 1fr;
    }
}

.admin-course-empty-state {
    min-height: 260px;
    align-content: center;
}

.admin-course-hero {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(154, 226, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #08182f 0%, #0d3f7f 52%, #1292f0 100%);
    color: #fff;
    box-shadow: 0 24px 52px rgba(8, 42, 90, 0.18);
}

.admin-course-hero small {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: rgba(191, 231, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-course-hero h3 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.admin-course-hero p {
    margin: 0;
    color: rgba(230, 241, 255, 0.88);
    line-height: 1.8;
}

.admin-course-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.admin-course-metrics span {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(183, 226, 255, 0.18);
    color: rgba(236, 244, 255, 0.95);
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-course-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-course-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(27, 93, 215, 0.06);
    border: 1px solid rgba(27, 93, 215, 0.1);
    color: #1b5dd7;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-course-section-link:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 93, 215, 0.18);
    background: rgba(27, 93, 215, 0.1);
    color: #154fb8;
}

.admin-course-section-link.active {
    background: linear-gradient(135deg, #1b5dd7, #2b86ff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 30px rgba(27, 93, 215, 0.2);
}

.admin-course-workbench {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-course-workbench-menu,
.admin-course-workbench-body {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.admin-course-workbench-menu {
    position: sticky;
    top: 1rem;
    padding: 1.1rem;
    display: grid;
    gap: 1rem;
}

.admin-course-workbench-body {
    padding: 1.2rem;
    display: grid;
    gap: 1.2rem;
}

.admin-course-menu-group {
    display: grid;
    gap: 0.65rem;
}

.admin-course-menu-group-label {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #6c8bc7;
}

.admin-course-menu-list {
    display: grid;
    gap: 0.55rem;
}

.admin-course-menu-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    background: rgba(27, 93, 215, 0.04);
    border: 1px solid rgba(27, 93, 215, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-course-menu-link:hover {
    transform: translateY(-1px);
    background: rgba(27, 93, 215, 0.08);
    border-color: rgba(27, 93, 215, 0.16);
    color: #154fb8;
}

.admin-course-menu-link.active {
    background: linear-gradient(135deg, #1b5dd7, #2b86ff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 30px rgba(27, 93, 215, 0.18);
}

.admin-course-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(181, 234, 255, 0.26), transparent 30%),
        linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 58%, rgba(38, 121, 255, 0.82));
    color: #fff;
}

.admin-course-view-head h4 {
    margin: 0.45rem 0 0.45rem;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: #fff;
}

.admin-course-view-head p {
    margin: 0;
    max-width: 56ch;
    color: rgba(228, 240, 255, 0.88);
    line-height: 1.75;
}

.admin-course-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-course-overview-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.15rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 247, 255, 0.95));
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 18px 36px rgba(10, 54, 117, 0.07);
}

.admin-course-overview-card-featured {
    grid-column: span 2;
    background:
        radial-gradient(circle at top right, rgba(181, 234, 255, 0.26), transparent 26%),
        linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 58%, rgba(38, 121, 255, 0.82));
    color: #fff;
}

.admin-course-overview-card small {
    display: inline-block;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-course-overview-card-featured small {
    color: rgba(193, 233, 255, 0.9);
}

.admin-course-overview-card strong {
    display: block;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.05;
}

.admin-course-overview-card-featured strong {
    color: #fff;
}

.admin-course-overview-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.admin-course-overview-card-featured p {
    color: rgba(228, 240, 255, 0.88);
}

.admin-course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: auto;
}

.admin-course-dual-pane[data-course-view="create"] > [data-course-pane="manage"],
.admin-course-dual-pane[data-course-view="manage"] > [data-course-pane="create"] {
    display: none;
}

.admin-course-dual-pane[data-course-view="create"] > [data-course-pane="create"],
.admin-course-dual-pane[data-course-view="manage"] > [data-course-pane="manage"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.admin-subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(27, 93, 215, 0.06);
    border: 1px solid rgba(27, 93, 215, 0.1);
    color: #1b5dd7;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-subnav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 93, 215, 0.18);
    background: rgba(27, 93, 215, 0.1);
    color: #154fb8;
}

.admin-subnav-link.active {
    background: linear-gradient(135deg, #1b5dd7, #2b86ff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 30px rgba(27, 93, 215, 0.2);
}

.admin-account-summary {
    display: grid;
    gap: 0.85rem;
}

.admin-account-chip {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(238, 246, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-account-chip small,
.admin-account-note small {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #1b5dd7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-account-chip strong {
    display: block;
    color: var(--ink);
    line-height: 1.6;
    word-break: break-word;
}

.admin-account-note {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-account-note p,
.admin-account-hint {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.admin-account-hint {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(27, 93, 215, 0.05);
    border: 1px solid rgba(27, 93, 215, 0.08);
    font-size: 0.94rem;
}

.admin-studio-intro,
.admin-studio-section,
.admin-studio-card {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 99, 215, 0.08);
    box-shadow: 0 24px 54px rgba(10, 54, 117, 0.08);
}

.admin-studio-intro,
.admin-studio-section {
    padding: 1.4rem;
}

.admin-studio-card {
    padding: 1.35rem;
    height: 100%;
}

.admin-studio-record[open] summary {
    background: rgba(234, 244, 255, 0.72);
    border-bottom: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-studio-record-active {
    border-color: rgba(27, 93, 215, 0.18);
    box-shadow: 0 28px 52px rgba(10, 54, 117, 0.12);
}

.admin-rich-editor {
    display: grid;
    gap: 0.9rem;
}

.admin-rich-input {
    min-height: 170px;
    resize: vertical;
}

.admin-rich-meta,
.admin-upload-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.7;
}

.admin-rich-math-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    background: rgba(18, 92, 207, 0.05);
    border: 1px solid rgba(18, 92, 207, 0.08);
}

.admin-rich-math-bar span {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

.admin-rich-editor .jodit-container:not(.jodit_inline) {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(24, 99, 215, 0.12);
    box-shadow: 0 20px 48px rgba(11, 52, 110, 0.08);
}

.admin-rich-editor .jodit-toolbar__box {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(239, 246, 255, 0.97));
    border-bottom: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-rich-editor .jodit-wysiwyg,
.admin-rich-editor .jodit-source {
    padding: 1.2rem 1.25rem;
    min-height: 260px;
    line-height: 1.8;
}

.admin-rich-editor .jodit-wysiwyg h2,
.admin-rich-editor .jodit-wysiwyg h3,
.admin-rich-editor .jodit-wysiwyg p,
.admin-rich-editor .jodit-wysiwyg blockquote,
.admin-rich-editor .jodit-wysiwyg ul,
.admin-rich-editor .jodit-wysiwyg ol,
.admin-rich-editor .jodit-wysiwyg table,
.admin-rich-editor .jodit-wysiwyg figure {
    margin-top: 0;
}

.admin-rich-editor .jodit-status-bar {
    display: none;
}

.math-expression {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.math-expression.math-display {
    display: block;
    margin: 1rem 0;
    overflow-x: auto;
}

.admin-math-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
}

.admin-math-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 19, 40, 0.58);
    backdrop-filter: blur(10px);
}

.admin-math-modal__panel {
    position: relative;
    width: min(92vw, 720px);
    border-radius: 28px;
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.98));
    box-shadow: 0 32px 90px rgba(7, 30, 67, 0.22);
    display: grid;
    gap: 1rem;
}

.admin-math-modal__head,
.admin-math-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-math-modal__head h3 {
    margin: 0.2rem 0 0;
    font-size: 1.45rem;
}

.admin-math-modal__input {
    min-height: 120px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.admin-math-modal__check {
    padding-left: 0.1rem;
}

.admin-math-modal__preview {
    border-radius: 24px;
    padding: 1rem 1.1rem;
    background: rgba(18, 92, 207, 0.05);
    border: 1px solid rgba(18, 92, 207, 0.08);
}

.admin-math-modal__preview small {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: #1b5dd7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-math-modal__preview-body {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: auto;
}

.admin-rich-editor-fallback .admin-rich-meta::after {
    content: " L editeur enrichi n a pas pu etre charge. Le champ classique reste disponible.";
    color: #b42318;
}

.admin-rich-preview {
    border-radius: 22px;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(238, 246, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-rich-preview small {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #1b5dd7;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.admin-rich-preview-body {
    min-height: 60px;
}

.admin-inline-media-panel {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(238, 246, 255, 0.96));
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-inline-media-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-inline-media-head small {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: #1b5dd7;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.admin-inline-media-head strong {
    display: block;
    color: var(--ink);
}

.admin-inline-media-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.admin-inline-image-list {
    display: grid;
    gap: 0.75rem;
}

.admin-inline-image-item,
.admin-inline-image-empty {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-inline-image-item {
    display: grid;
    gap: 0.35rem;
}

.admin-inline-image-item strong {
    color: var(--ink);
}

.admin-inline-image-item span,
.admin-inline-image-empty {
    color: var(--ink-soft);
}

.admin-inline-image-item code {
    width: fit-content;
    max-width: 100%;
    padding: 0.3rem 0.55rem;
    border-radius: 10px;
    background: rgba(7, 23, 46, 0.06);
    color: #0f4fcb;
    word-break: break-all;
}

.admin-inline-image-badge {
    width: fit-content;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(143, 214, 255, 0.18);
    color: #1b5dd7;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-current-media {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.admin-current-media small {
    color: #1b5dd7;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.admin-current-media-frame {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(7, 21, 43, 0.96), rgba(11, 54, 113, 0.9) 60%, rgba(38, 121, 255, 0.82));
    min-height: 190px;
}

.admin-current-media-frame img,
.admin-current-media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-current-media-path {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 42, 76, 0.06);
    color: var(--ink-soft);
    font-size: 0.86rem;
    word-break: break-all;
}

[data-admin-type-panel][hidden],
[data-video-provider-panel][hidden] {
    display: none !important;
}

.admin-question-section {
    margin-top: 1.4rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(24, 99, 215, 0.1);
    display: grid;
    gap: 1rem;
}

.admin-question-create {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(247, 251, 255, 0.95);
    border: 1px solid rgba(24, 99, 215, 0.08);
}

.admin-question-stack {
    display: grid;
    gap: 0.9rem;
}

.admin-question-card {
    border-radius: 24px;
    background: rgba(248, 252, 255, 0.95);
}

.admin-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-weight: 600;
}

.admin-inline-check input {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 1199.98px) {
    .admin-studio-shell {
        grid-template-columns: 1fr;
    }

    .admin-structure-shell,
    .admin-course-shell {
        grid-template-columns: 1fr;
    }

    .admin-course-workbench {
        grid-template-columns: 1fr;
    }

    .admin-structure-sidebar,
    .admin-course-sidebar {
        position: static;
    }

    .admin-course-workbench-menu {
        position: static;
    }

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

@media (max-width: 991.98px) {
    .course-atlas-media {
        min-height: 200px;
    }

    .student-resource-summary-grid,
    .student-detail-grid,
    .student-grade-summary-grid,
    .student-settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-role-grid {
        grid-template-columns: 1fr;
    }

    .student-video-player iframe,
    .student-video-player video {
        min-height: 380px;
    }

    .student-pdf-shell iframe {
        min-height: 65vh;
    }
}

@media (max-width: 767.98px) {
    .admin-studio-sidebar,
    .admin-studio-content,
    .admin-studio-intro,
    .admin-studio-section,
    .admin-studio-card,
    .course-rich-card {
        padding: 1.2rem;
    }

    .admin-rich-toolbar {
        gap: 0.35rem;
    }

    .catalogue-card-media,
    .course-atlas-media {
        min-height: 150px;
    }

    .student-content-grid,
    .student-journey-shell,
    .student-course-grid,
    .student-resource-grid,
    .student-settings-grid {
        grid-template-columns: 1fr;
    }

    .student-verification-meta {
        flex-direction: column;
    }

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

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

    .admin-course-overview-card-featured {
        grid-column: span 1;
    }

    .student-course-head,
    .student-gradebook-course-head,
    .student-course-chapter-item,
    .student-chapter-head,
    .student-question-head,
    .student-reader-head,
    .student-image-card figcaption,
    .student-attempt-summary {
        flex-direction: column;
    }

    .admin-inline-media-head,
    .admin-inline-media-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .lesson-navigation-grid {
        grid-template-columns: 1fr;
    }

    .text-content .lesson-inline-media {
        width: 100%;
    }

    .student-resource-hero {
        padding-top: 6.2rem;
    }

    .student-resource-hero-copy h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .student-detail-card-body,
    .student-resource-summary-card,
    .student-reader-card,
    .student-chapter-card,
    .student-question-card,
    .student-image-card {
        padding: 1rem;
    }

    .student-video-player iframe,
    .student-video-player video {
        min-height: 260px;
    }

.student-pdf-shell iframe {
    min-height: 58vh;
}
}

@media (max-width: 991.98px) {
    .company-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .company-hero {
        padding: 6.5rem 0 3.5rem;
    }

    .company-hero-copy h1 {
        font-size: clamp(2.2rem, 9vw, 3.1rem);
    }
}
