:root {
    --brand: #1057f5;
    --brand-dark: #0a3294;
    --brand-light: #eef5ff;
    --accent: #ff8a1f;
    --ink: #13203a;
    --muted: #65718a;
    --navy: #081841;
    --line: rgba(19, 32, 58, .10);
    --shadow-soft: 0 12px 34px rgba(8, 24, 65, .09);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    color: var(--ink);
    background: #f4f7fd;
}

a {
    text-decoration: none;
}

.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover, .btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand);
    border-color: var(--brand);
}

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

.text-brand { color: var(--brand); }
.bg-brand-light { background-color: var(--brand-light); }
.bg-brand { background-color: var(--brand); }
.text-muted { color: var(--muted) !important; }

main {
    min-height: 58vh;
}

.page-shell {
    padding: 64px 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    margin-bottom: 42px;
    background:
        linear-gradient(rgba(16, 87, 245, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 87, 245, .055) 1px, transparent 1px),
        linear-gradient(105deg, #fbfdff 0%, #f6f9ff 46%, #fff7ee 100%);
    background-size: 42px 42px, 42px 42px, auto;
    border-bottom: 1px solid rgba(19, 32, 58, .08);
}

.page-hero h1,
.page-hero h2 {
    color: var(--ink);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.08;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 760px;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin-bottom: 18px;
}

.eyebrow-pill:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(255, 138, 31, .14);
}

.surface-card,
.card {
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(8, 24, 65, .08) !important;
}

.surface-card {
    padding: 30px;
}

.stat-card {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(8, 24, 65, .08);
}

.stat-card i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--brand-light);
    color: var(--brand);
}

.content-panel {
    max-width: 920px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(8, 24, 65, .08);
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(19, 32, 58, .12);
    background-color: #fbfdff;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(16, 87, 245, .42);
    box-shadow: 0 0 0 .22rem rgba(16, 87, 245, .10);
}

.btn {
    border-radius: 999px;
    font-weight: 850;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(16, 87, 245, .20);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, #1b63ff, var(--brand-dark));
    border-color: transparent;
    transform: translateY(-1px);
}

.btn-outline-brand {
    background: #fff;
    border-color: rgba(16, 87, 245, .24);
    color: var(--brand);
}

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

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom-color: rgba(19, 32, 58, .10);
}

.table tbody td {
    border-color: rgba(19, 32, 58, .08);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Site chrome */
.site-topbar {
    background: var(--navy);
    color: #fff;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
}

.site-topbar .container,
.site-nav,
.top-contact,
.top-socials,
.site-menu,
.site-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-topbar .container,
.site-nav {
    justify-content: space-between;
}

.site-topbar a,
.site-footer a {
    color: #fff;
}

.top-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 13px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .90);
    border-bottom: 1px solid rgba(19, 32, 58, .08);
    box-shadow: 0 10px 30px rgba(8, 24, 65, .08);
    backdrop-filter: blur(12px);
}

.site-nav {
    min-height: 104px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    font-size: 26px;
    font-weight: 900;
}

.site-logo:hover {
    color: var(--ink);
}

.site-logo img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(8, 24, 65, .10);
}

.site-menu {
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(19, 32, 58, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.site-menu a {
    color: #10182d;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    position: relative;
}

.site-menu a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.site-menu a:hover,
.site-menu a.active {
    background: #fff;
    color: #10182d;
}

.site-menu a:hover:after,
.site-menu a.active:after {
    transform: scaleX(1);
}

.site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 34px rgba(16, 87, 245, .24);
}

.site-login,
.site-account {
    color: var(--ink);
    font-weight: 900;
}

.site-login:hover,
.site-account:hover {
    color: var(--brand);
}

.support-avatar {
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 50%;
    background: #f7fbff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(8, 24, 65, .14);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--brand-light) 0%, #fff 60%);
    padding: 5rem 0 4rem;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.15;
}

/* Course cards */
.course-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
    background: #fff;
    box-shadow: 0 16px 36px rgba(8, 24, 65, .08);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(8, 24, 65, .13);
}

.course-card .thumb-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background:
        linear-gradient(rgba(16, 87, 245, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 87, 245, .08) 1px, transparent 1px),
        var(--brand-light);
    background-size: 28px 28px;
}

.course-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-discount {
    background-color: var(--accent);
    color: #fff;
}

.price-strike {
    text-decoration: line-through;
    color: var(--muted);
    font-size: .9rem;
}

.price-final {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
}

.rating-stars {
    color: var(--accent);
    font-size: .85rem;
}

/* Why choose us */
.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Testimonials */
.testimonial-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    height: 100%;
    background: #fff;
    box-shadow: 0 16px 36px rgba(8, 24, 65, .08);
}

.accordion-item {
    border-color: rgba(19, 32, 58, .08);
    overflow: hidden;
}

.accordion-button {
    font-weight: 850;
    color: var(--ink);
}

.accordion-button:not(.collapsed) {
    color: var(--brand);
    background: var(--brand-light);
    box-shadow: none;
}

