/*
Theme Name: VoxiLearn Accessible
Theme URI: https://voxilearn.com
Author: VoxiLearn Team
Author URI: https://voxilearn.com
Description: Accessibility-first English LMS theme for visually impaired learners.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voxilearn-accessible
Tags: accessibility-ready, education, custom-menu
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
    /* Palette */
    --bg:               #ffffff;
    --bg-alt:           #f8fafc;
    --surface:          #ffffff;
    --border:           #e2e8f0;
    --border-brand:     rgba(8, 145, 178, 0.22);
    --text:             #1a1d23;
    --text-sec:         #475569;
    --muted:            #64748b;
    /* Teal brand */
    --brand:            #0891b2;
    --brand-mid:        #0e7490;
    --brand-dark:       #155e75;
    --brand-ink:        #0c4a6e;
    /* Accent */
    --accent:           #ea580c;
    --accent-soft:      #fff7ed;
    --focus:            #ff8c00;
    /* Type */
    --font-body:        'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-heading:     'Sora', 'Segoe UI', system-ui, sans-serif;
    --base-size:        17px;
    /* Spacing */
    --section-py:       5.5rem;
    /* Radii */
    --r-xs:     6px;
    --r-sm:     10px;
    --r-md:     14px;
    --r-lg:     22px;
    --r-pill:   999px;
    /* Shadows */
    --sh-xs:  0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sh-sm:  0 4px 14px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --sh-md:  0 10px 30px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
    --sh-lg:  0 20px 50px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--base-size);
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--text);
}

img { max-width: 100%; height: auto; }

/* Bootstrap overrides */
.bg-info   { background: linear-gradient(135deg, var(--brand-ink), var(--brand-mid)) !important; }
.text-info { color: var(--brand-ink) !important; }
.text-muted { color: var(--muted) !important; }
.lead { font-size: 1.1rem; color: var(--text-sec); line-height: 1.8; }

/* ═══════════════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    left: 0;
    top: -80px;
    z-index: 9999;
    background: var(--text);
    color: #fff;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 0 0 var(--r-sm) 0;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════
   FOCUS RING (WCAG 2.1 AA)
   ═══════════════════════════════════════════════════ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════
   ACCESS TOOLBAR
   ═══════════════════════════════════════════════════ */
.access-tools {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem 0;
}
.access-tools .btn {
    font-size: 0.77rem;
    font-weight: 700;
    padding: 0.28rem 0.72rem;
    letter-spacing: 0.02em;
    border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */
.navbar {
    background: linear-gradient(110deg, var(--brand-ink) 0%, var(--brand-dark) 55%, var(--brand-mid) 100%) !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    box-shadow: 0 2px 20px rgba(12, 74, 110, 0.28);
}
.navbar .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.navbar .navbar-brand .vl-brand-logo {
    width: auto;
    height: 35px;
    max-height: 35px;
    border-radius: 0.35rem;
}

.navbar .navbar-brand .vl-brand-text {
    line-height: 1;
}

.navbar-nav .nav-item > .nav-link,
.navbar .menu-item > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.42rem 0.85rem !important;
    border-radius: var(--r-sm);
    transition: background 0.18s ease, color 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.navbar-nav .nav-item > .nav-link:hover,
.navbar-nav .nav-item > .nav-link:focus,
.navbar .menu-item > a:hover,
.navbar .menu-item > a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
}
.navbar .menu,
.navbar ul.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.vl-auth-actions .btn {
    min-width: 92px;
    border-width: 1.5px;
}

.vl-auth-actions .btn.btn-light {
    box-shadow: 0 4px 12px rgba(8, 47, 73, 0.18);
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand .vl-brand-logo {
        height: 30px;
        max-height: 30px;
    }

    .navbar .navbar-brand .vl-brand-text {
        font-size: 1.1rem;
    }

    .navbar ul.navbar-nav {
        margin-top: 0.5rem;
        gap: 0.3rem;
    }

    .vl-auth-actions {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.5rem;
    }
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
    padding: 0.38rem 0.6rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════════════
   CONTENT AUDIO CONTROLS
   ═══════════════════════════════════════════════════ */
.content-audio-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.vl-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.vl-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-ink);
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}
.vl-hero .lead {
    font-size: 1.08rem;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    max-width: 520px;
}
.vl-hero .btn {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.72rem 1.6rem;
    border-radius: var(--r-sm);
    min-height: 48px;
}
.vl-hero img {
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
}

