/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #242424;
    background-color: #f8f9fa;
    padding-top: 60px; /* Space for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.navbar {
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    background: rgba(129, 199, 132, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(16px)) {
    .nav-container {
        background: rgba(129, 199, 132, 0.5);
    }
}

/* Darker on scroll */
.nav-container.scrolled {
    background: rgba(129, 199, 132, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h2 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    color: #f3f4f6;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.4);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(129, 199, 132, 0.7), rgba(165, 214, 167, 0.7)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background-color: #fff7b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 40px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.features .section-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: transparent !important;
    color: #8B4513;
    border-radius: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: linear-gradient(135deg, #81c784 0%, #a5d6a7 100%);
    color: white;
    border-radius: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #81c784 0%, #a5d6a7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8B4513;
}

.feature-card p {
    color: #8B4513;
    line-height: 1.6;
}

/* Statistics Section */
.statistics .section-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: transparent !important;
    color: #8B4513;
    border-radius: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.statistics {
    padding: 80px 0;
    background: linear-gradient(135deg, #81c784 0%, #a5d6a7 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #8B4513;
}

/* News Section */
.news {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news .section-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: transparent !important;
    color: #8B4513;
    border-radius: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

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

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8B4513;
}

.news-content p {
    color: #8B4513;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-date {
    color: #8B4513;
    font-size: 0.9rem;
}

.news-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    border-left: 4px solid #81c784;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: #333;
    margin-bottom: 10px;
    border-left: 4px solid #81c784;
    padding-left: 15px;
}

.news-item .date {
    color: #81c784;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Profil Content */
.profil-content {
    padding: 60px 0;
}

.profil-section {
    margin-bottom: 3rem;
    color: #8B4513;
}

.profil-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #8B4513;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #81c784;
    color: #8B4513;
}

.info-item strong {
    color: #8B4513;
}

.content-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #81c784;
    color: #8B4513;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.vision, .mission {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    color: #8B4513;
}

.vision h3, .mission h3 {
    color: #81c784;
    margin-bottom: 1rem;
}

.mission ol {
    padding-left: 1.5rem;
}

.mission li {
    margin-bottom: 0.5rem;
}

.geographic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.border-list {
    display: grid;
    gap: 0.5rem;
}

.border-item {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.potency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.potency-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    border-top: 4px solid #81c784;
}

.potency-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #81c784 0%, #a5d6a7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.potency-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Pemerintahan Content */
.pemerintahan-content {
    padding: 60px 0;
    background-color: white;
}

.pemerintahan-section {
    margin-bottom: 3rem;
    background: transparent;
    padding: 2rem;
    border-radius: 10px;
}

.pemerintahan-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.leader-card {
    background: linear-gradient(135deg, #F5F5DC 0%, #FFF8DC 100%);
    color: #8B4513;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.leader-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.position {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.leader-details p {
    margin-bottom: 0.5rem;
}

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

.seksi-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #81c784;
}

.seksi-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.seksi-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.bpd-structure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bpd-leadership {
    display: grid;
    gap: 1rem;
}

.bpd-member {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #81c784;
}

.bpd-member h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

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

.bpd-members li {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 3px;
    border-left: 4px solid #81c784;
}

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

.lembaga-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-top: 4px solid #81c784;
}

.lembaga-header h3 {
    color: #333;
    margin-bottom: 1rem;
}

.lembaga-body p {
    margin-bottom: 0.5rem;
    color: #666;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.org-level-1, .org-level-2, .org-level-3, .org-level-4, .org-level-5 {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.org-level-1 {
    grid-template-columns: 1fr;
    max-width: 300px;
}

.org-level-2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 300px;
    gap: 2rem;
}

.org-level-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 800px;
    gap: 1.5rem;
}

.org-level-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 900px;
    gap: 1.5rem;
}

.org-level-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1000px;
    gap: 1.5rem;
}

.org-box {
    background: transparent;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: none;
    min-width: 180px;
    border: 2px solid #87ceeb;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.org-box:hover {
    transform: translateY(-2px);
    border-color: #5dade2;
}

.org-box.chief {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #87ceeb;
    padding: 1.5rem;
    min-width: 180px;
}

.org-box.secretary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #87ceeb;
    padding: 1.2rem;
    min-width: 160px;
}

.org-box.bpd {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #87ceeb;
    padding: 1.2rem;
    min-width: 160px;
}

.org-box.section {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #87ceeb;
    padding: 1.2rem;
    min-width: 160px;
}
/* Org Card Avatar */
.org-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid #ffffff;
    background: #fff;
}
.org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.org-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: #2d5a2d;
}

.org-box p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.25rem 0;
    color: #2d5a2d;
}

.org-box small {
    font-size: 0.8rem;
    color: #5a7c5a;
    font-weight: 400;
}

/* Demografi Content */
.demografi-content {
    padding: 60px 0;
    background-color: white;
}

.demografi-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: linear-gradient(135deg, #81c784 0%, #468f4a 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 2rem;
    color: #ffd700;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.chart-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.chart-container canvas {
    max-width: 400px !important;
    max-height: 400px !important;
}

/* Khusus untuk chart kelompok umur (bar chart) - ukuran normal */
#ageChart {
    max-width: none !important;
    max-height: none !important;
}

.chart-container:has(#ageChart) {
    max-width: none;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #81c784;
    color: white;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.wilayah-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.wilayah-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.wilayah-item {
    background: linear-gradient(135deg, #81c784 0%, #468f4a 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: start;
}

.wilayah-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.wilayah-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.dusun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dusun-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #81c784;
}

.dusun-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.dusun-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #81c784;
}

