:root {
    --primary: #1e5aa0;
    --primary-dark: #143e72;
    --secondary: #00a8e8;
    --accent: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
    --purple: #9b59b6;
    --dark: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow: hidden;
    height: 100vh;
    background-color: #ffffff;
}

/* Header Ramping GIS Style */
#header {
    background: #ffffff;
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    position: relative;
    height: 70px;
    border-bottom: 1px solid #f0f0f0;
}

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

.logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 5px;
    border-radius: 4px;
    min-width: 160px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Menu Navigasi Utama */
.main-nav {
    display: flex;
    gap: 0;
    background-color: transparent;
    border-radius: 4px;
    overflow: hidden;
}

.nav-main-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid rgba(30, 90, 160, 0.1);
}

.nav-main-btn:hover,
.nav-main-btn.active {
    background-color: rgba(30, 90, 160, 0.1);
    color: var(--secondary);
}

.nav-main-btn:last-child {
    border-right: none;
}

.nav-icons {
    display: flex;
    gap: 0.8rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Toolbar dalam Peta */
#mapPage .nav-btn {
    background: rgba(30, 90, 160, 0.9);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#mapPage .nav-btn:hover {
    background: rgba(30, 90, 160, 1);
    transform: scale(1.05);
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    padding: 1.5rem 2rem;
    border-top: 3px solid var(--secondary);
}

.sub-menu.active {
    display: block;
}

.sub-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-menu-column h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 0;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.sub-menu-link:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background-color: #f8f9fa;
    padding-left: 15px;
}

.sub-menu-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

/* Kontainer Peta Utama */
#map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Panel Sisi yang dapat disembunyikan */
.side-panel {
    position: absolute;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: left 0.4s ease;
    padding: 20px;
    overflow-y: auto;
    border-right: 4px solid var(--primary);
}

.side-panel.active {
    left: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.panel-title {
    font-size: 1.3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close:hover {
    background-color: #f8f9fa;
}

/* Toolbar Kontrol Peta */
.map-controls {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-btn {
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid #dee2e6;
}

.control-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Layer Control */
.layer-control {
    display: none;
}

.layer-header {
    display: none;
}

.layer-content {
    display: none;
}

.layer-content.expanded {
    display: none;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.layer-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* Year Group Styles for Layer Panel */
.year-group {
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1e5aa0 0%, #2980b9 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.year-header:hover {
    background: linear-gradient(135deg, #143e72 0%, #1e5aa0 100%);
}

.year-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.year-layers {
    padding: 0.5rem;
    background: white;
}

/* Custom Marker Shape for SVG Icons */
.custom-marker-shape {
    background: none !important;
    border: none !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Dashboard Cards di dalam Panel */
.dashboard-cards-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.card-panel:hover {
    transform: translateY(-3px);
}

.card-title-panel {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-value-panel {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

/* Badge */
.classification-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.classification-ringan {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
    border-left: 3px solid #28a745;
}

.classification-sedang {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    border-left: 3px solid #ffc107;
}

.classification-berat {
    background-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-belum {
    background-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.status-proses {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    border-left: 3px solid #ffc107;
}

.status-selesai {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
    border-left: 3px solid #28a745;
}

/* Legend untuk Peta */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 800;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    max-width: 250px;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Modal Detail */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

/* Carousel Styles */
.photo-carousel {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%;
    background: #000;
    overflow: hidden;
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: white;
    border-color: #1e5aa0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-info {
    position: absolute;
    bottom: 60px;
    left: 15px;
    right: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10;
}

.carousel-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.carousel-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Tabel dalam Panel */
.table-container-panel {
    margin-top: 1rem;
    overflow-x: auto;
}

.table-panel {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.table-panel th {
    background-color: #f8f9fa;
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
}

.table-panel td {
    padding: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

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

/* Chart Container */
.chart-container-panel {
    height: 300px;
    margin-top: 1rem;
}

/* Tooltip untuk informasi luas */
.area-tooltip {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--primary);
    font-size: 0.9rem;
    max-width: 250px;
}

/* Styling untuk Popup dengan Foto */
.popup-with-photo {
    min-width: 320px !important;
    max-width: 420px !important;
}

.popup-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.popup-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.popup-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.popup-photos {
    margin: 15px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-main-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.popup-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.popup-thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #dee2e6;
}

.popup-thumbnail:hover {
    transform: scale(1.05);
}

.popup-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.popup-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.popup-info-label {
    color: #6c757d;
    font-weight: 500;
}

.popup-info-value {
    color: #333;
    font-weight: 600;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.popup-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.popup-btn-primary {
    background-color: var(--primary);
    color: white;
}

.popup-btn-primary:hover {
    background-color: var(--primary-dark);
}

.popup-btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.popup-btn-secondary:hover {
    background-color: #27ae60;
}

.popup-btn-cost {
    background-color: var(--purple);
    color: white;
}

.popup-btn-cost:hover {
    background-color: #8e44ad;
}

.photo-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Styling untuk Estimasi Biaya */
.cost-estimate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cost-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cost-details {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cost-breakdown {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

.breakdown-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--primary);
}

.breakdown-label {
    color: #6c757d;
}

.breakdown-value {
    color: #333;
    font-weight: 500;
}

.cost-calculator {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.calculator-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-input {
    margin-bottom: 15px;
}

.calculator-input label {
    display: block;
    margin-bottom: 5px;
    color: #6c757d;
    font-weight: 500;
}

.calculator-input input,
.calculator-input select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.calculator-result {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

.result-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.result-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 5px;
}

/* Page Container untuk halaman non-peta */
.page-container {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    /* background: url("bg_website.JPEG") no-repeat center/cover; */
    overflow-y: auto;
    z-index: 800;
    padding: 2rem;
}

#mapPage {
    background: white;
    padding: 0;
    overflow: hidden;
}

.page-container.active {
    display: block;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Styling untuk halaman Tentang Kami */
.organization-chart {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.org-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.org-node {
    background: linear-gradient(135deg, #1e5aa0, #2c8bd6);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    width: 200px;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.org-node h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.org-node p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.org-line {
    width: 2px;
    height: 30px;
    background: #dee2e6;
}

/* Styling untuk statistik */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Styling untuk halaman Hubungi Kami */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background: #f0f7ff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.contact-details p {
    color: #6c757d;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #495057;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Styling untuk halaman Informasi */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

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

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

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Styling untuk halaman Program */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.program-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.program-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e5aa0, #2c8bd6);
    color: white;
}

.program-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.program-body {
    padding: 1.5rem;
}

.program-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.program-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.program-feature i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .sub-menu {
        padding: 1rem;
    }

    .sub-menu-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        width: 100%;
        right: -100%;
    }

    .layer-control {
        display: none;
    }

    .map-controls {
        right: 10px;
    }

    .map-legend {
        right: 10px;
        bottom: 10px;
        max-width: 200px;
    }

    .popup-with-photo {
        min-width: 280px !important;
        max-width: 350px !important;
    }

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

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

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