/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset dan Pengaturan Dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: #333; }
.container-nav, .container-hero, .container-content { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: #fff; padding: 1rem 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar .container-nav { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { display: flex; align-items: center; font-weight: 600; font-size: 1.2rem; color: #333; }
.navbar .logo img { width: 40px; margin-right: 10px; }
.btn-login { background: #E60000; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background 0.3s ease; }
.btn-login:hover { background: #c00; }

/* Hero Section */
.hero { background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 6rem 0; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }
.btn-cta { background: #fff; color: #E60000; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; }
.btn-cta:hover { background: #f4f4f4; transform: scale(1.05); }

/* Sections Umum */
.about-section, .values-section, .gallery-section, .contact-section { padding: 4rem 0; }
.container-content h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #E60000; }
.about-section { background: #fff; }
.about-section p { text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.1rem; }

/* Gaya untuk Nilai-Nilai */
.values-section { background: #f9f9f9; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.value-card { background: #fff; padding: 2rem; text-align: center; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); border-bottom: 4px solid #E60000; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* ===== GAYA UNTUK GALERI (PERBAIKAN POSISI TENGAH) ===== */
.gallery-section { background: #fff; }
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1rem; 
    justify-content: center; /* Ini yang membuat item di tengah secara horizontal */
    align-items: start; /* Mengatur item agar rata atas, mencegah "perebutan" ruang vertikal */
}
.gallery-grid img { 
    width: 100%; /* Memastikan gambar mengisi lebar kolomnya */
    max-width: 50px; /* Batasi lebar maksimum per gambar jika gridnya terlalu lebar */
    height: 250px; 
    object-fit: cover; 
    border-radius: 10px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    margin: 0 auto; /* Ini juga penting untuk menengahkan gambar di dalam kolomnya */
    display: block; /* Agar margin auto bekerja dengan baik */
}
.gallery-grid img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Gaya untuk Hubungi Kami */
.contact-section { background: #f9f9f9; text-align: center; }
.contact-section p { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Footer */
.footer { background: #333; color: #fff; text-align: center; padding: 2rem 0; }

/* Aturan untuk Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .container-content h2 { font-size: 2rem; }
    /* Pastikan gambar di mobile tetap responsif dan di tengah */
    .gallery-grid {
        grid-template-columns: 1fr; /* Satu kolom untuk mobile */
    }
    .gallery-grid img {
        width: 90%; /* Sesuaikan lebar agar ada padding di sisi */
        margin: 0 auto;
    }
}