:root {
    --navy: #0f172a;
    --navy-2: #131b2e;
    --blue: #2563eb;
    --blue-2: #0051d5;
    --gold: #f59e0b;
    --surface: #f8f9ff;
    --surface-soft: #eff4ff;
    --surface-mid: #dce9ff;
    --text: #0b1c30;
    --muted: #45464d;
    --line: #dbe3f0;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

.auth-body {
    min-height: 100vh;
    background-color: var(--surface);
    background-image:
        radial-gradient(at 0% 0%, hsla(220, 100%, 95%, 1) 0, transparent 48%),
        radial-gradient(at 55% 0%, hsla(210, 100%, 90%, 1) 0, transparent 46%),
        radial-gradient(at 100% 100%, hsla(220, 100%, 96%, 1) 0, transparent 42%);
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 82px 0 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(19, 27, 46, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 27, 46, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 18%, transparent 100%);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.material-symbols-outlined {
    display: inline-flex;
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
    line-height: 1;
    vertical-align: middle;
}

.glass,
.glass-panel,
.glass-card,
.glass-nav {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bg-mesh {
    background-color: #f8f9ff;
    background-image:
        radial-gradient(at 0% 0%, hsla(220, 100%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(210, 100%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(200, 100%, 95%, 1) 0, transparent 50%);
}

.category-grid,
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 81, 213, 0.1);
}

.progress-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #f59e0b;
    width: 0%;
    transition: width 1.5s ease-out;
}

.legal-page {
    background: var(--surface);
}

.legal-hero {
    padding: 72px 0 36px;
    background: linear-gradient(180deg, var(--surface-mid), var(--surface));
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    margin: 12px 0 8px;
    color: var(--navy-2);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: 0;
}

.legal-hero p {
    margin: 0;
    color: var(--muted);
}

.legal-content {
    max-width: 900px;
    padding-top: 48px;
    padding-bottom: 72px;
}

.legal-content h2 {
    margin: 32px 0 10px;
    color: var(--navy-2);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.legal-content a {
    color: var(--blue-2);
    font-weight: 700;
}

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(620px, calc(100vw - 48px));
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-copy {
    min-width: 0;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy-2);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 17px;
}

.cookie-consent p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.cookie-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cookie-consent-links a {
    color: var(--blue-2);
    font-size: 13px;
    font-weight: 700;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.page-space {
    padding: clamp(54px, 6vw, 92px) 0;
}

.page-hero {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.page-hero h1,
.auth-shell h1,
.course-detail-hero h1 {
    max-width: 860px;
    margin: 0;
    color: var(--text);
    font-family: Montserrat, sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: 0;
}

.page-hero p,
.auth-shell p,
.course-detail-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    color: var(--blue-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px)) auto;
    gap: 12px;
    margin-bottom: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.filter-panel input,
.filter-panel select,
.auth-card input,
.auth-card textarea,
.community-layout input,
.community-layout textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 12px 13px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.community-layout input:focus,
.community-layout textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.public-course-card,
.auth-card,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.public-course-card {
    overflow: hidden;
}

.public-course-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.public-course-card > div {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.public-course-card h2 {
    margin: 0;
    color: var(--text);
    font-family: Montserrat, sans-serif;
    font-size: 22px;
}

.meta-row,
.card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.card-footer {
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.auth-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: clamp(28px, 4vw, 56px) 0;
    position: relative;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
    gap: clamp(44px, 7vw, 104px);
    align-items: center;
    position: relative;
}

.auth-shell::before {
    content: "";
    position: absolute;
    right: min(31%, 360px);
    top: 50%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.16);
    filter: blur(46px);
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-story {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.auth-story h1 {
    max-width: 740px;
    margin: 0;
    color: var(--text);
    font-family: Montserrat, sans-serif;
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0;
}

.auth-story p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.auth-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-top: 10px;
}

.auth-highlights div {
    display: grid;
    gap: 8px;
    min-height: 170px;
    border: 1px solid rgba(198, 198, 205, 0.72);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.58);
    padding: 18px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: authFloat 6s ease-in-out infinite;
}

.auth-highlights div:nth-child(2) {
    animation-delay: 0.8s;
}

.auth-highlights div:nth-child(3) {
    animation-delay: 1.6s;
}

.auth-highlights div:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.auth-highlights .material-symbols-outlined {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary-fixed);
    color: var(--blue-2);
    font-size: 24px;
}

.auth-highlights strong {
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 15px;
}

.auth-highlights small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 15px;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.84);
    padding: clamp(24px, 3vw, 42px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.auth-card:hover,
.auth-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.auth-card-head > .material-symbols-outlined {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.auth-card-head h2 {
    margin: 0;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 21px;
    line-height: 1.2;
}

.auth-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-card label,
.community-layout label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

.auth-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(248, 249, 255, 0.82);
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus-within {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-input .material-symbols-outlined {
    color: var(--blue-2);
    font-size: 21px;
}

.auth-input input {
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text);
    font-style: normal;
    font-weight: 400;
    padding: 14px 0 !important;
}

.auth-input select {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 400;
    outline: 0;
    padding: 14px 0;
}

.auth-input input::placeholder {
    color: #6b7280;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
}

.auth-input button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.auth-input button:hover {
    background: var(--surface-soft);
    color: var(--blue-2);
}

.auth-card a {
    color: var(--blue-2);
    font-weight: 800;
}

.auth-switch {
    margin: 2px 0 0;
    color: var(--muted);
    text-align: center;
}

.password-meter {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-mid);
}

.password-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
    transition: width 0.2s ease, background 0.2s ease;
}

.password-hint {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .auth-highlights div {
        animation: none;
    }
}

.alert {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert-success {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-2);
}

.alert-error {
    background: #ffdad6;
    color: #93000a;
}

.course-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: clamp(34px, 5vw, 80px);
    align-items: center;
}

