/* style.css */
:root {
    --primary-color: #0f5132; /* Hijau NU/Pesantren yang elegan */
    --secondary-color: #d4af37; /* Emas untuk kesan premium */
    --accent-color: #f8f9fa;
    --text-dark: #212529;
}

body {
    font-family: 'Poppins', sans-serif; /* Font modern */
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar Modern */
.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
}
.navbar.scrolled {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}
.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: #fff !important;
}
.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}
.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 15px;
}
.btn-daftar {
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-daftar:hover {
    background-color: #b59226;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(15, 81, 50, 0.85), rgba(15, 81, 50, 0.7)), url('https://source.unsplash.com/1600x900/?mosque,islamic');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Card Features */
.feature-card {
    border: none;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    background: white;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 60px;
}
/* --- Tambahan Update untuk style.css --- */

/* Statistik Section */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--secondary-color);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Unit Pendidikan Card */
.unit-card {
    border: none;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.unit-card:hover {
    transform: translateY(-5px);
}
.unit-img-wrapper {
    overflow: hidden;
    height: 200px;
}
.unit-img-wrapper img {
    transition: 0.5s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.unit-card:hover .unit-img-wrapper img {
    transform: scale(1.1);
}

/* Berita / Artikel */
.news-card {
    border: none;
    background: transparent;
}
.news-img {
    border-radius: 15px;
    height: 220px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 15px;
}
.news-date {
    font-size: 0.85rem;
    color: #888;
}
.news-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.news-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s;
}
.news-title a:hover {
    color: var(--primary-color);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #0a3d25);
    color: white;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
}
/* --- PERBAIKAN NAVBAR UNTUK HALAMAN SELAIN HOME --- */

/* Paksa Background Putih & Shadow */
.navbar-stay-white {
    background-color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

/* Paksa Teks Menu jadi Hitam/Gelap */
.navbar-stay-white .navbar-nav .nav-link {
    color: #212529 !important; /* Warna Gelap */
}

/* Paksa Logo Tulisan jadi Hijau */
.navbar-stay-white .navbar-brand {
    color: #0f5132 !important; /* Warna Hijau Utama */
}

/* Warna Tombol saat mode putih */
.navbar-stay-white .btn-outline-light {
    color: #0f5132;
    border-color: #0f5132;
}