/* -----------------------------------
   PALET WARNA MODERN ISLAMI
----------------------------------- */
:root {
    --primary: #1F5F5B;        /* Emerald gelap */
    --primary-light: #3F8F88;
    --gold: #E6C56E;           /* Soft gold */
    --bg: #F5F7F8;
    --text: #333;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* -----------------------------------
   CONTAINER
----------------------------------- */
.container {
    width: min(1150px, 90%);
    margin: auto;
}

/* -----------------------------------
   NAVBAR
----------------------------------- */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 58px;
    border-radius: 8px;
    background-color: white;
    padding: 1px;
    border-radius: 50%;
}

/* --- tambahan teks Qur'anuna --- */
.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.4px;
}

/* -----------------------------------
   NAV LINKS
----------------------------------- */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    color: var(--text);
    font-weight: 500;
    transition: .3s;
}
.nav-links li a:hover {
    color: var(--primary);
}

.menu-toggle { display: none; }

a {
    text-decoration: none;
}

/* -----------------------------------
   BUTTONS
----------------------------------- */
.btn {
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: .3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-light);
}

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

.btn-light {
    background: var(--gold);
    color: #2f2f2f;
}
.btn-light:hover {
    filter: brightness(1.1);
}

/* -----------------------------------
   HERO
----------------------------------- */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    opacity: .9;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: opacity .4s ease;
}

/* -----------------------------------
   FEATURES
----------------------------------- */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .3s;
}
.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card .icon {
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* -----------------------------------
   PROGRAMS
----------------------------------- */
.programs {
    padding: 80px 0;
}

.programs h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.programs-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: center;       /* 🔥 Kunci utama center */
    padding: 1rem 0;
    max-width: 900px;              /* 🔥 Agar row tidak terlalu melebar */
    margin: 0 auto;                /* 🔥 Center keseluruhan grid */
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .3s;
}
.program-card:hover {
    transform: translateY(-8px);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.participant-card .percent {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    opacity: 0.85;
}
.participant-card:hover .percent {
    color: var(--white);
    opacity: 1;
}


/* -----------------------------------
   CTA
----------------------------------- */
.cta {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
}

.footer-logo {
    width: 70px;
    margin-bottom: 1rem;
    background-color: white;
    padding: 2px;
    border-radius: 50%;
}

.footer-links li a {
    color: var(--white);
    opacity: .8;
}
.footer-links li a:hover {
    opacity: 1;
}

.link-media {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    opacity: .8;
    font-size: .9rem;
}

/* Penyesuaian agar footer-grid memiliki 4 kolom saat desktop */
.footer-grid {
    display: grid;
    gap: 2rem;
    /* Ubah dari minmax(200px, 1fr) ke 4 kolom langsung agar terlihat rapi */
    grid-template-columns: repeat(4, 1fr); 
}

/* Menyesuaikan grid untuk mobile/tablet */
@media(max-width: 768px) {
    .footer-grid {
        /* Kembali ke auto-fit agar bisa menyesuaikan 2 kolom, 1 kolom, atau lebih */
        grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    }
}

/* -----------------------------------
   PARTICIPANTS
----------------------------------- */
.participants {
    padding: 80px 0;
    background: var(--bg);
}

.participants h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.participants .subtext {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    justify-content: center;       /* 🔥 Kunci utama center */
    padding: 1rem 0;
    max-width: 900px;              /* 🔥 Agar row tidak terlalu melebar */
    margin: 0 auto;                /* 🔥 Center keseluruhan grid */
}




.participant-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .3s ease;
    border-bottom: 4px solid var(--primary);
}

.participant-card:hover {
    transform: translateY(-8px);
    background: var(--primary-light);
    color: var(--white);
}

.participant-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: .8rem;
    transition: .3s;
}

.participant-card:hover i {
    color: var(--white);
}

/* -----------------------------------
   MEDIA PARTNER DI FOOTER
----------------------------------- */
.partner-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: var(--primary-light); /* Warna latar belakang untuk kartu partner */
    cursor: pointer;
    transition: background 0.3s;
}

.partner-card:hover {
    background: #367d77; /* Sedikit lebih gelap saat di-hover */
}

.partner-logo {
    width: 40px; /* Ukuran gambar kecil */
    height: 40px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 4px;
    padding: 5px;
}

.partner-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.partner-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
    color: var(--white);
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */
@media(max-width: 768px) {
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-text {
        font-size: 1.25rem;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    nav .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.6rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    
}