.course-detail-hero img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.lesson-list {
    display: grid;
    gap: 10px;
}

.lesson-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 14px 16px;
}

.community-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.community-feed,
.community-post,
.comments {
    display: grid;
    gap: 16px;
}

.community-post {
    padding: 24px;
}

.comment {
    border-left: 3px solid var(--blue);
    background: var(--surface-soft);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.lms-page {
    padding: clamp(30px, 4vw, 54px) 0 clamp(72px, 7vw, 112px);
}

.lms-section {
    margin-top: 26px;
}

.lms-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: clamp(34px, 5vw, 58px) 0 28px;
    text-align: left;
}

.lms-hero h1 {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: clamp(34px, 3.8vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.lms-hero p {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.62;
}

.lms-hero-panel {
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    padding: 20px;
}

.lms-hero-panel strong {
    display: block;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 36px;
    line-height: 1;
}

.lms-hero-panel span {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-weight: 700;
}

.lms-hero-panel small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.lms-filter {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--soft-shadow);
    padding: 12px;
}

.lms-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--muted);
}

.lms-filter input,
.lms-filter select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 12px 13px;
    outline: 0;
}

.lms-filter label input {
    border-color: transparent;
    background: transparent;
    padding-left: 0;
}

.lms-filter input:focus,
.lms-filter select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lms-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-course-grid {
    margin-top: 26px;
}

.lms-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.public-course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.public-course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow);
}

.public-course-card .meta-row {
    color: var(--muted);
    font-size: 14px;
}

.public-course-card .meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.public-course-card .meta-row .material-symbols-outlined {
    font-size: 17px;
    color: var(--blue-2);
}

.lms-empty {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    padding: 42px;
    text-align: center;
}

.lms-empty .material-symbols-outlined {
    color: var(--blue-2);
    font-size: 42px;
}

.community-compose {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
    padding: 22px;
}

.community-compose h2 {
    margin: 0;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
}

.community-compose form {
    display: grid;
    gap: 14px;
}

.community-feed {
    gap: 18px;
}

.community-post {
    border-color: rgba(37, 99, 235, 0.18);
    padding: clamp(22px, 2.4vw, 34px);
}

