/* Palet Warna */
:root {
    --primary-color: #4CAF50; /* Hijau (Raudhah/Taman & Islam) */
    --secondary-color: #FFC107; /* Kuning (Keceriaan Anak & Emas Aceh) */
    --accent-color: #1976D2; /* Biru (Kepercayaan & Ilmu) */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #43A047;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Header and Navigation */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-family: 'Amiri', serif; /* Font Islami untuk Logo */
    font-size: 1.8em;
    color: var(--primary-color);
}

nav a {
    margin-left: 25px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.cta-nav {
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--text-dark);
    margin-left: 30px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('img/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-size: 1.1em;
    color: var(--accent-color);
    font-weight: 600;
}

.hero h2 {
    font-size: 3.5em;
    margin: 15px 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

.hero-actions .btn {
    margin: 0 10px;
}

/* Maulidiyah Slider Section */
.maulidiyah-slider {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.maulidiyah-slider h3 {
    font-family: 'Amiri', serif;
    font-size: 2em;
    margin-bottom: 30px;
}

.slider-container {
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.quote-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

.quote-slide.active {
    opacity: 1;
    position: relative;
}

.quote-slide p {
    font-style: italic;
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.quote-slide cite {
    display: block;
    margin-top: 15px;
    font-size: 1em;
    font-weight: 400;
}

.slider-controls {
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--secondary-color);
}

/* About Section */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-stats {
    flex: 1;
    display: grid;
    gap: 20px;
}

.stat-box {
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-box i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-box h4 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

/* Program Section */
.program-section {
    background-color: var(--bg-light);
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.target-info {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

/* Galeri Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
    padding: 10px;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Kontak/CTA Section */
.cta-section {
    background-color: var(--secondary-color);
    text-align: center;
    color: var(--text-dark);
}

.cta-section h2 {
    color: var(--text-dark);
}

.contact-info-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
}

.contact-info-box i {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 15px;
}

.large-cta {
    font-size: 1.2em;
    padding: 15px 35px;
    margin: 30px 0;
    display: block;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.small-text {
    font-size: 0.8em;
    margin-top: 15px;
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer a {
    color: var(--secondary-color);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* Responsiveness */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
    }
    nav {
        margin-top: 10px;
    }
    nav a {
        margin: 0 10px;
        display: inline-block;
    }
    .hero h2 {
        font-size: 2.5em;
    }
    .about-grid {
        flex-direction: column;
    }
    .cta-nav {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
}