@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #075232; /* Hijau Utama */
    --accent-gold: #d4af37;   /* Emas/Kuning */
    --bg-light: #fdfdfc;      /* Putih tulang/cream muda */
    --text-dark: #2d3748;
    --text-muted: #718096;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, .font-serif {
    font-family: 'Merriweather', serif;
}

/* --- Topbar --- */
.top-bar {
    background-color: var(--primary-green);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}
.top-bar a:hover {
    color: var(--accent-gold);
}

/* --- Navbar --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.yayasan-brand-text {
    line-height: 1.1;
    color: var(--primary-green);
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    margin: 0 5px;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-green) !important;
}
.nav-link.active {
    border-bottom: 3px solid var(--primary-green);
}
.btn-primary-custom {
    background-color: var(--primary-green);
    color: #ffffff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: 0.3s;
}
.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-green);
}
.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-green);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: 0.3s;
}
.btn-outline-custom:hover {
    background-color: var(--primary-green);
    color: #ffffff;
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d4af37" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E'); /* Subtle islamic pattern */
}
.hero-subtitle {
    color: var(--accent-gold);
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.hero-title {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- Lembaga Section --- */
/* --- Modifikasi Lembaga Card agar lebih Elegan --- */
.lembaga-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px; /* Sudut lebih membulat */
    padding: 40px 25px; /* Memberikan ruang napas lebih luas */
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Memastikan isi selalu di tengah */
}

/* Efek saat mouse diarahkan ke card (Hover) */
.lembaga-card:hover {
    box-shadow: 0 20px 40px rgba(7, 82, 50, 0.08); /* Bayangan lembut */
    transform: translateY(-10px); /* Efek terangkat */
    border-color: var(--accent-gold); /* Garis tepi berubah jadi emas */
}

/* Desain Lingkaran untuk Ikon */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(7, 82, 50, 0.05); /* Hijau transparan */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.4s ease;
}

.icon-wrapper i {
    font-size: 2.2rem;
    color: var(--primary-green);
    transition: 0.4s ease;
}

/* Mengubah warna ikon saat card di-hover */
.lembaga-card:hover .icon-wrapper {
    background-color: var(--primary-green);
}
.lembaga-card:hover .icon-wrapper i {
    color: #ffffff;
}

/* Tipografi Judul Card */
.lembaga-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Tombol di dalam card */
.btn-card-outline {
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    border-radius: 50px; /* Tombol membulat */
    padding: 10px 0;
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto; /* Mendorong tombol selalu ke bawah */
    transition: 0.3s;
}

.lembaga-card:hover .btn-card-outline {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-card-outline:hover {
    background: var(--primary-green);
    color: #fff !important;
}
.section-subtitle {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.section-title {
    color: var(--primary-green);
    font-weight: 700;
}
.lembaga-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 15px;
    padding: 30px 20px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.lembaga-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}
.lembaga-icon {
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}
.btn-card-outline {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 8px;
    padding: 8px 0;
    width: 100%;
    font-weight: 600;
    margin-top: auto;
    transition: 0.3s;
}
.btn-card-outline:hover {
    background: var(--primary-green);
    color: #fff;
}

/* --- Stats Banner --- */
.stats-banner {
    background-color: var(--primary-green);
    border-radius: 100px; /* Pill shape */
    color: #ffffff;
    padding: 30px 50px;
    margin-top: 40px;
    box-shadow: 0 15px 30px rgba(7, 82, 50, 0.3);
}
.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-right: 15px;
}
.stat-text h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}
.stat-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .stats-banner { border-radius: 20px; padding: 20px; }
    .stat-item { margin-bottom: 20px; justify-content: flex-start; }
    .hero-title { font-size: 2.5rem; }
}
/* --- CTA (Call to Action) Section --- */
.cta-section {
    position: relative;
    padding: 80px 0;
    /* Menggunakan foto asli yang sudah di-upload */
    background: url('gambar_tangan.jpg') right center/cover no-repeat;
    background-color: #f8f9fa;
    margin-top: 60px;
}
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Membuat gradasi putih di kiri memudar ke kanan agar teks terbaca */
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 45%, rgba(255,255,255,0) 100%);
}
.text-accent {
    color: var(--accent-gold);
}
.text-primary-green {
    color: var(--primary-green);
}
.hover-primary:hover {
    color: var(--primary-green) !important;
}

/* --- Footer Section --- */
.footer-section {
    color: var(--text-dark);
    font-size: 0.9rem;
    background-color: #ffffff;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}
.social-icon:hover {
    background-color: var(--accent-gold);
    color: white;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}
.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.footer-contact i {
    color: var(--primary-green);
    margin-top: 4px;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.wa-card {
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    background-color: #ffffff;
}
.wa-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--primary-green);
}
.copyright-bar {
    background-color: var(--primary-green);
}
/* --- Halaman Kontak Styling --- */
.contact-info-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 15px;
    margin-left: -15px; /* Menggeser sedikit agar rata kiri secara visual */
    border: 1px solid transparent;
}
.contact-info-item:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #edf2f7;
    transform: translateX(5px); /* Efek bergeser ke kanan saat disorot */
}
.contact-icon-box {
    width: 55px;
    height: 55px;
    background-color: rgba(212, 175, 55, 0.15); /* Hijau/Emas transparan */
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-info-item:hover .contact-icon-box {
    background-color: var(--primary-green);
    color: #ffffff;
    transform: scale(1.1); /* Ikon sedikit membesar */
}

/* Modifikasi Kotak Form */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(7, 82, 50, 0.08); /* Bayangan hijau lembut */
    border: 1px solid #f8fafc;
}

/* Modifikasi Input Form (Menghilangkan biru default) */
.custom-input {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}
.custom-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(7, 82, 50, 0.1); /* Glow hijau yayasan */
    outline: none;
}
.custom-input::placeholder {
    color: #a0aec0;
}