.community-post h2 {
    margin: 0;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
}

.community-post > p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

.community-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.community-author > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-author strong {
    color: var(--navy);
}

.community-author time {
    font-size: 13px;
    font-weight: 700;
}

.comments {
    gap: 10px;
}

.comment {
    display: grid;
    gap: 6px;
}

.comment p {
    margin: 0;
}

.container {
    width: min(100% - 96px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-header {
    box-shadow: none;
}

.auth-header .nav-shell {
    justify-content: space-between;
    min-height: 82px;
}

.auth-header .brand img {
    width: 164px;
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 30px);
}

.auth-nav a {
    color: var(--muted);
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.auth-nav a:hover {
    color: var(--blue-2);
    transform: translateY(-1px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 28px;
}

.brand img {
    width: 174px;
    height: auto;
}

.desktop-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(18px, 1.8vw, 34px);
}

.desktop-nav a,
.mobile-nav a,
.login-link {
    color: var(--muted);
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a.active,
.login-link:hover {
    color: var(--blue-2);
}

.desktop-nav a.active {
    border-bottom: 2px solid var(--blue-2);
    padding-bottom: 6px;
}

.icon-button,
.menu-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.icon-button:hover,
.menu-toggle:hover {
    background: var(--surface-soft);
    color: var(--blue-2);
}

.language-switcher {
    position: relative;
}

.language-toggle {
    display: inline-flex;
    width: auto;
    min-width: 54px;
    gap: 6px;
    padding: 0 8px;
}

.language-current {
    color: var(--muted);
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.language-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 70;
    display: none;
    width: 190px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    padding: 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.language-switcher.open .language-menu {
    display: grid;
}

.language-menu button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
    background: var(--surface-soft);
    color: var(--blue-2);
}

.language-menu button.active::after {
    content: "check";
    color: var(--blue-2);
    font-family: "Material Symbols Outlined";
    font-size: 18px;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

#google_translate_element {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
#goog-gt-tt,
body > .skiptranslate,
iframe.skiptranslate {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

html.translated-ltr,
html.translated-rtl,
body {
    top: 0 !important;
    margin-top: 0 !important;
}

.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

body.is-rtl {
    direction: rtl;
}

body.is-rtl .language-menu {
    right: auto;
    left: 0;
}

body.is-rtl .material-symbols-outlined {
    direction: ltr;
}

.menu-toggle {
    display: none;
}

.mobile-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    display: grid;
    align-content: start;
    gap: 6px;
    width: min(82vw, 330px);
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 22px 18px;
    transform: translateX(-105%);
    transition: transform .22s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    border-radius: var(--radius);
    padding: 12px 10px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--surface-soft);
}

.mobile-nav-brand {
    margin-bottom: 12px;
    padding: 0 0 16px !important;
    border-bottom: 1px solid var(--line);
}

.mobile-nav-brand img {
    width: 154px;
}

.mobile-nav-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.mobile-nav-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--blue-2) !important;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.mobile-nav-button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: var(--white) !important;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    border: 0;
    background: rgba(15, 23, 42, .36);
}

.mobile-menu-open .mobile-nav-backdrop {
    display: block;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 24px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.button-primary {
    background: var(--blue);
    color: var(--white);
}

.button-gold {
    background: var(--gold);
    color: var(--navy);
}

.button-outline {
    border: 2px solid var(--blue);
    background: transparent;
    color: var(--blue);
}

.button-small {
    min-height: 40px;
    padding: 0 18px;
}

.section {
    padding: clamp(76px, 6.5vw, 124px) 0;
}

.section-soft {
    background: var(--surface-soft);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-2);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 88px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
    align-items: center;
    gap: clamp(48px, 6vw, 104px);
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.45rem);
    line-height: 1.04;
    font-weight: 800;
}

.hero p,
.page-hero p,
.section-lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 720px;
}

.accent {
    color: var(--blue);
}

