/* ==========================================
   STYLING BERITA SLIDER (HENTAKAN, ARROWS, DOTS)
=========================================== */
.berita-slider-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.berita-slider-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.berita-slider-container:active {
    cursor: grabbing;
}

.berita-grid-slider {
    display: flex;
    gap: 25px;
    width: max-content;
    transition: transform 0.5s ease-in-out;
}

.berita-card {
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

/* ==========================================
   KONTROL SLIDER (PANAH & TITIK)
=========================================== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}

.slider-arrow:hover { background: rgba(0, 0, 0, 0.8); }
.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

/* Panah khusus berita agar tetap di dalam kontainer */
.berita-arrow {
    top: 45%; 
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.berita-dots {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center; /* Membuat titik-titik berada persis di tengah */
    width: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6); 
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Penyesuaian titik berita karena background web terang */
.berita-dots .dot {
    background: #ccc;
}
.berita-dots .dot.active {
    background: #0056b3; 
}

/* ==========================================
   STYLING POP-UP INFORMASI AWAL
=========================================== */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1; visibility: visible;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content { transform: scale(1); }

.popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider Gambar di dalam Pop-up DENGAN RASIO 4:5 */
.popup-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Gambar Pop-up menjadi rasio 4:5 (1080x1350px) */
    max-height: 65vh; /* Menghindari pop-up terlalu panjang di HP */
    overflow: hidden;
    background-color: #f1f5f9; /* Warna latar belakang jika ada ruang kosong */
}

.popup-slides {
    display: flex;
    width: 100%; height: 100%;
    transition: transform 0.5s ease-in-out;
}

.popup-slides img {
    min-width: 100%; height: 100%;
    object-fit: contain; /* Menampilkan seluruh foto secara utuh tanpa terpotong */
}

.popup-body {
    padding: 20px; text-align: center;
}
.popup-body h3 {
    margin-bottom: 10px; color: #333; font-size: 1.25rem;
}
.popup-body p {
    color: #666; font-size: 0.95rem; margin-bottom: 20px;
}
.popup-btn {
    display: inline-block;
    background: #0056b3;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}