/* ==========================================
   STYLING SLIDER (PRODUK & BERITA)
=========================================== */
.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;
}

/* Lebar card produk & berita disamakan agar rapi */
.berita-card, 
.produk-card {
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ==========================================
   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: 10px; }
.next-arrow { right: 10px; }

.berita-dots {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

.berita-dots .dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.berita-dots .dot.active {
    background: #0056b3;
    transform: scale(1.3);
}

/* ==========================================
   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;
}

.popup-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 65vh;
    overflow: hidden;
}

.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: cover;
}

.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;
}