:root {
    --bg: #fbfaf7;
    --panel: #ffffff;
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --accent: #0f766e;
    --gold: #f59e0b;
    --shadow: 0 18px 48px rgba(16, 24, 40, .10);
    --soft-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, .12), transparent 34rem),
        linear-gradient(180deg, #fff, var(--bg));
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228, 231, 236, .8);
}
.notice-ticker {
    overflow: hidden;
    background: #111827;
    color: #fff7ed;
    font-weight: 800;
    font-size: .88rem;
    padding: 9px 0;
}
.notice-ticker span {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    white-space: nowrap;
    animation: ticker 18s linear infinite;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.brand, .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}
.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, .24);
}
.desktop-nav { display: none; align-items: center; gap: 20px; color: var(--muted); font-weight: 700; }
.desktop-nav .js-login-open {
    color: #111827;
    font-weight: 950;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}
.nav-pill, .btn, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
}
.nav-pill, .btn { background: var(--ink); color: #fff; }
.btn { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-secondary { background: #ecfdf3; color: #027a48; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 42px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.4rem); line-height: 1.1; }
.section-title p { margin: 6px 0 0; color: var(--muted); }

.hero {
    position: relative;
    overflow: hidden;
    background: #18181b;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 24, 27, .92), rgba(24, 24, 27, .68)),
        var(--hero-bg, url("../img/course-placeholder.svg")) center/cover no-repeat;
}
.hero-inner {
    position: relative;
    min-height: 74vh;
    display: grid;
    align-content: center;
    padding: 56px 0 82px;
}
.hero-card {
    width: min(520px, 100%);
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    box-shadow: var(--soft-shadow);
}
.eyebrow { color: #fed7aa; font-weight: 900; text-transform: uppercase; font-size: .78rem; }
.hero h1 { margin: 12px 0; font-size: clamp(2.45rem, 11vw, 5.4rem); line-height: .98; letter-spacing: 0; max-width: 800px; }
.hero p { color: #f2f4f7; font-size: 1.05rem; max-width: 620px; }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; max-width: 430px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; max-width: 560px; }
.stat { padding: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 8px; }
.stat strong { display: block; font-size: 1.2rem; }
.stat span { color: #f2f4f7; font-size: .82rem; }

.grid { display: grid; gap: 16px; }
.course-grid { grid-template-columns: 1fr; }
.course-card, .feature-card, .faq-item, .panel, .auth-card, .admin-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.course-card, .auth-card, .panel {
    box-shadow: var(--soft-shadow);
}
.course-card { overflow: hidden; }
.course-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #111827; }
.course-body { padding: 16px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: .78rem; font-weight: 900; }
.course-body h3 { margin: 10px 0 6px; font-size: 1.18rem; }
.muted { color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.price { font-size: 1.55rem; font-weight: 900; color: var(--primary-dark); }
.features { grid-template-columns: 1fr; }
.feature-card { padding: 18px; }
.feature-card strong { display: block; margin-bottom: 6px; }
.certificate-band {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7ed, #ecfdf3);
    border: 1px solid #fed7aa;
}
.certificate-preview {
    min-height: 190px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 8px solid #f59e0b;
    background: #fff;
    padding: 22px;
    box-shadow: var(--shadow);
}
.faq-item { padding: 16px; }
.faq-item summary { cursor: pointer; font-weight: 900; }
.contact-strip {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 8px;
    background: #101828;
    color: #fff;
}
.mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(16, 24, 40, .96);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.mobile-bottom-nav a { padding: 10px 4px; text-align: center; font-size: .78rem; font-weight: 800; }
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 78px;
    z-index: 31;
    background: #16a34a;
    color: #fff;
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: var(--shadow);
}
.flash {
    width: min(960px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}
.flash.error { background: #fef3f2; color: #b42318; border-color: #fecdca; }

.auth-wrap { min-height: 78vh; display: grid; place-items: center; padding: 32px 16px 80px; }
.auth-wrap.student-auth {
    background:
        linear-gradient(135deg, rgba(220, 38, 38, .90), rgba(15, 118, 110, .84)),
        url("../img/course-placeholder.svg") center/cover no-repeat;
}
.auth-card { width: min(430px, 100%); padding: 22px; }
.student-auth .auth-card {
    border: 0;
    padding: 26px;
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.login-symbol {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(10px);
}
.login-modal.is-open,
.login-modal:target {
    display: grid;
}
.login-modal-card {
    position: relative;
    width: min(410px, 100%);
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}
.login-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 900;
}
.login-modal-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 8px;
}
.login-modal-actions a {
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #111827;
    font-size: .82rem;
    font-weight: 950;
}
.form-grid { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 800; font-size: .9rem; }
.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }

.dashboard { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar {
    background: #101828;
    color: #fff;
    padding: 18px;
}
.sidebar nav { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; }
.sidebar nav a { white-space: nowrap; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.08); font-weight: 800; }
.dashboard-main { padding: 20px 16px 90px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.admin-card, .panel { padding: 16px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-course-name {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}
.video-shell {
    position: relative;
    background: #060b14;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.video-box { aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 8px; overflow: hidden; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; }
.video-watermark {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    color: rgba(255,255,255,.72);
    background: rgba(0,0,0,.42);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .78rem;
    font-weight: 900;
}
.secure-note {
    padding: 10px 12px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-weight: 800;
    font-size: .9rem;
}
.lesson-list { display: grid; gap: 10px; }
.lesson-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.progress-bar { height: 10px; background: #f2f4f7; border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.certificate-page { padding: 24px; background: #f8fafc; min-height: 88vh; }
.certificate-full {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 42px 24px;
    text-align: center;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #dc2626, #f59e0b, #0f766e) border-box;
    border: 12px solid transparent;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}
.certificate-seal {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    font-weight: 900;
    border: 6px solid #fff7ed;
}
.certificate-full h1 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--primary-dark); }
.marathi-name { font-size: clamp(1.7rem, 5vw, 2.7rem); color: #0f172a; }
.certificate-meta {
    display: grid;
    gap: 10px;
    margin: 22px auto;
    max-width: 620px;
}
.certificate-meta div { padding: 12px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--line); }

.certificate-page {
    padding: 24px;
    background: #eef3fb;
    min-height: 88vh;
    overflow-x: auto;
}
.certificate-full {
    position: relative;
    isolation: isolate;
    width: min(1240px, 100%);
    min-height: 870px;
    margin: 0 auto;
    padding: 58px 78px 42px;
    overflow: hidden;
    text-align: center;
    color: #061126;
    background:
        radial-gradient(circle at 50% 48%, rgba(244, 246, 249, .94), rgba(255,255,255,.98) 62%),
        repeating-radial-gradient(circle at 50% 48%, rgba(15, 23, 42, .035) 0 1px, transparent 1px 18px),
        #fff;
    border: 10px solid #071a37;
    outline: 3px solid #d9971e;
    outline-offset: -20px;
    border-radius: 0;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .16);
}
.certificate-full::before,
.certificate-full::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 1050px;
    border: 30px solid #e79c22;
    border-radius: 50%;
    pointer-events: none;
}
.certificate-full::before {
    left: -260px;
    top: -330px;
    border-right-color: transparent;
    transform: rotate(30deg);
    box-shadow: -55px 0 0 #061a38;
}
.certificate-full::after {
    right: -270px;
    bottom: -380px;
    border-left-color: transparent;
    transform: rotate(28deg);
    box-shadow: 55px 0 0 #061a38;
}
.cert-top-meta {
    position: absolute;
    top: 64px;
    right: 92px;
    display: grid;
    gap: 5px;
    width: 250px;
    text-align: center;
}
.cert-top-meta span {
    color: #172033;
    font-size: 1rem;
}
.cert-top-meta strong {
    color: #6b1b75;
    font-size: .98rem;
    overflow-wrap: anywhere;
}
.cert-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.cert-brand h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    background: linear-gradient(90deg, #061a38 0 42%, #f5a313 43% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cert-brand p {
    margin: 4px 0 0;
    color: #172033;
    font-weight: 900;
}
.cert-cap {
    display: grid;
    place-items: center;
    width: 64px;
    height: 44px;
    color: #f5a313;
    background: #061a38;
    transform: skew(-18deg);
}
.certificate-full h1 {
    margin: 10px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.6rem);
    letter-spacing: .08em;
    color: #061126;
}
.certificate-full h3 {
    margin: -4px 0 22px;
    letter-spacing: .34em;
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 600;
}
.cert-small,
.cert-copy {
    margin: 10px auto;
    max-width: 720px;
    color: #172033;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
}
.marathi-name {
    margin: 14px auto 8px;
    max-width: 720px;
    border-bottom: 2px solid #dfa13a;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 700;
    color: #061126;
}
.cert-course-name {
    margin: 8px auto;
    max-width: 760px;
    color: #6b1b75;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.certificate-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(700px, 66%);
    margin: 38px auto 24px;
}
.certificate-meta div {
    display: grid;
    gap: 6px;
    padding: 0 18px;
    border: 0;
    border-right: 2px solid #dfa13a;
    border-radius: 0;
    background: transparent;
}
.certificate-meta div:last-child {
    border-right: 0;
}
.certificate-meta span {
    color: #172033;
    font-size: .78rem;
    font-weight: 950;
}
.certificate-meta strong {
    color: #061126;
    font-size: .92rem;
}
.cert-seal-main,
.cert-shield,
.cert-verify {
    position: absolute;
}
.cert-seal-main {
    left: 58px;
    top: 250px;
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    border: 12px solid #e1a331;
    border-radius: 50%;
    background: #061a38;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}
.cert-seal-main::after {
    content: "";
    position: absolute;
    left: 42px;
    bottom: -74px;
    width: 36px;
    height: 86px;
    background: #d99a25;
    transform: rotate(16deg);
    z-index: -1;
}
.cert-seal-main strong {
    font-size: 1.2rem;
    line-height: 1.35;
}
.cert-shield {
    right: 92px;
    top: 330px;
    display: grid;
    place-items: center;
    width: 150px;
    min-height: 170px;
    padding: 22px 18px;
    clip-path: polygon(50% 0, 94% 18%, 86% 76%, 50% 100%, 14% 76%, 6% 18%);
    background: linear-gradient(160deg, #061a38, #102b57);
    color: #fff;
    border: 6px solid #d99a25;
    font-weight: 900;
    line-height: 1.35;
}
.cert-signature {
    display: grid;
    gap: 4px;
    width: 260px;
    margin: 16px auto 0;
    padding-top: 16px;
    border-top: 2px solid #dfa13a;
}
.cert-signature strong {
    color: #061126;
    font-size: 1.1rem;
}
.cert-signature span {
    color: #6b1b75;
    font-weight: 900;
}
.cert-verify {
    right: 150px;
    bottom: 54px;
    display: grid;
    gap: 8px;
    justify-items: center;
}
.cert-verify span {
    width: 98px;
    height: 98px;
    background:
        linear-gradient(90deg, #061126 12px, transparent 12px 20px, #061126 20px 30px, transparent 30px),
        linear-gradient(#061126 12px, transparent 12px 20px, #061126 20px 30px, transparent 30px),
        #fff;
    border: 8px solid #fff;
    outline: 3px solid #061126;
}
.cert-verify p {
    margin: 0;
    color: #061126;
    font-weight: 800;
    line-height: 1.15;
    max-width: 240px;
    overflow-wrap: anywhere;
}
.cert-download {
    margin: 26px 0 0;
}

.slider-list { display: grid; gap: 12px; }
.slider-item {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.slider-thumb { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 8px; background: #111827; }

.home-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .18);
}
.home-slider-track {
    position: relative;
    aspect-ratio: 2 / 1;
    min-height: 220px;
}
.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .65s ease;
    pointer-events: none;
}
.home-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .36), rgba(15, 23, 42, .08));
}
.home-slide-content {
    position: absolute;
    left: clamp(18px, 5vw, 64px);
    bottom: clamp(22px, 6vw, 72px);
    z-index: 2;
    width: min(520px, calc(100% - 36px));
    color: #fff;
}
.home-slide-content h3 {
    margin: 10px 0 8px;
    font-size: clamp(1.5rem, 5vw, 3.2rem);
    line-height: 1.05;
}
.home-slide-content p {
    margin: 0 0 16px;
    color: rgba(255,255,255,.84);
}
.home-slide-content .btn {
    width: auto;
    min-width: 150px;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #111827;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}
.slider-dots button.is-active {
    width: 28px;
    background: #fff;
}

.site-footer {
    margin-top: 40px;
    padding: 54px 0 22px;
    background: #101827;
    color: #dbeafe;
}
.site-footer .brand {
    color: #fff;
}
.footer-grid {
    display: grid;
    gap: 28px;
}
.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1rem;
}
.site-footer p {
    margin: 0 0 10px;
    color: #b6c2d6;
}
.site-footer a {
    color: #e0f2fe;
}
.footer-brand p {
    max-width: 340px;
    margin-top: 14px;
}
.footer-admin-link {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    font-weight: 800;
}
.site-footer .footer-grid > div:last-child {
    display: grid;
    align-content: start;
    gap: 9px;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #93a4bc;
    font-size: .9rem;
}

.student-app-body {
    background:
        linear-gradient(135deg, rgba(225, 29, 72, .06), rgba(37, 99, 235, .06)),
        #f6f8fb;
}
.student-app-header {
    position: sticky;
    top: 10px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 24px));
    margin: 10px auto 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}
.student-top-nav {
    display: none;
    align-items: center;
    gap: 10px;
}
.student-top-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 850;
}
.student-app-main {
    padding-bottom: 88px;
}
.student-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 18px;
    overflow: hidden;
    background: #101827;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.student-bottom-nav a {
    padding: 12px 4px;
    text-align: center;
    font-size: .78rem;
    font-weight: 900;
}

.promo-popup {
    position: fixed;
    z-index: 90;
    max-width: 100vw;
}
.promo-popup.is-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.promo-popup-center {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(8px);
}
.promo-popup-bottom {
    right: 18px;
    bottom: 84px;
    width: min(390px, calc(100% - 36px));
}
.promo-popup-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-rows: minmax(0, auto) auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}
.promo-popup-bottom .promo-popup-card {
    width: 100%;
    max-height: 340px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}