.hero-actions,
.split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 42px;
    height: 42px;
    margin-right: -12px;
    border: 2px solid var(--white);
    border-radius: 999px;
    object-fit: cover;
}

.media-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.media-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.glass-panel,
.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
}

.hero-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    border-radius: var(--radius-lg);
    padding: 22px;
}

.hero-badge h2 {
    margin: 6px 0 4px;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 22px;
}

.stars {
    color: var(--gold);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(36px, 4vw, 64px);
}

.section-heading.center {
    display: grid;
    justify-items: center;
    text-align: center;
}

.section-heading h2,
.split-copy h2 {
    margin: 8px 0 0;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 32px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(22px, 2vw, 32px);
}

.card,
.category-card,
.instructor-card,
.contact-card,
.forum-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.category-card:hover,
.instructor-card:hover,
.forum-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card,
.forum-card,
.contact-card {
    padding: clamp(26px, 2.2vw, 36px);
}

.icon-tile {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 14px;
    background: #dbe1ff;
    color: var(--blue-2);
}

.category-card h3,
.forum-card h3,
.contact-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 22px;
}

.category-card p,
.forum-card p,
.contact-card p {
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.chip,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-2);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.filter-chip {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.filter-chip:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.filter-chip.active:hover {
    color: var(--white);
}

.featured-courses-head {
    min-width: 0;
}

.featured-courses-head > div {
    min-width: 0;
}

.featured-courses-link {
    flex-shrink: 0;
    max-width: 100%;
}

.course-card {
    overflow: hidden;
}

.course-card img {
    width: 100%;
    height: clamp(220px, 16vw, 310px);
    object-fit: cover;
}

.card-body {
    padding: clamp(24px, 2vw, 34px);
}

.card-body h3 {
    margin: 12px 0 8px;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 23px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.progress-track {
    height: 6px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
}

.page-hero {
    padding: clamp(80px, 7vw, 140px) 0 clamp(54px, 4.5vw, 88px);
    text-align: center;
}

.page-hero .eyebrow,
.page-hero p {
    margin-inline: auto;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.search-field {
    position: relative;
    flex: 1 1 320px;
}

.search-field span {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--muted);
    transform: translateY(-50%);
}

.search-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 13px 14px 13px 44px;
    outline: 0;
}

.search-field input:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 6vw, 104px);
}

.split-copy p {
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.6vw, 26px);
    margin-top: 32px;
}

.stat-card {
    border-left: 3px solid var(--gold);
    background: var(--white);
    padding: clamp(18px, 1.6vw, 28px);
}

.stat-card strong {
    display: block;
    color: var(--blue);
    font-family: Montserrat, sans-serif;
    font-size: 28px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(22px, 2vw, 32px);
}

.values-grid .wide {
    grid-column: span 2;
}

.values-grid .tall {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
    color: var(--white);
    background: linear-gradient(rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.75)), url("https://images.unsplash.com/photo-1526948128573-703ee1aeb6fa?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.value-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 2.2vw, 38px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.value-card.dark {
    background: var(--navy);
    color: var(--white);
}

.value-card h3 {
    margin: 12px 0 0;
    font-family: Montserrat, sans-serif;
    font-size: 22px;
}

.value-card p {
    color: inherit;
    opacity: 0.78;
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(22px, 2vw, 32px);
}

.instructor-card {
    overflow: hidden;
}

.instructor-card img {
    width: 100%;
    height: clamp(265px, 18vw, 360px);
    object-fit: cover;
    filter: grayscale(18%);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.instructor-card:hover img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.instructor-card .card-body {
    display: grid;
    gap: 14px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    border-radius: var(--radius);
    background: var(--surface-soft);
    padding: 5px 8px;
    color: var(--navy);
    font-weight: 800;
}

.community-hero {
    background: var(--white);
}

.forum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 2vw, 32px);
}

.ecosystem-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(135deg, #101827 0%, #0b1530 100%);
    padding-top: clamp(76px, 7vw, 120px);
    padding-bottom: clamp(76px, 7vw, 120px);
}