.list-group-item {
    border-color: rgba(19, 32, 58, .08);
}

.pagination {
    gap: 8px;
}

.pagination a,
.pagination li span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 850;
}

.pagination .active a,
.pagination .active span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.course-detail-media {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(8, 24, 65, .14);
}

.checkout-summary {
    position: sticky;
    top: 130px;
}

.enrollment-card {
    overflow: hidden;
}

.enrollment-card:before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.enrollment-card .card-body {
    padding: 24px;
}

.enrollment-kicker {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.enrollment-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.enrollment-card .price-final {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0;
}

.enrollment-card .badge-discount {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.enrollment-card .btn-brand {
    min-height: 54px;
    font-size: 1rem;
}

.enrollment-note {
    margin: 12px 0 20px;
    color: var(--muted);
    font-size: .88rem;
    text-align: center;
}

.enrollment-features {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.enrollment-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7faff;
    color: #40506d;
    font-weight: 750;
}

.enrollment-features i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--brand);
    background: #eef5ff;
}

.enrollment-support {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #06163d, #0a3294);
    color: #fff;
}

.enrollment-support strong {
    display: block;
    margin-bottom: 4px;
}

.enrollment-support span {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: .86rem;
    line-height: 1.5;
}

.auth-card {
    max-width: 480px;
    margin: 4rem auto;
    overflow: hidden;
}

.auth-card:before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
}

.admin-stat-card:after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(16, 87, 245, .10);
}

.list-group-item-action.active,
.list-group-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
    border-color: transparent;
}

.list-group.shadow-sm {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(8, 24, 65, .08) !important;
}

.list-group.shadow-sm .list-group-item {
    padding: 14px 16px;
    font-weight: 800;
}

.progress {
    border-radius: 999px;
    background: #e8eef8;
}

.progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--accent)) !important;
}

.badge.bg-brand,
.bg-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-light);
}

.about-nexo-hero {
    background:
        linear-gradient(rgba(245, 248, 255, .90), rgba(245, 248, 255, .96)),
        linear-gradient(90deg, rgba(16, 87, 245, .14) 1px, transparent 1px),
        linear-gradient(0deg, rgba(16, 87, 245, .10) 1px, transparent 1px);
    background-size: auto, 54px 54px, 54px 54px;
}

.about-nexo-page {
    display: grid;
    gap: 28px;
}

.about-nexo-intro {
    max-width: 1050px;
    margin: 0 auto;
}

.about-nexo-card {
    padding: 28px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .08);
}

.about-nexo-card span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.about-nexo-card h2 {
    margin-bottom: 12px;
    color: #101a33;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 950;
}

.about-nexo-card p,
.about-nexo-page p,
.about-nexo-page li {
    color: #526078;
    line-height: 1.78;
}

.about-nexo-section {
    display: grid;
    gap: 22px;
}

.about-nexo-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 26px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 138, 31, .12), transparent 28%),
        #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .07);
}

.about-nexo-split h2 {
    margin: 16px 0 14px;
    color: #101a33;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    font-weight: 950;
}

.about-feature-list {
    display: grid;
    gap: 14px;
}

.about-feature-list > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 4px 14px;
    padding: 16px;
    border: 1px solid rgba(16, 87, 245, .10);
    border-radius: 18px;
    background: #f8fbff;
}

.about-feature-list i {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.about-feature-list strong {
    color: #101a33;
    font-weight: 950;
}

.about-feature-list span {
    color: #5d6a82;
    line-height: 1.6;
}

.about-nexo-section .section-heading {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-nexo-section .section-heading h2 {
    margin: 14px 0 10px;
    color: #101a33;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 950;
}

.about-timeline {
    display: grid;
    gap: 18px;
}

.about-timeline article {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 26px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .07);
}

.about-timeline-index {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-size: 1.45rem;
    font-weight: 950;
}

.about-timeline h3 {
    margin-bottom: 10px;
    color: #101a33;
    font-size: 1.25rem;
    font-weight: 950;
}

.about-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.about-topic-grid span {
    padding: 11px 12px;
    border: 1px solid rgba(16, 87, 245, .12);
    border-radius: 13px;
    color: #101a33;
    background: var(--brand-light);
    font-size: .9rem;
    font-weight: 850;
}

.about-internship-card {
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 138, 31, .28), transparent 26%),
        linear-gradient(135deg, #071848, #1057f5);
}

.about-internship-card span,
.about-internship-card h2,
.about-internship-card p {
    color: #fff;
}

/* Footer */
.site-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 138, 31, .20), transparent 25%),
        radial-gradient(circle at 92% 18%, rgba(16, 87, 245, .24), transparent 26%),
        linear-gradient(180deg, #071842, #06112f);
    color: #fff;
    padding: 64px 0 36px;
    margin-top: 3rem;
}

.footer-panel {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    padding: 34px;
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.35fr) repeat(2, minmax(145px, .62fr)) minmax(340px, 1.28fr);
    gap: 34px 42px;
    align-items: start;
}

