/* ═══════════════════════════════════════════════════════════════
   Course Landing Page — Thinkific-style redesign
   Prefix: rcl- (ryan course landing)
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
    --rcl-primary: #2563eb;
    --rcl-primary-dark: #1e40af;
    --rcl-text: #212326;
    --rcl-text-muted: #6b7280;
    --rcl-bg-light: #f5f7fb;
    --rcl-bg-blue: #eef2ff;
    --rcl-border: #e5e7eb;
    --rcl-radius: 8px;
    --rcl-radius-lg: 12px;
    --rcl-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    --rcl-max-width: 1200px;
    --rcl-transition: all 0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────────────── */
.rcl,
.rcl *,
.rcl *::before,
.rcl *::after {
    box-sizing: border-box;
}

.rcl {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--rcl-text);
    line-height: 1.6;
    overflow-x: hidden;
    margin-bottom: -50px;
}

.rcl-container {
    max-width: var(--rcl-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.rcl-container--narrow {
    max-width: 800px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.rcl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--rcl-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--rcl-transition);
    border: 2px solid transparent;
    line-height: 1.4;
}

.rcl-btn--primary,
a.rcl-btn--primary,
a.rcl-btn--primary:visited {
    background: var(--rcl-primary);
    color: #fff;
    border-color: var(--rcl-primary);
}

.rcl-btn--primary:hover,
a.rcl-btn--primary:hover {
    background: var(--rcl-primary-dark);
    border-color: var(--rcl-primary-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.rcl-btn--outline:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--rcl-primary-dark);
    text-decoration: none;
}

.rcl-btn--block {
    width: 100%;
}

/* ── Section Base ────────────────────────────────────────────── */
.rcl-section {
    padding: 72px 0;
}

.rcl-section--light {
    background: var(--rcl-bg-light);
}

.rcl-section--blue {
    background: var(--rcl-bg-blue);
}

.rcl-section__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rcl-text);
    margin: 0 0 32px;
    line-height: 1.3;
}

.rcl-section__title--center {
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   1. Hero
   ═══════════════════════════════════════════════════════════════ */
.rcl-hero {
    padding: 60px 0 40px;
    background: #fff;
}

.rcl-hero__grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 48px;
    align-items: center;
}

/* Instructor card (no-video hero) */
.rcl-hero__instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rcl-hero__instructor-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rcl-hero__instructor-badge {
    margin-top: 16px;
    background: #eef2ff;
    padding: 10px 24px;
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.rcl-hero__instructor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rcl-text);
}

.rcl-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--rcl-text);
}

.rcl-hero__desc {
    font-size: 1.05rem;
    color: var(--rcl-text-muted);
    line-height: 1.7;
    margin: 0 0 32px;
}

.rcl-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.rcl-hero__error-msg {
    width: 100%;
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Meta chips (no-video hero) */
.rcl-hero__meta-chips {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.rcl-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rcl-text-muted);
    background: var(--rcl-bg-light);
    padding: 6px 14px;
    border-radius: 20px;
}

.rcl-hero__chip svg {
    flex-shrink: 0;
    color: var(--rcl-primary);
}

.rcl-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--rcl-radius-lg);
    overflow: hidden;
    box-shadow: var(--rcl-shadow);
}

.rcl-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   2. Credentials Bar
   ═══════════════════════════════════════════════════════════════ */
.rcl-credentials {
    padding: 24px 0;
    border-top: 1px solid var(--rcl-border);
    border-bottom: 1px solid var(--rcl-border);
    text-align: center;
}

.rcl-credentials__text {
    font-size: 1.1rem;
    color: var(--rcl-text-muted);
    margin: 0 0 24px;
}

.rcl-credentials__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.rcl-credentials__logo {
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: var(--rcl-transition);
}

.rcl-credentials__logo--cfa {
    height: 56px;
}

.rcl-credentials__logo--upenn {
    height: 80px;
}

.rcl-credentials__logo--tamu {
    height: 60px;
}