.promo-popup-close {
    position: absolute;
    right: -12px;
    top: -12px;
    z-index: 9999;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 950;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.promo-popup-center .promo-popup-close {
    position: fixed;
    right: 18px;
    top: 18px;
}
.promo-popup-media {
    position: relative;
    background: #050816;
    display: grid;
    place-items: center;
    max-height: min(62vh, 520px);
}
.promo-popup-play {
    position: absolute;
    inset: auto 18px 18px 18px;
    z-index: 4;
    display: none;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
    cursor: pointer;
    touch-action: manipulation;
}
.promo-popup-play.is-visible {
    display: block;
}
.promo-popup-media video,
.promo-popup-media img {
    width: 100%;
    max-height: min(62vh, 520px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #050816;
}
.promo-popup-body {
    padding: 18px;
    background: #fff;
}
.promo-popup-body h3 {
    margin: 10px 0 6px;
    font-size: 1.35rem;
}

.promo-popup-bottom .promo-popup-body {
    padding: 14px;
}
.promo-popup-bottom .promo-popup-body h3 {
    font-size: 1.05rem;
}
.promo-popup-bottom .promo-popup-body p {
    font-size: .9rem;
}
.promo-popup-bottom .promo-popup-body .btn {
    min-height: 40px;
}
.promo-popup-dismiss {
    display: none;
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}
.promo-popup-bottom .promo-popup-media,
.promo-popup-bottom .promo-popup-media video,
.promo-popup-bottom .promo-popup-media img {
    max-height: 145px;
}
    .promo-popup-body p {
    margin: 0 0 14px;
    color: var(--muted);
}

@media (max-width: 719px) {
    .promo-popup-center {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 12px 12px calc(76px + env(safe-area-inset-bottom));
    }
    .promo-popup-center .promo-popup-card {
        width: 100%;
        max-height: min(76vh, 520px);
        border-radius: 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .promo-popup.promo-popup-bottom {
        position: fixed;
        inset: auto 12px calc(76px + env(safe-area-inset-bottom)) 12px;
        display: block;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
    }
    .promo-popup-bottom {
        right: 12px;
        left: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        width: auto;
    }
    .promo-popup-bottom .promo-popup-card {
        width: 100%;
        max-height: 154px;
        display: grid;
        grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
        grid-template-rows: 1fr;
        border-radius: 16px;
    }
    .promo-popup-bottom .promo-popup-media,
    .promo-popup-bottom .promo-popup-media video,
    .promo-popup-bottom .promo-popup-media img {
        width: 100%;
        height: 154px;
        max-height: 154px;
        aspect-ratio: auto;
        object-fit: contain;
    }
    .promo-popup-play {
        inset: auto 8px 8px 8px;
        min-height: 34px;
        border-radius: 10px;
        font-size: .78rem;
    }
    .promo-popup-bottom .promo-popup-body {
        min-width: 0;
        padding: 10px 12px 10px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
    .promo-popup-bottom .promo-popup-body .badge {
        max-width: calc(100% - 38px);
        padding: 6px 10px;
        font-size: .72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .promo-popup-bottom .promo-popup-body h3 {
        margin: 0;
        font-size: .94rem;
        line-height: 1.15;
    }
    .promo-popup-bottom .promo-popup-body p {
        display: none;
    }
    .promo-popup-bottom .promo-popup-body .btn {
        min-height: 30px;
        padding: 8px 10px;
        font-size: .8rem;
    }
    .promo-popup-dismiss {
        display: grid;
        place-items: center;
        min-height: 30px;
        margin-top: 0;
        padding: 6px 10px;
        font-size: .8rem;
    }
    .promo-popup-close {
        position: fixed;
        right: 14px;
        bottom: calc(236px + env(safe-area-inset-bottom));
        top: auto;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    .promo-popup-center .promo-popup-close {
        right: 14px;
        bottom: calc(78vh + env(safe-area-inset-bottom));
        top: auto;
    }
}

@media (min-width: 720px) {
    .desktop-nav { display: flex; }
    .hero-actions { grid-template-columns: 1fr 1fr; }
    .course-grid { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(3, 1fr); }
    .certificate-band, .contact-strip { grid-template-columns: 1.1fr .9fr; }
    .mobile-bottom-nav { display: none; }
    .whatsapp-float { bottom: 20px; }
    .dashboard { grid-template-columns: 260px 1fr; }
    .sidebar nav { display: grid; overflow: visible; }
    .dashboard-main { padding: 28px; }
    .admin-grid { grid-template-columns: repeat(4, 1fr); }
    .slider-item { grid-template-columns: 180px 1fr auto; }
    .footer-grid { grid-template-columns: 1.35fr 1fr 1fr .8fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .student-top-nav { display: flex; }
    .student-bottom-nav { display: none; }
}

/* Fresh 2026 UI refresh */
:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe3ee;
    --primary: #e11d48;
    --primary-dark: #9f1239;
    --accent: #2563eb;
    --gold: #f59e0b;
    --green: #059669;
}

body {
    background:
        linear-gradient(120deg, rgba(225, 29, 72, .06), transparent 28%),
        linear-gradient(240deg, rgba(37, 99, 235, .08), transparent 32%),
        #f6f8fb;
}

.site-header {
    top: 10px;
    width: min(1180px, calc(100% - 24px));
    margin: 10px auto 0;
    border: 1px solid rgba(219, 227, 238, .9);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.brand-mark, .login-symbol {
    border-radius: 12px;
    background: linear-gradient(135deg, #e11d48, #f97316 55%, #2563eb);
}

.nav-pill {
    border-radius: 12px;
    background: #172033;
}

.btn, .btn-secondary, .btn-ghost {
    border-radius: 12px;
    min-height: 48px;
}

.btn {
    background: linear-gradient(135deg, #e11d48, #9f1239);
    box-shadow: 0 14px 32px rgba(225, 29, 72, .22);
}

.btn-secondary {
    background: #dcfce7;
    color: #047857;
}

.hero {
    margin-top: -82px;
    padding-top: 96px;
    color: var(--ink);
    background:
        linear-gradient(135deg, #fff, #f8fbff 55%, #fff7ed);
}

.hero::before {
    inset: auto 0 0 auto;
    width: min(56vw, 740px);
    height: 86%;
    opacity: .98;
    background:
        linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.84)),
        var(--hero-bg, url("../img/course-placeholder.svg")) center/cover no-repeat;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
    min-height: 84vh;
    padding: 120px 0 70px;
}

.hero-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.eyebrow {
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 999px;
    padding: 7px 12px;
}

.hero h1 {
    color: #111827;
    font-size: clamp(2.9rem, 10vw, 6.8rem);
    max-width: 720px;
}

.hero p {
    color: #475569;
    font-size: 1.13rem;
}

.hero-actions .btn-ghost {
    background: #fff;
}

.hero-stats {
    max-width: 720px;
}

.stat {
    color: #111827;
    background: rgba(255, 255, 255, .86);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

.stat span {
    color: #64748b;
}

.section {
    padding: 58px 0;
}

.section-title h2 {
    color: #101827;
}

.course-grid {
    gap: 22px;
}

.course-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .14);
}

.course-card img {
    aspect-ratio: 16/9;
}

.course-body {
    position: relative;
    padding: 20px;
}

.course-body::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e11d48, #f59e0b, #2563eb);
}

.badge {
    background: #eef2ff;
    color: #3730a3;
}

.price {
    color: #be123c;
}

.feature-card, .faq-item, .panel, .auth-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .09);
}

.feature-card {
    min-height: 170px;
    border-top: 5px solid #2563eb;
}

.feature-card:nth-child(2) { border-top-color: #e11d48; }
.feature-card:nth-child(3) { border-top-color: #f59e0b; }

.certificate-band {
    border: 0;
    border-radius: 22px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(225, 29, 72, .09), rgba(37, 99, 235, .10)),
        #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.certificate-preview {
    border-radius: 18px;
    border: 0;
    outline: 6px solid #fff7ed;
}

.contact-strip {
    border-radius: 22px;
    background: linear-gradient(135deg, #172033, #1e293b 55%, #9f1239);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

.mobile-bottom-nav {
    border-radius: 18px;
}

.auth-wrap.student-auth {
    background:
        linear-gradient(135deg, rgba(246, 248, 251, .92), rgba(255, 247, 237, .88)),
        url("../img/course-placeholder.svg") right center/cover no-repeat;
}
.auth-wrap.student-auth {
    min-height: calc(100vh - 20px);
    align-items: start;
    padding-top: 110px;
    padding-bottom: 130px;
}

.student-auth .auth-card {
    width: min(480px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    margin-bottom: 70px;
}

.field input, .field textarea, .field select {
    border-radius: 12px;
    background: #f8fafc;
}

.student-auth .field input {
    min-height: 54px;
    background: #fff;
}

.student-auth .btn {
    min-height: 54px;
    font-size: 1rem;
}
.login-page-actions {
    width: min(480px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.login-page-actions a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e2e8f0;
    color: #111827;
    font-weight: 950;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.forgot-pin-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}
.forgot-pin-form {
    margin-top: 12px;
}

body:has(.student-auth) .mobile-bottom-nav,
body:has(.student-auth) .whatsapp-float {
    display: none;
}

.dashboard-main,
body:has(.section-title h1) main {
    background: transparent;
}

.section .container > .section-title:first-child {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 16px 48px rgba(15, 23, 42, .08);
}

.video-shell {
    border-radius: 18px;
}

.lesson-item {
    border-radius: 14px;
}

.certificate-full {
    border-radius: 0;
}

@media (min-width: 720px) {
    .auth-wrap.student-auth {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        padding-left: max(32px, calc((100vw - 1120px) / 2));
    }

    .student-auth .auth-card {
        margin-left: 0;
    }

    .section:has(.course-grid) .course-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 719px) {
    .certificate-page {
        padding: 12px;
    }
    .certificate-full {
        width: 1020px;
        min-height: 720px;
        padding: 48px 62px 34px;
        transform-origin: top left;
    }
    .cert-top-meta {
        right: 78px;
        top: 54px;
    }
    .cert-seal-main {
        left: 42px;
        top: 220px;
        width: 140px;
        height: 140px;
    }
    .cert-shield {
        right: 62px;
        top: 285px;
    }
    .cert-verify {
        right: 118px;
        bottom: 44px;
    }
    .site-header {
        top: 0;
        width: calc(100% - 18px);
        margin-top: 8px;
        padding: 12px;
    }

    .hero {
        margin-top: -74px;
    }

    .hero::before {
        width: 100%;
        height: 42%;
        opacity: .25;
        clip-path: none;
    }

    .hero-inner {
        min-height: 82vh;
        padding-top: 112px;
    }

    .hero h1 {
        font-size: clamp(3rem, 17vw, 4.8rem);
    }

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