

/* Reset dan Styling Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e6b30, #2e8b57);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 15px;
    border-radius: 5px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active { /* Menambahkan style untuk link aktif */
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/kel.JPG');
    background-size: cover;
    background-position: bottom;
    color: white;
    text-align: center;
    padding:220px 0;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: #2e8b57;
    color: white;
    margin-top: 15px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1e6b30;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: #2e8b57;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: #2e8b57;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Tentang Desa */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Profil Desa */
.profile {
    background-color: #f0f7f4;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;    
}

.profile-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.profile-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-details {
    flex: 2 ;
    min-width: 300px;
    align-items: center;
    padding: 15px;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    width: 100%;

}

.info-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: #2e8b57;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
/* Profil Desa End */

/* Data */
.data {
    background-color: #f0f7f4; /* Menyesuaikan dengan warna section profile */
}

/* Kotak Statistik (KK, Laki-laki, Perempuan) */
.data-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem; /* 4xl */
    font-weight: 700; /* font-bold */
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem; /* text-sm */
    font-weight: 500; /* font-medium */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    margin-top: 8px;
}

/* Warna-warna untuk Stat Card */
.stat-card.teal {
    background-color: #f0fdfa; /* bg-teal-100 */
    color: #115e59; /* text-teal-700 */
}
.stat-card.teal .stat-number { color: #0d9488; }

.stat-card.blue {
    background-color: #eff6ff; /* bg-blue-100 */
    color: #1e40af; /* text-blue-700 */
}
.stat-card.blue .stat-number { color: #2563eb; }

.stat-card.pink {
    background-color: #fdf2f8; /* bg-pink-100 */
    color: #831843; /* text-pink-700 */
}
.stat-card.pink .stat-number { color: #db2777; }

.stat-card.green {
    background-color: #f2fdf9; 
    color: #23c330; 
}
.stat-card.green .stat-number { color: #53ba5b; }   

/* Kartu Detail (Pekerjaan & Usia) */
.data-details-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 24px 32px; /* p-6 sm:p-8 */
    margin-bottom: 30px;
}

.data-details-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #333;
    margin-bottom: 24px; /* mb-6 */
}

.data-bar-list {
    display: flex;
    flex-direction: column;
    gap: 16px; /* space-y-4 */
}

.data-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    flex-basis: 110px; /* w-28 */
    flex-shrink: 0;
    font-size: 0.9rem; /* text-sm */
    color: #555;
    font-weight: 500;
}

.bar-container {
    flex: 1; /* flex-1 */
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 9999px; /* rounded-full */
    height: 24px; /* h-6 */
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 9999px;
    text-align: right;
    padding-right: 8px; /* pr-2 */
    color: white;
    font-size: 0.85rem; /* text-sm */
    font-weight: 500;
    line-height: 24px; /* leading-6 */
    white-space: nowrap;
    transition: width 0.5s ease-in-out;
}

.bar-value {
    flex-basis: 40px; /* w-10 */
    flex-shrink: 0;
    text-align: right;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

/* Warna-warna untuk Bar Chart */
.bar.cyan { background-color: #06b6d4; }
.bar.green { background-color: #22c55e; }
.bar.gray { background-color: #6b7280; }
.bar.purple { background-color: #a855f7; }
.bar.yellow { background-color: #eab308; }
.bar.red { background-color: #ef4444; }
/* Data End */

/* Fasilitas */
.facilities {
    background-color: #f0f7f4;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.facility-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 2rem 1.5rem;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.facility-icon {
    font-size: 3rem;
    color: #2e8b57; 
    margin-bottom: 1.5rem;
}

.facility-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2e8b57;
}
/* Fasilitas End */

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 139, 87, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Kontak */
.contact {
    background-color: #2e8b57;
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title h2::after {
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2e8b57;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2e8b57;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Modal untuk Galeri */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #2e8b57;
}

/* Responsif */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    nav ul {
        display: none; /* Sembunyikan navigasi secara default */
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    nav ul.show {
        display: flex; /* Tampilkan saat class 'show' ditambahkan */
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}