/* --- 2. Styling Umum & Font Family (Ketentuan 2) --- */
body {
    /* Set default font family untuk body */
    font-family: 'Figtree', sans-serif;
}

.popup-header h2 {
    /* Set font family khusus untuk Header */
    font-family: 'Geist', sans-serif;
    font-weight: 700; /* Atau disesuaikan dengan weight yang Anda suka */
}

/* --- 1. Styling Non-Responsif (Sama Seperti Sebelumnya) --- */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Tambahkan padding agar tidak terlalu mepet di layar kecil */
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;

    /* Max-width akan diatur di media query agar responsif */
    max-width: 90%;
    width: auto;
    height: auto;
}

.popup-header h2 {
    color: #CC0000;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- 3. Styling Responsif (Ketentuan 1 & 3) --- */

/* Default (Untuk sm: 390px ke bawah, perangkat mobile kecil) */
.popup-content {
    /* Ukuran Lebar */
    max-width: 350px; 
}
.popup-header h2 {
    /* Ukuran Font Header */
    font-size: 1.25rem; /* ~20px */
}
.popup-body p, .popup-body li {
    /* Ukuran Font Body */
    font-size: 0.875rem; /* ~14px */
    line-height: 1.5;
}

/* md: 768px (Tablet) */
@media (min-width: 768px) {
    .popup-content {
        max-width: 600px;
        padding: 30px;
    }
    .popup-header h2 {
        font-size: 1.75rem; /* ~28px */
    }
    .popup-body p, .popup-body li {
        font-size: 1rem; /* ~16px */
        line-height: 1.5;
    }
}

/* lg: 1024px (Laptop Kecil) */
@media (min-width: 1024px) {
    .popup-content {
        max-width: 700px;
    }
    .popup-header h2 {
        font-size: 2rem; /* ~32px */
    }
    .popup-body p, .popup-body li {
        font-size: 1.125rem; /* ~18px */
        line-height: 1.5;
    }
}

/* xl: 1280px dan 2xl: 1440px */
@media (min-width: 1280px) {
    .popup-content {
        max-width: 800px;
        padding: 40px;
    }
    .popup-header h2 {
        font-size: 1.875rem; /* ~30px */
    }
    .popup-body p, .popup-body li {
        font-size: 1rem; /* ~16px */
        line-height: 1.5;
    }
}

/* 3xl: 1920px dan 4xl: 2560px (Desktop Besar) */
@media (min-width: 1920px) {
    .popup-content {
        max-width: 900px;
    }
    .popup-header h2 {
        font-size: 2.5rem; /* ~40px */
    }
    .popup-body p, .popup-body li {
        font-size: 1.25rem; /* ~20px */
        line-height: 1.5;
    }
}

/* Animasi Fade In (Sama seperti sebelumnya) */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}