/* =============================================================
   RICAS — Course Detail Page  (rcd namespace)
   Matches existing Montserrat + navy-blue brand palette.
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   BANNER
───────────────────────────────────────────────────────────── */

.rcd__banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.rcd__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* dark gradient so title is legible over any photo */
.rcd__banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.70) 100%
    );
}

.rcd__banner-title-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    text-align: center;
}

.rcd__banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(20px, 2.6vw, 34px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    max-width: 900px;
}


/* ─────────────────────────────────────────────────────────────
   OVERLAY WRAP  — pulls up 45px over banner bottom
───────────────────────────────────────────────────────────── */

.rcd__overlay-wrap {
    margin-top: -45px;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.rcd__overlay {
    width: 88%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}


/* ─────────────────────────────────────────────────────────────
   LHS — two stacked cards
───────────────────────────────────────────────────────────── */

.rcd__lhs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rcd__lhs-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    padding: 24px 22px;
}


/* ── Card 1 : Enroll + Details ── */

.rcd__enroll-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #0b1f3a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-bottom: 20px;
}

.rcd__enroll-btn:hover {
    background: #1a3a6e;
    transform: translateY(-1px);
}

.rcd__detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rcd__detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
}

.rcd__detail-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    margin-right: 16px;
}

.rcd__detail-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0b1f3a;
    text-align: right;
}

/* thin gray divider between row 2 and row 3 */
.rcd__divider {
    height: 1px;
    background: #d8d8d8;
    margin: 4px 0;
}

/* Mode row — value stacks vertically */
.rcd__detail-row--mode {
    align-items: flex-start;
}

.rcd__mode-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0b1f3a;
    text-align: right;
}

.rcd__mode-plus {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    line-height: 1;
    margin: 1px 0;
}


/* ── Card 2 : Eligibility ── */

.rcd__elig-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0b1f3a;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.rcd__elig-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcd__elig-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* blue ring bullet */
.rcd__elig-bullet {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1e5dbe;
    border: 3px solid #1e5dbe;
    /* white inner circle via box-shadow */
    box-shadow: inset 0 0 0 3px #ffffff;
    margin-top: 2px;
}


/* ─────────────────────────────────────────────────────────────
   RHS — Tab bar + panels
───────────────────────────────────────────────────────────── */

.rcd__rhs {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* ── Tab bar ── */

.rcd__tabs {
    display: flex;
    gap: 6px;
    background: #D9D9D9;
    border-radius: 50px;
    padding: 5px 6px;
    width: fit-content;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rcd__tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    background: #D9D9D9;
    border: none;
    border-radius: 50px;
    padding: 9px 22px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.rcd__tab:hover:not(.rcd__tab--active) {
    background: #c4c4c4;
}

.rcd__tab--active {
    background: #0b1f3a;
    color: #ffffff;
    font-weight: 700;
}


/* ── Tab panels ── */

.rcd__tab-panels {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.rcd__panel {
    display: none;
}

.rcd__panel--active {
    display: block;
}

.rcd__panel-inner {
    padding: 32px 36px;
}

.rcd__section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1e5dbe;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    margin-top: 28px;
}

.rcd__panel-inner .rcd__section-heading:first-child {
    margin-top: 0;
}

.rcd__panel-inner p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.75;
    margin-bottom: 12px;
    text-align: justify;
}

.rcd__outcome-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rcd__outcome-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.rcd__outcome-list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    top: 0;
    font-size: 18px;
    color: #1e5dbe;
    line-height: 1.4;
}

/* Module pills */
.rcd__modules-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.rcd__module-pill {
    background: #D9D9D9;
    border-radius: 8px;
    padding: 12px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0b1f3a;
}


/* ─────────────────────────────────────────────────────────────
   ENROLL MODAL
───────────────────────────────────────────────────────────── */

.rcd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.rcd-modal.is-open {
    display: flex;
}

.rcd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.rcd-modal__box {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 40px 44px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.rcd-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.rcd-modal__close:hover {
    color: #0b1f3a;
}

.rcd-modal__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0b1f3a;
    margin-bottom: 24px;
    text-align: center;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Tablet  ≤ 1024px
───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .rcd__overlay {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }

    .rcd__banner-title-wrap {
        padding: 0 40px;
    }
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Mobile  ≤ 768px
───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

    .rcd__banner {
        height: 300px;
    }

    .rcd__banner-title {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    .rcd__banner-title-wrap {
        padding: 0 24px;
    }

    .rcd__overlay-wrap {
        margin-top: -40px;
        padding-bottom: 50px;
    }

    /* Stack LHS above RHS on mobile */
    .rcd__overlay {
        grid-template-columns: 1fr;
        width: 92%;
    }

    /* Tab bar scrolls horizontally on small screens */
    .rcd__tabs {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
        padding: 4px;
        gap: 4px;
    }

    .rcd__tab {
        flex: 1;
        text-align: center;
        padding: 9px 8px;
        font-size: 12px;
    }

    .rcd__panel-inner {
        padding: 22px 20px;
    }

    .rcd-modal__box {
        padding: 28px 24px;
    }
}

/* ═══════════════════════════════════════
   SECTION DIVIDER (thin line under headings)
═══════════════════════════════════════ */
.rcd__section-divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 6px 0 18px;
}

.rcd__section-body {
    margin-bottom: 28px;
}

.rcd__section-body p {
    margin: 0 0 12px;
    color: #333;
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   FEATURES TAB – lists
═══════════════════════════════════════ */
.rcd__features-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcd__features-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.rcd__features-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* gray divider between Teaching and Career sections */
.rcd__features-divider {
    width: 100%;
    height: 1px;
    background: #d0d0d0;
    margin: 28px 0;
}

/* ═══════════════════════════════════════
   TRAINERS TAB
═══════════════════════════════════════ */
.rcd__trainers-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.rcd__trainer-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: #f9f9f9;
    border-radius: 12px;
}

.rcd__trainer-avatar {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.rcd__trainer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rcd__trainer-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f5e;
    margin: 0;
}

.rcd__trainer-role {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Modules heading — no extra top margin */
.rcd__section-heading--modules {
    margin-top: 0;
}

@media (max-width: 768px) {
    .rcd__trainer-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .rcd__trainer-avatar {
        width: 70px;
        height: 70px;
    }
}
