/* ==============================
                           Course Details Page — Scoped Styles
                           (Namespaced with .cdp- to avoid touching global site styles)
                        ============================== */
.cdp-wrapper {
    --cdp-ink: #0f172a;
    --cdp-muted: #64748b;
    --cdp-border: #e6e9f0;
    --cdp-bg-soft: #f8fafc;
    --cdp-radius: 22px;
    --cdp-green: #0f4c3a;
    --cdp-green-dark: #0b3a2c;
    --cdp-green-light: #e8f5ef;
    color: var(--cdp-ink);
}

.cdp-wrapper .cdp-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cdp-wrapper .cdp-breadcrumb-bar .breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cdp-wrapper .cdp-breadcrumb-bar .breadcrumb-item {
    /* color: var(--cdp-muted); */
    font-weight: 500;
    font-size: 1rem;
}

.cdp-wrapper .cdp-breadcrumb-bar .breadcrumb-item.active {
    color: var(--cdp-green);
    font-weight: 700;
    font-size: 1rem;
}

.cdp-wrapper .home-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cdp-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cdp-ink);
    transition: 0.2s;
    border: 1px solid var(--cdp-border);
}

.cdp-wrapper .home-link:hover {
    background: var(--cdp-green);
    color: #fff;
    border-color: var(--cdp-green);
}

/* ---------- HERO ---------- */
.cdp-hero-card {
    position: relative;
    border-radius: var(--cdp-radius);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    box-shadow: 0 20px 45px -15px rgba(124, 58, 237, 0.35);
    isolation: isolate;
}

.cdp-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.cdp-hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(79, 26, 163, 0.92) 0%,
        rgba(147, 51, 168, 0.9) 45%,
        rgba(219, 39, 119, 0.88) 100%
    );
}

.cdp-hero-badge-left {
    position: absolute;
    top: 1.75rem;
    left: 1.75rem;
}

.cdp-hero-badge-right {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
}

.cdp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.cdp-pill-accent {
    background: linear-gradient(135deg, #ef4444, #ec4899);
    border: none;
    padding: 0.4rem 0.5rem 0.4rem 0.4rem;
}

.cdp-pill-accent .cdp-pill-num {
    background: #fff;
    color: #dc2626;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.7rem;
}

.cdp-hero-content {
    position: relative;
    z-index: 1;
    margin-top: 2.75rem;
    max-width: 640px;
}

.cdp-hero-title {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.cdp-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.cdp-hero-instructor-badge {
    position: absolute;
    z-index: 1;
    bottom: 1.75rem;
    right: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 0.5rem 1.1rem 0.5rem 0.5rem;
    flex-wrap: wrap;
    max-width: 70%;
}

.cdp-hero-instructor-badge img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cdp-hero-instructor-badge .instructor-name {
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.15;
    display: block;
}

.cdp-hero-instructor-badge .instructor-name:hover {
    text-decoration: underline;
}

.cdp-hero-instructor-badge small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .cdp-hero-card {
        min-height: 400px;
        padding: 1.5rem;
    }

    .cdp-hero-title {
        font-size: 1.5rem;
    }

    .cdp-hero-instructor-badge {
        position: static;
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .cdp-hero-badge-right {
        top: auto;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .cdp-hero-content {
        margin-top: 1rem;
    }

    .cdp-similar-section {
        display: none;
    }
}

/* ---------- ABOUT / DESCRIPTION CARD ---------- */
.cdp-about-card {
    border: 1px solid var(--cdp-border);
    border-radius: var(--cdp-radius);
    padding: 1.75rem 2rem;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.cdp-about-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cdp-about-heading-row h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cdp-ink);
    margin: 0;
}

.cdp-about-card #toggleDescriptionBtn {
    background: var(--cdp-bg-soft);
    border: 1px solid var(--cdp-border);
    border-radius: 10px;
    font-weight: 700;
    padding: 0.5rem 1rem;
    color: var(--cdp-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.cdp-about-card #toggleDescriptionBtn:hover {
    background: #eef2f7;
}

.cdp-instructors-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--cdp-muted);
    margin-bottom: 1rem;
}

.cdp-instructors-line i {
    color: var(--cdp-green);
}

.cdp-instructors-line strong {
    color: var(--cdp-ink);
    font-weight: 700;
}

.cdp-instructors-line .instructor-name {
    cursor: pointer;
    color: var(--cdp-green);
    font-weight: 700;
    text-decoration: none;
}

.cdp-instructors-line .instructor-name:hover {
    text-decoration: underline;
}

