/* ==========================================================================
   DETAIL EKSTRAKURIKULER - ACADEMIC BLUEPRINT STYLE (TIMES NEW ROMAN)
   ========================================================================== */

:root {
    --navy-deep: #0D1B2A;
    --blue-royal: #1B263B;
    --blue-accent: #2B3A4A;
    --gold-accent: #D4AF37;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Font Times New Roman untuk Heading dan Body */
    --font-heading: 'Times New Roman', Times, serif;
    --font-body: 'Times New Roman', Times, serif;
}

body {
    font-family: var(--font-body) !important;
}

/* --- 1. MINIMAL COMPACT HERO HEADER --- */
.page-header {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue-royal) 100%);
    padding: 22px 0 !important; /* Diringkas agar setara dan presisi */
    border-bottom: 3px solid var(--gold-accent) !important;
    color: var(--white);
    text-align: center;
    font-family: var(--font-body) !important;
}

.page-header h1 {
    font-family: var(--font-heading) !important;
    font-size: 1.55rem !important; /* Proporsional */
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 auto 4px auto !important;
    text-transform: uppercase;
    max-width: 850px;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.8) !important; /* Diperjelas agar kontras */
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom a:hover {
    color: var(--gold-accent) !important;
}

.breadcrumb-custom span {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- 2. MAIN LAYOUT CONTAINER --- */
.detail-ekskul {
    padding: 40px 0 60px 0;
    background-color: #FCFDFE;
    font-family: var(--font-body) !important;
}

/* Banner Foto Utama */
.foto-utamanya {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.06);
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.02);
}

.foto-utamanya img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    background-color: var(--bg-light);
}

/* Deskripsi Singkat Utama */
.judul-ekskul h2 {
    display: none; /* Sembunyikan karena judul sudah terwakili di Hero Header */
}

.judul-ekskul p {
    font-family: var(--font-body) !important;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--blue-royal);
    text-align: justify;
    margin-bottom: 30px;
}

/* --- 3. TABEL DATA INFORMASI EKSKUL --- */
.detail-ekskul .card {
    background: var(--white);
    border: 1px solid rgba(13, 27, 42, 0.06) !important;
    box-shadow: 0 4px 25px rgba(13, 27, 42, 0.02) !important;
    border-radius: 4px;
}

.detail-ekskul .card-body {
    padding: 30px;
}

.detail-ekskul .card-body h4 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy-deep);
}

.detail-ekskul .table {
    margin-bottom: 0;
    font-family: var(--font-body) !important;
}

.detail-ekskul .table tr th {
    color: var(--blue-accent);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.05);
}

.detail-ekskul .table tr td {
    color: var(--navy-deep);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.05);
}

/* --- 4. SEKSI PEMBINA EKSTRAKURIKULER --- */
.detail-ekskul h4.mt-5 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 35px !important;
    margin-bottom: 20px;
}

.detail-ekskul img.rounded-circle {
    border: 3px solid var(--white);
    outline: 1px solid rgba(13, 27, 42, 0.08);
    transition: transform 0.3s ease;
}

.detail-ekskul img.rounded-circle:hover {
    transform: scale(1.03);
}

.detail-ekskul h5.mt-3 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--blue-royal);
    font-size: 1.05rem;
}

/* --- 5. SEKSI BLOK NARASI (SEJARAH, MANFAAT, PRESTASI) --- */
.detail-ekskul .mt-5 h3 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 35px !important;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.06);
}

.detail-ekskul .mt-5 h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--gold-accent);
}

.detail-ekskul .mt-5 p {
    font-family: var(--font-body) !important;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--blue-accent);
    text-align: justify;
}

/* --- 6. TOMBOL KEMBALI MODERN --- */
.btn-primary.rounded-pill {
    font-family: var(--font-body) !important;
    background-color: var(--bg-light) !important;
    border: 1px solid rgba(13, 27, 42, 0.1) !important;
    color: var(--navy-deep) !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.btn-primary.rounded-pill:hover {
    background-color: var(--navy-deep) !important;
    border-color: var(--navy-deep) !important;
    color: var(--white) !important;
}

/* --- 7. UTILITY & SAFETY BROWSER ARCHITECTURE --- */
.latest-news h6, .clamp-text-safety {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* --- 8. PRESTASI SECTION --- */
.prestasi-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
    font-family: var(--font-body) !important;
}

.prestasi-foto {
    flex: 0 0 160px;
}

.prestasi-foto img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prestasi-text {
    flex: 1;
    text-align: justify;
    line-height: 1.85;
    font-size: 1.02rem;
    font-family: var(--font-body) !important;
}

/* --- 9. LAYER RESPONSIVITAS MOBILE --- */
@media (max-width: 767.98px) {
    .page-header {
        padding: 18px 0 !important;
    }
    .page-header h1 {
        font-size: 1.3rem !important;
    }
    .judul-ekskul p {
        font-size: 0.98rem;
    }
    .detail-ekskul .card-body {
        padding: 20px;
    }
    .detail-ekskul .table tr th, 
    .detail-ekskul .table tr td {
        display: block;
        width: 100% !important;
        padding: 8px 0;
    }
    .detail-ekskul .table tr th {
        border-bottom: none;
        padding-bottom: 0;
        color: var(--gold-accent);
    }
    .prestasi-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .prestasi-foto {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
    }
    .prestasi-foto img {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}