/* ==========================================================================
   EKSTRAKURIKULER - COMPACT ACADEMIC 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. COMPACT PAGE HEADER & BREADCRUMB --- */
.page-header {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue-royal) 100%);
    padding: 35px 0 30px 0; /* Padding dibuat ringkas dan proporsional */
    color: var(--white);
    text-align: center;
    font-family: var(--font-body) !important;
}

.page-header h1 {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem; /* Ukuran font lebih kecil & pas */
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body) !important;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom a:hover {
    color: var(--gold-accent);
}

.breadcrumb-custom span {
    color: var(--gold-accent);
}

.page-header p {
    font-family: var(--font-body) !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 8px auto 0 auto;
    line-height: 1.4;
}

/* --- 2. SECTION TITLE --- */
.ekskul-section {
    padding: 60px 0;
    background-color: #FCFDFE;
    font-family: var(--font-body) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
    padding-bottom: 15px;
}

.section-title h2 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.section-title p {
    font-family: var(--font-body) !important;
    color: var(--blue-accent);
    font-size: 0.95rem;
    margin: 0;
}

/* --- 3. EKSKUL CARD GRID --- */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ekskul-card {
    background: var(--white);
    border: 1px solid rgba(13, 27, 42, 0.06);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body) !important;
}

.ekskul-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 27, 42, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
     border-color: rgba(212, 175, 55, 0.6) !important;
}

.ekskul-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(13, 27, 42, 0.04);
}

.ekskul-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ekskul-content h3 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--navy-deep);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.ekskul-content p {
    font-family: var(--font-body) !important;
    color: var(--blue-accent);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
    
    /* --- Kompatibilitas Properti Line Clamp --- */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 44px;
}

/* --- 4. INFO LIST (JADWAL & PEMBINA) --- */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-top: 1px dashed rgba(13, 27, 42, 0.1);
    padding-top: 12px;
}

.info-list li {
    font-family: var(--font-body) !important;
    font-size: 0.85rem;
    color: var(--blue-royal);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list i {
    color: var(--gold-accent);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* --- 5. BUTTON DETAIL --- */
.btn-detail {
    font-family: var(--font-body) !important;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-deep);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 9px 16px;
    background-color: var(--bg-light);
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 4px;
    text-align: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background-color: var(--navy-deep);
    color: var(--white);
    border-color: var(--navy-deep);
}

/* --- 6. EMPTY DATA STATE --- */
.empty-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    font-family: var(--font-body) !important;
}

.empty-data img {
    width: 130px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.empty-data h3 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.empty-data p {
    color: var(--blue-accent);
    font-size: 0.9rem;
}

/* --- 7. LAYER RESPONSIVITAS MOBILE --- */
@media (max-width: 991.98px) {
    .ekskul-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 30px 0;
    }
    .page-header h1 {
        font-size: 1.3rem;
    }
    .ekskul-grid {
        grid-template-columns: 1fr;
    }
    .ekskul-content p {
        height: auto;
    }
}