@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');

:root {
    --bg: #f4fbff;
    --bg-soft: #eff8fe;
    --ink: #132f43;
    --ink-soft: #4a677c;
    --primary: #0b5f8d;
    --primary-deep: #0e3854;
    --accent: #0fa3a3;
    --lux: #dca66b;
    --line: #cfe4f1;
    --card: #ffffff;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 8px 20px rgba(14, 56, 84, 0.08);
    --shadow-md: 0 16px 40px rgba(11, 65, 96, 0.14);
    --shadow-lg: 0 24px 60px rgba(10, 44, 67, 0.2);
    --logo-primary: #005b96;
    --logo-secondary: #00a6a6;
    --logo-accent: #ff7a00;
    --logo-dark: #102a43;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(15, 163, 163, 0.18) 0%, rgba(15, 163, 163, 0) 28%),
        radial-gradient(circle at 88% 16%, rgba(220, 166, 107, 0.2) 0%, rgba(220, 166, 107, 0) 26%),
        radial-gradient(circle at 78% 80%, rgba(11, 95, 141, 0.14) 0%, rgba(11, 95, 141, 0) 36%),
        linear-gradient(180deg, #f4fbff 0%, #f8fcff 50%, #f2f9ff 100%);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(3px);
}

body::before {
    width: 280px;
    height: 280px;
    right: -100px;
    top: 180px;
    background: radial-gradient(circle, rgba(235, 208, 75, 0.58), rgba(235, 208, 75, 0));
}

body::after {
    width: 360px;
    height: 360px;
    right: 8%;
    bottom: -140px;
    background: radial-gradient(circle, rgba(147, 221, 167, 0.35), rgba(147, 221, 167, 0));
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.academy-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(120deg, var(--logo-dark), #0c3d66 48%, var(--logo-primary));
    color: #fff;
    padding: 0.95rem 0;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-wrap > div {
    min-width: 0;
}

.academy-kicker {
    margin: 0;
    font-size: 0.73rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.academy-header h1 {
    margin: 0.1rem 0 0;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.52rem);
    letter-spacing: -0.01em;
}

.academy-header h1 a,
.academy-header nav a {
    color: #edf8ff;
    text-decoration: none;
}

.academy-header nav {
    display: flex;
    gap: 0.52rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.academy-header nav a {
    padding: 0.45rem 0.76rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.academy-header nav a:hover {
    background: rgba(255, 122, 0, 0.2);
    border-color: rgba(255, 122, 0, 0.42);
    transform: translateY(-1px);
}

main.container {
    padding: 1.4rem 0 1.8rem;
}

.flash {
    margin: 0.35rem 0 1rem;
    border-radius: var(--radius-md);
    padding: 0.82rem 1rem;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.flash.success {
    background: linear-gradient(110deg, #edfdf1, #f8fff9);
    border-color: #a4d9b1;
}

.flash.error {
    background: linear-gradient(110deg, #fff2f2, #fff9f9);
    border-color: #f3b1b1;
}

.hero {
    margin-top: 0.55rem;
    position: relative;
    isolation: isolate;
    background: linear-gradient(130deg, var(--primary-deep), var(--primary) 56%, var(--accent));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.15rem, 2.8vw, 1.9rem);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: reveal-up 0.55s ease both;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(220, 166, 107, 0.45) 0%, rgba(220, 166, 107, 0) 34%),
        radial-gradient(circle at 18% 90%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h2,
.hero h3 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
}

.hero p {
    margin: 0.45rem 0 0;
    color: rgba(239, 251, 255, 0.92);
}

section > h3 {
    margin: 1.35rem 0 0.9rem;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: clamp(1.12rem, 2vw, 1.36rem);
    letter-spacing: -0.01em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.93), rgba(248, 252, 255, 0.98));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 1.04rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: reveal-up 0.48s ease both;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #b9d7e8;
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.52rem;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    color: #103f5e;
    letter-spacing: -0.01em;
}

.meta {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

a {
    color: #0f6c94;
}

a:hover {
    color: #0b5579;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 999px;
    padding: 0.56rem 0.96rem;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.07);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(115deg, #0c4f75, #0d6b95 56%, #1199a3);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(11, 95, 141, 0.3);
}

.btn-soft {
    background: linear-gradient(125deg, #ffffff, #f1f9ff);
    border: 1px solid #c9dfec;
    color: #0d678f;
}

.toolbar {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
}

label {
    display: block;
    margin-top: 0.7rem;
    font-weight: 700;
    color: #164765;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #c0d8e8;
    border-radius: var(--radius-sm);
    padding: 0.66rem 0.7rem;
    margin-top: 0.3rem;
    font: inherit;
    background: #ffffff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #67a9ca;
    box-shadow: 0 0 0 3px rgba(15, 163, 163, 0.16);
    background: #fbfeff;
}

textarea {
    min-height: 130px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 0.72rem;
    border-bottom: 1px solid #e0edf6;
    text-align: left;
}

th {
    background: linear-gradient(180deg, #f2f9ff, #e9f5fd);
    color: #184d6d;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:hover {
    background: #f8fcff;
}

.table-wrap {
    border: 1px solid #d2e5f1;
    border-radius: var(--radius-md);
    overflow: auto;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
}

.lesson {
    border-left: 4px solid var(--accent);
    margin-bottom: 0.8rem;
    position: relative;
}

.module-header {
    margin: 1.25rem 0 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.module-header h3 {
    margin: 0;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.module-item {
    border: 1px solid #d2e3ef;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.module-item[open] {
    border-color: #c3dced;
    box-shadow: 0 10px 24px rgba(16, 63, 93, 0.08);
}

.module-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    user-select: none;
}

.module-item summary::-webkit-details-marker {
    display: none;
}

.module-chevron {
    inline-size: 28px;
    block-size: 28px;
    border-radius: 10px;
    background: #f5edea;
    position: relative;
    flex: 0 0 auto;
}

.module-chevron::before {
    content: '';
    position: absolute;
    inline-size: 8px;
    block-size: 8px;
    border-inline-end: 2px solid #ea6f42;
    border-block-end: 2px solid #ea6f42;
    transform: rotate(-45deg);
    inset-block-start: 9px;
    inset-inline-start: 8px;
    transition: transform 0.2s ease;
}

.module-item[open] .module-chevron::before {
    transform: rotate(45deg);
    inset-block-start: 7px;
}

.module-title {
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-weight: 700;
    font-size: clamp(1.02rem, 2vw, 1.15rem);
    color: #1b2f43;
    line-height: 1.3;
}

.module-subcount {
    font-size: 0.78rem;
    color: #658397;
    background: #eef6fb;
    border: 1px solid #d3e4ef;
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    margin-inline-start: auto;
}

.module-badge {
    margin-inline-start: 0.45rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.58rem;
}

.module-badge.highlighted {
    background: #ea6f42;
    color: #fff;
}

.module-badge.complete {
    background: #e6f8ee;
    color: #25724f;
}

.module-item.is-highlighted {
    border-inline-start: 3px solid #ea6f42;
}

.module-content.card {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fbfeff;
    box-shadow: none;
    border-top: 1px solid #e1edf6;
}

.module-subchapters-wrap {
    margin-bottom: 0.82rem;
}

.module-subchapters-title {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5c7a8f;
    font-weight: 700;
}

.module-subchapters {
    display: grid;
    gap: 0.58rem;
}

.module-unit-item {
    border-radius: 22px;
    overflow: hidden;
}

.module-unit-row {
    border: 1px solid #d2e3ef;
    border-radius: 22px;
    background: #ffffff;
    min-height: 72px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    list-style: none;
}

.module-unit-row::-webkit-details-marker {
    display: none;
}

.module-unit-chevron {
    inline-size: 38px;
    block-size: 38px;
    border-radius: 12px;
    background: #f5edea;
    flex: 0 0 auto;
    position: relative;
}

.module-unit-chevron::before {
    content: '';
    position: absolute;
    inline-size: 10px;
    block-size: 10px;
    border-inline-end: 2px solid #ea6f42;
    border-block-end: 2px solid #ea6f42;
    transform: rotate(-45deg);
    inset-block-start: 12px;
    inset-inline-start: 11px;
    transition: transform 0.2s ease;
}

.module-unit-item[open] .module-unit-chevron::before {
    transform: rotate(45deg);
    inset-block-start: 10px;
}

.module-unit-title {
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    color: #1b2f43;
    font-size: clamp(1.04rem, 2.2vw, 1.22rem);
    font-weight: 700;
    line-height: 1.3;
}

.module-unit-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    flex-wrap: wrap;
}

.module-unit-content {
    border: 1px solid #d2e3ef;
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: #fbfeff;
    padding: 0 1rem 0.85rem 4.15rem;
}

.module-unit-item[open] .module-unit-row {
    border-radius: 22px 22px 0 0;
    border-bottom-color: #e8f1f7;
}

.unit-action-btn {
    appearance: none;
    border: 1px solid #cde2ef;
    border-radius: 999px;
    background: #f7fcff;
    color: #21567a;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.78rem;
    cursor: pointer;
    font-family: inherit;
}

.unit-action-btn:hover {
    background: #eaf6ff;
}

.lesson::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 20px;
    background: linear-gradient(180deg, #0fa3a3, #dca66b);
}

.progress-wrap {
    margin-top: 0.8rem;
}

.progress-meta {
    font-size: 0.92rem;
    margin-bottom: 0.42rem;
    color: rgba(237, 250, 255, 0.95);
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8ef5d5, #fff3a5, #ffd79f);
    box-shadow: 0 0 14px rgba(255, 241, 160, 0.36);
}

.video-wrap {
    margin: 0.8rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d5e8f4;
    background: #eaf7ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.video-wrap iframe {
    width: 100%;
    min-height: 340px;
    border: 0;
    display: block;
}

.video-wrap video {
    width: 100%;
    display: block;
    background: #000;
}

.quiz-question {
    border: 1px solid #d8eaf5;
    border-radius: 12px;
    padding: 0.84rem;
    margin-bottom: 0.74rem;
    background: linear-gradient(150deg, #fbfeff, #f2f9ff);
}

.quiz-question label {
    display: block;
    font-weight: 600;
    margin-top: 0.35rem;
}

.quiz-question input[type="radio"] {
    width: auto;
    margin-right: 0.35rem;
}

.certificate-card {
    text-align: center;
    border: 2px solid #b7d7ea;
    background:
        radial-gradient(circle at top, rgba(220, 166, 107, 0.22), rgba(220, 166, 107, 0) 32%),
        linear-gradient(165deg, #ffffff, #f0f9ff);
}

.academy-footer {
    border-top: 1px solid #d2e4f1;
    padding: 1.2rem 0;
    margin-top: 1.2rem;
    color: #466378;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.academy-footer p {
    margin: 0;
}

.academy-header-student {
    background: linear-gradient(120deg, var(--logo-dark), #0c3d66 50%, var(--logo-primary));
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 2px solid var(--logo-accent);
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.28);
    color: #ffffff;
    padding: 0.58rem 0;
}

.academy-header-student .header-wrap {
    align-items: center;
    position: relative;
}

.student-top-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.student-top-nav a {
    color: #e8f4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.42rem 0.16rem;
    border-radius: 0;
    border: 0;
    background: none;
    position: relative;
}

.student-top-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    background: linear-gradient(120deg, #ff7a00, #ff9d3b);
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.student-top-nav a:hover::after,
.student-top-nav a.is-active::after {
    transform: scaleX(1);
}

.student-top-nav a:hover {
    color: #ffffff;
}

.student-top-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
}

.icon-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e9f5ff;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.icon-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 14px;
    height: 14px;
    padding: 0 2px;
    border-radius: 999px;
    background: var(--logo-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.student-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-family: inherit;
}

.student-avatar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.student-dashboard-head {
    margin: 0.35rem auto 0.75rem;
    width: min(920px, 100%);
}

.student-dashboard-head h2 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    line-height: 1.2;
    color: #1b2f43;
}

.student-dashboard-head p {
    margin: 0.58rem 0 0;
    color: #2c4354;
    font-weight: 700;
    font-size: 1.05rem;
}

.student-dashboard-controls {
    width: min(920px, 100%);
    margin: 0 auto 0.85rem;
    border-top: 1px solid #d7e7f2;
    padding-top: 0.8rem;
}

.controls-row {
    display: grid;
    grid-template-columns: 100px minmax(200px, 1fr) minmax(180px, 1fr) 100px;
    gap: 0.48rem;
}

.controls-row select,
.controls-row input {
    margin-top: 0;
    height: 42px;
    border-radius: 10px;
    border-color: #b8cad8;
    background: #fbfdff;
}

.student-quick-popover {
    position: absolute;
    inset-block-start: calc(100% - 4px);
    inset-inline-end: 0;
    inline-size: min(360px, 90vw);
    background: #ffffff;
    border: 1px solid #d4e4ef;
    box-shadow: 0 14px 28px rgba(8, 28, 43, 0.24);
    z-index: 2100;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.student-quick-panel h4 {
    margin: 0 0 0.5rem;
    color: #16324a;
    font-size: 1.05rem;
}

.student-quick-panel p,
.student-quick-panel li {
    color: #2d4254;
}

.student-course-grid {
    width: min(920px, 100%);
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 235px));
    justify-content: start;
    gap: 0.85rem;
}

.student-course-grid[data-view-mode="list"] {
    grid-template-columns: 1fr;
}

.student-course-card {
    background: #fff;
    border: 1px solid #d9e7f1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(16, 63, 93, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-course-card--list {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}

.student-course-card--list .student-card-media {
    aspect-ratio: auto;
    min-height: 100%;
}

.student-course-card--list .student-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.student-no-results {
    width: min(920px, 100%);
    margin: 0 auto 2rem;
    padding: 1rem 1.1rem;
    border: 1px dashed #bfd2e2;
    border-radius: 14px;
    background: #f8fcff;
    color: #375168;
    font-weight: 600;
}

.student-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(13, 60, 89, 0.14);
}

.admin-thumb-preview {
    max-inline-size: 180px;
    border-radius: 10px;
    border: 1px solid #d4e2ec;
}

.admin-course-thumb {
    inline-size: 54px;
    block-size: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d4e2ec;
}

.student-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(130deg, #425394, #7c5ba2);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.student-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-card-media span {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.8rem;
}

.student-card-body {
    padding: 0.72rem 0.82rem 0.8rem;
}

.student-card-body h3 {
    margin: 0;
    font-size: 0.99rem;
    line-height: 1.35;
}

.student-card-body h3 a {
    color: #ea6f42;
    text-decoration: none;
}

.student-card-description {
    margin: 0.45rem 0 0.25rem;
    color: #3e5568;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.student-card-body .meta {
    margin: 0;
    font-size: 0.88rem;
}

.student-card-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #61788b;
    font-size: 0.88rem;
}

.student-progress-track {
    margin-top: 0.4rem;
    height: 8px;
    border-radius: 999px;
    background: #ecf4fa;
    overflow: hidden;
}

.student-progress-track span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #87eecf, #efe892);
}

.student-course-card .toolbar {
    margin-top: 0.72rem;
}

.student-course-card .btn {
    padding: 0.48rem 0.76rem;
    font-size: 0.84rem;
}

.empty-state {
    padding: 1rem;
    color: #4f687a;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid .card:nth-child(2) {
    animation-delay: 0.06s;
}

.grid .card:nth-child(3) {
    animation-delay: 0.12s;
}

.grid .card:nth-child(4) {
    animation-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 920px) {
    body::before,
    body::after {
        opacity: 0.7;
    }

    .academy-header {
        position: static;
    }

    .academy-header nav {
        justify-content: flex-start;
    }

    .academy-header nav a {
        font-size: 0.85rem;
    }

    .controls-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 740px) {
    .container {
        width: min(1120px, 94%);
    }

    .header-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .academy-header nav {
        width: 100%;
        justify-content: flex-start;
    }

    .academy-header nav a {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }

    .academy-header-student .header-wrap {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.7rem;
    }

    .student-top-nav {
        gap: 0.56rem;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
    }

    .student-top-nav a {
        font-size: 0.9rem;
    }

    .student-top-actions {
        gap: 0.55rem;
    }

    .hero {
        border-radius: 18px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .video-wrap iframe {
        min-height: 220px;
    }

    .toolbar .btn {
        flex: 1 1 auto;
    }

    .student-dashboard-head,
    .student-dashboard-controls,
    .student-course-grid {
        width: 100%;
    }

    .student-course-grid {
        grid-template-columns: 1fr;
    }

    .student-course-card--list {
        grid-template-columns: 1fr;
    }

    .controls-row {
        grid-template-columns: 1fr;
    }

    .student-quick-popover {
        inline-size: min(360px, 96vw);
    }
}
