/*
 * File: style.css
 * Styling untuk MI Islamiyah Sangubanyu
 */

/* -------------------- GENERAL STYLES -------------------- */
:root {
    --primary-color: #007bff;
    /* Biru terang untuk aksi utama */
    --secondary-color: #28a745;
    /* Hijau cerah untuk kesegaran/islami */
    --accent-color: #ffc107;
    /* Kuning untuk highlight */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --font-primary: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #1e7e34;
}

/* -------------------- HEADER & NAVIGATION -------------------- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* CTA Button in Nav */
.cta-button {
    background-color: var(--accent-color);
    color: var(--dark-bg) !important;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0a800;
}

/* -------------------- HERO SECTION -------------------- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-bg.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2em;
}

/* -------------------- INFO SECTION -------------------- */
.info-section {
    padding: 80px 0;
    text-align: center;
}

.info-section h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5em;
    color: var(--secondary-color);
}

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

.info-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* -------------------- CURRICULUM SECTION -------------------- */
.curriculum-section {
    background-color: #e9ecef;
    padding: 80px 0;
    text-align: center;
}

.curriculum-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.curriculum-list {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    text-align: left;
}

.curriculum-list ul {
    list-style: none;
    padding: 0;
}

.curriculum-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.curriculum-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* -------------------- GALLERY SECTION -------------------- */
.gallery-section {
    padding: 80px 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* -------------------- CONTACT SECTION -------------------- */
.contact-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.contact-section h3 {
    color: var(--accent-color);
    font-size: 2.5rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
}

.contact-form .btn-primary:hover {
    background-color: #1e7e34;
}

/* -------------------- FOOTER -------------------- */
footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 5px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* -------------------- RESPONSIVENESS (Mobile) -------------------- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .curriculum-list {
        flex-direction: column;
        align-items: center;
    }

    .curriculum-list ul {
        margin-bottom: 20px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 15px;
    }

    .social-links a {
        margin: 0 10px;
    }
}