.footer-brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-brand-head img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .20);
}

.site-footer strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    margin-bottom: 4px;
    line-height: 1.1;
}

.footer-brand-head span {
    color: rgba(255, 255, 255, .62);
    font-size: .82rem;
    font-weight: 750;
}

.footer-brand p {
    max-width: 360px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.footer-cta {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #071842 !important;
    background: #fff;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 16px 36px rgba(255, 255, 255, .12);
}

.footer-cta:hover {
    transform: translateY(-1px);
}

.footer-column {
    display: grid;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: .86rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
    font-weight: 750;
    line-height: 1.5;
}

.footer-column a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.footer-column a i {
    color: #ff8a1f;
    font-size: 1.12rem;
    transition: transform .18s ease;
}

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

.footer-column a:hover i {
    transform: translateX(3px);
}

.footer-contact .footer-contact-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: transparent;
}

.footer-contact-icon i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ff8a1f;
    background: rgba(255, 138, 31, .14);
    font-size: 1.05rem;
}

.footer-contact-text {
    min-width: 0;
    color: rgba(255, 255, 255, .86);
    font-size: .88rem;
    font-weight: 850;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.footer-contact small {
    display: none;
    color: rgba(255, 255, 255, .48);
    font-size: .70rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-contact-text strong {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0;
}

.footer-contact a:hover i {
    transform: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .62);
    font-size: .9rem;
    font-weight: 750;
}

.footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

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

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1030;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff !important;
    font-weight: 950;
    box-shadow: 0 0 0 8px rgba(37, 211, 102, .22), 0 18px 36px rgba(0, 0, 0, .18);
}

/* Learning page */
.curriculum-sidebar {
    max-height: 80vh;
    overflow-y: auto;
}

.lesson-link.active {
    background-color: var(--brand-light);
    border-left: 3px solid var(--brand);
    font-weight: 600;
}

.lesson-link.completed .lesson-check {
    color: #16a34a;
}

/* Admin */
.admin-sidebar {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 138, 31, .18), transparent 26%),
        linear-gradient(180deg, #06163d, #081841);
    color: #d1d5db;
    width: 270px;
    box-shadow: 14px 0 34px rgba(8, 24, 65, .14);
}

.admin-sidebar a {
    color: #d1d5db;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.admin-sidebar .nav-link {
    border-radius: 14px !important;
    font-weight: 750;
}

body.bg-light {
    background: #f4f7fd !important;
}

body.bg-light > .d-flex > .flex-fill > .navbar {
    min-height: 70px;
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(8, 24, 65, .06);
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 8%, rgba(16, 87, 245, .08), transparent 28%),
        linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-content {
    max-width: 1540px;
    margin: 0 auto;
    padding: 28px 30px 44px;
}

.admin-sidebar {
    width: 292px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 138, 31, .22), transparent 25%),
        radial-gradient(circle at 100% 34%, rgba(16, 87, 245, .24), transparent 30%),
        linear-gradient(180deg, #10172f 0%, #071943 100%);
    color: #dce6f7;
    box-shadow: 18px 0 46px rgba(8, 24, 65, .18);
    z-index: 1040;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 22px;
    color: #fff;
    text-decoration: none;
}

.admin-brand:hover {
    color: #fff;
}

.admin-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    font-size: 1.3rem;
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.1;
}

.admin-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .58);
    font-size: .76rem;
    font-weight: 700;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding-right: 3px;
}

.admin-nav-title {
    margin: 18px 10px 7px;
    color: rgba(255, 255, 255, .50);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-nav-link,
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-nav-link i,
.admin-sidebar-footer i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-nav-link:hover,
.admin-nav-link.active,
.admin-sidebar-footer a:hover,
.admin-sidebar-footer a.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 3px 0 0 #ff8a1f;
}

.admin-nav-link:hover {
    transform: translateX(2px);
}

.admin-sidebar-footer {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.admin-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 30px;
    border-bottom: 1px solid rgba(8, 24, 65, .08);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 34px rgba(8, 24, 65, .06);
    z-index: 1030;
}

.admin-topbar-left,
.admin-topbar-actions,
.admin-user-menu,
.admin-preview-link {
    display: flex;
    align-items: center;
}

.admin-topbar-left {
    gap: 14px;
}

.admin-page-label {
    display: block;
    color: var(--brand);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.admin-topbar h5 {
    margin: 2px 0 0;
    color: #101a33;
    font-size: 1.18rem;
    font-weight: 950;
}

.admin-topbar-actions {
    gap: 12px;
}

.admin-preview-link {
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(16, 87, 245, .16);
    border-radius: 999px;
    color: var(--brand);
    background: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 850;
}

.admin-user-menu {
    gap: 9px;
    color: #101a33;
    text-decoration: none;
    font-weight: 850;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 26px rgba(16, 87, 245, .24);
}

.admin-menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-content .card {
    border: 1px solid rgba(8, 24, 65, .08) !important;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .07) !important;
}

