/*
 * Site publico da escola - visual "classico institucional".
 * CSS proprio, sem framework (~30 KB): rapido na hospedagem compartilhada.
 * A cor da marca vem de --primary (definida no <html> pelo layout, ver
 * App\Support\Site::cssVars()); todo o resto deriva dela.
 */

/* ------------------------------------------------------------------ fontes */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/lexend-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* ------------------------------------------------------------------ tokens */
:root {
    --primary: #2563eb;
    --primary-600: color-mix(in srgb, var(--primary) 86%, #000);
    --primary-50: color-mix(in srgb, var(--primary) 7%, #fff);
    --primary-100: color-mix(in srgb, var(--primary) 14%, #fff);
    --ink: #14213d;
    --body: #4b5563;
    --muted: #6b7280;
    --line: #e5e9f2;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --navy: #0f1b35;
    --accent: #f59e0b;
    --success: #16a34a;
    --danger: #dc2626;

    --font-head: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 10px 30px -12px rgba(20, 33, 61, .18);
    --shadow-lg: 0 24px 60px -20px rgba(20, 33, 61, .28);
    --container: 1200px;
    --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.075rem; }

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2rem; }
[x-cloak] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }

/* ------------------------------------------------------------------ botoes */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
    font-family: var(--font-head); font-weight: 500; font-size: .95rem; line-height: 1.2;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: default; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--primary); }
