/* ===================================================== */
/* ======================= GLOBAL ====================== */
/* ===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
}

.container,
.card-program {
    width: 85%;
    margin: 60px auto;
}


/* ===================================================== */
/* ======================= HERO ======================== */
/* ===================================================== */

.hero {
    position: relative;
    height: calc(100vh - 46px);
    background: url('images/simaan.jpeg') center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 0;
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 40px;
    color: white;
    max-width: 1000px;
    z-index: 2;
}

.foto-logo {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.hero-content h1 {
    font-size: 36px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
}


/* ================= QUOTA ================= */

.quota {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #00c853, #0a4f3c);
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


/* ===================================================== */
/* ======================= GALERI ====================== */
/* ===================================================== */

.film-wrapper {
    overflow: hidden;
}

.film-track {
    display: flex;
    transition: transform 1s ease;
}

.film-item {
    flex: 0 0 25%;
    padding: 10px;
    position: relative;
}

.film-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.film-caption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.4);
    color: white;
    border-radius: 8px;
    font-size: 13px;
}


/* ===================================================== */
/* ========================= CARD ====================== */
/* ===================================================== */

.card {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h2 {
    color: #0a4f3c;
    margin-bottom: 20px;
    border-bottom: 3px solid #0a4f3c;
    display: inline-block;
}


/* ===================================================== */
/* ===================== PROGRAM ======================= */
/* ===================================================== */

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    color: #0a4f3c;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.program-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.program-card:hover {
    transform: translateY(-6px);
}

.program-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.program-content {
    padding: 20px;
    text-align: center;
}

.btn-program {
    display: inline-block;
    padding: 8px 18px;
    background: #0a4f3c;
    color: white;
    border-radius: 25px;
    text-decoration: none;
}


/* ===================================================== */
/* ===================== FASILITAS ===================== */
/* ===================================================== */

.fasilitas-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.fasilitas-item img {
    width: 80px;
    height: 80px;
}

.fasilitas-text h3 {
    margin: 0;
    color: #2c3e50;
}

.fasilitas-text p {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}


/* ===================================================== */
/* ======================= BERITA ====================== */
/* ===================================================== */

.berita-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    cursor: pointer;
}

.berita-item img {
    width: 25%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.berita-text {
    width: 75%;
}




/* ===================================================== */
/* ====================== RESPONSIVE =================== */
/* ===================================================== */

@media (max-width: 768px) {

/* CARD FULL MOBILE */
.container,
.card-program,
.card {
    width: 100%;
    margin: 20px 0;
    border-radius: 0;
}
  

    /* HERO */
    .hero {
        height: auto;
        padding: 60px 20px 0 20px;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        flex-direction: column;
        text-align: left;
        left: 0%;
        gap: 20px;
        margin-top: 320px;
        margin-bottom: 0;
    }

    .hero-content h1 {
        font-size: clamp(28px, 5vw, 42px);
        white-space: nowrap;
    }

    .foto-logo {
        width: 150px;
        height: 150px;
    }

    /* GALERI */
    .film-item {
        flex: 0 0 50%;
        padding: 2px;
    }

    .film-item img {
        height: 160px;
    }

    /* PROGRAM */
    .program-grid {
        grid-template-columns: 1fr;
    }

    /* FASILITAS MOBILE - gambar kiri, teks kanan */

    .fasilitas-item {
        flex-direction: row; /* gambar kiri, teks kanan */
        align-items: center; /* vertikal rata tengah */
        gap: 15px; /* jarak antar gambar dan teks */
        margin-bottom: 20px;
        padding-bottom: 0;
        border-bottom: 1px solid #eee;
    }

    .fasilitas-item img {
        width: 80px;
        height: 80px;
        flex-shrink: 0; /* biar ukuran gambar tidak menyusut */
    }

    .fasilitas-text {
        flex: 1; /* teks ambil sisa lebar */
    }

    .fasilitas-text h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .fasilitas-text p {
        font-size: 12px;
        margin: 0;
    }
    
  /* BERITA - 2 Kolom Mobile */
/* BERITA - 2 Kolom Mobile, gambar di atas teks */
.berita-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.berita-item {
    display: flex;
    flex-direction: column; /* penting: gambar di atas, teks di bawah */
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.berita-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px; /* jarak ke teks */
}

.berita-text {
    width: 100%;
}

.berita-text h3 {
    font-size: 20px;
    margin: 0 0 4px 0;
}

.berita-text p {
    font-size: 16px;
    margin: 0;
}
    /* MAP */
    .map-container iframe {
        height: 250px;
    }

    /* QUOTA */
    .quota {
        position: static;
        margin: 20px auto;
        width: 90%;
    }
}