/* ===== Program Details Page ===== */
.program-details-page {
    background: #fff;
}

/* ===== Hero Section ===== */
.pd-hero {
    position: relative;
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 764px;
    overflow: visible;
    isolation: isolate;
}

.pd-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 764px;
    background: #224E7E;
    clip-path: polygon(0 0, 100% 0, 100% 83%, 0 100%);
    z-index: -1;
}

.pd-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 150px;
}

/* Hero Text */
.pd-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.pd-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 130%;
    letter-spacing: -0.8px;
    text-align: right;
    margin: 0;
    max-width: 560px;
}

.pd-hero-desc {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 150%;
    text-align: right;
    margin: 0;
    max-width: 658px;
}

.pd-hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 32px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    padding: 24px 32px 23px 24px;
}

.pd-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 246px;
    height: 56px;
    background: #19BBB7;
    border-radius: 100px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
    max-height: 764px;

}

.pd-btn-primary:hover {
    background: #15a5a2;
    color: #FFFFFF;
}

.pd-study-start {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pd-study-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.32px;
}

.pd-study-date {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.4px;
}

/* ===== Sidebar Card ===== */
.pd-hero-sidebar {
    width: 400px;
    flex-shrink: 0;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
}

.pd-sidebar-image {
    position: relative;
    width: 100%;
    height: 287px;
    overflow: hidden;
    display: flex;
    padding: 24px 24px 242px 315px;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    border-radius: 24px;
}

.pd-sidebar-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-sidebar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 41, 72, 0) 0%, rgba(10, 41, 72, 1) 100%);
}

.pd-sidebar-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #00293D;
    z-index: 1;
}

/* Price & Info Card */
.pd-sidebar-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #e1ebee;
    overflow: hidden;
    margin-top: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.012),
                0 20px 47px rgba(0, 0, 0, 0.015),
                0 60px 80px rgba(0, 0, 0, 0.02);
}

/* Price Bar */
.pd-sidebar-price {
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    background: #19BBB7;
    margin: 12px;
}

.pd-price-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pd-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

.pd-price-period {
    font-size: 10px;
    font-weight: 400;
    color: #FFFFFF;
    opacity: 0.8;
}

.pd-price-label {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

/* Info Details */
.pd-sidebar-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
}

.pd-info-item:last-child {
    padding-bottom: 0;
}

.pd-info-item-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #00293D;
}

.pd-info-item-label svg {
    color: #19BBB7;
}

.pd-info-item-value {
    font-size: 16px;
    font-weight: 400;
    color: #00293D;
}

/* ===== Content Section ===== */
.pd-content .container {
    max-width: 1240px;
}

.pd-content-card {
    background: #FFFFFF;
    border: 1px solid #E0E2E5;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    margin-top: 220px;
}

/* Tabs */
.pd-tabs {
    display: flex;
    gap: 12px;
}

.pd-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6E7686;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pd-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pd-tab:hover {
    color: #00293D;
}

.pd-tab.active {
    color: #19BBB7;
    font-weight: 500;
    border-bottom-color: #19BBB7;
}

.pd-tab.active svg {
    color: #19BBB7;
}

.pd-tab-line {
    height: 1px;
    background: #E0E2E5;
    margin-bottom: 32px;
}

/* Tab Panes */
.pd-tab-pane {
    display: none;
}

.pd-tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 48px;
    animation: pdSlideUp 0.4s ease;
}

@keyframes pdSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.pd-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pd-section-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #00293D;
    line-height: 130%;
}

.pd-section-body {
    font-size: 18px;
    font-weight: 300;
    color: #00293D;
    line-height: 27px;
    text-align: right;
}

.pd-section-body p {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 27px;
    color: #00293D;
}

.pd-section-body ul,
.pd-section-body ol {
    padding-right: 20px;
    margin-bottom: 12px;
}

.pd-section-body li {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 27px;
    color: #00293D;
}

.pd-section-desc {
    font-size: 18px;
    font-weight: 300;
    color: #535965;
    line-height: 27px;
    text-align: right;
    margin: 0;
}