.rcl-credentials__logo:hover {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   3. Sticky Section Nav
   ═══════════════════════════════════════════════════════════════ */
.rcl-nav {
    background: #fff;
    border-top: 2px solid var(--rcl-primary);
    border-bottom: 1px solid var(--rcl-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s ease;
}

.rcl-nav--stuck {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rcl-nav__list {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rcl-nav__link {
    display: block;
    padding: 16px 20px;
    color: var(--rcl-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--rcl-transition);
}

.rcl-nav__link:hover {
    color: var(--rcl-text);
    text-decoration: none;
}

.rcl-nav__link--active {
    color: var(--rcl-primary);
    font-weight: 600;
    border-bottom-color: var(--rcl-primary);
}


/* ═══════════════════════════════════════════════════════════════
   4. Overview
   ═══════════════════════════════════════════════════════════════ */
.rcl-overview__grid {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 48px;
    align-items: start;
}

.rcl-overview__grid--no-text {
    grid-template-columns: 1fr;
}

.rcl-overview__content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--rcl-text);
}

.rcl-overview__content p {
    margin: 0 0 16px;
}

.rcl-overview__features-title {
    margin-bottom: 24px;
}

.rcl-overview__features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rcl-overview__grid--no-text .rcl-overview__features {
    max-width: 900px;
    margin: 0 auto;
}

.rcl-feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--rcl-border);
    border-radius: var(--rcl-radius-lg);
    padding: 20px 24px;
    transition: var(--rcl-transition);
}

.rcl-feature-card:hover {
    box-shadow: var(--rcl-shadow);
}

.rcl-feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
}

.rcl-feature-card__text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rcl-text);
}


/* ═══════════════════════════════════════════════════════════════
   5. Curriculum + About Card
   ═══════════════════════════════════════════════════════════════ */
.rcl-curriculum__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.rcl-curriculum__sidebar {
    position: sticky;
    top: 80px;
}

/* ── Accordion (shared by Curriculum + FAQ) ─────────────────── */
.rcl-accordion {
    margin-bottom: 8px;
}

.rcl-accordion:last-child {
    margin-bottom: 0;
}

.rcl .rcl-accordion__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px !important;
    background: #f5f7fb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    outline: none;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    text-align: left;
    color: #212326 !important;
    font-family: inherit;
    font-size: 1rem !important;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.5 !important;
    min-height: 0 !important;
}

.rcl .rcl-accordion__header:hover {
    background: #eef2ff !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: #212326 !important;
}

.rcl .rcl-accordion__header[aria-expanded="true"] {
    background: #eef2ff !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    color: #1e40af !important;
}

.rcl-accordion__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcl-accordion__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 12px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--rcl-text-muted);
    white-space: nowrap;
}

.rcl-accordion__chevron {
    flex-shrink: 0;
    color: var(--rcl-text-muted);
    transition: transform 0.3s ease;
}

.rcl-accordion__header[aria-expanded="true"] .rcl-accordion__chevron {
    color: var(--rcl-primary);
    transform: rotate(180deg);
}

.rcl-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rcl-accordion__lessons {
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
}

.rcl-accordion__lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--rcl-text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rcl-accordion__lesson:last-child {
    border-bottom: none;
}

.rcl-lesson__icon {
    color: #6b7280;
    font-size: 18px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    flex-shrink: 0;
}

.rcl-lesson__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcl-lesson__duration {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.rcl-lesson__badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rcl-accordion__answer {
    padding: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--rcl-text-muted);
}

/* ── FAQ variant ────────────────────────────────────────────── */
.rcl-accordion--faq {
    background: #fff;
    border: 1px solid var(--rcl-border);
    border-radius: var(--rcl-radius);
    margin-bottom: 12px;
    padding: 0 20px;
}

.rcl-accordion--faq:last-child {
    margin-bottom: 0;
}

.rcl-accordion--faq .rcl-accordion__header {
    padding: 18px 0;
}

