/* Reset CSS Sederhana */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Font modern dan bersih */
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Warna latar belakang lembut */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Untuk clear float */
    padding: 0 20px;
}

/* Header Styling */
header {
  position: relative;
  background-color: #fff;
  overflow: hidden;
  z-index: 1;
}

/* Efek bola-bola berputar random */
header .circle-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}


/* Bola 1 */
.circle1, .circle2, .circle3 {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,150,243,0.08), transparent 70%);
  animation: spinRandom 40s linear infinite;
}

/* Masing-masing posisi dan ukuran acak */
.circle1 {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
  animation-duration: 60s;
}
.circle2 {
  width: 150px;
  height: 150px;
  top: 20px;
  right: -70px;
  animation-duration: 50s;
}
.circle3 {
  width: 250px;
  height: 250px;
  bottom: -100px;
  left: 40%;
  animation-duration: 70s;
}

@keyframes spinRandom {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

header .container {
  position: relative;
  z-index: 2;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
  margin-right: 15px;
  transform: scale(1.3);
  transform-origin: left center;
  filter: drop-shadow(0 0 15px #0056b3);
  transition: filter 0.3s ease;
}

header h1 {
    font-family: 'Merriweather', serif; /* Font yang lebih elegan untuk judul */
    font-size: 1.8rem;
    color: #0056b3; /* Warna biru khas desa/pemerintahan */
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 25px;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #007bff; /* Warna biru saat hover atau aktif */
    border-bottom: 2px solid #007bff;
}

/* Hero Landing Section */
.hero-landing {
    background: linear-gradient(rgba(0, 86, 179, 0.6), rgba(0, 86, 179, 0.6)), url('/img/banner2.jpg') no-repeat center center/cover; /* Ganti dengan gambar pemandangan desa */
    color: #fff;
    padding: 80px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-landing h2 {
    font-size: 3rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease-out;
}

.hero-landing .highlight {
    color: #ffc107; /* Warna kuning untuk highlight */
}

.hero-landing .tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards; /* Agar animasi berjalan setelah delay */
}

.cta-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 25px; /* Tombol lebih rounded */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #007bff;
    transform: translateY(-2px);
}

.btn i {
    margin-left: 8px;
}

/* Quick Links Section */
.quick-links {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.quick-links h3 {
    font-size: 2rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 40px;
    color: #0056b3;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.link-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.link-card .card-icon {
    margin-bottom: 15px;
    color: #007bff;
}

.link-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.link-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Featured Content / News Section */
.featured-content {
    padding: 60px 0;
}

.featured-content h3 {
    text-align: center;
    font-size: 2rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 40px;
    color: #0056b3;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h4 {
    font-size: 1.2rem;
    padding: 15px 20px 5px 20px;
    color: #0056b3;
}

.news-item .news-date {
    font-size: 0.8rem;
    color: #777;
    padding: 0 20px 10px 20px;
}

.news-item p {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
}

.news-item .read-more {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.news-item .read-more:hover {
    background-color: #0056b3;
}


/* Page Title Section (untuk halaman selain index.html) */
.page-title {
    background: #0056b3; /* Warna biru solid */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-title h2 {
    font-size: 2.5rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Content Section (untuk halaman selain index.html) */
.content-section {
    padding: 40px 0;
    background: #fff;
}

.content-section article {
    max-width: 800px; /* Batasi lebar konten agar mudah dibaca */
    margin: 0 auto;
}

.content-section h3 {
    font-size: 1.8rem;
    font-family: 'Merriweather', serif;
    color: #0056b3;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify; /* Agar teks rata kiri-kanan */
}

.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Gallery Grid Section (Contoh untuk galeri.html) */
.gallery-grid-section {
    padding: 40px 0;
}

.gallery-grid-section h2 {
    text-align: center;
    font-size: 2rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 40px;
    color: #0056b3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}


/* Footer Styling */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

footer .social-media {
    margin-top: 10px;
}

footer .social-media a {
    color: #fff;
    margin: 0 12px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: #007bff; /* Warna biru saat hover */
}

/* Animasi Sederhana */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header .logo {
        margin-bottom: 15px;
    }

    header nav ul {
        text-align: center;
        margin-top: 10px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .hero-landing h2 {
        font-size: 2.2rem;
    }

    .hero-landing .tagline {
        font-size: 1.1rem;
    }

    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .link-grid {
        grid-template-columns: 1fr; /* Satu kolom di layar kecil */
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .page-title h2 {
        font-size: 2rem;
    }
}

/* Featured Programs Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.program-icon {
    color: #007bff; /* Warna aksen untuk ikon */
    margin-bottom: 15px;
}

.program-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.program-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
    min-height: 60px; /* Agar tinggi deskripsi seragam */
}

.program-card .learn-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.program-card .learn-more i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.program-card .learn-more:hover i {
    margin-left: 10px;
}


/* Berita Section - Tambahan Tombol "Lihat Semua Berita" */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #007bff;
    color: #007bff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-outline i {
    margin-left: 8px;
}

/* Community Life Section */
.life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.life-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Agar gambar tidak keluar dari border radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.life-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.life-item h4 {
    font-size: 1.3rem;
    padding: 15px 20px 5px 20px;
    color: #0056b3;
}

.life-item p {
    font-size: 0.95rem;
    padding: 0 20px 20px 20px;
    color: #555;
}

/* Visit Us Section */
.visit-us .btn-lg { /* Tombol yang lebih besar */
    padding: 0px 30px;
    font-size: 1.1rem;
    border-radius: 8px;

    
}

/* General Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem; /* Sedikit lebih besar dari h3 biasa */
    font-family: 'Merriweather', serif;
    margin-bottom: 40px;
    color: #0056b3; /* Warna utama */
    position: relative; /* Untuk garis bawah dekoratif jika diinginkan */
}

/* Styling untuk garis bawah dekoratif pada section-title (opsional) */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #007bff; /* Warna aksen */
    margin: 10px auto 0; /* Posisi di bawah judul */
}

.bg-light {
    background-color: #f8f9fa; /* Warna latar yang sedikit berbeda */
}

.text-center {
    text-align: center;
}

.lead { /* Untuk paragraf pengantar yang lebih menonjol */
    font-size: 1.15rem;
    font-weight: 300;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: .25rem !important; /* Utility class untuk border radius */
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; /* Utility class untuk shadow */
}