/* ═══════════════════════════════════════════════════
   SECTIONS — common
   ═══════════════════════════════════════════════════ */
.section-spacer {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════
   ABOUT / FEATURES
   ═══════════════════════════════════════════════════ */
#about {
    background-color: var(--bg-alt);
}
#about h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}
.vl-feature-item {
    padding: 2rem 1.5rem !important;
    margin-top: 1.5rem !important;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-xs);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.vl-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}
.vl-feature-item img {
    display: block;
    margin: 0 auto 1.2rem;
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.vl-feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.45rem;
}
.vl-feature-item p {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: var(--r-md) !important;
    box-shadow: var(--sh-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}
.card-header {
    background: var(--bg-alt) !important;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.35rem;
}
.card-body { padding: 1.35rem; }
.card .card-img-top,
.card .card-img-top img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════ */
#courses {
    background-color: var(--bg-alt);
}
#courses .pricing-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2.5rem !important;
}
#courses h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}
.vl-level-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: rgba(8, 145, 178, 0.09);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: var(--r-pill);
    padding: 0.22rem 0.75rem;
    margin-bottom: 0.6rem;
}

/* ═══════════════════════════════════════════════════
   LESSONS
   ═══════════════════════════════════════════════════ */
#lessons h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}
.transcript {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--brand);
    background: rgba(8, 145, 178, 0.05);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.75;
}
audio {
    border-radius: var(--r-sm);
    accent-color: var(--brand);
    margin-top: 0.7rem;
}

/* ═══════════════════════════════════════════════════
   BOOKING / CTA BAND
   ═══════════════════════════════════════════════════ */
#booking > div {
    background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-dark) 55%, var(--brand-mid) 100%) !important;
    border-radius: var(--r-lg);
    margin: 0 1rem;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}
#booking h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff !important;
}
#booking .form-control {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: var(--r-sm);
    padding: 0.65rem 1rem;
    font-size: 0.93rem;
}
#booking .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
#booking .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    color: #fff;
}
#booking .form-label {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82) !important;
    margin-bottom: 0.38rem;
}
#booking .btn-outline-light {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.72rem;
    border-radius: var(--r-sm);
    border-width: 2px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transition: background 0.18s ease, transform 0.18s ease;
}
#booking .btn-outline-light:hover,
#booking .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   INSTRUCTORS
   ═══════════════════════════════════════════════════ */
#teachers h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}
.vl-instructor .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
}
.vl-instructor .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.vl-instructor .card-text {
    font-size: 0.875rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   COURSE EXPERIENCE
   ═══════════════════════════════════════════════════ */
.vl-course-experience .card {
    border-radius: var(--r-md);
}

.vl-course-main-stack > .card {
    margin-bottom: 1.15rem;
}

.vl-course-player-card .card-body {
    padding-top: 1.45rem;
    padding-bottom: 1.45rem;
}

.vl-course-experience .list-group-item {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 0.5rem;
}

.vl-course-experience .list-group-item:last-child {
    margin-bottom: 0;
}

.vl-course-experience .list-group-item.is-active {
    border-color: var(--brand);
    background: rgba(8, 145, 178, 0.08);
}

.vl-course-experience .progress {
    height: 10px;
}

.vl-course-experience .form-check {
    margin-bottom: 0.45rem;
}

.vl-course-experience .form-check:last-child {
    margin-bottom: 0;
}

.vl-course-sidebar-lessons .list-group {
    max-height: 56vh;
    overflow: auto;
}

@media (min-width: 1200px) {
    .vl-course-sidebar-lessons {
        position: sticky;
        top: 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
#faq {
    background-color: var(--bg-alt);
}

#faq.section-spacer {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.faq-shell {
    max-width: 800px;
    width: 100%;
}

#faq h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: none;
    line-height: 1.15;
    margin-left: auto;
    margin-right: auto;
}

.faq-accordion {
    width: 100%;
}

.accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    overflow: hidden;
    margin-top: 0 !important;
    background: var(--surface);
}

.faq-accordion .accordion-item + .accordion-item {
    margin-top: 0.55rem !important;
}

.accordion-button {
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text) !important;
    background: var(--surface) !important;
    padding: 1.05rem 1.25rem;
    letter-spacing: -0.005em;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--brand-dark) !important;
    background: rgba(8, 145, 178, 0.04) !important;
}
.accordion-body {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.8;
    padding: 0.5rem 1.1rem 0.9rem;
    border-top: 1px solid var(--border);
}

.faq-modal-content {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

#faqModal .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

#faqModal .modal-body {
    max-height: 68vh;
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.25rem;
    scrollbar-gutter: stable;
}

#faqModal .accordion-item {
    margin-top: 0.75rem !important;
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════ */
#testimonials h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.vl-testimonial {
    padding: 0 !important;
    margin-bottom: 0;
}
.vl-testimonial-inner {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}
.vl-testimonial-inner::before {
    content: '\201C';
    position: absolute;
    top: 0.85rem;
    left: 1.2rem;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(8, 145, 178, 0.15);
    font-family: Georgia, serif;
    pointer-events: none;
}
.vl-testimonial-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}
.vl-testimonial img.img-thumbnail {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-brand);
    margin-bottom: 1rem;
    display: block;
}
.vl-testimonial h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.65rem;
}
.vl-testimonial p {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--r-sm);
    transition: all 0.18s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    letter-spacing: 0.005em;
}
.btn-info {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.28);
}
.btn-info:hover,
.btn-info:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.38);
    transform: translateY(-1px);
    color: #fff !important;
}
.btn-outline-info {
    color: var(--brand-dark);
    border-color: var(--brand);
    background: transparent;
}
.btn-outline-info:hover,
.btn-outline-info:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════ */
.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.62rem 1rem;
    font-size: 0.93rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    color: var(--text);
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
    outline: none;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
    background: #0f172a !important;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1000px 400px at 10% 120%, rgba(8, 145, 178, 0.1), transparent 60%);
    pointer-events: none;
}
footer h3.h5 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}
footer .list-unstyled li a,
footer .menu-item a,
footer .link-light {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}
footer .list-unstyled li a:hover,
footer .menu-item a:hover,
footer .link-light:hover {
    color: #fff !important;
}
footer .menu,
footer .menu > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer .menu-item { margin-bottom: 0.5rem; }
footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   HIGH CONTRAST
   ═══════════════════════════════════════════════════ */