.btn-ghost { background: var(--primary-50); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-100); color: var(--primary-600); }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ topbar + header */
.topbar { background: var(--primary); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 42px; }
.topbar-info { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; }
.topbar-info a:hover { opacity: .85; }
.topbar-social { display: flex; gap: .9rem; }
.topbar-social a { color: #fff; display: inline-flex; }
.topbar-social a:hover { opacity: .8; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 33, 61, .35); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; }
.brand-mark .icon { width: 24px; height: 24px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .85rem; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav a:hover { color: var(--primary); }
.nav a.is-active { color: var(--primary); background: var(--primary-50); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.student-link { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); }
.student-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: rgba(15, 27, 53, .45); }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-lg); overflow-y: auto; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav ul a { display: block; padding: .85rem 1rem; border-radius: 12px; font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.mobile-nav ul a.is-active, .mobile-nav ul a:hover { background: var(--primary-50); color: var(--primary); }

/* ------------------------------------------------------------------ secoes */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.is-left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin: 0; text-align: left; }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--primary); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head:not(.is-left) .eyebrow::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

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

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 150px; background:
    radial-gradient(60% 70% at 0% 30%, color-mix(in srgb, var(--primary) 16%, #fff) 0%, transparent 60%),
    radial-gradient(50% 60% at 100% 20%, #fdeef4 0%, transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #fff 100%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .45rem; margin-bottom: 1.4rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; font-size: .875rem; color: var(--ink); }
.hero-badge b { padding: .15rem .6rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 500; font-size: .78rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead { font-size: 1.15rem; color: var(--body); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-search { display: flex; align-items: center; gap: .5rem; max-width: 520px; margin-top: 2.25rem; padding: .45rem .45rem .45rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.hero-search .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; padding: .55rem 0; }

.hero-media { position: relative; justify-self: center; width: min(100%, 480px); }
.hero-media-shape { position: absolute; inset: 8% -4% -4% 8%; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%; background: linear-gradient(140deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, #a855f7) 100%); opacity: .95; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 40% 40% 24px 24px / 32% 32% 24px 24px; box-shadow: var(--shadow-lg); }
.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.float-card span { font-size: .82rem; color: var(--muted); }
.float-card .float-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary); }
.float-card.is-top { top: 14%; right: -6%; }
.float-card.is-bottom { bottom: 12%; left: -10%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* faixa de numeros que "sobe" no hero */
.stats { position: relative; z-index: 2; margin-top: -86px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 26px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; }
.stat-icon .icon { width: 26px; height: 26px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.75rem; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }

/* tons pasteis reaproveitados (stats, categorias, features) */
.tone-1 { background: #e0f2fe; color: #0369a1; }
.tone-2 { background: #ede9fe; color: #6d28d9; }
.tone-3 { background: #dcfce7; color: #15803d; }
.tone-4 { background: #fef3c7; color: #b45309; }

/* ------------------------------------------------------------------ sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-media::before { content: ''; position: absolute; inset: -18px auto auto -18px; width: 140px; height: 140px; border-radius: var(--radius-lg); background: radial-gradient(circle, var(--primary-100) 2px, transparent 2.5px) 0 0 / 16px 16px; z-index: -1; }
.about-badge { position: absolute; right: -20px; bottom: -24px; padding: 18px 22px; border-radius: var(--radius); background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; }
.about-badge span { font-size: .85rem; opacity: .9; }
.about-text p { color: var(--body); }
.highlights { display: grid; gap: 18px; margin: 28px 0 32px; }
.highlight { display: flex; gap: 1rem; align-items: flex-start; }
.highlight-icon { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; background: var(--primary-50); color: var(--primary); }
.highlight h4 { margin-bottom: .2rem; }
.highlight p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ categorias */
/* --cols vem da view (ate 6 por linha) pra nao sobrar buraco na ultima linha */
.categories { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; }
.category-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 26px; border-radius: var(--radius); border: 1px solid transparent; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.category-card h3 { margin: 0; font-size: 1.1rem; }
.category-card .count { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: .8rem; font-weight: 500; }
.category-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .75); }
.category-icon .icon { width: 24px; height: 24px; }

.cat-blue { background: #e0ecff; } .cat-blue .category-icon { color: #1d4ed8; }
.cat-green { background: #dcfce7; } .cat-green .category-icon { color: #15803d; }
.cat-purple { background: #ede9fe; } .cat-purple .category-icon { color: #6d28d9; }
.cat-yellow { background: #fef3c7; } .cat-yellow .category-icon { color: #b45309; }
.cat-pink { background: #fce7f3; } .cat-pink .category-icon { color: #be185d; }
.cat-orange { background: #ffedd5; } .cat-orange .category-icon { color: #c2410c; }
.cat-teal { background: #ccfbf1; } .cat-teal .category-icon { color: #0f766e; }
.cat-gray { background: #eef1f5; } .cat-gray .category-icon { color: #374151; }

/* ------------------------------------------------------------------ cards de curso */
.course-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-cover img { transform: scale(1.05); }
.course-cover .pill { position: absolute; top: 14px; left: 14px; }
.course-cover .pill-featured { left: auto; right: 14px; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 18px; }
.course-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .75rem; font-size: .85rem; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course-meta .icon { color: var(--primary); }
.course-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a:hover { color: var(--primary); }
.course-card p { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.instructor-mini { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--ink); min-width: 0; }
.instructor-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--primary-100); color: var(--primary); font-family: var(--font-head); font-weight: 600; font-size: .8rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }

.price { text-align: right; line-height: 1.15; white-space: nowrap; }
.price strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--primary); }
.price del { display: block; font-size: .8rem; color: var(--muted); }
.price.is-free strong { color: var(--success); }
.price.is-consult strong { font-size: .95rem; color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--font-head); font-size: .78rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.pill-primary { background: var(--primary); color: #fff; }
.pill-soft { background: var(--primary-50); color: var(--primary); box-shadow: none; }
.pill-featured { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ features */
.feature-card { padding: 34px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1.25rem; border-radius: 20px; }
.feature-icon .icon { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ CTA */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 56px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, #0f1b35) 100%); color: #fff; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07); }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.05rem; }
.cta-band .cta-actions { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; position: relative; z-index: 1; }

/* ------------------------------------------------------------------ professores */
.instructor-card { text-align: center; }
.instructor-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 1.1rem; border-radius: var(--radius); background: var(--bg-soft); }
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.instructor-card:hover .instructor-photo img { transform: scale(1.04); }
.instructor-photo .initials { display: grid; place-items: center; height: 100%; font-family: var(--font-head); font-size: 3rem; color: var(--primary); background: var(--primary-50); }
.instructor-social { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 12px); opacity: 0; display: flex; gap: .5rem; transition: .25s; }
.instructor-card:hover .instructor-social { opacity: 1; transform: translate(-50%, 0); }
.instructor-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.instructor-social a:hover { background: var(--primary); color: #fff; }
.instructor-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.instructor-card h3 a { color: var(--ink); }
.instructor-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------------ eventos */
.event-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.event-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-date { display: grid; place-items: center; width: 82px; height: 86px; border-radius: var(--radius); background: var(--primary-50); color: var(--primary); text-align: center; line-height: 1; }
.event-date strong { font-family: var(--font-head); font-size: 1.9rem; }
.event-date span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.event-item h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.event-item h3 a { color: var(--ink); }
.event-item h3 a:hover { color: var(--primary); }
.event-info { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .88rem; color: var(--muted); }
.event-info span { display: inline-flex; align-items: center; gap: .35rem; }

.event-card { overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card .course-cover .event-date { position: absolute; left: 14px; bottom: 14px; width: 66px; height: 70px; background: #fff; box-shadow: var(--shadow); }
.event-card .event-date strong { font-size: 1.5rem; }
.event-card-body { padding: 22px; }
.event-card-body h3 { font-size: 1.15rem; }
.event-card-body h3 a { color: var(--ink); }

/* ------------------------------------------------------------------ depoimentos */
.testimonial { margin: 0; display: flex; flex-direction: column; height: 100%; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.testimonial-quote { position: absolute; right: 24px; top: 22px; color: var(--primary-100); }
.testimonial-quote .icon { width: 48px; height: 48px; }
.stars { display: flex; gap: 2px; margin-bottom: 1rem; color: var(--accent); }
.stars .icon { width: 18px; height: 18px; }
.stars .is-off { color: #e5e7eb; }
.testimonial blockquote { margin: 0 0 1.5rem; font-size: 1rem; color: var(--ink); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.testimonial-author strong { display: block; font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.testimonial-author span { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------------------ blog */
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .6rem; font-size: .84rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { color: var(--muted); font-size: .93rem; }
.post-card .link-arrow { margin-top: auto; }

/* ------------------------------------------------------------------ cabecalho das paginas internas */
.page-hero { padding: 64px 0 60px; text-align: center; background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--primary) 13%, #fff) 0%, transparent 60%),
    radial-gradient(50% 120% at 100% 100%, #fdeef4 0%, transparent 60%), #fbfcff; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .6rem; }
.page-hero p { max-width: 640px; margin: 0 auto 1.2rem; color: var(--muted); font-size: 1.05rem; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; padding: .5rem 1.1rem; margin: 0; list-style: none; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-size: .88rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; color: #c3cad6; }
.breadcrumb a { color: var(--primary); font-weight: 500; }

/* ------------------------------------------------------------------ layout com barra lateral */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.with-sidebar.is-left { grid-template-columns: 300px minmax(0, 1fr); }
.with-sidebar.is-contact { grid-template-columns: 380px minmax(0, 1fr); }
.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.widget { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.widget h4 { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.widget-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: 10px; color: var(--body); font-size: .95rem; }
.widget-list a:hover, .widget-list a.is-active { background: var(--primary-50); color: var(--primary); }
.widget-list small { color: var(--muted); font-size: .8rem; }
.widget-post { display: grid; grid-template-columns: 72px 1fr; gap: .85rem; align-items: center; }
.widget-post + .widget-post { margin-top: 14px; }
.widget-post img { width: 72px; height: 60px; object-fit: cover; border-radius: 10px; }
.widget-post a { color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .92rem; line-height: 1.35; }
.widget-post a:hover { color: var(--primary); }
.widget-post small { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 26px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ------------------------------------------------------------------ formularios */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--danger); }
.input, .select, .textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid #d6dce7; border-radius: 12px;
    font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.6rem; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .84rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: .25rem 0 1rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.input-group { display: flex; gap: .5rem; }
.input-group .input { flex: 1; min-width: 0; }

.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; font-size: .95rem; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #14532d; }
.alert-danger { background: #fee2e2; color: #7f1d1d; }
.alert .icon { margin-top: .15rem; }

/* ------------------------------------------------------------------ pagina do curso */
.course-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-bottom: 1.4rem; color: var(--body); font-size: .95rem; }
.course-hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.course-hero-meta .icon { color: var(--primary); }
.course-main-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 32px; }

.tabs { display: flex; gap: .4rem; padding: .4rem; margin-bottom: 28px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow-x: auto; }
.tab { flex: 1; padding: .7rem 1.2rem; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--body); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--primary); }
.tab.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.prose { color: var(--body); font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--primary-50); color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.accordion { display: grid; gap: 12px; }
.accordion-item { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.accordion-item.is-open { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.accordion-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.05rem 1.25rem; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--ink); }
.accordion-button small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.accordion-button .icon { transition: transform .25s; color: var(--primary); }
.accordion-item.is-open .accordion-button .icon { transform: rotate(180deg); }
.accordion-panel { padding: 0 1.25rem 1.1rem; }
.accordion-panel p:last-child { margin: 0; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.lesson-list li .icon { color: var(--primary); }
.lesson-list li .lesson-title { flex: 1; }
.lesson-list li small { color: var(--muted); }
.lesson-list .pill { font-size: .72rem; padding: .15rem .55rem; }

.enroll-card { overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.enroll-head { padding: 26px 26px 20px; background: var(--primary-50); }
.enroll-head .price { text-align: left; }
.enroll-head .price strong { font-size: 2rem; }
.enroll-head .price del { display: inline; margin-left: .5rem; font-size: 1rem; }
.enroll-body { padding: 22px 26px 26px; }
.enroll-list { list-style: none; margin: 0 0 22px; padding: 0; }
.enroll-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.enroll-list li span { display: inline-flex; align-items: center; gap: .55rem; color: var(--body); }
.enroll-list li .icon { color: var(--primary); }
.enroll-list li b { color: var(--ink); font-weight: 600; text-align: right; }
.enroll-actions { display: grid; gap: .65rem; }

.author-box { display: flex; gap: 1.25rem; padding: 26px; border-radius: var(--radius); background: var(--bg-soft); }
.author-box h4 { margin-bottom: .15rem; }
.author-box p { margin: .5rem 0 0; font-size: .95rem; }

/* ------------------------------------------------------------------ contato */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-card .highlight-icon { width: 48px; height: 48px; }
.contact-card h4 { margin-bottom: .15rem; font-size: 1rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--body); font-size: .95rem; word-break: break-word; }
.form-card { padding: 36px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ paginacao / vazio */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-disabled { color: #c3cad6; }

.empty-state { padding: 56px 24px; text-align: center; border-radius: var(--radius); border: 1px dashed #cfd6e3; background: var(--bg-soft); }
.empty-state .icon { width: 44px; height: 44px; color: var(--primary); margin-bottom: .75rem; }
.empty-state h3 { margin-bottom: .35rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.2rem; }

/* ------------------------------------------------------------------ rodape */
.newsletter-band { position: relative; z-index: 2; margin-bottom: -70px; }
.newsletter-box { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px 48px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.newsletter-box h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.newsletter-box p { margin: 0; color: var(--muted); }
.newsletter-box .form-note { margin: .5rem 0 0; }

.site-footer { padding: 130px 0 0; background: var(--navy); color: #b8c2d6; font-size: .95rem; }
.site-footer.no-newsletter { padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: #b8c2d6; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .icon { color: color-mix(in srgb, var(--primary) 55%, #fff); margin-top: .2rem; }
.footer-contact a { color: #b8c2d6; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom a { color: #b8c2d6; }
.footer-bottom a:hover { color: #fff; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* toast simples do site */
.site-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .95rem; max-width: calc(100vw - 32px); }
.site-toast.is-danger { background: var(--danger); }

/* ------------------------------------------------------------------ util */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.stack { display: grid; gap: 16px; }

/* ------------------------------------------------------------------ animacao de entrada (sem biblioteca) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card { animation: none; }
    *, *::before, *::after { transition-duration: 0s !important; }
}

/* ------------------------------------------------------------------ responsivo */
@media (max-width: 1100px) {
    .nav a { padding: .5rem .6rem; font-size: .9rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .float-card.is-top { right: 0; }
    .float-card.is-bottom { left: 0; }
}

@media (max-width: 991px) {
    :root { --header-h: 68px; }
    .nav, .header-actions .btn-header { display: none; }
    .student-link span { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }
    .topbar-info span.is-hours { display: none; }
    .section { padding: 72px 0; }
    .hero { padding: 48px 0 130px; }
    .hero .container, .about, .split, .with-sidebar, .with-sidebar.is-left, .with-sidebar.is-contact, .cta-band, .newsletter-box { grid-template-columns: minmax(0, 1fr); }
    .hero-media { width: min(100%, 400px); margin-top: 12px; }
    .stats-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about { gap: 56px; }
    .about-badge { right: 12px; }
    .sidebar { position: static; }
    .cta-band { padding: 40px 32px; }
    .cta-band .cta-actions { justify-content: flex-start; }
    .newsletter-box { padding: 32px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 16px; }
    .topbar { display: none; }
    .section { padding: 60px 0; }
    .hero-actions .btn { flex: 1; }
    .hero-search { margin-top: 1.75rem; }
    .float-card { padding: .65rem .85rem; }
    .float-card strong { font-size: 1.1rem; }
    .float-card .float-icon { width: 34px; height: 34px; }
    .stats-grid { gap: 12px; }
    .stat { flex-direction: column; align-items: flex-start; gap: .65rem; padding: 18px; }
    .stat strong { font-size: 1.4rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .categories { grid-template-columns: 1fr 1fr; gap: 12px; }
    .category-card { padding: 18px; }
    .event-item { grid-template-columns: auto 1fr; }
    .event-item > .btn { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .newsletter-box .input-group { flex-direction: column; }
    .section-head-row { align-items: flex-start; }
    .enroll-head .price strong { font-size: 1.7rem; }
}

/* ------------------------------------------------------------------ area do aluno */
.student-bar { background: var(--navy); color: #fff; }
.student-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.student-hello { display: flex; align-items: center; gap: .7rem; }
.student-hello small { display: block; font-size: .75rem; color: #9fb0cc; }
.student-hello strong { font-family: var(--font-head); font-weight: 500; }
.student-bar .avatar { background: var(--primary); color: #fff; }
.student-nav { display: flex; align-items: center; gap: .3rem; }
.student-nav a, .student-nav button { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border: 0; border-radius: 999px; background: transparent; color: #c9d3e4; font: inherit; font-size: .9rem; cursor: pointer; }
.student-nav a:hover, .student-nav button:hover, .student-nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.student-nav form { margin: 0; }

.student-auth .auth-card { max-width: 440px; margin: 0 auto; padding: 36px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head .highlight-icon { margin: 0 auto 1rem; }
.auth-head h1 { font-size: 1.7rem; margin-bottom: .3rem; }

.progress { display: block; height: 8px; border-radius: 999px; background: var(--primary-100); overflow: hidden; margin: .5rem 0 .3rem; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }

.continue-card { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 24px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-50), #fff); border: 1px solid var(--primary-100); color: var(--ink); }
.continue-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.continue-card img { width: 200px; height: 125px; object-fit: cover; border-radius: var(--radius); }
.continue-card small { color: var(--muted); font-size: .85rem; }
.continue-card strong { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.my-course { color: var(--ink); }
.my-course:hover { color: var(--ink); }
.my-course h3 { font-size: 1.1rem; }

.student-course-head { padding: 32px 0 36px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.back { margin-bottom: 1rem; font-size: .9rem; }
.student-course-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.student-course-title h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: .6rem 0 .2rem; }
.student-course-title p { margin: 0; }
.progress-box { min-width: 260px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.progress-box strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--primary); }
.progress-box small { display: block; color: var(--muted); font-size: .85rem; }
.h-sm { font-size: 1.35rem; margin-bottom: 1rem; }

.lesson-list li.is-done .icon { color: var(--success); }
.lesson-list li.is-done .lesson-title { color: var(--muted); }
.lesson-list li .lesson-title { color: var(--ink); }
.lesson-list li a.lesson-title:hover { color: var(--primary); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.notice-date { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--primary-50); color: var(--primary); font-family: var(--font-head); font-weight: 600; }
.notice h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.notice .prose { font-size: .95rem; }
.material-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.material-list a { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 10px; color: var(--ink); }
.material-list a:hover { background: var(--primary-50); color: var(--primary); }
.material-list .icon { color: var(--primary); margin-top: .15rem; }
.material-list small { display: block; font-size: .78rem; color: var(--muted); }

.player-top { border-bottom: 1px solid var(--line); background: #fff; }
.player-top .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; font-size: .9rem; }
.player-top .back { margin: 0; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0b1220; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { display: grid; place-items: center; text-align: center; color: #c9d3e4; }
.player-empty .icon { width: 42px; height: 42px; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 22px 0 14px; flex-wrap: wrap; }
.lesson-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: .2rem 0 0; }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.player-sidebar { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.player-section + .player-section { margin-top: 16px; }
.player-section > strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .2rem; }
.player-sidebar .lesson-list li { font-size: .88rem; padding: .5rem 0; }
.player-sidebar .lesson-list li.is-current { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; background: var(--primary-50); }
.player-sidebar .lesson-list li.is-current .lesson-title { color: var(--primary); font-weight: 600; }

@media (max-width: 991px) {
    .player-layout { grid-template-columns: minmax(0, 1fr); }
    .player-sidebar { position: static; max-height: none; }
    .continue-card { grid-template-columns: 1fr; }
    .continue-card img { width: 100%; height: 160px; }
}
@media (max-width: 640px) {
    .student-nav a span, .student-nav { font-size: .85rem; }
    .student-auth .auth-card { padding: 24px; }
    .lesson-head .btn { width: 100%; }
}