.cdp-about-card hr {
    border-color: var(--cdp-border);
    margin: 1rem 0;
}

.course-description p {
    line-height: 1.75;
    color: #334155;
}

.course-description ul {
    padding-left: 1.25rem;
}

.course-description li {
    margin-bottom: 0.4rem;
}

/* ---------- SIDEBAR: ACTIVE ACCESS / STATUS CARD ---------- */
.cdp-status-card {
    background: linear-gradient(
        160deg,
        var(--cdp-green) 0%,
        var(--cdp-green-dark) 100%
    );
    border-radius: var(--cdp-radius);
    padding: 1.85rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 38px -12px rgba(15, 76, 58, 0.45);
}

.cdp-status-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    filter: blur(2px);
}

.cdp-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 1.1rem;
    /* margin-bottom: 1rem; */
}

.cdp-status-card .pricing-section {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.cdp-status-card .pricing-section p,
.cdp-status-card .pricing-section h5 {
    color: #fff !important;
}

.cdp-status-card .pricing-section .text-primary {
    color: #7dd3fc !important;
}

.cdp-status-card .pricing-section .text-danger {
    color: #fca5a5 !important;
}

.cdp-status-card .pricing-section .text-success {
    color: #6ee7b7 !important;
}

.cdp-status-card .pricing-section .text-muted {
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.82rem;
}

.cdp-status-card .pricing-section .text-dark {
    color: #fff !important;
}

.cdp-status-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 800;
    color: #34d399;
    margin-bottom: 0.35rem;
}

.cdp-status-actions {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.cdp-status-actions .enroll-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #00a86b !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 800;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: 0.2s;
    box-shadow: 0 10px 22px -8px rgba(0, 168, 107, 0.6) !important;
}

.cdp-status-actions .enroll-button:hover {
    background: #008f5a !important;
    transform: translateY(-1px);
}

.cdp-status-actions form {
    margin: 0;
}

.cdp-notice {
    border-radius: 16px;
    border: 1px solid var(--cdp-border);
    padding: 1rem 1.1rem;
    margin-top: 1rem;
    background: #fff;
}

.cdp-notice.alert-info {
    border-left: 4px solid #0dcaf0;
}

.cdp-notice.alert-warning {
    border-left: 4px solid #ffc107;
}

.cdp-notice.alert-secondary {
    border-left: 4px solid #6c757d;
}

.cdp-notice-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cdp-bg-soft);
    flex-shrink: 0;
}

/* ---------- PRICING PLANS CARD ---------- */
.cdp-plans-card {
    border: 1px solid var(--cdp-border);
    border-radius: var(--cdp-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.cdp-plans-card .cdp-card-head {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--cdp-border);
    background: var(--cdp-bg-soft);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--cdp-ink);
}

.cdp-plans-card .cdp-card-head i {
    color: var(--cdp-muted);
}

.cdp-plans-body {
    padding: 1.25rem 1.5rem;
}

.modern-pricing-table {
    box-shadow: none !important;
    border: none;
    margin-bottom: 0;
}

.modern-pricing-table thead {
    background: transparent;
}

.modern-pricing-table thead th {
    padding: 0.4rem 0.5rem;
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cdp-muted);
    border: none;
    border-bottom: 1px solid var(--cdp-border);
}

.modern-pricing-table tbody tr {
    border: none;
}

.modern-pricing-table tbody td {
    border: none;
    padding: 0.75rem 0.5rem;
}

.modern-pricing-table tbody tr:hover {
    background: var(--cdp-bg-soft);
    border-radius: 12px;
}

/* .pricing-row.recommended-plan {
            background: var(--cdp-green-light)!important;
            border-radius: 12px!important;
        } */
.pricing-row.recommended-plan {
    background: var(--cdp-green-light);
}

.pricing-row.recommended-plan td {
    background: var(--cdp-green-light);
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
}

.pricing-row.recommended-plan td:first-child {
    border-left: 1px solid #d1fae5;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.pricing-row.recommended-plan td:last-child {
    border-right: 1px solid #d1fae5;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.modern-pricing-table .btn-primary {
    background: var(--cdp-green);
    border-color: var(--cdp-green);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
}

.modern-pricing-table .btn-primary:hover {
    background: var(--cdp-green-dark);
    border-color: var(--cdp-green-dark);
}

