/* --- 1. Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- 2. Nav & Header --- */
.top-nav { background-color: #00a651; position: sticky; top: 0; z-index: 1000; }
.container-nav { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; }
.menu-links a { color: white; text-decoration: none; padding: 15px; font-size: 13px; font-weight: 700; display: inline-block; }
.running-text { background: #eee; padding: 5px 0; font-size: 12px; font-weight: bold; }

.main-header { background: white; padding: 20px 0; border-bottom: 3px solid #00a651; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 20px; }
.logo-img { height: 100px; width: auto; }
.brand-info h1 { font-size: 22px; color: #00a651; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.btn-pendaftaran { 
    background: linear-gradient(45deg, #f39c12, #e67e22); color: white !important; 
    padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
}

/* --- 3. Sponsor Strip --- */
.header-sponsor-container { display: flex; flex-direction: column; align-items: center; margin-top: 5px; }
.sponsor-label { font-size: 9px; font-weight: bold; color: #999; margin-bottom: 5px; }
.sponsor-logos-row { display: flex; align-items: center; gap: 12px; }
.sponsor-logos-row img { object-fit: contain; cursor: pointer; transition: 0.3s; }
.sponsor-logos-row img:hover { transform: scale(1.1); }
.sp-large { height: 70px; }
.sp-medium { height: 55px; }
.sp-small { height: 40px; }

/* --- 4. Portal Layout --- */
.main-portal { padding: 30px 0; }
.portal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.sidebar-left { position: sticky; top: 80px; z-index: 900; }
.widget { background: white; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.widget h3 { background: #00a651; color: white; padding: 8px; margin: -15px -15px 15px; font-size: 14px; }
.widget ul { list-style: none; }
.widget ul li { border-bottom: 1px solid #eee; padding: 8px 0; }
.widget ul li a { text-decoration: none; color: #444; font-size: 14px; display: flex; align-items: center; gap: 10px; }

.content-center { background: white; padding: 25px; border-top: 4px solid #00a651; box-shadow: 0 2px 10px rgba(0,0,0,0.05); min-height: 400px; width: 100%; }

/* --- 5. Mobile Responsive --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; gap: 15px; }
    .header-right { align-items: center; width: 100%; }
    .portal-grid { grid-template-columns: 1fr; }
    
    .sidebar-left {
        position: fixed !important; bottom: 0 !important; top: auto !important;
        left: 0; width: 100%; background: white; z-index: 10000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1); margin: 0;
    }
    .sidebar-left .widget { margin: 0; }
    .sidebar-left .widget h3 { display: none; }
    .sidebar-left .widget ul { display: flex; justify-content: space-around; padding: 10px 0; }
    .sidebar-left .widget ul li { border: none; padding: 0; }
    .sidebar-left .widget ul li a { flex-direction: column; font-size: 9px; gap: 4px; }
    .sidebar-left .widget ul li a i { font-size: 18px; color: #00a651; }

    body { padding-bottom: 70px; }
    .wa-float { bottom: 80px; }
    /* 1. Mengatur jarak pinggir halaman utama */
    .container-wide { 
        padding: 0 1px !important; /* Ubah angka 5px ini untuk mempersempit/lebar jarak pinggir */
    }

    /* 2. Mengatur jarak di dalam kotak putih konten */
    .content-center {
        padding: 1px !important; /* Ubah ke 5px jika ingin lebih mepet ke pinggir lagi */
    }
    
    /* 3. Membuat teks di bawah logo jadi rata tengah */
    .brand-info {
        text-align: center !important;
    }
}

.wa-float { position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; padding: 10px 20px; border-radius: 50px; text-decoration: none; z-index: 999; display: flex; align-items: center; gap: 10px; }
.site-footer { background: #222; color: #777; padding: 20px; text-align: center; font-size: 12px; }


/* =========================================
   7. STYLING MODAL BROSUR (POP-UP)
   ========================================= */
.modal {
    display: none; /* Sembunyi secara default */
    position: fixed; 
    z-index: 99999; /* Sangat tinggi agar di atas navigasi */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Latar hitam transparan */
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoom 0.3s; /* Efek muncul pelan */
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Tombol Silang (Close) */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000;
}

.close:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* Responsif untuk HP */
@media (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
    .close {
        top: 10px;
        right: 20px;
        font-size: 50px; /* Lebih besar di HP agar mudah diklik jempol */
    }
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 99999; /* Pastikan angka ini sangat besar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Latar hitam pekat */
}

/* =========================================
   HEADER BRANDING - VERSI SENI & PREMIUM
   ========================================= */
.brand-info h1 {
    font-family: 'Playfair Display', serif; /* Font seni yang elegan */
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    
    /* Efek Gradasi Hijau */
    background: linear-gradient(45deg, #00a651, #007d3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Memberikan sedikit kedalaman teks */
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
}

.brand-info .slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase; /* Membuat slogan lebih tegas */
    letter-spacing: 4px;       /* Memberi jarak antar huruf agar estetik */
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

.brand-info .address {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
    margin-top: 5px;
    border-top: 1px solid #eee; /* Garis tipis pemisah */
    padding-top: 3px;
    display: inline-block;
}

/* Penyesuaian untuk HP agar tidak terlalu besar */
@media (max-width: 768px) {
    .brand-info h1 {
        font-size: 24px;
    }
    .brand-info .slogan {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* Style khusus untuk tombol ChessManager di Menu */
.menu-special {
    background: #fbc02d !important; /* Warna Kuning Emas */
    color: #004d1a !important;     /* Tulisan Hijau Tua */
    font-weight: bold;
    margin-top: 3px;
    margin-bottom: 5px;
    padding: 1px 1px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(251, 192, 45, 0.5);
    display: flex;
    align-items: center;
    gap: 1px;
    transition: all 0.3s ease;
    animation: pulse-yellow 2s infinite; /* Efek berdenyut */
}

.menu-special:hover {
    background: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Animasi berdenyut agar mencolok */
@keyframes pulse-yellow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(251, 192, 45, 0.8); }
    100% { transform: scale(1); }
}