/* ============================================================
 * PROGRAM SEKOLAH — FRONTEND DETAIL
 * ============================================================ */

/* ----------------------------------------
 * HERO
 * ---------------------------------------- */
.program-detail-hero {
    position: relative;
    padding: 130px 20px 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.program-detail-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    pointer-events: none;
}

.program-detail-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.program-detail-orb-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #dc2626;
}

.program-detail-orb-2 {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #2563eb;
}

.program-detail-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.program-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.program-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.program-breadcrumb a:hover {
    color: #f59e0b;
}

.program-breadcrumb i {
    font-size: 10px;
}

.program-breadcrumb span {
    color: #f59e0b;
    font-weight: 600;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.program-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.program-detail-badge-cat,
.program-detail-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-detail-badge-cat {
    background: #dc2626;
    color: #ffffff;
}

.program-detail-badge-featured {
    background: #f59e0b;
    color: #ffffff;
}

.program-detail-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.program-detail-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 700px;
}

/* ----------------------------------------
 * MAIN
 * ---------------------------------------- */
.program-detail-main {
    flex: 1;
    background: #f8fafc;
    padding: 60px 20px;
}

.program-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.program-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* ----------------------------------------
 * ARTICLE
 * ---------------------------------------- */
.program-detail-article {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.program-detail-image {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.program-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-detail-content {
    padding: 32px 40px;
    position: relative;
}

.program-detail-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    border: 4px solid #ffffff;
}

.program-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.program-detail-body p {
    margin-bottom: 16px;
}

.program-detail-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 12px;
}

.program-detail-body ul,
.program-detail-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.program-detail-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.program-detail-body strong {
    color: #0f172a;
    font-weight: 700;
}

.program-detail-body a {
    color: #dc2626;
    text-decoration: underline;
}

.program-detail-back {
    padding: 20px 40px 32px;
    border-top: 1px solid #f1f5f9;
}

.program-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.program-btn-back:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateX(-3px);
}

/* ----------------------------------------
 * SIDEBAR
 * ---------------------------------------- */
.program-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.program-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.program-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-sidebar-title i {
    color: #dc2626;
}

.program-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.program-sidebar-item:hover {
    background: #f8fafc;
}

.program-sidebar-thumb {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.program-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.program-sidebar-item:hover .program-sidebar-thumb img {
    transform: scale(1.1);
}

.program-sidebar-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
    font-size: 20px;
}

.program-sidebar-info {
    flex: 1;
    min-width: 0;
}

.program-sidebar-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.program-sidebar-item:hover .program-sidebar-info h4 {
    color: #dc2626;
}

.program-sidebar-cat {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ----------------------------------------
 * CTA CARD
 * ---------------------------------------- */
.program-cta-card {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.program-cta-card i {
    font-size: 32px;
    opacity: 0.9;
    margin-bottom: 12px;
    display: block;
}

.program-cta-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.program-cta-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.program-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.program-cta-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* ----------------------------------------
 * RESPONSIVE
 * ---------------------------------------- */
@media (max-width: 991.98px) {
    .program-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .program-detail-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .program-detail-hero {
        padding: 110px 16px 40px;
    }

    .program-detail-title {
        font-size: 26px;
    }

    .program-detail-subtitle {
        font-size: 14px;
    }

    .program-detail-main {
        padding: 40px 16px;
    }

    .program-detail-content {
        padding: 24px 20px;
    }

    .program-detail-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin-top: -50px;
    }

    .program-detail-body {
        font-size: 15px;
    }

    .program-detail-body h3 {
        font-size: 18px;
    }

    .program-detail-back {
        padding: 16px 20px 24px;
    }

    .program-breadcrumb span {
        max-width: 120px;
    }
}