/* ---------- REVIEWS CARD ---------- */
.cdp-reviews-card {
    border: 1px solid var(--cdp-border);
    border-radius: var(--cdp-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.cdp-reviews-card .cdp-card-head {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--cdp-border);
    background: var(--cdp-bg-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cdp-reviews-card .cdp-card-head-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--cdp-ink);
}

.cdp-reviews-card .cdp-card-head-left i {
    color: var(--cdp-muted);
}

#reviewCountBadge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cdp-muted);
}

#writeReviewBtn {
    background: var(--cdp-green);
    border: none;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

#writeReviewBtn:hover {
    background: var(--cdp-green-dark);
}

.cdp-review-form {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cdp-border);
    background: var(--cdp-bg-soft);
}

.cdp-review-form .review-heading {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cdp-review-form textarea.review-textarea {
    border-radius: 10px;
    border: 1px solid var(--cdp-border);
    font-size: 0.85rem;
}

#star-container .star-rating {
    font-size: 1.15rem;
    cursor: pointer;
    color: #d8dee8;
    transition: 0.15s;
    margin-right: 0.15rem;
}

.cdp-reviews-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.cdp-reviews-list::-webkit-scrollbar {
    width: 5px;
}

.cdp-reviews-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.cdp-review-item {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
}

.cdp-review-item:last-child {
    margin-bottom: 0;
}

.cdp-review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    color: #fff;
}

.cdp-avatar-0 {
    background: #6366f1;
}

.cdp-avatar-1 {
    background: #10b981;
}

.cdp-avatar-2 {
    background: #f43f5e;
}

.cdp-avatar-3 {
    background: #f59e0b;
}

.cdp-avatar-4 {
    background: #06b6d4;
}

.cdp-avatar-5 {
    background: #8b5cf6;
}

.cdp-review-item .reviewer-name {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--cdp-ink);
}

.cdp-review-item .review-stars {
    font-size: 0.62rem;
    margin-left: 0.4rem;
}

.cdp-review-item .review-stars .star-rating {
    color: #facc15;
}

.cdp-review-item .review-stars .gray-star {
    color: #e2e8f0;
}

.cdp-review-item .review-text {
    font-size: 0.8rem;
    color: var(--cdp-muted);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.cdp-reviews-pagination {
    padding: 0 1.5rem 1.25rem;
}

/* ---------- WEEKLY SCHEDULE ---------- */
.cdp-sidebar-card {
    border: 1px solid var(--cdp-border);
    border-radius: var(--cdp-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.day-block {
    /* border: 1px solid var(--cdp-border); */
    border-radius: 12px;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.day-block.active-day {
    border-color: var(--cdp-green);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--cdp-bg-soft);
}

.day-block.active-day .day-header {
    background: var(--cdp-green-light);
    color: var(--cdp-green-dark);
}

.day-content {
    padding: 0.85rem 1rem;
    background: #fff;
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--cdp-muted);
}

.live-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    display: inline-block;
    animation: cdp-pulse 1.4s infinite;
}

@keyframes cdp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.status-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.live-text {
    color: #dc3545;
}

.expired-text {
    color: #94a3b8;
}

.upcoming-text {
    color: var(--cdp-green);
}

.current-time-slot {
    font-weight: 700;
    color: var(--cdp-ink);
}

.join-meeting-btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    background: var(--cdp-green);
    border-color: var(--cdp-green);
}

.join-meeting-btn:hover {
    background: var(--cdp-green-dark);
    border-color: var(--cdp-green-dark);
}

/* ---------- SIMILAR COURSES (now a full-width section below the About card) ---------- */
.cdp-similar-section {
    margin-top: 1.5rem;
}

.cdp-similar-section .cdp-card-head {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--cdp-border);
    background: var(--cdp-bg-soft);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1rem;
    color: var(--cdp-ink);
    border-radius: var(--cdp-radius) var(--cdp-radius) 0 0;
}

.cdp-similar-section .cdp-card-head i {
    color: var(--cdp-muted);
}

.cdp-similar-body {
    border: 1px solid var(--cdp-border);
    border-top: none;
    border-radius: 0 0 var(--cdp-radius) var(--cdp-radius);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.category-card {
    border: 1px solid var(--cdp-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
    height: 100%;
}

.category-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.category-image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--cdp-bg-soft);
}

.category-image-container .class-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-details {
    padding: 0.85rem 1rem 1.1rem;
}

.class-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cdp-ink);
    margin-bottom: 0;
}

.class-description {
    font-size: 0.76rem;
    color: var(--cdp-muted);
}

.rating .average-rating {
    font-size: 0.76rem;
    font-weight: 700;
    margin: 0 0 0 0.2rem;
    color: var(--cdp-ink);
}

.badge-sm {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
}