.admin-content .card-header {
    border-bottom: 1px solid rgba(8, 24, 65, .08);
    background: linear-gradient(180deg, #f9fbff, #fff) !important;
}

.admin-content .card-body {
    padding: 22px;
}

.admin-content .table-responsive {
    border-radius: 18px;
}

.admin-content .table {
    --bs-table-bg: #fff;
}

.admin-content .table thead th {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(8, 24, 65, .08);
    color: #65718b;
    background: #f8fbff;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-content .table tbody td {
    padding: 16px 18px;
    border-color: rgba(8, 24, 65, .07);
    color: #17213a;
    vertical-align: middle;
}

.admin-content .table tbody tr:hover {
    background: #f8fbff;
}

.admin-content .form-control,
.admin-content .form-select {
    min-height: 44px;
    border-color: rgba(8, 24, 65, .12);
    border-radius: 14px;
    background-color: #fff;
}

.admin-content .form-control-sm,
.admin-content .form-select-sm {
    min-height: 42px;
    border-radius: 14px;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
    border-color: rgba(16, 87, 245, .46);
    box-shadow: 0 0 0 .2rem rgba(16, 87, 245, .10);
}

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

.admin-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 14px 32px rgba(8, 24, 65, .05);
}

.admin-filter-bar .form-control,
.admin-filter-bar .form-select {
    width: auto;
    min-width: 170px;
}

.admin-table-card {
    overflow: hidden;
}

.admin-course-thumb {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef3ff;
}

.admin-course-title {
    display: block;
    color: #101a33;
    font-weight: 900;
    text-decoration: none;
}

.admin-course-title:hover {
    color: var(--brand);
}

.admin-action-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-end;
}

.admin-action-group form {
    margin: 0;
}

.admin-action-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 12px !important;
    border: 1px solid rgba(8, 24, 65, .12);
    color: #596781;
    background: #fff;
}

.admin-action-btn:hover {
    color: var(--brand);
    border-color: rgba(16, 87, 245, .24);
    background: var(--brand-light);
}

.admin-action-btn.danger {
    color: #dc2626;
}

.admin-action-btn.danger:hover {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}

.admin-content .badge {
    border-radius: 999px;
    padding: .48em .72em;
    font-weight: 850;
}

.admin-content .pagination {
    gap: 6px;
}

.admin-content .page-link {
    border: 0;
    border-radius: 11px;
    color: #596781;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(8, 24, 65, .06);
}

.admin-content .page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.admin-content .btn-outline-secondary,
.admin-content .btn-outline-danger {
    border-radius: 12px;
    font-weight: 800;
}

.admin-content .btn-group {
    gap: 7px;
}

.admin-content .btn-group > .btn,
.admin-content .btn-group > form > .btn {
    border-radius: 12px !important;
}

.admin-content .btn-group form {
    margin: 0;
}

.admin-content a:not(.btn):not(.admin-course-title) {
    font-weight: 800;
    text-decoration: none;
}

.admin-content a:not(.btn):not(.admin-course-title):hover {
    text-decoration: underline;
}

.admin-content .row.g-3 > [class*="col-"] > .card,
.admin-content .row.g-3 > [class*="col-"] > form > .card {
    height: 100%;
}

.admin-stat-card {
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.admin-stat-card .card-body {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.admin-stat-card p {
    color: #65718b !important;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-stat-card h3 {
    color: #101a33;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.admin-content h6.fw-bold {
    color: #101a33;
    font-size: 1rem;
    font-weight: 950 !important;
}

.admin-content .form-text {
    color: #7a879d;
    font-weight: 650;
}

.admin-content textarea.form-control {
    min-height: 116px;
}

.admin-content .form-check-input {
    border-color: rgba(8, 24, 65, .22);
}

.admin-content .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.admin-content .dropdown-menu {
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(8, 24, 65, .14);
}

.admin-content .alert,
.admin-main .alert {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(8, 24, 65, .08);
}

.admin-detail-page {
    display: grid;
    gap: 22px;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
}

.student-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 138, 31, .30), transparent 25%),
        linear-gradient(135deg, #071848, #1057f5);
    box-shadow: 0 24px 58px rgba(8, 24, 65, .18);
}

.student-profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.student-avatar-large {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    font-size: 2rem;
    font-weight: 950;
}

.student-profile-kicker {
    display: block;
    color: #ffb15f;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.student-profile-hero h1 {
    margin: 4px 0 10px;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 950;
}

.student-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .10);
    font-size: .88rem;
    font-weight: 750;
}

.student-profile-status {
    min-width: 150px;
    padding: 16px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.student-profile-status small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.student-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -44px;
    padding: 0 22px;
    position: relative;
    z-index: 1;
}

.student-metric-card {
    padding: 18px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px rgba(8, 24, 65, .08);
}

.student-metric-card span {
    display: block;
    color: #65718b;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-metric-card strong {
    display: block;
    margin-top: 8px;
    color: #101a33;
    font-size: 1.32rem;
    font-weight: 950;
}