.ecosystem-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.ecosystem-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 6vw, 96px);
    align-items: center;
}

.ecosystem-copy,
.ecosystem-features {
    position: relative;
    z-index: 1;
}

.ecosystem-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
    color: var(--white);
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ecosystem-link .material-symbols-outlined {
    color: var(--gold);
    transition: transform 0.2s ease;
}

.ecosystem-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.ecosystem-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.ecosystem-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    min-height: 178px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: clamp(22px, 2.4vw, 34px);
}

.ecosystem-feature > .material-symbols-outlined {
    color: var(--gold);
    font-size: 30px;
}

.ecosystem-feature h3 {
    margin: 0 0 10px;
    color: var(--white);
    font-family: Montserrat, sans-serif;
    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 800;
}

.ecosystem-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.directory-hero {
    padding-top: clamp(70px, 6vw, 112px);
    padding-bottom: clamp(38px, 4vw, 64px);
}

.directory-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
}

.directory-stats {
    display: flex;
    gap: clamp(18px, 2vw, 34px);
    border-left: 1px solid var(--line);
    padding-left: clamp(24px, 3vw, 48px);
}

.directory-stats div {
    min-width: 86px;
}

.directory-stats strong {
    display: block;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
}

.directory-stats span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.directory-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(34px, 4vw, 56px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.directory-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 430px);
    color: var(--muted);
}

.directory-search input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    padding: 10px 0;
    outline: 0;
}

.directory-search:focus-within {
    color: var(--blue-2);
}

.directory-search:focus-within input {
    border-bottom-color: var(--blue-2);
}

.directory-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.directory-filters button {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 9px 16px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.directory-filters button.active,
.directory-filters button:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.contact-redesign {
    padding-top: clamp(76px, 7vw, 118px);
    padding-bottom: clamp(64px, 6vw, 104px);
}

.contact-redesign-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: start;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    padding: clamp(34px, 5vw, 72px) 0;
}

.contact-redesign-info {
    position: sticky;
    top: 116px;
}

.contact-lines {
    display: grid;
    gap: 22px;
    margin-top: clamp(34px, 4vw, 58px);
}

.contact-line {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    align-items: start;
}

.contact-line > .material-symbols-outlined {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-2);
}

.contact-line strong {
    display: block;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-line a {
    color: var(--blue-2);
    font-weight: 800;
}

.contact-line p {
    margin: 0;
    color: var(--muted);
}

.contact-redesign-form {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    padding: clamp(24px, 3vw, 44px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
}

.contact-stack {
    display: grid;
    gap: 16px;
}

.contact-form {
    display: grid;
    gap: 18px;
    border-radius: var(--radius-xl);
    padding: clamp(30px, 3vw, 52px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--navy);
    font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    padding: 13px 14px;
    outline: 0;
    resize: vertical;
}

.form-note {
    display: none;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-2);
    padding: 12px 14px;
    font-weight: 700;
}

.form-note.show {
    display: block;
}

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: clamp(64px, 5vw, 96px) 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(130px, 1fr));
    gap: clamp(28px, 3vw, 56px);
}