.stat .label {
    font-size: 0.9rem;
    color: #666;
}

/* Potensi Content */
.potensi-content {
    padding: 60px 0;
    background-color: white;
}

.potensi-section {
    margin-bottom: 3rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.potensi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.potensi-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #81c784 0%, #468f4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.potensi-title h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.potensi-title p {
    color: #666;
    line-height: 1.6;
}

.komoditas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.komoditas-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #81c784;
}

.komoditas-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.komoditas-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.teknologi-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
}

.teknologi-section h4 {
    color: #333;
    margin-bottom: 1rem;
}

.teknologi-list {
    list-style: none;
    padding: 0;
}

.teknologi-list li {
    padding: 0.5rem 0;
    color: #666;
}

.teknologi-list i {
    color: #28a745;
    margin-right: 0.5rem;
}

.wisata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wisata-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-top: 4px solid #81c784;
}

.wisata-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.wisata-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.aplikasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.aplikasi-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #81c784;
}

.aplikasi-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.aplikasi-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Kontak Content */
.kontak-content {
    padding: 60px 0;
    background-color: white;
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.kontak-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kontak-info h2 {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h3 {
    color: #81c784;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alamat-details p,
.kontak-details p,
.jam-details p,
.koordinat-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.kontak-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kontak-form h2 {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #81c784;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.layanan-section {
    margin-bottom: 3rem;
}

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

.layanan-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #81c784;
}

.layanan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.layanan-header h3 {
    color: #333;
    margin: 0;
}

.layanan-jam {
    background-color: #81c784;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.layanan-body p {
    color: #666;
    margin: 0;
}

.peta-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.peta-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.peta-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.peta-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.peta-details p {
    color: #666;
    margin-bottom: 0.5rem;
}

.peta-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Peta Lokasi Section */
.peta-lokasi {
    padding: 80px 0;
    background: transparent;
}

.peta-lokasi .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #8B4513;
    background: transparent !important;
    padding: 20px 0;
    border-radius: 0;
}

.peta-lokasi .section-title i {
    color: #A0522D;
    margin-right: 0.5rem;
}

.peta-lokasi .peta-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.peta-lokasi .peta-info {
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
}

.peta-lokasi .peta-info h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.peta-lokasi .peta-info p {
    color: #A0522D;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.peta-lokasi .peta-details p {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.peta-lokasi .peta-details strong {
    color: #654321;
}

.peta-lokasi .peta-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.peta-lokasi .peta-map:hover {
    transform: translateY(-5px);
}

.peta-lokasi .peta-map iframe {
    border-radius: 15px;
}

@media (max-width: 768px) {
    .peta-lokasi .peta-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .peta-lokasi .peta-info {
        padding: 1.5rem;
    }
}
.service-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #81c784 0%, #a5d6a7 100%);
    color: white;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item i {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
}

.service-item h4 {
    color: white;
    margin-bottom: 15px;
}

.service-item p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Gallery Section */
.galeri-content {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.galeri-grid {
    column-count: 4;
    column-gap: 0;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .galeri-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .galeri-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .galeri-grid {
        column-count: 1;
    }
}

.galeri-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    margin-bottom: 0;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.galeri-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.galeri-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.galeri-item:hover img {
    transform: scale(1.1);
}

.galeri-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeri-item:hover .galeri-overlay {
    transform: translateY(0);
}

.galeri-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.galeri-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h4 {
    color: #A0522D;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.contact-info .contact-item i {
    color: #A0522D;
    font-size: 18px;
    margin-right: 15px;
    width: 25px;
}

.contact-info .contact-item span {
    color: #8B4513;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #F5F5DC 0%, #FFFACD 50%, #F0E68C 100%);
    color: #8B4513;
    padding: 30px 0 10px;
    border-top: 3px solid #DEB887;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.8rem;
    color: #A0522D;
    font-weight: 600;
}

.footer-section p {
    color: #8B4513;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #A0522D;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #DEB887;
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #D2B48C;
}

.social-links a:hover {
    background-color: #D2B48C;
    color: #A0522D;
    transform: translateY(-2px);
    border-color: #A0522D;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #8B4513;
}

.contact-info i {
    color: #A0522D;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #DEB887;
    color: #8B4513;
    background: rgba(245, 245, 220, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo-text h2 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-letter {
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
        padding: 2rem 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-top: none;
    }

    /* Fallback untuk browser yang tidak support backdrop-filter */
    @supports not (backdrop-filter: blur(20px)) {
        .nav-menu {
            background: rgba(255, 255, 255, 0.95);
        }
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .kontak-grid {
        grid-template-columns: 1fr;
    }

    .peta-container {
        grid-template-columns: 1fr;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .bpd-structure {
        grid-template-columns: 1fr;
    }

    .wilayah-info {
        grid-template-columns: 1fr;
    }

    .org-level-1,
    .org-level-2,
    .org-level-3,
    .org-level-4,
    .org-level-5 {
        flex-direction: column;
        align-items: center;
    }

    .org-box {
        width: 100%;
        max-width: 300px;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 25px 0 10px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px; /* Same as desktop for consistency */
    }
    
    .container {
        padding: 0 15px;
    }

    .logo-text h2 {
        font-size: 0.9rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-letter {
        font-size: 0.9rem;
    }

    .logo-container {
        gap: 8px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature-card,
    .news-card,
    .profil-section,
    .pemerintahan-section,
    .demografi-section,
    .potensi-section {
        padding: 0;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer {
        padding: 20px 0 10px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox img {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .lightbox-nav button {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }
}
