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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: #171a20;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

button {
    cursor: pointer;
}

:root {
    --primary: #082555;
    --primary-dark: #051d44;
    --primary-light: #eef3f8;
    --secondary: #97bf21;
    --secondary-dark: #7da31a;
    --secondary-light: #f3f8e2;
    --navy-soft: #edf3f8;
    --text: #10233f;
    --text-light: #5c6d84;
    --border: #e2e9f0;
    --background-soft: #f6f9fb;
    --dark: #061b3b;
    --dark-secondary: #0d2b59;
    --white: #ffffff;
    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 24px;
    --shadow: 0 20px 50px rgba(26, 31, 44, 0.08);
    --container: 1200px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 45px;
}

.section-header > div {
    max-width: 650px;
}

.section-header h2,
.centered-heading h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 17px;
}

.text-link {
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(8, 37, 85, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--white);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: #cacdd5;
}

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

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

.btn-large {
    min-height: 56px;
    padding: 0 28px;
}

.btn-small {
    min-height: 43px;
    padding: 0 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 233, 237, 0.8);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: 230px;
    object-fit: contain;
}

.brand-logo-footer {
    height: 40px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 29px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown-toggle {
    color: #4d535e;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav > a:hover,
.nav-dropdown-toggle:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
    border: 0;
    padding: 10px 0;
    background: transparent;
}

.nav-dropdown-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown:focus-within .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    width: 200px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #525966;
    font-size: 14px;
    font-weight: 600;
}

.nav-dropdown-menu a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 15px;
    font-weight: 700;
}

.mobile-menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
}

.mobile-menu-toggle span {
    width: 23px;
    height: 2px;
    border-radius: 10px;
    background: var(--text);
    transition: 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    padding: 5px 20px 25px;
    border-top: 1px solid var(--border);
    background: white;
}

.mobile-menu nav a {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid #f1f2f4;
    font-weight: 650;
}

.mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0 105px;
    background:
        radial-gradient(
            circle at 87% 20%,
            rgba(8, 37, 85, 0.1),
            transparent 30%
        ),
        radial-gradient(
            circle at 60% 80%,
            rgba(151, 191, 33, 0.1),
            transparent 28%
        ),
        #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    margin-bottom: 22px;
    border: 1px solid #dfe9c4;
    border-radius: 30px;
    background: #f7faec;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background: var(--secondary);
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    color: #15171d;
    font-size: clamp(48px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    max-width: 610px;
    margin: 27px 0 30px;
    color: var(--text-light);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 37px;
}

.avatar-stack {
    display: flex;
    padding-left: 10px;
}

.avatar-stack span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 3px solid white;
    border-radius: 100%;
    background: #e8e6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.avatar-stack span:nth-child(2) {
    background: #dff8ef;
    color: #13845f;
}

.avatar-stack span:nth-child(3) {
    background: #fff0dd;
    color: #aa6417;
}

.avatar-stack span:nth-child(4) {
    background: #fee7ee;
    color: #c7456b;
}

.hero-trust strong {
    display: block;
    font-size: 14px;
}

.hero-trust p {
    margin: 2px 0 0;
    color: var(--text-light);
    font-size: 13px;
}

.hero-visual {
    position: relative;
}

.hero-main-card {
    width: 92%;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    background: white;
    box-shadow: 0 35px 80px rgba(46, 38, 126, 0.14);
}

.course-image-large {
    position: relative;
    min-height: 290px;
    padding: 38px;
    background: linear-gradient(145deg, #123c70, #082555);
}

.course-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.93);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fake-dashboard {
    position: absolute;
    right: 38px;
    bottom: 0;
    width: 78%;
    height: 225px;
    display: grid;
    grid-template-columns: 55px 1fr;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: white;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.18);
}

.fake-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 23px;
    background: #f5f5fa;
}

.fake-sidebar span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #d7d5e5;
}

.fake-content {
    padding: 28px;
}

.fake-title {
    width: 63%;
    height: 13px;
    margin-bottom: 35px;
    border-radius: 10px;
    background: #dedee8;
}

.fake-chart {
    height: 110px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.fake-chart span {
    flex: 1;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(var(--primary), #97bf21);
}

.hero-course-info {
    padding: 27px 30px 30px;
}

.course-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-course-info .hero-course-title {
    margin: 7px 0 7px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.course-meta {
    display: flex;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
}

.course-progress {
    margin-top: 22px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: var(--text-light);
    font-size: 12px;
}

.progress-info strong {
    color: var(--text);
}

.progress-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 30px;
    background: #ececf2;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 17px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
}

.floating-card-rating {
    top: 45px;
    left: -30px;
}

.floating-card-learning {
    right: -25px;
    bottom: 70px;
}

.rating-icon,
.learning-icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff4d6;
    color: #e9a500;
}

.learning-icon {
    background: #def8ef;
    color: #13a978;
}

.floating-card strong {
    display: block;
    font-size: 13px;
}

.floating-card span {
    display: block;
    color: var(--text-light);
    font-size: 11px;
}

.stats-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 33px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 27px;
    letter-spacing: -0.04em;
}

.stat-item span {
    color: var(--text-light);
    font-size: 13px;
}

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

.category-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #c9dc92;
    box-shadow: 0 18px 40px rgba(30, 30, 60, 0.07);
}

.category-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.category-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.category-card p {
    margin: 0 0 9px;
    color: var(--text-light);
    font-size: 13px;
}

.category-card span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

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

.course-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    transition: 0.25s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(24, 25, 35, 0.08);
}

