/* ======================================================= */
/* 🖼️ HERO SECTION (BANNER GAMBAR ATAS)                    */
/* ======================================================= */

.hero {
    position: relative;
    width: 100%;
    padding: 0;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider, .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-content h2 { font-size: 2em; }
    .hero-content p { font-size: 1em; }
    .hero { height: 50vh; min-height: 300px; }
}


/* ======================================================= */
/* ⚽ EKSKUL SECTION (KARTU GRID)                          */
/* ======================================================= */

.ekskul-section {
    padding: 60px 5%;
    background-color: #ffffff;
    text-align: center;
}

.ekskul-section h2 {
    font-size: 2.2em;
    color: var(--primary-green);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.ekskul-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--dark-green);
    border-radius: 2px;
}

.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.ekskul-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ekskul-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--light-green);
}

.ekskul-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f0f0f0;
    border-bottom: 4px solid var(--primary-green);
}

.ekskul-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.ekskul-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.ekskul-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-detail {
    display: inline-block;
    text-align: center;
    background-color: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.btn-detail:hover {
    background-color: var(--dark-green);
}


/* ======================================================= */
/* 🖼️ MODAL (POP-UP DETAIL)                                */
/* ======================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.4s ease-out;
}

.close-btn {
    color: #999;
    float: right;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--primary-green);
}

.modal-header {
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--dark-green);
    font-size: 1.8em;
    margin: 0;
}

.modal-body h4 {
    color: var(--primary-green);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.1em;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    font-size: 1em;
    color: #444;
}

.modal-body li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.modal-body li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- CSS DROPDOWN MENU (REVISI FINAL) --- */
.main-nav li { 
    position: relative; 
}

.dropdown-menu {
    /* PENTING: Pakai !important biar gak kalah sama CSS navbar atasnya */
    display: none !important; 
    
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 9999;
    padding: 0;
    
    /* Paksa susunan ke bawah, bukan ke samping */
    flex-direction: column !important; 
    border-top: 3px solid #4CAF50;
}

.dropdown-menu li { 
    display: block; 
    width: 100%; 
    margin: 0; 
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: #333 !important;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #4CAF50 !important;
}

/* Munculkan HANYA saat di-hover */
.main-nav li:hover .dropdown-menu { 
    display: block !important; 
}