/* ── About Card ──────────────────────────────────────────────── */
.rcl-about-card {
    background: #fff;
    border-radius: var(--rcl-radius-lg);
    box-shadow: var(--rcl-shadow);
    overflow: hidden;
}

.rcl-about-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rcl-about-card__body {
    padding: 24px 24px 16px;
}

.rcl-about-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--rcl-text);
}

.rcl-about-card__divider {
    width: 40px;
    border: none;
    border-top: 3px solid var(--rcl-text);
    margin: 0 0 20px;
}

.rcl-about-card__meta {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcl-about-card__meta li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--rcl-text);
}

.rcl-about-card__meta svg {
    flex-shrink: 0;
}

.rcl-about-card__cta {
    margin-top: 8px;
}

.rcl-about-card__cta .roc-progress-bar-wrap {
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════════════════════════════
   6. Meet Your Instructor
   ═══════════════════════════════════════════════════════════════ */
.rcl-instructor {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.rcl-instructor__photo {
    flex-shrink: 0;
    width: 240px;
}

.rcl-instructor__photo img {
    width: 100%;
    border-radius: var(--rcl-radius-lg);
    box-shadow: var(--rcl-shadow);
}

.rcl-instructor__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--rcl-text);
}

.rcl-instructor__credentials {
    font-size: 0.9rem;
    color: var(--rcl-text-muted);
    margin: 0 0 16px;
}

.rcl-instructor__bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--rcl-text);
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   Responsive — Tablet (≤992px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .rcl-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rcl-hero__instructor-photo {
        width: 160px;
        height: 160px;
    }

    .rcl-hero__title {
        font-size: 2rem;
    }

    .rcl-overview__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rcl-curriculum__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rcl-curriculum__main,
    .rcl-curriculum__sidebar {
        min-width: 0;
    }

    .rcl-curriculum__sidebar {
        position: static;
        order: -1;
        max-width: 420px;
    }

    .rcl-instructor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rcl-instructor__photo {
        width: 200px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Responsive — Mobile (≤768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .rcl-section {
        padding: 48px 0;
    }

    .rcl-section__title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .rcl-hero {
        padding: 40px 0 32px;
    }

    .rcl-hero__title {
        font-size: 1.6rem;
    }

    .rcl-hero__desc {
        font-size: 0.95rem;
    }

    .rcl-overview__features-grid {
        grid-template-columns: 1fr;
    }

    .rcl-hero__actions {
        flex-direction: column;
    }

    .rcl-hero__actions .rcl-btn {
        width: 100%;
    }

    .rcl-credentials__logos {
        gap: 36px;
    }

    .rcl-credentials__logo--cfa {
        height: 44px;
    }

    .rcl-credentials__logo--upenn {
        height: 64px;
    }

    .rcl-credentials__logo--tamu {
        height: 46px;
    }

    .rcl-nav__list {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rcl-nav__list::-webkit-scrollbar {
        display: none;
    }

    .rcl-nav__link {
        padding: 12px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .rcl-instructor__photo {
        width: 160px;
    }

    .rcl-about-card__body {
        padding: 20px;
    }

    .rcl-curriculum__sidebar {
        max-width: 100%;
        width: 100%;
    }

    .rcl .rcl-accordion__header {
        padding: 12px 14px !important;
    }

    .rcl-accordion__meta {
        gap: 8px;
        font-size: 0.75rem;
    }

    .rcl-accordion__lesson {
        padding: 10px 12px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Responsive — Small Mobile (≤576px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .rcl-container {
        padding: 0 16px;
    }

    .rcl-hero__title {
        font-size: 1.4rem;
    }

    .rcl-section {
        padding: 36px 0;
    }

    .rcl-credentials__logos {
        gap: 24px;
    }

    .rcl-credentials__logo--cfa {
        height: 36px;
    }

    .rcl-credentials__logo--upenn {
        height: 52px;
    }

    .rcl-credentials__logo--tamu {
        height: 38px;
    }

    .rcl-feature-card {
        padding: 16px;
    }

    .rcl-accordion__meta {
        display: none;
    }
}
