/* Program Detay Popup (programlar.html ve index.html ortak) */
.program-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 5, 22, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.program-detail-modal.active {
    display: flex;
}

.pdm-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 62vw;
    min-width: 820px;
    max-width: 1140px;
    max-height: 92vh;
    background: #1a0e38;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    animation: pdmPop 0.25s ease;
}

@keyframes pdmPop {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdm-left {
    flex: 1 1 60%;
    padding: 40px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.pdm-right {
    position: relative;
    flex: 1 1 40%;
    min-height: 300px;
    padding: 24px 24px 24px 0;
}

.pdm-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.pdm-close {
    position: absolute;
    top: 38px;
    right: 38px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s;
}

.pdm-close:hover {
    background: #FCA440;
}

.pdm-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FCA440;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.pdm-left h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.pdm-dept {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 18px;
}

.pdm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pdm-badges .badge-level,
.pdm-badges .badge-price,
.pdm-badges .badge-deadline {
    font-size: 0.92rem;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #CAA7F0;
}

.pdm-summary {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.pdm-subsection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pdm-subsection h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #CAA7F0;
    margin: 0 0 6px;
}

.pdm-subsection p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

@media (max-width: 900px) {
    .pdm-card {
        width: 92vw;
        min-width: 0;
        max-width: 560px;
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    .pdm-right {
        order: -1;
        min-height: 220px;
        flex: 0 0 220px;
        padding: 20px 20px 0 20px;
    }
    .pdm-left {
        padding: 26px 24px 30px;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .pdm-right {
        min-height: 180px;
        flex-basis: 180px;
    }
    .pdm-left h3 {
        font-size: 1.35rem;
    }
    .pdm-dept {
        font-size: 0.98rem;
    }
    .pdm-summary {
        font-size: 0.94rem;
    }
}
