/* =============================================
   Barnes Walker — FAR/BAR Course Layout
   Two-column layout: sidebar nav + content
   ============================================= */

/* ---------- Course Hero ---------- */
.course-hero {
    background: var(--green-primary);
    padding: 140px var(--side-pad) 60px;
    text-align: center;
}
.course-hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: capitalize;
    color: var(--gold);
    margin-bottom: 16px;
}
.course-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 8px;
}
.course-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-on-dark-muted);
    margin-bottom: 20px;
}
.course-hero-divider {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

/* Sub-page hero — simpler, thinner */
.course-hero--sub {
    padding: 120px var(--side-pad) 40px;
}
.course-hero--sub h1 {
    font-size: 2rem;
}

/* ---------- Course Layout (Two-Column) ---------- */
.course-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg);
}

/* ---------- Sidebar ---------- */
.course-sidebar {
    background: var(--bg);
    border-right: 1px solid var(--color-border);
    padding: 48px 24px 80px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}
.course-sidebar::-webkit-scrollbar {
    width: 4px;
}
.course-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.course-sidebar::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

/* Section group headers */
.sidebar-group-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-primary);
    text-align: center;
    padding: 24px 0 10px;
    margin-top: 8px;
    position: relative;
}
.sidebar-group-label::before,
.sidebar-group-label::after {
    content: '';
    position: absolute;
    top: calc(50% + 12px);
    width: 30%;
    height: 1px;
    background: var(--gold);
}
.sidebar-group-label::before { left: 0; }
.sidebar-group-label::after { right: 0; }

.sidebar-group-label:first-child {
    padding-top: 0;
    margin-top: 0;
}

/* Sidebar nav links */
.sidebar-nav-link {
    display: block;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green-primary);
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(6, 63, 42, 0.12);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: all var(--transition-fast);
    line-height: 1.4;
    background: #fff;
}
.sidebar-nav-link:hover {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}
.sidebar-nav-link.active {
    background: var(--gold);
    color: var(--green-primary);
    border-color: var(--gold);
    font-weight: 600;
}

/* ---------- Main Content Column ---------- */
.course-content {
    padding: 48px 60px 80px;
    min-height: 60vh;
}

/* Video embed */
.course-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    background: #000;
}
.course-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Download CTA */
.course-download-cta {
    text-align: center;
    margin-bottom: 40px;
}
.course-download-cta p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.course-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gold);
    color: var(--green-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}
.course-download-btn:hover {
    filter: brightness(1.08);
    box-shadow: var(--shadow-md);
}
.course-download-btn svg {
    width: 18px;
    height: 18px;
}

/* Body text */
.course-body h2 {
    font-family: var(--font-heading);
    color: var(--green-primary);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 32px 0 16px;
}
.course-body p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 18px;
}
.course-body ul, .course-body ol {
    margin: 12px 0 20px 24px;
}
.course-body ul li, .course-body ol li {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 6px;
}

/* Next Video button */
.course-next-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--gold);
    color: var(--green-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-top: 40px;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}
.course-next-btn:hover {
    filter: brightness(1.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Legal disclaimer */
.course-disclaimer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.course-disclaimer p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.course-disclaimer strong {
    color: var(--green-primary);
}

/* ---------- Inquiry CTA Section ---------- */
.course-inquiry-section {
    background: var(--green-primary);
    padding: 80px var(--side-pad);
}
.course-inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.course-inquiry-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.course-inquiry-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-on-dark-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.course-inquiry-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--green-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.course-inquiry-btn:hover {
    filter: brightness(1.1);
}

/* ---------- Mobile Sidebar Toggle ---------- */
.course-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 16px;
    background: var(--green-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.course-sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .course-layout {
        grid-template-columns: 280px 1fr;
    }
    .course-content {
        padding: 40px 36px 60px;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 120px 20px 40px;
    }
    .course-hero h1 {
        font-size: 1.8rem;
    }
    .course-hero--sub {
        padding: 100px 20px 30px;
    }
    .course-hero--sub h1 {
        font-size: 1.5rem;
    }

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

    .course-sidebar-toggle {
        display: flex;
    }

    .course-sidebar {
        position: static;
        height: auto;
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    .course-sidebar.open {
        max-height: 2000px;
        padding: 24px 20px 32px;
    }

    .course-content {
        padding: 32px 20px 60px;
    }

    .course-inquiry-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
