/* Base Container & Typography */
.course-details-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e1e24;
    background: #fdfbfd;
}

/* Modern World-Class Split Hero Section */
.cd-hero-v2 {
    position: relative;
    background: linear-gradient(135deg, #180026 0%, #36004e 45%, #1d002e 100%);
    padding: 55px 0 65px;
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(209, 167, 58, 0.25);
}

.cd-hero-v2::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(209, 167, 58, 0.14) 0%, rgba(79, 0, 113, 0) 70%);
    pointer-events: none;
}

.cd-hero-v2::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.cd-breadcrumb-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: #dcc8f2;
    margin-bottom: 18px;
}

.cd-breadcrumb-v2 a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cd-breadcrumb-v2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cd-institution-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffe680;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cd-title-v2 {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

/* Hero Quick Specs Grid */
.cd-hero-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.cd-hero-spec-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.cd-hero-spec-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.cd-hero-spec-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d1a73a 0%, #9e791b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(209, 167, 58, 0.3);
}

.cd-hero-spec-label {
    font-size: 0.7rem;
    color: #d1b8e8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

.cd-hero-spec-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero Hero Poster Showcase Showcase Card */
.cd-hero-showcase-frame {
    position: relative;
    border-radius: 24px;
    background: #12001c;
    border: 2px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(79, 0, 113, 0.4);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cd-hero-showcase-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(209, 167, 58, 0.35);
}

.cd-hero-poster-img {
    width: 100%;
    height: 290px;
    max-height: 290px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hero Action Buttons */
.cd-btn-apply-now {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #2a0845 !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 26px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
}

.cd-btn-apply-now:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffe680 100%);
    color: #2a0845 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.cd-btn-download-pdf {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cd-btn-download-pdf:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffd700;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.cd-hero-showcase-frame:hover .cd-hero-poster-img {
    transform: scale(1.03);
}

.cd-hero-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 0, 38, 0.88) 0%, rgba(24, 0, 38, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    pointer-events: none;
}

.cd-poster-badge-top {
    align-self: flex-end;
    pointer-events: auto;
}

.cd-poster-badge-bottom {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-preview-poster {
    background: rgba(255, 255, 255, 0.95);
    color: #4f0071;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-preview-poster:hover {
    background: #ffd700;
    color: #2a0845;
    transform: scale(1.04);
}

/* Main Body Section */
.cd-body-section-v2 {
    padding: 50px 0;
    background: #fdfbfd;
}

/* Modern Custom Tab Nav */
.cd-tab-nav-v2 {
    display: flex;
    gap: 8px;
    background: #f3eaf8;
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 28px;
    border: 1px solid #e7d8f3;
}

.cd-tab-btn-v2 {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4f0071;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-align: center;
}

.cd-tab-btn-v2:hover {
    background: rgba(79, 0, 113, 0.08);
    color: #2a0845;
}

.cd-tab-btn-v2.active {
    background: #4f0071;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(79, 0, 113, 0.25);
}

/* Mobile Segmented Bar: 3-Column Equal Grid (100% Tabs Visible, 0 Scrolling Needed) */
@media (max-width: 768px) {
    .cd-tab-nav-v2 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 5px;
        gap: 5px;
        border-radius: 14px;
        margin-bottom: 22px;
    }

    .cd-tab-btn-v2 {
        min-width: 0;
        padding: 10px 4px;
        font-size: 0.82rem;
        border-radius: 10px;
        flex-direction: column;
        gap: 4px;
        white-space: normal;
        line-height: 1.25;
    }

    .cd-tab-btn-v2 i {
        font-size: 1.1rem;
    }
}

.cd-tab-pane-v2 {
    display: none;
}

.cd-tab-pane-v2.active {
    display: block;
    animation: cdFadeInV2 0.35s ease forwards;
}

@keyframes cdFadeInV2 {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PDF Action Buttons */
.cd-pdf-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cd-pdf-btn-view {
    background: #4f0071 !important;
    color: #ffffff !important;
    border: 1px solid #4f0071 !important;
}

.cd-pdf-btn-view:hover {
    background: #6a0099 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 0, 113, 0.35);
}

.cd-pdf-btn-download {
    background: #ffffff !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
}

.cd-pdf-btn-download:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.25);
}

/* Content Cards */
.cd-content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #eae2f2;
    box-shadow: 0 10px 30px rgba(79, 0, 113, 0.04);
    margin-bottom: 24px;
}

/* Accordions */
.cd-accordion-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-accordion-item-v2 {
    background: #ffffff;
    border: 1px solid #eae2f2;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cd-accordion-item-v2.active {
    border-color: #d1a73a;
    box-shadow: 0 8px 24px rgba(79, 0, 113, 0.08);
}

.cd-accordion-header-v2 {
    width: 100%;
    padding: 18px 22px;
    background: #ffffff;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a0845;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cd-accordion-header-v2:hover {
    background: #fbf6fd;
}

.cd-accordion-body-v2 {
    display: none;
    padding: 20px 22px;
    border-top: 1px solid #f3e8f8;
    background: #faf7fc;
    color: #4a4a52;
    line-height: 1.7;
}

.cd-accordion-item-v2.active .cd-accordion-body-v2 {
    display: block;
}

.cd-accordion-header-v2 .arrow-icon {
    transition: transform 0.3s ease;
    color: #d1a73a;
}

.cd-accordion-item-v2.active .arrow-icon {
    transform: rotate(180deg);
}

/* Floating Sidebar */
.cd-sidebar-v2 {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #eae2f2;
    box-shadow: 0 15px 40px rgba(79, 0, 113, 0.08);
}

.cd-fee-banner {
    background: linear-gradient(135deg, #f9f2ff 0%, #f0e2fc 100%);
    border: 1px dashed #c89ee8;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    margin-bottom: 22px;
}

.cd-fee-title {
    font-size: 0.78rem;
    color: #6c5484;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.cd-fee-number {
    font-size: 2rem;
    font-weight: 900;
    color: #4f0071;
}

.btn-enroll-primary {
    width: 100%;
    background: linear-gradient(135deg, #4f0071 0%, #320048 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 16px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(79, 0, 113, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none;
}

.btn-enroll-primary:hover {
    background: linear-gradient(135deg, #640090 0%, #430060 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 0, 113, 0.45);
    color: #ffffff;
}

.btn-brochure-secondary {
    width: 100%;
    background: #ffffff;
    color: #dc3545;
    border: 2px solid #f5c2c7;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: 22px;
}

.btn-brochure-secondary:hover {
    background: #fdf2f2;
    border-color: #dc3545;
    color: #b02a37;
}

/* Lightbox Modal */
.cd-modal-poster-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
}

@media (max-width: 991px) {
    .cd-title-v2 { font-size: 1.85rem; }
    .cd-hero-poster-img { height: 280px; }
    .cd-hero-specs-grid { grid-template-columns: repeat(2, 1fr); }
}
