/* --- File: style.css (THEME: ROYAL GOLD & ANIMATED GRADIENTS) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&family=Rajdhani:wght@600;700;800&display=swap');

:root {
    /* GRADASI BERJALAN (Header/Footer) */
    --royal-anim: linear-gradient(270deg, #004d26, #0b486b, #b45309, #006837);
    
    /* WARNA NGAJI (MATANG & TEGAS) */
    --grad-n: linear-gradient(135deg, #059669, #047857);
    --grad-g: linear-gradient(135deg, #2563eb, #1e40af);
    --grad-a: linear-gradient(135deg, #d97706, #b45309);
    --grad-j: linear-gradient(135deg, #7c3aed, #5b21b6);
    --grad-i: linear-gradient(135deg, #dc2626, #991b1b);

    /* STATISTIK GOLD */
    --gold-stat: linear-gradient(135deg, #fcd34d, #f59e0b, #b45309);

    --bg-body: #f1f5f9;
    --text-dark: #0f172a;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Outfit', sans-serif; background: var(--bg-body); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* UTILITY */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 1. ANIMASI BACKGROUND (Sangat Cepat & Halus) */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-bg {
    background: var(--royal-anim);
    background-size: 400% 400%;
    animation: bgMove 8s ease infinite; /* Cepat */
    color: white;
}

/* 2. HEADER DESKTOP */
.top-header { padding: 15px 0; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 1002; }
.brand-center {
    display: inline-flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.1); padding: 10px 30px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px);
}
.brand-logo { height: 55px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); }
.brand-text h1 {
    font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.8rem; margin: 0; line-height: 1;
    background: linear-gradient(to bottom, #fff, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-text span { font-size: 0.75rem; letter-spacing: 3px; color: #e2e8f0; font-weight: 700; display: block; }

/* NAVIGASI & SUBMENU FIX (KE BAWAH) */
.nav-bar { background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 1001; }
.nav-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: center; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-item { position: relative; } /* Kunci untuk Dropdown */

.nav-link {
    display: flex; align-items: center; padding: 15px 20px; color: white; font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-link:hover { color: #fbbf24; background: rgba(255,255,255,0.1); }
.nav-link i { margin-right: 5px; color: #fbbf24; }

/* DROPDOWN (Posisi Absolut di Bawah Parent) */
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: white; border-top: 4px solid #fbbf24;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: 0.3s; border-radius: 0 0 10px 10px; z-index: 9999;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #1e293b;
    font-weight: 600; font-size: 0.85rem; border-bottom: 1px dashed #eee;
}
.dropdown-item i { width: 20px; text-align: center; color: #004d26; }
.dropdown-item:hover { background: #fffbeb; color: #d97706; padding-left: 25px; }

/* LOGIN */
.login-btn { 
    font-size: 1.3rem; color: #fbbf24; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.3); 
    border-radius: 50%; margin-left: 10px; transition: 0.3s; 
}
.login-btn:hover { background: #fbbf24; color: #004d26; box-shadow: 0 0 15px #fbbf24; }

/* 3. KONTEN UTAMA */

/* STATISTIK GOLD (DOMINAN EMAS) */
.stat-section { position: relative; margin-top: -60px; z-index: 100; padding: 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.stat-card {
    background: var(--gold-stat);
    padding: 25px; border-radius: 20px; text-align: center; color: white;
    box-shadow: 0 15px 40px rgba(180, 83, 9, 0.3); transition: 0.4s;
    border: 2px solid rgba(255,255,255,0.3);
}
.stat-card:hover { transform: translateY(-10px) scale(1.02); }
.st-icon { 
    font-size: 2.5rem; margin-bottom: 10px; color: #78350f;
    background: rgba(255,255,255,0.3); width: 70px; height: 70px; 
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.st-num { font-size: 2.5rem; font-weight: 900; font-family: 'Rajdhani'; text-shadow: 1px 1px 0 rgba(0,0,0,0.1); }
.st-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fffbeb; }

/* N-G-A-J-I (ANIMASI BERJALAN & BENTUK CAIR) */
.ngaji-box { background: #fff; padding: 80px 20px; text-align: center; }
.ngaji-head { font-family: 'Rajdhani'; font-weight: 800; font-size: 2.5rem; color: #004d26; margin-bottom: 40px; text-transform: uppercase; }
.ngaji-container { display: flex; gap: 15px; justify-content: center; max-width: 1200px; margin: 0 auto; }

/* Animasi Gradient Berjalan di Huruf */
@keyframes cardShine { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.ngaji-card {
    flex: 1; padding: 30px 20px; color: white;
    border-radius: 30px 10px 30px 10px; /* Bentuk Unik */
    position: relative; overflow: hidden; transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    display: flex; flex-direction: column; align-items: center;
    background-size: 200% 200%; animation: cardShine 3s linear infinite; /* Animasi Jalan */
}
.ngaji-card:hover { transform: scale(1.05); z-index: 10; border-radius: 10px 30px 10px 30px; }

/* Warna Spesifik */
.ng-n { background-image: linear-gradient(45deg, #059669, #10b981, #059669); }
.ng-g { background-image: linear-gradient(45deg, #2563eb, #3b82f6, #2563eb); }
.ng-a { background-image: linear-gradient(45deg, #d97706, #fbbf24, #d97706); }
.ng-j { background-image: linear-gradient(45deg, #7c3aed, #8b5cf6, #7c3aed); }
.ng-i { background-image: linear-gradient(45deg, #dc2626, #ef4444, #dc2626); }

.ng-big { font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 5px; text-shadow: 3px 3px 0 rgba(0,0,0,0.1); }
.ng-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid rgba(255,255,255,0.4); padding-bottom: 5px; width: 100%; margin-bottom: 10px; }
.ng-desc { font-size: 0.9rem; line-height: 1.4; font-weight: 500; }

/* MENU ICON (MODERN & COLORFUL) - NO BOX JADUL */
.app-hub { padding: 60px 20px; background: #f8fafc; }
.app-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; max-width: 1100px; margin: 0 auto; }
.app-item { width: 100px; text-align: center; transition: 0.3s; }
.app-item:hover { transform: translateY(-10px); }

.app-icon {
    width: 75px; height: 75px; margin: 0 auto 10px; border-radius: 22px; /* Rounded Modern */
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); position: relative; overflow: hidden;
}
/* Kilau di Icon */
.app-icon::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent); transform: rotate(45deg);
}
.app-name { font-size: 0.85rem; font-weight: 700; color: #475569; line-height: 1.2; }

/* BERITA KORAN DIGITAL */
.news-paper { padding: 60px 20px; background: white; }
.np-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.np-headline { padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.np-hl-img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.np-tag { background: #d97706; color: white; padding: 5px 15px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; border-radius: 5px; }
.np-hl-title { font-size: 2.2rem; font-weight: 800; margin: 15px 0; line-height: 1.2; font-family: 'Rajdhani'; color: #0f172a; }
.np-hl-desc { font-size: 1.1rem; color: #475569; line-height: 1.7; }

.np-list-item { display: flex; gap: 20px; padding-bottom: 20px; border-bottom: 1px dashed #cbd5e1; margin-bottom: 20px; }
.np-list-img { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.np-list-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: #1e293b; }
.np-date { font-size: 0.75rem; color: #059669; font-weight: 600; text-transform: uppercase; }

/* FOOTER */
footer { text-align: left; font-size: 0.95rem; }
.f-title { font-weight: 800; margin-bottom: 20px; color: #fbbf24; font-family: 'Rajdhani'; font-size: 1.2rem; letter-spacing: 1px; }
.f-info li { margin-bottom: 12px; display: flex; align-items: start; gap: 10px; color: rgba(255,255,255,0.9); }
.f-info i { color: #fbbf24; margin-top: 4px; }

/* ==================================================================
   MOBILE RESPONSIVE (OPTIMASI HP)
   ================================================================== */
.mobile-toggle { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 991px) {
    /* HEADER HP */
    .top-header { padding: 10px 15px; display: flex; justify-content: center; align-items: center; } /* Logo Center */
    .brand-center { padding: 5px 20px; width: auto; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); }
    .brand-logo { height: 40px; }
    .brand-text h1 { font-size: 1.2rem; }
    
    .mobile-toggle { display: block; font-size: 1.8rem; color: white; cursor: pointer; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
    .nav-bar { display: none; } /* Hide Desktop Nav */

    /* MENU MOBILE (SLIDE) */
    .mobile-nav-overlay {
        display: flex; position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background: var(--royal-anim); background-size: 400% 400%; animation: bgMove 10s ease infinite;
        flex-direction: column; padding: 80px 20px 40px; overflow-y: auto;
        transition: 0.4s ease-in-out; z-index: 9999; box-shadow: -10px 0 50px rgba(0,0,0,0.5);
    }
    .mobile-nav-overlay.active { right: 0; }
    .m-nav-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .m-nav-link { display: flex; justify-content: space-between; padding: 15px 0; color: white; font-weight: 700; }
    .m-sub-menu { display: none; background: rgba(0,0,0,0.2); padding: 5px 15px; border-radius: 10px; margin-bottom: 10px; }
    .m-sub-menu.show { display: block; }
    .m-drop-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: rgba(255,255,255,0.9); border-bottom: 1px dashed rgba(255,255,255,0.1); }

    /* SLIDER HP */
    .hero-slider { height: 230px !important; }
    .swiper-slide div[style*="position:absolute"] { padding: 30px 15px !important; }

    /* STATISTIK GRID 2 KOLOM */
    .stat-section { margin-top: -30px; padding: 0 15px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 15px 10px; border-radius: 15px; }
    .st-icon { width: 50px; height: 50px; font-size: 1.8rem; }
    .st-num { font-size: 1.8rem; }

    /* NGAJI GRID 2 KOLOM */
    .ngaji-box { padding: 40px 15px; }
    .ngaji-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-wrap: wrap; }
    .ngaji-card { min-width: auto; padding: 20px 10px; justify-content: flex-start; }
    .ng-big { font-size: 2.5rem; }
    .ng-desc { font-size: 0.7rem; }
    /* INI KUNCINYA: Item terakhir (Huruf I) jadi lebar penuh */
    .ngaji-card:last-child {
        grid-column: span 2; /* Melebar ke 2 kolom */
        width: 100%;
    }

    .ng-big { font-size: 3rem; }
    .ng-head { font-size: 1rem; }
    .ng-desc { font-size: 0.8rem; display: block; } /* Narasi dimunculkan kembali */

    /* MENU ICON GRID 3 KOLOM (Agar Rapi) */
    .app-hub { padding: 40px 15px; }
    .app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow: visible; }
    .app-item { width: auto; }
    .app-icon { width: 55px; height: 55px; font-size: 1.5rem; border-radius: 18px; }
    .app-name { font-size: 0.65rem; }

    /* BERITA */
    .np-layout { grid-template-columns: 1fr; gap: 30px; }
    .np-hl-img { height: 200px; }
    .np-hl-title { font-size: 1.5rem; }
    
    /* FOOTER */
    footer { text-align: center; }
    .f-info li { justify-content: center; }
}
/* ==================================================================
   STYLE KHUSUS HALAMAN INTERNAL (SAMBUTAN, DOKUMEN, DLL)
   Menyamakan dengan Tema Royal Home
   ================================================================== */

/* 1. HEADER JUDUL (Background Animasi & Judul Emas) */
.page-header {
    /* Background Animasi sama dengan Home */
    background: var(--grad-royal); 
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    
    /* Layout */
    padding: 80px 20px 100px; /* Padding bawah lega untuk efek tumpuk */
    text-align: center;
    border-radius: 0 0 50px 50px; /* Lengkungan bawah */
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: -60px; /* Agar konten di bawahnya naik sedikit */
    position: relative;
    z-index: 1;
}

/* Judul Halaman (Emas Mencolok) */
.ph-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: 3rem; /* Ukuran Besar */
    color: #fbbf24 !important; /* EMAS MENCOLOK (Paksa) */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Bayangan agar terbaca jelas */
    position: relative;
    display: inline-block;
}

/* Garis Bawah Judul (Opsional, pemanis) */
.ph-title::after {
    content: ''; display: block; width: 60%; height: 4px;
    background: #fff; margin: 5px auto 0;
    border-radius: 2px; opacity: 0.5;
}

/* Deskripsi di Bawah Judul */
.ph-desc {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* 2. KONTAINER ISI HALAMAN (Agar Rapi) */
.main-container {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 20; /* Di atas header */
}

/* Kotak Putih Pembungkus Konten */
.content-box {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-top: 5px solid #fbbf24; /* Aksen Emas di atas kotak */
}

/* 3. RESPONSIVE HP (Agar Judul tidak kebesaran) */
@media (max-width: 768px) {
    .page-header {
        padding: 50px 15px 80px;
        border-radius: 0 0 30px 30px;
    }
    .ph-title {
        font-size: 2rem; /* Kecilkan sedikit di HP */
    }
    .ph-desc {
        font-size: 0.9rem;
    }
    .content-box {
        padding: 25px 15px;
    }
}
/* ==================================================================
   FIX FINAL: HALAMAN INTERNAL (SAMBUTAN) - ANIMATED & MOBILE READY
   ================================================================== */

/* 1. ANIMASI GRADASI LEBIH CEPAT & JELAS */
@keyframes royalFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-header-internal {
    /* Gradasi: Hijau NU - Biru Laut - Emas - Hijau */
    background: linear-gradient(-45deg, #004d26, #0c4a6e, #b45309, #006837);
    background-size: 400% 400%; /* Ukuran besar agar bisa bergerak */
    animation: royalFlow 8s ease infinite; /* Durasi 8 detik (Cepat & Halus) */
    
    padding: 100px 20px 150px; /* Padding bawah besar untuk efek tumpuk */
    text-align: center;
    border-radius: 0 0 60px 60px;
    position: relative; z-index: 1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin-bottom: -100px; /* Menarik konten bawah naik */
}

/* JUDUL HALAMAN */
.ph-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900; font-size: 3.5rem;
    color: #fbbf24; /* Emas Terang */
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Shadow agar kontras */
}

.ph-desc {
    color: rgba(255,255,255,0.95); font-size: 1.1rem;
    max-width: 700px; margin: 0 auto; line-height: 1.5;
}

/* 2. KONTAINER ISI (OVERLAP) */
.main-container-overlap {
    max-width: 1100px; margin: 0 auto 60px; padding: 0 20px;
    position: relative; z-index: 10;
}

.content-box {
    background: #ffffff;
    border-radius: 25px; padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-top: 8px solid #fbbf24; /* Aksen Emas Atas */
    position: relative; overflow: hidden;
}

/* 3. LAYOUT SAMBUTAN */
.sambutan-grid {
    display: grid; grid-template-columns: 350px 1fr; gap: 50px; align-items: start;
}

/* FOTO KETUA */
.ketua-wrapper { position: relative; text-align: center; }
.ketua-img {
    width: 100%; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border: 5px solid white; object-fit: cover; aspect-ratio: 3/4;
}
.ketua-badge {
    background: linear-gradient(135deg, #004d26, #006837);
    color: white; padding: 10px 30px; border-radius: 50px;
    font-family: 'Rajdhani'; font-weight: 700; font-size: 1rem;
    display: inline-block; margin-top: -25px; position: relative; z-index: 2;
    border: 3px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* TEKS SAMBUTAN */
.sambutan-content h2 {
    font-family: 'Rajdhani'; font-weight: 800; font-size: 2.2rem; color: #004d26;
    margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px;
}
.quote-block {
    background: #fffbeb; border-left: 5px solid #fbbf24; padding: 20px;
    font-style: italic; color: #b45309; margin-bottom: 25px; border-radius: 0 15px 15px 0;
}
.text-body { font-size: 1.1rem; line-height: 1.8; color: #334155; text-align: justify; }

/* ==================================================================
   4. OPTIMASI HP (SANGAT CANGGIH & RESPONSIF)
   ================================================================== */
@media (max-width: 991px) {
    /* Header HP Lebih Pendek */
    .page-header-internal { 
        padding: 90px 20px 120px; 
        border-radius: 0 0 40px 40px; 
        margin-bottom: -80px;
    }
    .ph-title { font-size: 2.2rem; line-height: 1.1; }
    .ph-desc { font-size: 0.9rem; padding: 0 10px; }

    /* Konten Box di HP */
    .main-container-overlap { padding: 0 15px; }
    .content-box { padding: 30px 20px; border-radius: 20px; }

    /* Layout Stack (Turun ke Bawah) */
    .sambutan-grid { grid-template-columns: 1fr; gap: 30px; }

    /* Foto Ketua di HP */
    .ketua-wrapper { 
        width: 80%; margin: 0 auto; /* Tengah & tidak full layar */ 
    }
    .ketua-badge { font-size: 0.9rem; padding: 8px 20px; margin-top: -20px; }

    /* Teks di HP */
    .sambutan-content h2 { font-size: 1.8rem; text-align: center; }
    .quote-block { font-size: 0.95rem; }
    .text-body { font-size: 1rem; line-height: 1.6; }
}