.high-contrast {
    --bg:         #000;
    --bg-alt:     #0a0a0a;
    --surface:    #000;
    --border:     #ffd400;
    --text:       #fff;
    --text-sec:   #e2e8f0;
    --muted:      #cbd5e1;
    --brand:      #ffd400;
    --brand-mid:  #ffd400;
    --brand-dark: #ffd400;
    --brand-ink:  #ffd400;
    --focus:      #00ffea;
}
.high-contrast body { background-color: #000; }
.high-contrast .navbar,
.high-contrast .bg-info,
.high-contrast footer {
    background: #000 !important;
    border-top: 2px solid #ffd400;
    border-bottom: 2px solid #ffd400;
}
.high-contrast .nav-link,
.high-contrast .navbar-brand,
.high-contrast .text-white,
.high-contrast .link-light,
.high-contrast footer h3,
.high-contrast footer p,
.high-contrast footer a { color: #fff !important; }
.high-contrast .btn-info,
.high-contrast .btn-outline-info,
.high-contrast .btn-outline-light {
    background: #ffd400 !important;
    border-color: #ffd400 !important;
    color: #000 !important;
    box-shadow: none !important;
}
.high-contrast .card,
.high-contrast .accordion-item,
.high-contrast .form-control,
.high-contrast .vl-feature-item,
.high-contrast .vl-testimonial-inner {
    border-color: #ffd400 !important;
    background: #000 !important;
    color: #fff !important;
}
.high-contrast .accordion-button { color: #fff !important; background: #000 !important; }
.high-contrast .accordion-body { color: #e2e8f0; }
.high-contrast .transcript { background: #0a0a0a; border-left-color: #ffd400; color: #fff; }
.high-contrast #about { background: #0a0a0a; }
.high-contrast #faq { background: #0a0a0a; }
.high-contrast #courses { background: #0a0a0a; }
.high-contrast .access-tools { background: #000; border-color: #ffd400; }
.high-contrast #booking > div { background: #111 !important; border: 2px solid #ffd400; }

/* ═══════════════════════════════════════════════════
   TUTOR LMS COMPAT
   ═══════════════════════════════════════════════════ */
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-wrap,
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-dashboard,
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-course-single-content-wrapper {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-card,
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-dashboard-content,
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-course-sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: none;
}
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-btn,
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-button,
body.voxilearn-tutor-support.voxilearn-tutor-active .tutor-btn-primary {
    min-height: 44px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   H5P COMPAT
   ═══════════════════════════════════════════════════ */
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-content,
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-iframe-wrapper,
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-container {
    border-radius: var(--r-md);
    overflow: hidden;
}
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-content,
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-question {
    font-size: 1rem;
    line-height: 1.8;
}
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-joubelui-button,
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-question-check-answer,
body.voxilearn-h5p-support.voxilearn-h5p-active .h5p-question-try-again {
    min-height: 44px;
    font-weight: 700;
}
body.high-contrast.voxilearn-h5p-support.voxilearn-h5p-active .h5p-content,
body.high-contrast.voxilearn-h5p-support.voxilearn-h5p-active .h5p-container,
body.high-contrast.voxilearn-h5p-support.voxilearn-h5p-active .h5p-question {
    background-color: #000 !important;
    color: #fff !important;
}
body.high-contrast.voxilearn-h5p-support.voxilearn-h5p-active .h5p-joubelui-button,
body.high-contrast.voxilearn-h5p-support.voxilearn-h5p-active .h5p-question-check-answer,
body.high-contrast.voxilearn-h5p-support.voxilearn-h5p-active .h5p-question-try-again {
    background: #ffd400 !important;
    color: #000 !important;
    border-color: #ffd400 !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 991px) {
    :root { --section-py: 3.5rem; }

    .navbar-collapse {
        background: rgba(12, 74, 110, 0.97);
        border-radius: 0 0 var(--r-md) var(--r-md);
        padding: 0.85rem 1rem;
        margin: 0.5rem -1rem -0.85rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    }
    .navbar-nav .nav-item > .nav-link,
    .navbar .menu-item > a {
        width: 100%;
        border-radius: var(--r-xs);
        padding: 0.55rem 0.85rem !important;
    }
    .navbar .menu,
    .navbar ul.navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.1rem;
        width: 100%;
    }
}

@media (max-width: 767px) {
    :root { --base-size: 16px; --section-py: 3rem; }

    .vl-hero h1 { font-size: 1.8rem; }
    #booking > div { margin: 0; border-radius: 0; }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.vl-single-course .card {
    border-radius: var(--r-lg) !important;
}

.vl-single-course-cover,
.vl-single-course-cover img,
.vl-single-course-cover-fallback {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

.vl-single-course-cover-fallback {
    background-size: cover;
    background-position: center;
}

.vl-single-course-content {
    color: var(--text-sec);
    line-height: 1.85;
}

.vl-single-course-content h2,
.vl-single-course-content h3,
.vl-single-course-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.vl-single-course-content ul,
.vl-single-course-content ol {
    padding-left: 1.2rem;
}

.vl-transcript-panel {
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid var(--border-brand);
    border-radius: var(--r-sm);
    padding: 1rem 1.1rem;
    color: var(--text-sec);
    line-height: 1.75;
}

.vl-transcript-panel.is-open {
    display: block;
}

.progress {
    height: 0.6rem;
    border-radius: var(--r-pill);
    background-color: #e8eef5;
}

.progress-bar {
    width: 0;
    transition: width 0.45s ease;
}

.list-group-item {
    border-color: var(--border);
    padding: 0.9rem 1rem;
}

.list-group-item:hover,
.list-group-item:focus {
    background: var(--bg-alt);
}

@media (max-width: 767px) {
    .card-body {
        padding: 1.1rem;
    }
}