.course-card-image {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bg-one {
    background: linear-gradient(145deg, #17497e, #082555);
}

.bg-two {
    background: linear-gradient(145deg, #b0cf4a, #769d13);
}

.bg-three {
    background: linear-gradient(145deg, #294d75, #97bf21);
}

.course-image-symbol {
    color: rgba(255, 255, 255, 0.9);
    font-size: 54px;
    font-weight: 800;
}

.course-card-image .course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.course-level {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 10px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.16);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.course-card-content {
    padding: 23px;
}

.course-card-content h3 {
    margin: 8px 0 6px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.course-card-content h3 a:hover {
    color: var(--primary);
}

.instructor {
    margin: 0 0 11px;
    color: var(--text-light);
    font-size: 13px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.rating span {
    color: #f7ad21;
}

.rating small {
    color: var(--text-light);
}

.course-details {
    display: flex;
    gap: 18px;
    padding: 17px 0;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    font-size: 12px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 17px;
}

.course-price {
    font-size: 20px;
}

.course-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 90px;
    align-items: center;
}

.feature-visual {
    padding: 60px;
    border-radius: 30px;
    background: linear-gradient(145deg, #eeeaff, #e6faf4);
}

.dashboard-card {
    padding: 28px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 25px 60px rgba(34, 35, 60, 0.12);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-size: 14px;
    font-weight: 800;
}

.dashboard-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
}

.dashboard-course {
    display: flex;
    align-items: center;
    gap: 15px;
}

.small-thumbnail {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #17497e, #082555);
    color: white;
    font-weight: 800;
}

.dashboard-course strong {
    display: block;
}

.dashboard-course span {
    display: block;
    margin-top: 3px;
    color: var(--text-light);
    font-size: 11px;
}

.dashboard-progress {
    height: 8px;
    overflow: hidden;
    margin: 20px 0 34px;
    border-radius: 20px;
    background: #ededf3;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    padding-top: 23px;
}

.dashboard-stats div {
    text-align: center;
}

.dashboard-stats strong {
    display: block;
    font-size: 19px;
}

.dashboard-stats span {
    color: var(--text-light);
    font-size: 10px;
}

.feature-content h2 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.feature-intro {
    margin: 0 0 32px;
    color: var(--text-light);
    font-size: 17px;
}

.feature-list {
    display: grid;
    gap: 24px;
    margin-bottom: 34px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-check {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border-radius: 50%;
    background: #f0f7dd;
    color: #769d13;
    font-weight: 800;
}

.feature-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.feature-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.section-dark {
    background: var(--dark);
    color: white;
}

.section-header-light h2 {
    color: white;
}

.section-header-light p {
    color: #a7abba;
}

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

.path-card {
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #303442;
    border-radius: 18px;
    background: var(--dark-secondary);
    transition: 0.25s ease;
}

.path-card:hover {
    transform: translateY(-4px);
    border-color: rgba(151, 191, 33, 0.65);
}

.path-number {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.05);
    font-size: 85px;
    font-weight: 900;
}

.path-label {
    color: #b8d957;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.path-card h3 {
    margin: 10px 0;
    font-size: 23px;
    line-height: 1.25;
}

.path-card p {
    color: #aeb1bd;
    font-size: 14px;
}

.path-meta {
    display: flex;
    gap: 7px;
    margin: 20px 0;
    color: #858a98;
    font-size: 12px;
}

.path-card a {
    color: #cce56e;
    font-size: 13px;
    font-weight: 700;
}

.centered-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

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

.testimonial {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.testimonial-stars {
    margin-bottom: 18px;
    color: #f5a918;
    letter-spacing: 2px;
}

.testimonial blockquote {
    margin: 0;
    color: #3b414b;
    font-size: 15px;
    line-height: 1.8;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.testimonial-user strong {
    display: block;
    font-size: 13px;
}

.testimonial-user span:not(.testimonial-avatar) {
    color: var(--text-light);
    font-size: 11px;
}

.cta-section {
    padding: 20px 0 100px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 60px;
    border-radius: 25px;
    background: linear-gradient(135deg, #082555, #0d3263);
    color: white;
}

.cta-label {
    display: block;
    margin-bottom: 12px;
    color: #d9eb9d;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cta-box h2 {
    max-width: 620px;
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.cta-box p {
    margin: 0;
    color: #e8f2c7;
}

.site-footer {
    padding-top: 70px;
    background: #f7f8fb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 45px;
    padding-bottom: 55px;
}

.footer-brand p {
    max-width: 330px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-column h3 {
    margin: 0 0 18px;
    font-size: 13px;
}

.footer-column a {
    display: block;
    margin-bottom: 11px;
    color: var(--text-light);
    font-size: 13px;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 12px;
}

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

/* Switches to the mobile menu earlier than the general 1050px breakpoint
   below, the full desktop nav + language switcher + Log in + Start
   Learning genuinely need ~1128px to fit on one line; below that (down to
   1050px) they wrap mid-header rather than cleanly reflowing. */
@media (max-width: 1150px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .hero-content {
        max-width: 800px;
        text-align: center;
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }
    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin-inline: auto;
    }

    .hero-main-card {
        width: 100%;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .feature-visual {
        max-width: 650px;
        width: 100%;
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .section {
        padding: 80px 0;
    }

    .section-header {
        display: block;
        margin-bottom: 35px;
    }

    .section-header .text-link {
        display: inline-block;
        margin-top: 18px;
    }

    .course-grid,
    .path-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .path-card:last-child,
    .testimonial:last-child {
        grid-column: 1 / -1;
    }

    .cta-box {
        display: block;
        padding: 45px;
    }

    .cta-box .btn {
        margin-top: 25px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .header-inner {
        min-height: 68px;
    }
    .header-actions {
        display: none;
    }

    .mobile-menu.open {
        display: block;
        /* body.menu-open locks page scroll while the menu is open (so the
           background can't scroll behind it), without its own scroll
           area, that would also trap any menu content taller than the
           remaining viewport with no way to reach it. */
        max-height: calc(100vh - 69px);
        max-height: calc(100dvh - 69px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero {
        padding: 70px 0 75px;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .hero-description {
        font-size: 17px;
    }
    .floating-card {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-bottom: 1px solid var(--border);
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-bottom: 0;
    }

    .category-grid,
    .course-grid,
    .path-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .path-card:last-child,
    .testimonial:last-child {
        grid-column: auto;
    }

    .feature-visual {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 0;
    }
}

@media (max-width: 500px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        align-items: flex-start;
        text-align: left;
    }

    .course-image-large {
        min-height: 230px;
        padding: 25px;
    }

    .fake-dashboard {
        right: 20px;
        width: 83%;
        height: 180px;
    }

    .fake-content {
        padding: 20px;
    }
    .fake-chart {
        height: 85px;
    }
    .category-card {
        padding: 20px;
    }
    .dashboard-card {
        padding: 20px;
    }
    .dashboard-stats {
        gap: 5px;
    }
    .cta-box {
        padding: 38px 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   LEARNERA.XYZ BRAND REFINEMENTS
========================================================= */

::selection {
    background: var(--secondary);
    color: var(--dark);
}

.eyebrow {
    color: var(--primary);
    background: var(--secondary-light);
    border-color: #dce9b8;
}

.eyebrow-dot {
    background: var(--secondary);
}

.hero h1 span {
    color: var(--secondary-dark);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible,
.btn-white:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(151, 191, 33, 0.45);
    outline-offset: 3px;
}

.course-category,
.section-label,
.text-link {
    color: var(--primary);
}

.category-icon,
.course-arrow,
.testimonial-avatar {
    background: var(--secondary-light);
    color: var(--primary);
}

.category-card:hover {
    border-color: #bed46d;
}

.progress-bar span,
.dashboard-progress span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-check {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.rating-icon {
    background: #f5f9e9;
    color: var(--secondary-dark);
}

.learning-icon {
    background: var(--navy-soft);
    color: var(--primary);
}

.section-dark {
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(151, 191, 33, 0.1),
            transparent 24%
        ),
        var(--dark);
}

.path-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0)
        ),
        var(--dark-secondary);
}

.path-card:hover {
    border-color: rgba(151, 191, 33, 0.72);
}

.cta-box {
    background:
        radial-gradient(
            circle at 84% 15%,
            rgba(151, 191, 33, 0.28),
            transparent 27%
        ),
        linear-gradient(135deg, #082555, #0d3263);
}

.btn-white {
    background: var(--secondary);
    color: var(--dark);
}

.btn-white:hover {
    background: #a8cb3b;
}

.site-footer {
    border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
    .brand-logo {
        height: 35px;
        max-width: 190px;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        height: 31px;
        max-width: 170px;
    }
}

/* =========================================================
   QUALITY BASELINE: ACCESSIBILITY + PERFORMANCE
========================================================= */

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 99999;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(8, 37, 85, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s ease;
        transform: none;
    }
}

@media (max-width: 640px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

.skip-link:focus {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   INTERIOR PAGES: COURSE ARCHIVE / SINGLE COURSE /
   LEARNING PATH / QUESTION BANK
========================================================= */

.breadcrumbs {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: var(--border);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background: var(--white);
}

/* Background presets, chosen in Customizer > Page Hero Background.
   CSS-only (gradients/patterns), so no extra network requests or CLS risk. */

.page-hero--gradient {
    background:
        radial-gradient(
            ellipse 55% 70% at 12% -15%,
            rgba(151, 191, 33, 0.22),
            transparent 60%
        ),
        radial-gradient(
            ellipse 65% 85% at 105% 115%,
            rgba(8, 37, 85, 0.16),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            var(--secondary-light) 0%,
            var(--white) 45%,
            var(--primary-light) 100%
        );
}

.page-hero--dots {
    background-image:
        radial-gradient(rgba(8, 37, 85, 0.1) 1px, transparent 1px),
        linear-gradient(135deg, var(--secondary-light), var(--white) 60%);
    background-size:
        18px 18px,
        100% 100%;
}

.page-hero--lines {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(8, 37, 85, 0.05) 0 2px,
            transparent 2px 22px
        ),
        var(--background-soft);
}

.page-hero--soft {
    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(151, 191, 33, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 8% 95%,
            rgba(8, 37, 85, 0.08),
            transparent 30%
        ),
        var(--white);
}

.page-hero-inner {
    max-width: 720px;
}

.page-hero h1 {
    margin: 8px 0 10px;
    color: var(--text);
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 0;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.65;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 18px;
}

.page-hero-meta div {
    display: flex;
    flex-direction: column;
}

.page-hero-meta strong {
    color: var(--primary);
    font-size: 24px;
    letter-spacing: -0.03em;
}

.page-hero-meta span {
    color: var(--text-light);
    font-size: 12px;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* Discovery landings: one reusable fold-first pattern for exam archives,
   exam categories, reading archives and prep-track hubs. The title keeps
   its SEO hierarchy while live archive context and the next action sit
   beside it, then real controls or cards follow immediately. */

body.post-type-archive-learnera_exam_page .breadcrumbs,
body.tax-learnera_exam_category .breadcrumbs,
body.post-type-archive-learnera_reading .breadcrumbs,
body.tax-learnera_prep_track .breadcrumbs {
    padding: 11px 0;
}

.page-hero--discovery {
    padding: 20px 0;
}

.page-hero--discovery .page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
    align-items: center;
    gap: 28px;
    max-width: none;
}

.page-hero--discovery .section-label {
    margin-bottom: 3px;
    font-size: 12px;
}

.page-hero--discovery h1 {
    max-width: 820px;
    margin: 2px 0 7px;
    font-size: clamp(28px, 3vw, 38px);
}

.page-hero--discovery .page-hero-copy > p {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.5;
}

.page-hero--discovery .page-hero-quick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(8, 37, 85, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(8, 37, 85, 0.06);
}

.page-hero--discovery .page-hero-meta {
    flex: 1 1 auto;
    gap: 18px;
    margin: 0;
}

.page-hero--discovery .page-hero-meta strong {
    font-size: 21px;
    line-height: 1.05;
}

.page-hero--discovery .page-hero-meta span {
    margin-top: 2px;
    white-space: nowrap;
}

.page-hero--discovery .page-hero-actions {
    flex: 0 1 auto;
    gap: 7px;
    margin: 0;
}

.page-hero--discovery .page-hero-actions .btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
    white-space: nowrap;
}

.discovery-archive-section {
    padding: 18px 0 72px;
    scroll-margin-top: 92px;
}

.discovery-archive-section .filter-bar {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.post-type-archive-learnera_exam_page .discovery-panel {
    margin-bottom: 18px;
    padding: 14px 16px;
}

.post-type-archive-learnera_exam_page .discovery-summary {
    margin-top: 8px;
    font-size: 12px;
}

.post-type-archive-learnera_exam_page .discovery-progress {
    margin-top: 8px;
}

.post-type-archive-learnera_exam_page .discovery-progress[hidden],
.post-type-archive-learnera_exam_page .discovery-ajax-status:empty {
    display: none;
}

.post-type-archive-learnera_exam_page .discovery-ajax-status {
    min-height: 0;
    margin-top: 5px;
}

.discovery-archive-section .archive-results-title {
    margin-bottom: 14px;
}

.discovery-archive-section .exam-list-controls {
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .page-hero--discovery .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .page-hero--discovery .page-hero-quick {
        width: 100%;
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    body.post-type-archive-learnera_exam_page .breadcrumbs,
    body.tax-learnera_exam_category .breadcrumbs,
    body.post-type-archive-learnera_reading .breadcrumbs,
    body.tax-learnera_prep_track .breadcrumbs {
        padding: 8px 0;
    }

    .page-hero--discovery {
        padding: 14px 0;
    }

    .page-hero--discovery h1 {
        font-size: clamp(26px, 9vw, 34px);
    }

    .page-hero--discovery .page-hero-copy > p {
        font-size: 14px;
    }

    .page-hero--discovery .page-hero-quick {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .page-hero--discovery .page-hero-meta {
        width: 100%;
    }

    .page-hero--discovery .page-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .page-hero--discovery .page-hero-actions .btn {
        justify-content: center;
        white-space: normal;
    }

    .page-hero--discovery .page-hero-actions .btn:only-child {
        grid-column: 1 / -1;
    }

    .discovery-archive-section {
        padding: 14px 0 56px;
    }

    .post-type-archive-learnera_exam_page .discovery-panel {
        padding: 13px;
    }

    .discovery-archive-section .filter-pills {
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 3px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .discovery-archive-section .filter-pill {
        flex: none;
    }
}

/* Exam archive: full question + answer list */

.exam-archive-note {
    display: flex;
    background: var(--navy-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 16px 20px;
    margin-bottom: 28px;
}

.exam-archive-note p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

/* Exam landing: deliver a clear practice action and real question content
   inside the first viewport instead of spending the fold on orientation. */
.single-learnera_exam_page .breadcrumbs {
    padding: 12px 0;
}

.exam-landing-hero {
    padding: 26px 0;
}

.exam-landing-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    align-items: center;
    gap: 40px;
    max-width: none;
}

.exam-landing-copy .section-label {
    margin-bottom: 4px;
}

.exam-landing-hero h1 {
    margin: 3px 0 9px;
    max-width: 820px;
    font-size: clamp(30px, 3vw, 42px);
}

.exam-landing-hero .exam-landing-copy p {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.55;
}

.exam-landing-launch {
    padding: 16px 18px;
    border: 1px solid rgba(8, 37, 85, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(8, 37, 85, 0.08);
    backdrop-filter: blur(8px);
}

.exam-landing-meta {
    display: flex;
    gap: 28px;
    margin: 0;
}

.exam-landing-meta div {
    display: flex;
    flex-direction: column;
}

.exam-landing-meta dt {
    order: 2;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exam-landing-meta dd {
    order: 1;
    margin: 0;
    color: var(--primary);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
}

.exam-landing-hero .exam-landing-trust {
    margin: 9px 0 10px;
    color: var(--dark-secondary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.exam-landing-trust summary {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    cursor: pointer;
    list-style: none;
}

.exam-landing-trust summary::-webkit-details-marker {
    display: none;
}

.exam-landing-trust summary::after {
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-right: 1.5px solid currentcolor;
    border-bottom: 1.5px solid currentcolor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.exam-landing-trust[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.exam-landing-trust summary:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

.exam-landing-trust summary svg {
    flex: none;
    color: var(--secondary-dark);
}

.exam-landing-trust-body {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #dce7bd;
    border-radius: 8px;
    background: var(--secondary-light);
}

.exam-landing-hero .exam-landing-trust-body p {
    margin: 0;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.exam-landing-hero .exam-landing-trust-body p + p {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(8, 37, 85, 0.1);
    color: var(--text);
}

.exam-landing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.exam-landing-actions .btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
}

.exam-landing-category {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.exam-landing-category:hover {
    color: var(--primary-dark);
}

.exam-archive-section {
    padding: 24px 0 80px;
}

.exam-practice-stage {
    scroll-margin-top: 96px;
}

.exam-launch-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-bottom: 12px;
}

.exam-launch-panel .exam-mode-bar {
    flex: 1 1 auto;
    margin: 0;
}

.exam-launch-panel .exam-list-controls {
    flex: none;
    margin: 0;
}

.exam-list-controls[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .exam-landing-hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .exam-landing-launch {
        width: 100%;
        max-width: 520px;
    }

    .exam-launch-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .exam-launch-panel .exam-mode-bar,
    .exam-launch-panel .exam-list-controls {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .single-learnera_exam_page .breadcrumbs {
        padding: 9px 0;
    }

    .single-learnera_exam_page .breadcrumbs li:last-child {
        display: none;
    }

    .single-learnera_exam_page .breadcrumbs li:nth-last-child(2)::after {
        display: none;
    }

    .exam-landing-hero {
        padding: 14px 0;
    }

    .exam-landing-hero h1 {
        font-size: clamp(27px, 9vw, 34px);
    }

    .exam-landing-hero .exam-landing-copy p {
        font-size: 15px;
    }

    .exam-landing-launch {
        padding: 14px;
    }

    .exam-landing-actions {
        grid-template-columns: 1fr;
    }

    .exam-archive-section {
        padding: 18px 0 60px;
    }

    .exam-launch-panel .exam-list-controls {
        justify-content: space-between;
    }

    .exam-launch-panel .exam-list-controls select {
        flex: 1;
        max-width: 220px;
    }
}

.exam-list-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.exam-list-controls select {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-weight: 600;
}

.exam-list-scroll-sentinel {
    height: 1px;
}

.exam-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.exam-list-pagination[hidden] {
    display: none;
}

.exam-list-page-text {
    min-width: 96px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.exam-question-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exam-question-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: 0.25s ease;
}

/* `display: flex` above wins over the browser's built-in `[hidden] { display: none }`
   rule (author CSS beats user-agent CSS regardless of specificity), so without this,
   JS setting `card.hidden = true` in practice mode has no visible effect. */
.exam-question-card[hidden] {
    display: none;
}

.exam-question-card:hover {
    box-shadow: var(--shadow);
}

.exam-question-num {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.exam-question-body {
    flex: 1;
    min-width: 0;
    font-family:
        "Segoe UI",
        "Nirmala UI",
        "Noto Sans Bengali",
        "Kohinoor Bangla",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

.exam-question-save-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px 10px;
    margin: -3px 0 8px;
}

.exam-question-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.exam-question-save:hover,
.exam-question-save:focus-visible {
    border-color: var(--primary);
    background: var(--navy-soft);
    color: var(--primary);
}

.exam-question-save:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.exam-question-save.is-saved {
    border-color: var(--secondary-dark);
    background: var(--secondary-light);
    color: var(--dark-secondary);
}

.exam-question-save:disabled {
    opacity: 0.66;
    cursor: wait;
}

.exam-question-save-status {
    flex-basis: 100%;
    color: var(--text-light);
    text-align: right;
    font-size: 12px;
}

.exam-question-save-status:empty {
    display: none;
}

.exam-question-save-status.is-error {
    color: #a3352f;
}

@media (max-width: 480px) {
    .exam-question-card {
        gap: 10px;
        padding: 16px;
    }

    .exam-question-num {
        width: 32px;
        height: 32px;
    }

    .exam-question-save-area {
        justify-content: flex-start;
    }

    .exam-question-save {
        min-height: 44px;
    }

    .exam-question-save-status {
        text-align: left;
    }
}

.exam-question-text {
    margin: 2px 0 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: break-word;
}

.exam-question-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 10px;
}

.exam-question-option {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 11px 16px;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    text-align: left;
    overflow-wrap: break-word;
    cursor: default;
}

/* Self-test powers both one-question practice (LRN-026) and full-list
   practice (LRN-027). It temporarily conceals every answer-key signal until
   the learner checks that individual question. */
.is-self-test-mode .exam-question-card:not(.is-answered) .exam-question-option {
    cursor: pointer;
}

.is-self-test-mode
    .exam-question-card:not(.is-answered)
    .exam-question-option:hover,
.is-self-test-mode
    .exam-question-card:not(.is-answered)
    .exam-question-option:focus-visible {
    border-color: var(--primary);
}

.is-self-test-mode
    .exam-question-card:not(.is-answered)
    .exam-question-option--correct {
    border-color: var(--border);
    border-width: 1px;
    background: var(--white);
    font-weight: normal;
}

.is-self-test-mode
    .exam-question-card:not(.is-answered)
    .exam-question-option--correct::before {
    content: none;
}

.is-self-test-mode .exam-question-card:not(.is-answered) .screen-reader-text {
    display: none;
}

.is-self-test-mode
    .exam-question-card:not(.is-answered)
    .exam-question-option.is-selected {
    border-color: var(--primary);
    border-width: 2px;
    background: var(--background-soft);
}

.exam-question-option--user-wrong {
    border-color: #a3352f;
    background: #fdeeee;
}

.exam-question-check {
    margin: 14px 0 0;
}

.exam-question-feedback {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 600;
}

.exam-question-feedback.is-correct {
    background: var(--secondary-light);
    color: var(--dark-secondary);
}

.exam-question-feedback.is-incorrect {
    background: #fdeeee;
    color: #a3352f;
}

.exam-question-feedback a {
    color: inherit;
    text-decoration: underline;
}

.exam-question-option--correct {
    border-color: var(--secondary-dark);
    border-width: 2px;
    background: var(--secondary-light);
    color: var(--text);
    font-weight: 600;
}

.exam-question-option--correct::before {
    content: "\2713";
    color: var(--primary);
    margin-right: 6px;
    font-weight: 700;
}

.is-self-test-mode
    .exam-question-card.is-answered
    .exam-question-option--correct {
    border-color: var(--secondary-dark);
    background: var(--secondary-light);
    color: var(--text);
    font-weight: 600;
}

.is-self-test-mode
    .exam-question-card.is-answered
    .exam-question-option--user-wrong {
    border-color: #a3352f;
    background: #fdeeee;
}

.exam-question-explanation {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.exam-question-explanation summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    width: fit-content;
}

.exam-question-explanation summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.exam-question-explanation p {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--background-soft);
    border-radius: var(--radius-small);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    .exam-question-card {
        transition: none;
    }

    .exam-question-save {
        transition: none;
    }
}

.exam-mode-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .exam-mode-bar {
        justify-content: center;
        text-align: center;
    }
}

.exam-mode-bar[hidden] {
    display: none;
}

.exam-mode-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-full-list-practice-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-mode-choices[hidden],
.exam-full-list-practice-tools[hidden],
.exam-mode-exit[hidden] {
    display: none;
}

.exam-mode-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
    cursor: pointer;
}

.exam-mode-toggle:hover {
    border-color: var(--primary);
    background: var(--navy-soft);
}

.exam-mode-toggle:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

.exam-mode-toggle[data-exam-full-list-practice-start],
.exam-mode-toggle[data-exam-mode-start="practice"],
.exam-check-all,
.exam-mode-exit {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.exam-mode-toggle[data-exam-full-list-practice-start]:hover,
.exam-mode-toggle[data-exam-mode-start="practice"]:hover,
.exam-check-all:hover,
.exam-mode-exit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.exam-check-all:disabled,
.exam-check-all:disabled:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    opacity: 0.5;
    cursor: not-allowed;
}

.exam-full-list-summary {
    margin: -4px 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--secondary-dark);
    border-radius: var(--radius-small);
    background: var(--secondary-light);
    color: var(--dark-secondary);
    font-size: 14px;
    font-weight: 700;
}

.exam-full-list-summary[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .exam-mode-choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .exam-mode-choices .exam-mode-toggle {
        width: 100%;
        padding-inline: 10px;
        justify-content: center;
        line-height: 1.2;
    }

    .exam-mode-choices .exam-mode-toggle[data-exam-full-list-practice-start] {
        grid-column: 1 / -1;
    }

    .exam-full-list-practice-tools {
        width: 100%;
        flex-direction: column;
    }

    .exam-full-list-practice-tools .exam-mode-toggle {
        width: 100%;
        justify-content: center;
    }
}

.exam-practice-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.exam-practice-nav[hidden] {
    display: none;
}

.exam-practice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    transition: 0.2s ease;
}

.exam-practice-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--navy-soft);
}

.exam-practice-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.exam-practice-progress-text {
    min-width: 96px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.exam-practice-progress-track {
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

.exam-practice-progress-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.exam-practice-hint {
    margin: -8px 0 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

@media (prefers-reduced-motion: reduce) {
    .exam-practice-progress-fill {
        transition: none;
    }
}

/* Practice mode: distraction-free full-screen view. A CSS-only overlay
   (works everywhere) that requestFullscreen() in main.js layers on top of
   where the browser supports it (mainly desktop + Android Chrome, iOS
   Safari has no reliable Fullscreen API for arbitrary elements, so this
   overlay is the real mechanism, not a fallback). */

body.exam-fullscreen-active {
    overflow: hidden;
}

body.exam-fullscreen-active .site-header,
body.exam-fullscreen-active .breadcrumbs,
body.exam-fullscreen-active .page-hero,
body.exam-fullscreen-active .exam-archive-note,
body.exam-fullscreen-active .exam-list-controls,
body.exam-fullscreen-active .exam-list-pagination,
body.exam-fullscreen-active .site-footer,
body.exam-fullscreen-active .back-to-top {
    display: none;
}

body.exam-fullscreen-active .exam-practice-stage {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 16px 20px max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
}

body.exam-fullscreen-active .exam-mode-bar {
    flex: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

body.exam-fullscreen-active .exam-question-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

body.exam-fullscreen-active .exam-question-card {
    width: 100%;
    max-width: 640px;
}

/* :fullscreen is set when requestFullscreen() actually succeeded; give the
   stage the surrounding page's background so it doesn't render black. */
.exam-practice-stage:fullscreen {
    background: var(--white);
    padding: 24px max(20px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));
}

/* Question Bank archive: exam card grid */

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

.exam-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    overflow: hidden;
    transition: 0.25s ease;
}

.exam-card[hidden] {
    display: none;
}

.exam-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.exam-card:hover {
    transform: translateY(-4px);
    border-color: #c9dc92;
    box-shadow: 0 18px 40px rgba(30, 30, 60, 0.1);
}

.exam-card:hover::before {
    opacity: 1;
}

.exam-card-badge {
    align-self: flex-start;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--secondary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.exam-card-title {
    margin: 0;
    font-size: 17px;
    color: var(--text);
}

.exam-card-meta {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

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

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

/* Course archive: filters + pagination */

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

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    appearance: none;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: white;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.course-grid[aria-busy="true"] {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .course-grid[aria-busy="true"] {
        transition: none;
    }
}

.filter-pill:hover {
    border-color: #c9dc92;
}

.filter-pill[aria-current="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.filter-sort select {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

/* the_posts_pagination() (used by archive.php, index.php, search.php and
   the Question Bank archive) wraps its links in an extra `.nav-links` div,
   unlike the hand-rolled flat markup elsewhere in the theme, without this,
   `.pagination`'s flex row only had one child (`.nav-links`) to lay out, so
   the individual page-number links inside it fell back to block-level
   stacking. */
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination [aria-current="page"] {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Single course */

.course-detail-hero {
    padding: 48px 0;
    background: var(--background-soft);
}

.course-detail-hero h1 {
    max-width: 780px;
    margin: 10px 0 14px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.course-detail-lede {
    max-width: 700px;
    margin: 0 0 22px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.6;
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--text-light);
    font-size: 13px;
}

.course-detail-meta strong {
    color: var(--text);
}

.instructor-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.instructor-mini-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.instructor-mini strong {
    display: block;
    font-size: 14px;
}

.instructor-mini span {
    color: var(--text-light);
    font-size: 12px;
}

.course-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: start;
    padding: 56px 0;
}

.course-main > * + * {
    margin-top: 48px;
}

.detail-section h2 {
    margin: 0 0 18px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.checklist li::before {
    content: "✓";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    font-size: 11px;
    font-weight: 800;
}

.course-description p {
    max-width: 68ch;
    color: var(--text-light);
    line-height: 1.75;
}

.course-description p + p {
    margin-top: 14px;
}

.curriculum-summary {
    margin: 0 0 18px;
    color: var(--text-light);
    font-size: 14px;
}

.curriculum-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.curriculum-section + .curriculum-section {
    margin-top: 14px;
}

.curriculum-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--background-soft);
    font-size: 15px;
    font-weight: 700;
}

.curriculum-section-head span {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.curriculum-lessons {
    margin: 0;
    padding: 0;
    list-style: none;
}

.curriculum-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: var(--text);
    font-size: 14px;
}

.curriculum-lesson:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.lesson-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
}

.curriculum-lesson-title {
    flex: 1;
}

.curriculum-lesson-time {
    color: var(--text-light);
    font-size: 12px;
}

.curriculum-more {
    padding: 13px 20px;
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
}

.instructor-card {
    display: flex;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.instructor-card-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.instructor-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.instructor-card p:first-of-type {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.instructor-card p:last-child {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.course-sidebar {
    position: sticky;
    top: 96px;
}

.enroll-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow);
}

.enroll-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: linear-gradient(145deg, #17497e, #082555);
    color: rgba(255, 255, 255, 0.9);
    font-size: 40px;
    font-weight: 800;
}

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

.enroll-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.enroll-price-original {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    text-decoration: line-through;
}

.enroll-card .btn {
    width: 100%;
}

.enroll-note {
    margin: 12px 0 0;
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
}

.enroll-includes {
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 12px;
}

.enroll-includes li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
}

.enroll-includes li::before {
    content: "✓";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    font-size: 10px;
    font-weight: 800;
}

/* Learning path */

.path-hero {
    padding: 56px 0;
    background: var(--background-soft);
}

.path-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 20px 0 26px;
    color: var(--text-light);
    font-size: 14px;
}

.path-hero-meta strong {
    color: var(--text);
}

.path-steps {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.path-step {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 36px;
}

.path-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 25px;
    bottom: -4px;
    width: 2px;
    background: var(--border);
}

.path-step-number {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 100%;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 800;
}

.path-step-content {
    flex: 1;
    padding: 22px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.path-step-content h3 {
    margin: 6px 0 8px;
    font-size: 19px;
}

.path-step-content p {
    margin: 0 0 14px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.path-step-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 4px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.path-step-content > a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.path-step-content > a:hover {
    text-decoration: underline;
}

/* Question bank */

.topic-card span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.sample-question {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow);
}

.sample-question-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sample-question legend {
    padding: 0;
    margin: 0 0 20px;
    color: var(--text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.sq-multi-hint {
    margin: -12px 0 16px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
}

.sq-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.sq-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.sq-option:hover {
    border-color: #c9dc92;
}

.sq-option input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.sq-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.sample-question-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sq-feedback {
    margin: 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.sq-feedback:empty {
    display: none;
}

.sq-feedback.is-correct {
    background: var(--secondary-light);
    color: var(--dark-secondary);
}

.sq-feedback.is-incorrect {
    background: #fdeeee;
    color: #a3352f;
}

/* Generic page content (page.php, editor output) */

.page-content {
    max-width: 68ch;
}

.page-content > * + * {
    margin-top: 1.2em;
}

.page-content h2 {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.page-content h3 {
    font-size: 21px;
}

.page-content p {
    color: var(--text-light);
    line-height: 1.75;
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
}

.page-content ul,
.page-content ol {
    padding-left: 1.3em;
    color: var(--text-light);
    line-height: 1.75;
}

@media (max-width: 1050px) {
    .course-detail-layout {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: static;
        max-width: 420px;
    }
}

@media (max-width: 850px) {
    .page-hero-meta {
        gap: 18px;
    }
    .checklist {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        display: block;
    }
    .filter-sort {
        margin-top: 16px;
    }
}

@media (max-width: 700px) {
    .course-detail-layout {
        padding: 40px 0;
    }
    .instructor-card {
        flex-direction: column;
    }
    .path-step {
        gap: 16px;
    }

    .path-step-number {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }

    .path-step:not(:last-child)::before {
        left: 20px;
    }
    .path-step-content {
        padding: 18px;
    }
    .sample-question {
        padding: 22px;
    }
}

/* =========================================================
   BLOCK PATTERNS
   Layout tweaks for editor-inserted patterns (/patterns/*.php)
   built from core blocks + the theme's existing component classes.
========================================================= */

.hero-centered {
    text-align: center;
}

.hero-centered h1,
.hero-centered .hero-description {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-columns .category-card,
.wp-block-columns .course-card,
.wp-block-columns .path-card,
.wp-block-columns .testimonial {
    height: 100%;
}

.split-band .wp-block-column .wp-block-image img {
    border-radius: var(--radius-large);
}

/* =========================================================
   ACCESSIBILITY UTILITIES
========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   BLOG: POST CARDS, SINGLE POST, COMMENTS, SEARCH, 404
========================================================= */

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

.post-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    transition: 0.25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(24, 25, 35, 0.08);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--background-soft);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 23px;
}

.post-card-meta {
    display: flex;
    gap: 8px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card p {
    margin: 0 0 14px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.read-more:hover {
    text-decoration: underline;
}

.no-results {
    max-width: 480px;
}

.no-results p {
    margin: 0 0 20px;
    color: var(--text-light);
}

/* Single post */

.single-post-header {
    padding: 48px 0 0;
    background: var(--background-soft);
}

.single-post-header h1 {
    max-width: 780px;
    margin: 10px 0 14px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.single-post-meta {
    display: flex;
    gap: 10px;
    color: var(--text-light);
    font-size: 13px;
}

.single-post-thumbnail {
    margin-top: 32px;
    padding-bottom: 48px;
}

.single-post-thumbnail img {
    width: 100%;
    border-radius: var(--radius-large);
}

.single-post-content {
    margin: 48px auto 0;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 68ch;
    margin: 32px auto 0;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 14px;
}

/* Comments */

.comments-area {
    max-width: 68ch;
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-title {
    margin: 0 0 24px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.comment-list,
.comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .children {
    margin-left: 32px;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 100%;
}

.comment-author .fn {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    margin-top: 2px;
    color: var(--text-light);
    font-size: 12px;
}

.comment-metadata a {
    color: inherit;
}

.comment-content {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.comment-content p {
    margin: 0 0 10px;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.no-comments {
    color: var(--text-light);
}

.comment-respond {
    margin-top: 32px;
}

.comment-reply-title {
    margin: 0 0 18px;
    font-size: 20px;
}

.comment-form p {
    margin: 0 0 16px;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: 600;
}

/* Login page */

.login-page-title {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
}

.login-page-subtitle {
    max-width: 440px;
    margin: 0 auto 32px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.login-page-title + .login-card {
    margin-top: 28px;
}

.login-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-error {
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px solid #f0b7b7;
    border-radius: var(--radius-small);
    background: #fdf1f1;
    color: #a3242c;
    font-size: 14px;
    line-height: 1.5;
}

.login-success {
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px solid #c9dc92;
    border-radius: var(--radius-small);
    background: var(--secondary-light);
    color: var(--primary);
    font-size: 14px;
    line-height: 1.5;
}

.login-field {
    margin: 0 0 20px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.login-field input[type="text"],
.login-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 15px;
}

.login-field input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.login-password-wrap {
    position: relative;
    display: block;
}

.login-password-wrap input {
    padding-right: 64px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: none;
    background: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
}

.login-password-toggle:hover {
    background: var(--navy-soft);
}

.login-password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.login-remember {
    margin: 0 0 24px;
    font-size: 14px;
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.login-submit {
    margin: 0;
}

.login-submit .btn {
    width: 100%;
}

.login-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    font-size: 14px;
}

.login-links a {
    color: var(--primary);
    font-weight: 600;
}

.login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .login-card {
        padding: 28px 22px;
    }

    .login-links {
        flex-direction: column;
    }
}

/* Search form */

.search-form {
    display: flex;
    gap: 10px;
}

.search-form-input {
    flex: 1;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
}

/* 404 */

.error-404 {
    padding: 110px 0;
    text-align: center;
}

.error-404-code {
    display: block;
    margin-bottom: 10px;
    color: var(--border);
    font-size: 90px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.error-404 h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.error-404 p {
    max-width: 480px;
    margin: 0 auto 28px;
    color: var(--text-light);
}

.error-404 .search-form {
    max-width: 420px;
    margin: 0 auto 28px;
}

.error-404-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

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

@media (max-width: 700px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .comment-list .children {
        margin-left: 16px;
    }
    .error-404 {
        padding: 70px 0;
    }
    .error-404-code {
        font-size: 64px;
    }
    .search-form {
        flex-direction: column;
    }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
    .skip-link,
    .site-header,
    .mobile-menu,
    .breadcrumbs,
    .floating-card,
    /* Printing should capture the whole exam regardless of the on-screen
       page-size/infinite-scroll state, which only hides cards via the
       `hidden` attribute for the screen. */
    .exam-question-card[hidden] {
        display: block !important;
    }

    .filter-bar,
    .pagination,
    .exam-list-controls,
    .exam-list-pagination,
    .exam-question-save-area,
    .course-sidebar,
    .hero-actions,
    .page-hero-actions,
    .cta-section,
    .comment-respond,
    .btn,
    .site-footer,
    .sample-question .sample-question-actions {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container,
    .course-detail-layout,
    .single-post-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .hero,
    .page-hero,
    .course-detail-hero,
    .path-hero,
    .section-dark {
        background: none;
        color: #000;
    }

    .course-card,
    .category-card,
    .path-card,
    .testimonial,
    .post-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 30px;
}

.lang-switcher-link {
    padding: 6px 12px;
    border-radius: 30px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
}

.lang-switcher-link:hover {
    color: var(--primary);
}

.lang-switcher-link[aria-current="true"] {
    background: var(--primary);
    color: white;
}

.mobile-menu .lang-switcher {
    justify-content: center;
    margin-top: 18px;
}