.footer-brand img {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    height: auto;
    width: 180px;
    margin-bottom: 18px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-cta {
    color: var(--gold) !important;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1280px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .contact-stack {
        gap: 22px;
    }
}

@media (max-width: 960px) {
    .container {
        width: min(100% - 48px, var(--container));
    }

    .desktop-nav,
    .login-link,
    .nav-actions > .button,
    .icon-button {
        display: none;
    }

    .language-switcher .icon-button {
        display: inline-flex;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .mobile-nav {
        z-index: 1001;
        width: min(86vw, 340px);
        height: 100dvh;
        min-height: 100vh;
        overflow-y: auto;
        border-right: 1px solid var(--line);
        background: #ffffff;
        box-shadow: 18px 0 40px rgba(15, 23, 42, .18);
        padding: 22px 18px 28px;
    }

    .mobile-nav a:not(.mobile-nav-brand):not(.mobile-nav-button) {
        display: flex;
        align-items: center;
        min-height: 44px;
        border-radius: var(--radius);
        padding: 10px 12px;
        color: var(--navy);
        font-size: 13px;
        letter-spacing: .04em;
    }

    .mobile-nav-backdrop {
        z-index: 1000;
        background: rgba(15, 23, 42, .42);
    }

    .mobile-menu-open {
        overflow: hidden;
    }

    .hero-grid,
    .split-grid,
    .contact-grid,
    .ecosystem-shell,
    .directory-shell,
    .contact-redesign-shell,
    .lms-hero,
    .auth-shell,
    .course-detail-hero,
    .community-layout {
        grid-template-columns: 1fr;
    }

    .auth-page {
        align-items: flex-start;
        padding: 34px 0 54px;
    }

    .auth-shell {
        width: min(100% - 48px, 640px);
        gap: 22px;
    }

    .auth-shell::before {
        display: none;
    }

    .auth-card {
        order: 1;
        width: 100%;
        padding: 34px;
    }

    .auth-story {
        order: 2;
        gap: 10px;
        border-top: 1px solid var(--line);
        padding-top: 22px;
        text-align: left;
        justify-items: start;
    }

    .auth-story h1 {
        max-width: 100%;
        font-size: 30px;
        line-height: 1.16;
    }

    .auth-story p {
        max-width: 56ch;
        margin: 0;
        font-size: 15px;
    }

    .auth-highlights {
        display: none;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .lms-filter {
        grid-template-columns: 1fr;
    }

    .lms-filter-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lms-filter-controls .button {
        grid-column: 1 / -1;
    }

    .course-public-grid {
        grid-template-columns: 1fr 1fr;
    }

    .community-compose {
        position: static;
    }

    .ecosystem-features {
        grid-template-columns: 1fr 1fr;
    }

    .directory-stats {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 22px;
    }

    .directory-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .directory-search {
        width: 100%;
    }

    .contact-redesign-info {
        position: static;
    }

    .card-grid,
    .forum-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

.course-detail-hero {
    border: 1px solid rgba(219, 227, 240, .9);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(239,244,255,.74));
    box-shadow: var(--soft-shadow);
    padding: clamp(24px, 4vw, 46px);
}

.course-detail-page {
    padding-top: clamp(26px, 4vw, 54px);
}

.course-detail-page .section {
    padding: 34px 0 0;
}

.course-detail-page .section > h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 22px;
}

.course-detail-page .grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 20px;
}

.course-detail-page .card {
    padding: 22px;
}

.course-detail-page .card h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
    font-size: 20px;
}

.course-detail-page .split-list:empty::after {
    content: "Reviews from enrolled students will appear here after approval.";
    color: var(--muted);
}

.course-detail-hero .meta-row {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.course-detail-hero > div:first-child {
    display: block;
}

.course-detail-hero form {
    display: inline-flex;
}

.course-detail-hero .meta-row span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.74);
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.course-detail-hero form,
.course-detail-hero .button {
    margin-right: 8px;
    margin-bottom: 8px;
}

.course-detail-hero img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.lesson-list {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    padding: 8px;
}

.lesson-row {
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
}

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

.lesson-row > span:first-child {
    color: var(--navy);
    font-weight: 700;
}