.student-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.student-card-header h2 {
    margin: 0;
    color: #101a33;
    font-size: 1.08rem;
    font-weight: 950;
}

.student-card-header p {
    margin: 4px 0 0;
    color: #65718b;
    font-size: .9rem;
}

.student-info-card,
.student-section-card {
    overflow: hidden;
}

.student-info-card:before,
.student-section-card:before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.student-info-list {
    display: grid;
    gap: 12px;
}

.student-info-list > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 16px;
    background: #f8fbff;
}

.student-info-list i {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--brand);
    background: var(--brand-light);
}

.student-info-list span {
    color: #65718b;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.student-info-list strong {
    min-width: 0;
    color: #101a33;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.student-enrollment-list {
    display: grid;
    gap: 12px;
}

.student-enrollment-row {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 18px;
    background: #fff;
}

.student-course-thumb {
    width: 84px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef3ff;
}

.student-enrollment-row a {
    display: block;
    color: #101a33;
    font-weight: 900;
    text-decoration: none;
}

.student-enrollment-row a:hover {
    color: var(--brand);
}

.student-enrollment-row span {
    display: block;
    margin-top: 4px;
    color: #65718b;
    font-size: .86rem;
    font-weight: 750;
}

.student-enrollment-row time {
    color: #65718b;
    font-size: .86rem;
    font-weight: 850;
    white-space: nowrap;
}

.admin-empty-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed rgba(16, 87, 245, .25);
    border-radius: 16px;
    color: #65718b;
    background: #f8fbff;
    font-weight: 800;
}

.admin-empty-inline i {
    color: var(--brand);
}

.student-order-table td:first-child a {
    color: var(--brand);
    font-weight: 950;
}

.curriculum-admin-page {
    max-width: 1180px;
    margin: 0 auto;
}

.curriculum-admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 28px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 138, 31, .28), transparent 28%),
        linear-gradient(135deg, #071848, #1057f5);
    box-shadow: 0 22px 48px rgba(8, 24, 65, .16);
}

.curriculum-admin-hero h1 {
    margin: 4px 0 10px;
    font-size: clamp(1.55rem, 2.6vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0;
}

.curriculum-admin-hero p {
    margin: 0;
    max-width: 660px;
    color: rgba(255, 255, 255, .82);
}

.curriculum-back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    font-weight: 750;
    margin-bottom: 18px;
}

.curriculum-kicker,
.modal-kicker {
    margin: 0;
    color: #ff8a1f;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.curriculum-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.curriculum-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: -24px 24px 26px;
    position: relative;
    z-index: 1;
}

.curriculum-stats > div {
    padding: 18px 20px;
    border: 1px solid rgba(16, 87, 245, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px rgba(8, 24, 65, .08);
}

.curriculum-stats span {
    display: block;
    color: #081841;
    font-size: 1.35rem;
    font-weight: 900;
}

.curriculum-stats small {
    color: var(--muted);
    font-weight: 750;
}

.curriculum-empty-state {
    text-align: center;
    padding: 54px 24px;
    border: 1px dashed rgba(16, 87, 245, .28);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.curriculum-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--brand);
    background: var(--brand-light);
    font-size: 2rem;
}

.curriculum-empty-state h3 {
    font-weight: 900;
    color: #081841;
}

.curriculum-empty-state p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--muted);
}

.curriculum-section-list {
    display: grid;
    gap: 18px;
}

.curriculum-section-card {
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(8, 24, 65, .07);
    overflow: hidden;
}

.curriculum-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid rgba(8, 24, 65, .08);
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.curriculum-section-number {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.curriculum-section-head h2 {
    margin: 0 0 4px;
    color: #081841;
    font-size: 1.15rem;
    font-weight: 900;
}

.curriculum-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.curriculum-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-icon-soft,
.btn-icon-danger {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(8, 24, 65, .10);
    background: #fff;
    color: #334155;
}

.btn-icon-soft:hover {
    color: var(--brand);
    border-color: rgba(16, 87, 245, .22);
    background: var(--brand-light);
}

.btn-icon-danger {
    color: #dc2626;
}

.btn-icon-danger:hover {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}

.curriculum-no-lessons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px;
    padding: 16px;
    border-radius: 14px;
    color: var(--muted);
    background: #f8fafc;
}

.curriculum-lesson-list {
    display: grid;
}

.curriculum-lesson-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(8, 24, 65, .07);
}

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

.curriculum-lesson-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.curriculum-lesson-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--brand);
    background: var(--brand-light);
}

.curriculum-lesson-main h3 {
    margin: 0 0 5px;
    color: #081841;
    font-size: .98rem;
    font-weight: 850;
}

.curriculum-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.curriculum-lesson-meta span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    vertical-align: middle;
}

.curriculum-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(8, 24, 65, .24);
}

.curriculum-modal .modal-header {
    align-items: flex-start;
    padding: 22px 24px;
    background: #f8fbff;
}

