/* =========================================
   1. RESET & GLOBAL VARIABLES
   ========================================= */
:root {
    /* Warna diambil dari Logo Yayasan */
    --primary-green: #006a4e; /* Hijau Tua Logo */
    --secondary-green: #004d38;
    --accent-gold: #D4AF37;   /* Emas */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 50px; /* Ukuran Logo Header */
}

.logo-text {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.btn-header-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1.5px solid var(--primary-green);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-header-login:hover {
    background: var(--primary-green);
    color: var(--text-light);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh; /* Full layar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Background Gradient Hijau Elegan */
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Kompensasi Header Fixed */
}

/* Background Particles (JS) */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.tagline {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--accent-gold);
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.italic-text {
    font-family: 'Playfair Display', serif; /* Font Serif untuk kesan Islami/Klasik */
    font-style: italic;
    color: var(--accent-gold);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tombol */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-gold {
    background: var(--accent-gold);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    background: #c5a028;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-green);
    border-color: white;
}

/* Floating Icons */
.float-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    color: rgba(255,255,255,0.1);
    animation: floatAnim 6s ease-in-out infinite;
}

.float-item svg { width: 100%; height: 100%; }

.item-1 { top: 20%; left: 10%; animation-delay: 0s; }
.item-2 { top: 60%; left: 5%; animation-delay: 1s; width: 80px; height: 80px; }
.item-3 { top: 15%; right: 15%; animation-delay: 2s; }
.item-4 { bottom: 20%; right: 10%; animation-delay: 3s; width: 70px; height: 70px; }
.item-5 { bottom: 10%; left: 20%; animation-delay: 4s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* =========================================
   4. ABOUT SECTION
   ========================================= */
.section-padding { padding: 100px 5%; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.small-heading {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-heading {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-text {
    color: #666;
    margin-bottom: 30px;
}

.stats-mini-grid {
    display: flex;
    gap: 30px;
}

.mini-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: 800;
}

.mini-stat span {
    font-size: 0.9rem;
    color: #888;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.img-wrapper:hover img { transform: scale(1.05); }

/* =========================================
   5. TEAM SECTION
   ========================================= */
.dark-bg {
    background-color: var(--primary-green);
    color: white;
}

.text-white { color: white !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    background: white;
    transform: translateY(-10px);
}

.team-card:hover h3 { color: var(--primary-green); }
.team-card:hover p { color: #666; }
.team-card:hover .team-role { background: var(--primary-green); color: white; }

.team-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    border: 2px solid rgba(255,255,255,0.15);
}

.team-card:hover .team-photo { border-color: var(--accent-gold); }

.team-role {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
    font-weight: 600;
}

.team-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.team-card p { font-size: 0.9rem; opacity: 0.8; }

/* =========================================
   6. FOOTER STYLES
   ========================================= */
.footer-section {
    background-color: #0b2e25;
    color: #ccc;
    padding: 60px 0 20px;
    position: relative;
    font-size: 0.9rem;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img { width: 50px; height: auto; }

.brand-text h3 { color: var(--accent-gold); font-size: 1.4rem; margin-bottom: 0; }
.tagline-small { font-size: 0.8rem; color: #fff; opacity: 0.7; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #fff;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--accent-gold);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #bbb;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover { color: var(--accent-gold); padding-left: 5px; }

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.time-badge { color: #fff; font-weight: 600; }
.closed-badge { color: #ff6b6b; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* =========================================
   7. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    header { padding: 15px; }
    .nav-links { display: none; }
    
    .hero-section { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 50px; }
    .main-title { font-size: 2.2rem; }
    
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-col { order: -1; }
    
    .float-item { transform: scale(0.6); opacity: 0.3; }
}

/* =========================================
   8. MOBILE RESPONSIVE FIX (ANTI-GESER & FULLSCREEN)
   ========================================= */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        background: rgba(255, 255, 255, 0.98);
    }

    .logo-container a { justify-content: center; }
    .logo-container img { height: 40px; }
    .logo-text { font-size: 0.9rem; white-space: nowrap; }
    .nav-links { display: none; }
    .btn-header-login { padding: 6px 16px; font-size: 0.8rem; }

    .hero-section {
        min-height: 100dvh; 
        padding-top: 130px;
        padding-bottom: 50px;
        display: flex;
        align-items: center;
    }

    .main-title { font-size: 2.2rem; line-height: 1.3; padding: 0 10px; }
    .description { font-size: 0.95rem; padding: 0 15px; }

    .btn-group { flex-direction: column; width: 100%; padding: 0 40px; }
    .btn-gold, .btn-outline { width: 100%; padding: 12px 0; }

    .float-item { transform: scale(0.6); opacity: 0.15; }
    .item-1 { left: 5px; top: 15%; } 
    .item-2 { display: none; }
    .item-3 { right: 5px; top: 20%; }
    .item-4 { right: 10px; bottom: 20%; }
    .item-5 { display: none; }

    .section-padding { padding: 60px 20px; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .image-col { order: -1; margin-bottom: 20px; }
    .section-heading { font-size: 1.8rem; }

    .team-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand { justify-content: center; }
    .contact-row { justify-content: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-links a { justify-content: center; }
}

/* =========================================
   9. NEWS / BERITA PORTAL LAYOUT
   ========================================= */
.news-portal-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Bagian kiri lebih lebar sedikit */
    gap: 30px;
}

/* Berita Utama (Kiri) */
.news-featured {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,106,78,0.15);
}

.news-featured .news-img {
    height: 350px; /* Gambar besar */
    position: relative;
    overflow: hidden;
}

.news-featured .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 30px;
}

.featured-content .news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content .news-title a {
    color: var(--primary-green);
    transition: var(--transition);
}

.featured-content .news-title a:hover {
    color: var(--accent-gold);
}

.featured-content .news-excerpt {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-top-right-radius: 15px;
}

/* Grid Kanan (Berita Kecil) */
.news-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dua kolom */
    gap: 20px;
}

.news-card-small {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,106,78,0.1);
}

.news-img-small {
    height: 140px;
    overflow: hidden;
}

.news-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-small:hover .news-img-small img {
    transform: scale(1.1);
}

.news-content-small {
    padding: 15px;
    flex-grow: 1;
}

.date-small {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.title-small {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.title-small a {
    color: var(--text-dark);
    transition: var(--transition);
}

.news-card-small:hover .title-small a {
    color: var(--primary-green);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--accent-gold);
}

.mt-4 {
    margin-top: 2rem;
}

/* Mobile Responsive untuk Portal Layout */
@media (max-width: 992px) {
    .news-portal-layout {
        grid-template-columns: 1fr; /* Jadi satu baris ke bawah */
    }
    
    .news-featured .news-img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .news-side-grid {
        grid-template-columns: 1fr; /* Sampingnya juga turun ke bawah di HP */
    }
}