.lesson-row > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .brand img {
        width: 142px;
    }

    .auth-header .brand img {
        width: 150px;
    }

    .auth-header .nav-shell {
        min-height: 72px;
        gap: 14px;
    }

    .auth-nav {
        gap: 12px;
    }

    .auth-nav a {
        font-size: 11px;
    }

    .auth-page {
        min-height: calc(100vh - 72px);
        padding: 24px 0 36px;
    }

    .auth-story h1 {
        font-size: 32px;
        line-height: 1.12;
    }

    .auth-highlights {
        display: none;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-card-head {
        align-items: flex-start;
    }

    .auth-card-head h2 {
        font-size: 19px;
    }

    .hero,
    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 36px;
        line-height: 1.12;
    }

    .hero p,
    .page-hero p,
    .section-lead {
        font-size: 17px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .button-small {
        display: none;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-actions,
    .split-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .split-actions .button {
        width: 100%;
    }

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

    .media-card {
        border-radius: var(--radius-lg);
    }

    .media-card > img {
        aspect-ratio: 1.12 / 1;
    }

    .hero-badge {
        position: relative;
        inset: auto;
        margin: -48px 16px 16px;
    }

    .hero-badge .meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-courses-head {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 16px;
    }

    .featured-courses-head h2 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 44px;
        line-height: 1.08;
    }

    .featured-courses-link {
        display: inline-flex;
        width: fit-content;
        white-space: normal;
    }

    .card-grid,
    .forum-grid,
    .footer-grid,
    .values-grid,
    .ecosystem-features,
    .course-public-grid,
    .filter-panel,
    .form-row,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .lms-page {
        padding-top: 26px;
    }

    .lms-hero {
        padding-top: 28px;
    }

    .lms-hero h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .lms-hero p {
        font-size: 16px;
    }

    .lms-hero-panel {
        padding: 18px;
    }

    .lms-filter-controls {
        grid-template-columns: 1fr;
    }

    .community-author {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .ecosystem-feature {
        min-height: auto;
    }

    .directory-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .directory-stats div {
        min-width: 0;
    }

    .directory-stats strong {
        font-size: 26px;
    }

    .directory-stats span {
        font-size: 11px;
    }

    .contact-line {
        grid-template-columns: 36px 1fr;
    }

    .contact-line > .material-symbols-outlined {
        width: 36px;
        height: 36px;
    }

    .values-grid .wide,
    .values-grid .tall {
        grid-column: auto;
    }

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

    .chip-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav-shell {
        min-height: 68px;
        gap: 12px;
    }

    .brand img {
        width: 132px;
    }

    .language-switcher .language-toggle {
        min-width: 48px;
    }

    .site-footer {
        padding: 44px 0 22px;
    }

    .site-footer p,
    .site-footer a {
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .footer-brand img {
        width: 148px;
    }

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

    .footer-bottom {
        display: grid;
        gap: 8px;
        text-align: left;
    }

    .course-detail-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .course-detail-page {
        padding-top: 22px;
    }

    .course-detail-page .section {
        padding-top: 28px;
    }

    .course-detail-page .grid-2 {
        grid-template-columns: 1fr;
    }

    .course-detail-hero h1 {
        font-size: clamp(34px, 11vw, 48px);
        line-height: 1.04;
    }

    .course-detail-hero .meta-row {
        grid-template-columns: 1fr 1fr;
    }

    .course-detail-hero form,
    .course-detail-hero .button {
        width: 100%;
        margin-right: 0;
    }

    .course-detail-hero .button {
        justify-content: center;
    }

    .lesson-row {
        display: grid;
        gap: 8px;
    }

    .lesson-row > span:last-child {
        justify-content: space-between;
    }
}

/* Final mobile layout lock: keeps header, slide menu, auth pages, and footer off the screen edges. */
@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        background: var(--white);
    }

    .site-header .container.nav-shell,
    .auth-header .container.nav-shell {
        width: 100%;
        min-height: 70px;
        padding: 0 18px;
    }

    .brand,
    .brand img {
        flex: 0 0 auto;
    }

    .brand img,
    .auth-header .brand img {
        width: 148px;
    }

    .nav-actions {
        margin-left: auto;
        gap: 10px;
    }

    .auth-nav {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1001;
        width: min(86vw, 340px);
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(-105%);
        border-right: 1px solid var(--line);
        background: #ffffff;
        box-shadow: 18px 0 40px rgba(15, 23, 42, .18);
        padding: 22px 18px 28px;
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-nav a:not(.mobile-nav-brand):not(.mobile-nav-button) {
        display: flex;
        align-items: center;
        min-height: 44px;
        border-radius: var(--radius);
        padding: 10px 12px;
        color: var(--navy);
        font-size: 13px;
        letter-spacing: .04em;
    }

    .mobile-nav-brand {
        display: block;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--line);
        padding: 0 0 18px !important;
    }

    .mobile-nav-brand img {
        width: 158px;
    }

    .mobile-nav-backdrop {
        z-index: 1000;
        background: rgba(15, 23, 42, .42);
    }

    .mobile-menu-open {
        overflow: hidden;
    }

    .site-footer .container,
    .site-footer .footer-grid,
    .site-footer .footer-bottom {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .footer-brand img {
        width: 156px;
    }

    .site-footer p,
    .site-footer a,
    .site-footer span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .cookie-consent {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cookie-consent .button {
        width: 100%;
        justify-content: center;
    }

    .legal-hero {
        padding: 46px 0 26px;
    }

    .legal-content {
        padding-top: 32px;
        padding-bottom: 52px;
    }

    .auth-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-shell {
        width: 100%;
    }

    .auth-card {
        width: 100%;
        padding: 24px 22px;
    }
}

/* Final mobile typography lock: prevents oversized hero headings from becoming word towers. */
@media (max-width: 760px) {
    .hero {
        padding: 46px 0 54px;
    }

    .hero-grid,
    .lms-hero,
    .page-hero,
    .course-detail-hero,
    .auth-shell {
        gap: 24px;
    }

    .hero h1,
    .page-hero h1,
    .lms-hero h1,
    .course-detail-hero h1,
    .auth-story h1,
    .auth-shell h1 {
        max-width: 11ch;
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .lms-hero h1,
    .course-detail-hero h1,
    .page-hero h1,
    .auth-story h1,
    .auth-shell h1 {
        font-size: 34px;
    }

    .section-heading h2,
    .split-copy h2 {
        font-size: 30px;
        line-height: 1.12;
    }

    .hero p,
    .page-hero p,
    .lms-hero p,
    .course-detail-hero p,
    .auth-story p,
    .auth-shell p,
    .section-lead {
        max-width: 32ch;
        font-size: 16px;
        line-height: 1.62;
    }

    .eyebrow {
        max-width: 100%;
        letter-spacing: .12em;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {
    .hero h1,
    .page-hero h1,
    .lms-hero h1,
    .course-detail-hero h1,
    .auth-story h1,
    .auth-shell h1 {
        font-size: 32px;
        line-height: 1.1;
    }

    .section-heading h2,
    .split-copy h2 {
        font-size: 28px;
    }
}

/* Hard mobile type cap: keep public pages readable on narrow phones. */
@media (max-width: 760px) {
    .hero h1,
    .page-hero h1,
    .lms-hero h1,
    .course-detail-hero h1,
    .auth-story h1,
    .auth-shell h1 {
        max-width: 15ch !important;
        font-size: 30px !important;
        line-height: 1.16 !important;
        letter-spacing: 0 !important;
    }

    .hero p,
    .page-hero p,
    .lms-hero p,
    .course-detail-hero p,
    .auth-story p,
    .auth-shell p,
    .section-lead {
        max-width: 36ch !important;
        font-size: 15px !important;
        line-height: 1.62 !important;
    }
}

@media (max-width: 390px) {
    .hero h1,
    .page-hero h1,
    .lms-hero h1,
    .course-detail-hero h1,
    .auth-story h1,
    .auth-shell h1 {
        font-size: 29px !important;
        line-height: 1.16 !important;
    }
}

/* Public mobile page spacing lock: prevents LMS public pages from touching screen edges. */
@media (max-width: 760px) {
    .lms-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .lms-page > .container {
        width: 100% !important;
        max-width: var(--container);
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .lms-hero {
        padding-top: 34px !important;
        padding-bottom: 24px !important;
    }

    .lms-section {
        margin-top: 24px !important;
    }

    .lms-hero-panel,
    .lms-filter,
    .public-course-card,
    .lms-empty {
        max-width: 100%;
        box-sizing: border-box;
    }

    .lms-filter {
        padding: 14px !important;
    }
}

@media (max-width: 390px) {
    .lms-page {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