.curriculum-modal .modal-title {
    color: #081841;
    font-weight: 900;
}

.curriculum-modal .modal-body,
.curriculum-modal .modal-footer {
    padding: 22px 24px;
}

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

.curriculum-field-wide {
    grid-column: 1 / -1;
}

.curriculum-preview-switch {
    padding: 14px 14px 14px 48px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 14px;
    background: #f8fafc;
}

@media (max-width: 767.98px) {
    .hero-section { padding: 3rem 0 2.5rem; }
    .site-topbar .container,
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        padding: 14px 0;
        min-height: auto;
    }

    .site-menu {
        gap: 6px;
        padding: 6px;
        border-radius: 18px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
    }

    .site-menu a {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 12px;
    }

    .site-actions {
        width: 100%;
        justify-content: space-between;
    }

    .site-logo img {
        width: 72px;
        height: 72px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-panel {
        padding: 24px;
        border-radius: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar { position: fixed; z-index: 1045; left: -292px; transition: left .2s ease; }
    .admin-sidebar.show { left: 0; }

    .admin-topbar {
        padding: 12px 16px;
    }

    .admin-preview-link span,
    .admin-user-menu > span:not(.admin-user-avatar) {
        display: none;
    }

    .admin-content {
        padding: 18px 14px 34px;
    }

    .admin-toolbar,
    .admin-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-bar .form-control,
    .admin-filter-bar .form-select,
    .admin-toolbar .btn {
        width: 100%;
    }

    .admin-content .table thead th,
    .admin-content .table tbody td {
        padding: 13px 14px;
    }

    .student-profile-hero,
    .student-profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-profile-status {
        width: 100%;
        text-align: left;
    }

    .student-metric-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding: 0;
    }

    .student-enrollment-row {
        grid-template-columns: 72px 1fr;
    }

    .student-course-thumb {
        width: 72px;
        height: 54px;
    }

    .student-enrollment-row time {
        grid-column: 2;
    }

    .about-timeline article {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .about-nexo-split {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .about-topic-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-admin-hero,
    .curriculum-section-head,
    .curriculum-lesson-row {
        flex-direction: column;
        align-items: stretch;
    }

    .curriculum-hero-actions,
    .curriculum-actions {
        justify-content: flex-start;
    }

    .curriculum-stats {
        grid-template-columns: 1fr;
        margin: 14px 0 22px;
    }

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

/* Course editor */
.admin-course-form {
    display: block;
}

.admin-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(8, 24, 65, .06);
}

.admin-editor-toolbar h4 {
    margin: 2px 0 0;
    color: #101a33;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.35;
}

.admin-editor-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-editor-card {
    overflow: hidden;
}

.admin-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-card-heading.compact {
    margin-bottom: 14px;
}

.admin-card-heading h6 {
    margin: 0;
    color: #101a33;
    font-size: 1rem;
    font-weight: 950;
}

.admin-card-heading p {
    margin: 4px 0 0;
    color: #7a879d;
    font-size: .84rem;
    font-weight: 650;
}

.admin-editor-summary {
    position: sticky;
    top: 96px;
}

.admin-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(8, 24, 65, .08);
}

.admin-toggle-row strong,
.admin-toggle-row span {
    display: block;
}

.admin-toggle-row strong {
    color: #17213a;
    font-size: .9rem;
    font-weight: 900;
}

.admin-toggle-row span {
    color: #7a879d;
    font-size: .78rem;
    font-weight: 650;
}

.admin-content .form-switch .form-check-input {
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.admin-thumbnail-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(8, 24, 65, .1);
    border-radius: 16px;
    background: #f6f8fc;
}

.admin-thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-thumbnail-preview.is-empty {
    gap: 8px;
    color: #7a879d;
    font-size: .86rem;
    font-weight: 750;
}

.admin-thumbnail-preview.is-empty i {
    display: block;
    color: #a3aec0;
    font-size: 2rem;
}

.admin-submit-btn {
    min-height: 48px;
}

@media (max-width: 991.98px) {
    .admin-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-editor-actions {
        width: 100%;
    }

    .admin-editor-actions .btn,
    .admin-submit-btn {
        flex: 1 1 auto;
    }

    .admin-editor-summary {
        position: static;
    }
}

.course-card-minimal {
    display: grid;
    grid-template-rows: 260px 1fr;
}

.course-card-minimal .thumb-wrap {
    aspect-ratio: auto;
    height: 260px;
}

.course-card-minimal .p-4 {
    display: grid !important;
    grid-template-rows: auto auto auto 1fr;
}

.course-card-minimal h5 {
    min-height: 72px;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-minimal p {
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-minimal .d-flex.gap-2.mt-auto {
    align-self: end;
}

@media (max-width: 767.98px) {
    .course-card-minimal {
        grid-template-rows: 220px 1fr;
    }

    .course-card-minimal .thumb-wrap {
        height: 220px;
    }

    .course-card-minimal h5,
    .course-card-minimal p {
        min-height: auto;
    }
}
.site-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(8, 24, 65, .08);
}

.site-mobile-panel {
    display: contents;
}

@media (max-width: 767.98px) {
    .site-topbar {
        display: none;
    }

    .site-nav {
        min-height: auto;
        padding: 10px 0;
        display: grid;
        grid-template-columns: auto 46px;
        gap: 10px;
        align-items: center;
    }

    .site-menu-toggle {
        display: inline-grid;
        place-items: center;
        justify-self: end;
    }

    .site-logo img {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .site-mobile-panel {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding: 10px;
        border: 1px solid rgba(19, 32, 58, .08);
        border-radius: 18px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 16px 34px rgba(8, 24, 65, .10);
    }

    .site-mobile-panel.is-open {
        display: grid;
        gap: 12px;
    }

    .site-menu {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .site-menu a {
        padding: 12px 14px;
        font-size: 13px;
        background: #f7faff;
    }

    .site-menu a:after {
        display: none;
    }

    .site-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 54px;
        gap: 10px;
        align-items: center;
    }

    .site-actions .dropdown {
        grid-column: 1 / -1;
    }

    .site-cta {
        min-height: 52px;
        padding: 0 16px;
        font-size: 14px;
    }

    .support-avatar {
        width: 54px;
        height: 54px;
    }
}
.enrollment-card-top {
    margin-top: -18px;
}

.enrollment-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 22px;
    align-items: center;
}

.enrollment-top-action .btn {
    min-height: 58px;
}

.enrollment-features-inline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 0;
}

.enrollment-features-inline li {
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7faff;
    border: 1px solid rgba(16, 87, 245, .08);
}

@media (max-width: 991.98px) {
    .enrollment-card-top {
        margin-top: 0;
    }

    .enrollment-top-grid,
    .enrollment-features-inline {
        grid-template-columns: 1fr;
    }
}
/* Inner page mobile header spacing - match homepage gutters */
@media (max-width: 767.98px) {
    .site-header .site-nav {
        width: min(100% - 32px, 540px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 0;
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    .site-logo {
        min-width: 0;
    }

    .site-menu-toggle {
        margin: 0;
    }

    .site-mobile-panel {
        box-sizing: border-box;
    }
}
/* Blog */
.blog-hero,
.blog-detail-hero {
    margin-bottom: 34px;
}

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

.blog-card {
    display: grid;
    grid-template-rows: 240px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 58px rgba(8, 24, 65, .13);
}

.blog-card-media {
    display: block;
    overflow: hidden;
    background:
        linear-gradient(rgba(16, 87, 245, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 87, 245, .08) 1px, transparent 1px),
        var(--brand-light);
    background-size: 28px 28px;
}

.blog-card-media img,
.blog-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    padding: 24px;
}

.blog-card time,
.blog-detail time {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 0;
    font-size: 1.24rem;
    font-weight: 950;
    line-height: 1.25;
}

.blog-card h2 a {
    color: var(--ink);
}

.blog-card h2 a:hover,
.blog-read-link:hover,
.blog-back-link:hover {
    color: var(--brand);
}

.blog-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.blog-read-link,
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    color: var(--brand);
    font-weight: 900;
}

.blog-empty-state {
    max-width: 720px;
    margin: 0 auto;
}

.blog-empty-state i {
    display: block;
    color: var(--brand);
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.blog-empty-state h2 {
    color: var(--ink);
    font-weight: 950;
}

.blog-detail-hero h1 {
    max-width: 980px;
}

.blog-detail-image {
    aspect-ratio: 16 / 8;
    height: auto;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 56px rgba(8, 24, 65, .14);
    margin-bottom: 28px;
}

.blog-content-panel {
    max-width: 920px;
    margin: 0 auto;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .08);
}

.blog-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--ink);
    font-weight: 950;
    line-height: 1.2;
    margin: 1.6em 0 .6em;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content figure {
    margin-bottom: 1.15rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.blog-content a {
    color: var(--brand);
    font-weight: 800;
}

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

@media (max-width: 767.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        grid-template-rows: 220px 1fr;
    }

    .blog-content-panel {
        padding: 24px;
    }

    .blog-detail-image {
        aspect-ratio: 16 / 10;
        border-radius: 20px;
    }
}

