/* Course Details page ‑ layout-specific styles for CourseCenterSubjectDetails */

/* Enrolled: About | Financial tabs (financial pane uses shared styles from subscribed-course-details.css) */
.ccd-subject-main .tabs-nav {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

#ccdTabPanes .tab-pane#ccd-pane-financial {
    min-height: 180px;
}

:root {
    --cd-primary-blue: #0E4882;
    --cd-primary-orange: #F4951F;
    --cd-text-grey: #6c757d;
}

/* --- Topbar (live badge + back link) --- */
.cd-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 12px 24px;
    margin-bottom: 24px;
}

.cd-topbar.live-mode {
    background-color: rgba(24, 161, 146, 0.1);
}

.cd-topbar.live-mode .cd-badge,
.cd-topbar.live-mode .cd-back {
    color: #18a192;
    font-weight: 700;
}

.cd-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.cd-back {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    transition: opacity 0.3s;
}

.cd-back:hover {
    opacity: 0.8;
}

.cd-badge-icon { margin-inline-end: 8px; }
.cd-back-icon { font-size: 12px; }

.cd-topbar-spacing {
    margin-bottom: 40px;
    margin-top: 20px;
}

/* --- Back-only bar (no topbar background) for diploma page --- */
.cd-back-only {
    display: flex;
    justify-content: flex-end;
}

.cd-back-only .cd-back {
    color: var(--cd-primary-blue);
    font-weight: 700;
}

/* --- Main content --- */
.cd-main-img {
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
    height: auto;
}

.cd-category {
    color: var(--cd-primary-blue);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.cd-title {
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 24px;
    color: #212529;
}

.cd-section {
    margin-bottom: 40px;
}

.cd-section-title {
    color: #05457A;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cd-section-title i {
    font-size: 20px;
    color: var(--cd-primary-blue);
}

.cd-desc {
    color: #6c757d;
    line-height: 1.8;
    font-size: 15px;
}

.cd-learn-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-learn-list li {
    position: relative;
    padding-inline-start: 24px;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
}

.cd-learn-list li::before {
    content: "-";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: #adb5bd;
    font-weight: bold;
}

/* --- Skills chips --- */
.cd-skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cd-skill-chip {
    display: inline-flex;
    align-items: center;
    background-color: #EAF2F9;
    color: #05457A;
    border: 1px solid #d7e5f0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* --- Subscribe CTA (inside sidebar price card) --- */
a.btn-custom-blue,
.btn-custom-blue {
    background-color: #05457A;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

a.btn-custom-blue:hover,
a.btn-custom-blue:focus,
a.btn-custom-blue:active,
.btn-custom-blue:hover,
.btn-custom-blue:focus,
.btn-custom-blue:active {
    background-color: #043a66;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-custom-blue:disabled,
.btn-custom-blue.disabled,
a.btn-custom-blue.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    background-color: #05457A;
}

.btn-custom-blue span,
.btn-custom-blue i {
    color: #fff !important;
}

.cd-subscribe-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* --- Sidebar price card --- */
.cd-sidebar {
    position: relative;
}

.cd-price-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 30px 24px;
    border: 1px solid #f1f3f5;
}

.cd-price-value {
    color: var(--cd-primary-orange);
    font-weight: 900;
    font-size: 36px;
    line-height: 1;
}

.cd-price-value .cd-price-old {
    color: #adb5bd;
    font-weight: 600;
    font-size: 18px;
    text-decoration: line-through;
    margin-inline-start: 10px;
}

.cd-price-label {
    color: #212529;
    font-weight: 800;
    font-size: 14px;
    margin-top: 12px;
}

.cd-meta-title {
    font-weight: 800;
    color: #212529;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.cd-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 14px;
}

.cd-meta-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.cd-meta-value {
    color: #212529;
    font-weight: 600;
}

.cd-divider {
    height: 1px;
    background-color: #f1f3f5;
    margin: 20px 0;
}

.cd-price-discount-badge {
    display: inline-block;
    margin-top: 12px;
    background-color: #FEE2E2;
    color: #B91C1C;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
}

/* --- Certificate card --- */
.cd-certificate-card {
    background-color: #fff;
    border: 1px solid #f1f3f5;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cd-certificate-img {
    font-size: 56px;
    color: var(--cd-primary-orange);
    margin-bottom: 16px;
}

img.cd-certificate-img {
    width: 160px;
    height: auto;
    font-size: 0;
    display: inline-block;
}

.cd-certificate-title {
    color: #212529;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.cd-certificate-desc {
    color: var(--cd-text-grey);
    font-size: 14px;
}

/* --- Packages (sidebar) --- */
.cd-package-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #212529;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 14px;
}

.cd-package-heading i {
    color: var(--cd-primary-blue);
}

.cd-package-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 6px;
}

.cd-package-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    margin: 0;
}

.cd-package-card:hover {
    border-color: #c9d8e6;
    background-color: #fafcff;
}

.cd-package-card.selected {
    border-color: var(--cd-primary-blue);
    background-color: #EAF2F9;
    box-shadow: 0 0 0 2px rgba(14, 72, 130, 0.12);
}

.cd-package-radio {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--cd-primary-blue);
    margin: 0;
    cursor: pointer;
}

.cd-package-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cd-package-name {
    color: #212529;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cd-package-levels {
    color: var(--cd-text-grey);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cd-package-price {
    flex: 0 0 auto;
    text-align: end;
    color: var(--cd-primary-orange);
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.cd-package-price small {
    display: block;
    color: var(--cd-text-grey);
    font-size: 11px;
    font-weight: 600;
}

.cd-subscribe-hint {
    color: var(--cd-text-grey);
    font-size: 12px;
    line-height: 1.4;
}

.cd-empty-packages {
    color: var(--cd-text-grey);
    border: 1px dashed #e9ecef;
    border-radius: 12px;
    padding: 18px 12px;
    background-color: #fafbfc;
}

.cd-empty-icon {
    font-size: 28px;
    color: #adb5bd;
    margin-bottom: 6px;
}

@media (max-width: 991px) {
    .cd-sidebar {
        margin-top: 40px;
    }
}