/* Requirement Cards */
.pd-req-grid {
    display: flex;
    gap: 24px;
}

.pd-req-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid #E0E2E5;
    border-radius: 24px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.pd-req-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pd-req-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 187, 183, 0.1), rgba(34, 78, 126, 0.1));
    border-radius: 16px;
}

.pd-req-icon svg {
    color: #19BBB7;
}

.pd-req-text {
    font-size: 18px;
    font-weight: 700;
    color: #00293D;
}

/* Expandable Levels */
.pd-levels {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-level {
    border-bottom: 1px solid #E0E2E5;
}

.pd-level:last-child {
    border-bottom: none;
}

.pd-level-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: right;
    justify-content: space-between;
}

.pd-level-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #224E7E;
    transition: background 0.3s ease;
}

.pd-level--open .pd-level-indicator {
    background: #19BBB7;
}

.pd-level-icon {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.pd-level-name {
    font-size: 20px;
    font-weight: 700;
    color: #00293D;
}

.pd-level-content {
    padding: 0 0 20px 48px;
}

.pd-course-item {
    font-weight: 400;
    font-size: 16px;
    color: #00293D;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 41, 61, 0.1);
}

.pd-course-item:last-child {
    border-bottom: none;
}

.program-name {
    text-decoration: underline !important;
}

/* ===== Related Programs Section ===== */
.pd-related {
    padding: 60px 0;
    background: #F8FAFB;
}

.pd-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.pd-related-title {
    font-size: 32px;
    font-weight: 800;
    color: #00293D;
    line-height: 120%;
    margin: 0;
}

.pd-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 246px;
    height: 56px;
    background: #FFFFFF;
    border: 1px solid #E0E3E6;
    border-radius: 100px;
    color: #00293D;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pd-view-all-btn:hover {
    background: #F0F2F4;
    color: #00293D;
}

/* ===== Support Section ===== */
.pd-sidebar-support {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding: 24px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 24px;
    background: #FBF8EE;
}

.pd-support-title {
    color: #00293D;
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 12px;
}

.pd-support-desc {
    color: #00293D;
    font-size: 16px;
    font-weight: 300;
    line-height: 150%;
    margin-bottom: 25px;
}

/* ===== Support Button ===== */
.pd-support-btn {
    display: flex;
    padding: 14px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    border-radius: 80px;
    background: #C2992D;
    color: #FFFFFF;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pd-support-btn:hover {
    background: #a88325;
    color: #FFFFFF;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .pd-hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .pd-hero-content {
        flex-direction: column-reverse;
        gap: 32px;
    }

    .pd-hero-text {
        align-items: center;
    }

    .pd-hero-title {
        font-size: 28px;
        text-align: center;
        max-width: 100%;
    }

    .pd-hero-desc {
        text-align: center;
        max-width: 100%;
    }

    .pd-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .pd-hero-sidebar {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .pd-sidebar-image {
        height: 220px;
        padding: 16px;
    }

    .pd-study-start {
        align-items: center;
    }

    .pd-related-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .pd-related-title {
        font-size: 24px;
    }

    .pd-view-all-btn {
        width: 100%;
    }

    .pd-content-card {
        padding: 24px 16px;
    }

    .pd-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pd-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pd-section-badge {
        font-size: 18px;
        padding: 6px 16px;
    }

    .pd-req-grid {
        flex-direction: column;
    }

    .pd-level-content {
        padding-left: 32px;
    }
}

@media (max-width: 576px) {
    .pd-hero-title {
        font-size: 24px;
    }

    .pd-sidebar-price {
        flex-direction: column;
        gap: 12px;
    }

    .pd-hero-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 16px 16px 0 0;
        padding: 16px 20px;
        margin: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: none;
        border-top: 1px solid rgba(0, 82, 154, 0.1);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
        gap: 16px;
    }

    .pd-btn-primary {
        width: 100%;
        height: 48px;
        font-size: 15px;
    }

    .pd-study-start {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .pd-study-label {
        font-size: 12px;
    }

    .pd-study-date {
        font-size: 13px;
    }
}