/* Blog detail sidebar layout */
.blog-detail-layout {
    align-items: flex-start;
}

.blog-main-column {
    order: 1;
}

.blog-sidebar-column {
    order: 2;
}

.blog-sidebar-stack {
    position: sticky;
    top: 132px;
    display: grid;
    gap: 22px;
}

.blog-mobile-enquiry-link {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 30px rgba(16, 87, 245, .22);
    font-weight: 950;
}

.blog-enquiry-card,
.blog-recent-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .09);
}

.blog-enquiry-card {
    padding: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 138, 31, .36), transparent 30%),
        linear-gradient(145deg, #071842 0%, #1057f5 100%);
}

.blog-enquiry-card > span,
.blog-recent-card > span {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-enquiry-card > span {
    color: #ffbf7f;
}

.blog-enquiry-card h2,
.blog-recent-card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.2;
}

.blog-enquiry-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.blog-enquiry-form {
    display: grid;
    gap: 12px;
}

.blog-enquiry-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.blog-enquiry-form label span {
    color: rgba(255, 255, 255, .82);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-enquiry-form input,
.blog-enquiry-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    padding: 0 14px;
    color: #13203a;
    background: rgba(255, 255, 255, .96);
    font: inherit;
    font-weight: 750;
}

.blog-enquiry-form textarea {
    min-height: 90px;
    padding-top: 12px;
    resize: vertical;
}

.blog-enquiry-form input.is-invalid,
.blog-enquiry-form textarea.is-invalid {
    border-color: #ffb4b4;
    box-shadow: 0 0 0 .18rem rgba(255, 180, 180, .22);
}

.blog-enquiry-form button,
.blog-call-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    font-weight: 950;
}

.blog-enquiry-form button {
    color: #071842;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .15);
}

.blog-call-action {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .10);
}

.blog-call-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.blog-form-result {
    min-height: 20px;
    color: rgba(255, 255, 255, .84);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.45;
}

.blog-form-result.success {
    color: #c7ffd6;
}

.blog-form-result.error {
    color: #ffd0d0;
}

.blog-recent-card {
    padding: 22px;
}

.blog-recent-card > span {
    color: var(--brand);
}

.blog-recent-card h2 {
    color: var(--ink);
}

.blog-recent-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.blog-recent-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(16, 87, 245, .08);
    border-radius: 16px;
    color: var(--ink);
    background: #f8fbff;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.blog-recent-item:hover {
    color: var(--brand);
    border-color: rgba(16, 87, 245, .22);
    background: #fff;
    transform: translateY(-2px);
}

.blog-recent-item img {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 13px;
    background: var(--brand-light);
}

.blog-recent-item span,
.blog-recent-item strong,
.blog-recent-item time {
    min-width: 0;
    display: block;
}

.blog-recent-item time {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.blog-recent-item strong {
    color: inherit;
    font-size: .92rem;
    font-weight: 950;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .blog-mobile-enquiry-link {
        display: inline-flex;
        width: 100%;
    }

    .blog-main-column {
        order: 2;
        width: 100%;
    }

    .blog-sidebar-column {
        order: 1;
        width: 100%;
    }

    .blog-sidebar-stack {
        position: static;
    }

    .blog-recent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .blog-enquiry-card,
    .blog-recent-card {
        border-radius: 18px;
    }

    .blog-enquiry-card,
    .blog-recent-card,
    .blog-content-panel {
        padding: 20px;
    }

    .blog-recent-list {
        grid-template-columns: 1fr;
    }
}

/* Blog course CTAs */
.blog-course-card {
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(8, 24, 65, .08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 138, 31, .14), transparent 28%),
        #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 65, .09);
}

.blog-course-card > span,
.blog-inline-courses > span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-course-card h2,
.blog-inline-courses h2 {
    margin: 0 0 16px;
    color: #263654;
    font-size: 1.28rem;
    font-weight: 850;
    line-height: 1.25;
}

.blog-course-list {
    display: grid;
    gap: 11px;
}

.blog-course-item {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(16, 87, 245, .10);
    border-radius: 16px;
    color: var(--ink);
    background: #f8fbff;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.blog-course-item:hover {
    color: var(--ink);
    border-color: rgba(16, 87, 245, .26);
    background: #fff;
    transform: translateY(-2px);
}

.blog-course-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 13px;
    background: var(--brand-light);
}

.blog-course-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.blog-course-item strong {
    color: #263654;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-course-item small {
    color: var(--muted);
    font-weight: 800;
}

.blog-course-item em,
.blog-course-all {
    color: var(--brand);
    font-style: normal;
    font-weight: 900;
}

.blog-course-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 87, 245, .20);
    background: #fff;
}

.blog-course-all:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.blog-inline-courses {
    margin-top: 30px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(16, 87, 245, .12);
    background:
        linear-gradient(rgba(16, 87, 245, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 87, 245, .045) 1px, transparent 1px),
        #f8fbff;
    background-size: 28px 28px;
}

.blog-inline-courses > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.blog-inline-courses a {
    display: grid;
    gap: 7px;
    min-height: 104px;
    padding: 16px;
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(8, 24, 65, .08);
    box-shadow: 0 12px 28px rgba(8, 24, 65, .06);
}

.blog-inline-courses a:hover {
    color: var(--brand);
}

.blog-inline-courses strong {
    font-weight: 950;
    line-height: 1.28;
}

.blog-inline-courses small {
    color: var(--brand);
    font-weight: 950;
}

@media (max-width: 767.98px) {
    .blog-course-card,
    .blog-inline-courses {
        border-radius: 18px;
        padding: 20px;
    }

    .blog-inline-courses > div {
        grid-template-columns: 1fr;
    }
}
