
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-color: #ffffff;
color: #333;
line-height: 1.6;
display: flex;
flex-direction: column;
min-height: 100vh;
}

main {
flex: 1; /* main mengisi ruang kosong antara header & footer */
}

a {
text-decoration: none;
}


/* header & navbar */
.bmkg-header {
background-color: #ffffff;
border-bottom: 1px solid #e5e7eb;
position: sticky;
top: 0;
z-index: 100;
}

.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 5%;
background-color: #f8fafc; 
border-bottom: 1px solid #f3f4f6;
font-size: 0.85rem;
color: #4b5563;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.waktu-hijau {
color: #16a34a; 
font-weight: 700;
margin: 0 5px;
}

.main-navbar {
display: flex;
justify-content: space-between; 
align-items: center;
padding: 15px 5%;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-left {
display: flex;
align-items: center;
gap: 15px;
flex: 1; 
}

.logo-img { height: 50px; }

.logo-text {
font-size: 0.85rem;
font-weight: 700;
color: #111827;
line-height: 1.3;
}

.nav-menu {
display: flex;
list-style: none;
gap: 25px;
flex: 2;
justify-content: center;
}

.nav-menu li a {
color: #4b5563;
font-weight: 600;
font-size: 0.95rem;
transition: color 0.2s;
}

.nav-menu li a:hover {
color: #2563eb;
}

.nav-right {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 20px;
flex: 1;
}

.contact-center {
display: flex;
align-items: center;
gap: 8px;
background-color: #ffffff;
color: #1f2937;
padding: 8px 16px;
border-radius: 6px;
font-weight: 600;
font-size: 0.9rem;
border: 1px solid #d1d5db;
}

.hamburger-menu {
font-size: 1.5rem;
color: #6b7280;
cursor: pointer;
transition: color 0.2s;
display: none;
}

.hamburger-menu:hover { color: #111827; }

a {
text-decoration: none;
}

/* warning */
.warning-banner {
display: flex;
align-items: stretch;
background-color: #fff7ed; 
border: 1px solid #f97316; 
border-radius: 12px;
margin: 30px auto;
overflow: hidden;
max-width: 1200px;
width: 90%;
}

.banner-btn {
background-color: transparent;
border: none;
color: #ea580c;
padding: 0 20px;
cursor: pointer;
font-size: 1.2rem;
transition: background 0.2s;
}
.banner-btn:hover { background-color: #ffedd5; }
.prev-btn { border-right: 1px solid #fbd38d; }
.next-btn { border-left: 1px solid #fbd38d; }

.banner-content {
display: flex;
flex: 1;
padding: 20px;
gap: 15px;
align-items: flex-start;
position: relative;
}

.banner-text h3 { margin: 0 0 10px 0; font-size: 1.1rem; color: #111827; }
.banner-text p { margin: 0 0 10px 0; font-size: 0.95rem; color: #4b5563; }
.btn-link { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.close-btn-dom {
position: absolute;
top: 10px;
right: 15px;
background: transparent;
border: none;
font-size: 1.5rem;
color: #9ca3af;
cursor: pointer;
}
.close-btn-dom:hover { color: #ef4444; }


/* caraousel pusat eak*/
.section-header {
display: flex; 
justify-content: space-between; 
align-items: center; 
margin-bottom: 25px;
}
.section-header h2 { font-size: 1.8rem; color: #111827; }
.btn-lihat-semua { color: #2563eb; font-weight: 600; font-size: 0.95rem; }


/*carousel cuaca*/
.weather-carousel-section {
position: relative;
max-width: 1200px;
margin: 40px auto;
display: flex;
align-items: center;
gap: 15px;
width: 90%;
}

.carousel-nav {
background: white;
border: 1px solid #d1d5db;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 10;
color: #4b5563;
flex-shrink: 0;
}
.carousel-nav:hover { background: #f3f4f6; }

.carousel-track {
display: flex;
gap: 20px;
overflow-x: auto;
scroll-behavior: smooth;
padding: 10px 5px;
scrollbar-width: none; 
}
.carousel-track::-webkit-scrollbar { display: none; }

.weather-card-slider {
flex: 0 0 auto;
width: 200px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
border-radius: 16px;
padding: 25px 20px;
text-align: center;
position: relative;
overflow: hidden;
}

.weather-card-slider::before {
content: '';
position: absolute;
top: 50%; left: -20%; width: 140%; height: 140%;
border-radius: 40%;
border: 1px solid rgba(255, 255, 255, 0.4);
background: transparent;
pointer-events: none;
}

.weather-card-slider h4 { font-size: 1.1rem; color: #111827; margin-bottom: 5px; }
.time-label { display: block; font-size: 0.8rem; color: #6b7280; margin-bottom: 15px; }
.weather-card-slider img { height: 60px; margin-bottom: 15px; }
.temp-big { font-size: 2rem; font-weight: 700; color: #111827; margin-bottom: 5px; }
.condition-label { font-size: 0.9rem; color: #374151; }


/*gempa bumi*/
.gempa-section {
max-width: 1200px;
margin: 60px auto;
width: 90%;
}

.gempa-container {
display: flex;
gap: 40px;
align-items: flex-start;
}

.gempa-map {
position: relative;
flex: 0 0 350px;
background: #fff;
border-radius: 16px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
padding: 10px;
}

.map-image { width: 100%; border-radius: 12px; display: block; }

.zoom-btn {
position: absolute;
top: 20px; right: 20px;
background: rgba(255,255,255,0.8);
border: none; border-radius: 8px;
width: 36px; height: 36px;
cursor: pointer; font-size: 1.2rem;
}

.gempa-info { flex: 1; }
.gempa-info h2 { font-size: 2.2rem; color: #111827; margin-bottom: 5px; }
.gempa-waktu { color: #6b7280; margin-bottom: 20px; }

.badge-dirasakan {
display: inline-block;
background-color: #ffedd5; color: #c2410c;
padding: 6px 12px; border-radius: 20px;
font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}

.gempa-lokasi { font-size: 1.4rem; color: #111827; margin-bottom: 25px; }

.gempa-stats { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.stat-box {
background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
padding: 15px; min-width: 140px;
}
.stat-label { display: block; font-size: 0.85rem; color: #6b7280; margin-bottom: 8px; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 8px; }
.icon-tiny { width: 16px; height: 16px; }
.gempa-saran { color: #374151; margin-bottom: 20px; }


/* udara coy */
.kualitas-udara-section {
max-width: 1200px;
margin: 60px auto;
width: 90%;
}

.carousel-container-udara { position: relative; display: flex; align-items: center; gap: 15px; }

.track-udara {
display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
padding: 10px 5px; scrollbar-width: none; 
}
.track-udara::-webkit-scrollbar { display: none; }

.card-udara {
flex: 0 0 auto;
width: 240px; /* Ukuran Lebar */
background: #f8fafc; 
border: 1px solid #f1f5f9;
border-radius: 16px;
padding: 35px 20px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.card-udara h4 { color: #111827; font-size: 1.1rem; margin-bottom: 5px; }
.waktu-udara { font-size: 0.9rem; color: #6b7280; margin-bottom: 20px; }

.icon-circle {
width: 80px; height: 80px; 
border-radius: 50%; border: 2px solid #3b82f6; 
margin: 0 auto 20px auto;
display: flex; align-items: center; justify-content: center;
background: #fff;
}
.icon-circle img { width: 45px; height: 45px; }

.nilai-udara { font-size: 2.8rem; font-weight: 700; margin-bottom: 5px; }
.nilai-udara.biru { color: #1d4ed8; }
.status-udara { font-size: 1rem; color: #4b5563; }

.nav-btn-udara {
background: white; border: 1px solid #e5e7eb; border-radius: 50%;
width: 36px; height: 36px; cursor: pointer;
box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: #6b7280; flex-shrink: 0;
}


/*visualisasi cuaca*/
.visualisasi-section {
max-width: 1200px; margin: 60px auto; width: 90%;
}

.nav-arrows { display: flex; gap: 10px; }
.nav-btn-visual {
background: white; border: 1px solid #e5e7eb; border-radius: 50%;
width: 40px; height: 40px; cursor: pointer;
box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: #4b5563;
}
.nav-btn-visual:hover { background: #f3f4f6; }

.carousel-container-visual { position: relative; width: 100%; }

.track-visual {
display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
padding: 10px 5px; scrollbar-width: none;
}
.track-visual::-webkit-scrollbar { display: none; }

.card-visual { flex: 0 0 auto; width: 300px; background: transparent; }

.image-wrapper {
position: relative; border-radius: 12px; overflow: hidden;
margin-bottom: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.image-wrapper img {
width: 100%; height: 200px; object-fit: cover; display: block;
transition: transform 0.3s ease;
}
.image-wrapper:hover img { transform: scale(1.05); }

.zoom-btn-visual {
position: absolute; top: 10px; right: 10px;
background: rgba(0,0,0,0.5); color: white; border: none;
border-radius: 8px; width: 32px; height: 32px; cursor: pointer;
font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.zoom-btn-visual:hover { background: rgba(0,0,0,0.7); }

.card-visual h4 { color: #111827; font-size: 1.1rem; margin-bottom: 8px; }
.card-visual p { font-size: 0.9rem; color: #6b7280; line-height: 1.4; }


/*akses informasi */
.akses-info-section {
max-width: 1200px; margin: 60px auto; width: 90%;
}

.carousel-container-akses { position: relative; display: flex; align-items: center; gap: 15px; }

.track-akses {
display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
padding: 10px 5px; scrollbar-width: none;
}
.track-akses::-webkit-scrollbar { display: none; }

.card-akses {
flex: 0 0 auto; width: 220px; height: 220px; 
background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
padding: 25px 20px; display: flex; flex-direction: column;
justify-content: space-between; align-items: flex-start;
box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: box-shadow 0.3s ease;
cursor: pointer;
}
.card-akses:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.08); }

.icon-akses { width: 55px; height: 55px; opacity: 0.8; }
.card-akses h4 { color: #111827; font-size: 1.1rem; font-weight: 700; }

.nav-btn-akses {
background: white; border: 1px solid #e5e7eb; border-radius: 50%;
width: 36px; height: 36px; cursor: pointer;
box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: #6b7280; flex-shrink: 0; z-index: 10;
}
.nav-btn-akses:hover { background: #f3f4f6; }


/*berita terbaru*/
.berita-section {
max-width: 1200px; margin: 60px auto; width: 90%;
}

.berita-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.berita-filters { display: flex; align-items: center; gap: 15px; }

.filter-btn {
background: transparent; border: 1px solid #e5e7eb; padding: 8px 16px;
border-radius: 6px; font-size: 0.9rem; color: #4b5563; cursor: pointer;
transition: all 0.2s;
}
.filter-btn.active { background: #f0f9ff; border-color: #3b82f6; color: #1d4ed8; font-weight: 600; }
.filter-btn:hover:not(.active) { background: #f9fafb; }

.berita-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.berita-card {
background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
overflow: hidden; display: flex; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-besar { flex-direction: column; }
.card-besar .berita-img { width: 100%; height: 350px; object-fit: cover; }

.berita-kanan-wrapper { display: flex; flex-direction: column; gap: 30px; }
.card-kecil { flex-direction: row; height: 100%; }
.card-kecil .berita-img { width: 200px; min-width: 200px; object-fit: cover; }

.berita-content { padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.berita-tanggal { font-size: 0.85rem; color: #6b7280; margin-bottom: 10px; display: block; }
.berita-card h3 { font-size: 1.3rem; color: #111827; margin-bottom: 15px; line-height: 1.4; }
.card-kecil h3 { font-size: 1.1rem; }
.berita-excerpt { font-size: 0.95rem; color: #4b5563; line-height: 1.6; margin-bottom: 20px; }
.baca-selengkapnya { color: #2563eb; font-weight: 600; font-size: 0.95rem; margin-top: auto; display: inline-block; }
.baca-selengkapnya:hover { text-decoration: underline; }


/*pengumuman artikel*/
.pengumuman-section {
max-width: 1200px; margin: 60px auto 100px auto; width: 90%;
}

.pengumuman-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.card-pengumuman {
background: #ffffff; border: 1px solid #f3f4f6; border-radius: 12px;
padding: 30px 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer;
}
.card-pengumuman:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }

.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 0.8rem; color: #6b7280; }
.card-meta .kategori { font-weight: 600; letter-spacing: 0.5px; color: #4b5563; }
.card-pengumuman h3 { font-size: 1.15rem; color: #111827; line-height: 1.6; font-weight: 700; }


/*kaki (footer)*/
.bmkg-footer {
background-color: #0b1528; color: #e5e7eb; font-size: 0.9rem;
padding-top: 60px; margin-top: auto;
}

.footer-container {
max-width: 1200px; margin: 0 auto; width: 90%;
display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { height: 60px; margin-bottom: 30px; }
.footer-heading { color: #9ca3af; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 20px; }

.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; line-height: 1.5; }
.icon-contact-img { width: 20px; height: auto; margin-top: 3px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #e5e7eb; transition: color 0.2s; display: inline-block; }
.footer-links a:hover { color: #60a5fa; }

.app-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn {
background: #ffffff; color: #111827; border: none; padding: 8px 15px;
border-radius: 6px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;
}

.social-icons { display: flex; gap: 10px; }
.soc-icon {
width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
color: white; display: flex; align-items: center; justify-content: center;
font-size: 0.8rem; transition: background 0.2s;
}
.soc-icon:hover { background: rgba(255,255,255,0.2); }

.footer-bottom { background-color: #0b1528; padding: 20px 0; }
.footer-bottom-container {
max-width: 1200px; margin: 0 auto; width: 90%;
display: flex; justify-content: space-between; align-items: center;
font-size: 0.8rem; color: #9ca3af;
}

.bottom-links { display: flex; align-items: center; gap: 30px; }
.bottom-links a { color: #9ca3af; }
.bottom-links a:hover { color: white; }

.back-to-top {
background: white; color: #111827; border: none; padding: 8px 16px;
border-radius: 20px; font-weight: 600; cursor: pointer;
}


/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
.gempa-container { flex-direction: column; }
.gempa-map { flex: auto; width: 100%; max-width: 400px; margin: 0 auto; }

.berita-header { flex-direction: column; align-items: flex-start; gap: 15px; }
.berita-filters { flex-wrap: wrap; }
.berita-grid { grid-template-columns: 1fr; }
.card-kecil { flex-direction: column; }
.card-kecil .berita-img { width: 100%; height: 200px; }

.pengumuman-grid { grid-template-columns: repeat(2, 1fr); }

.footer-container { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 768px) {
.top-bar { flex-direction: column; gap: 10px; text-align: center; }
.contact-center { display: none; }
.logo-text { font-size: 0.8rem; }
.logo-img { height: 40px; }

.banner-content { flex-direction: column; }
.section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

.pengumuman-grid { grid-template-columns: 1fr; }
.pengumuman-header { flex-direction: column; align-items: flex-start; gap: 15px; }
.pengumuman-filters { flex-wrap: wrap; }

.footer-container { grid-template-columns: 1fr; }
.footer-bottom-container { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; /* Turun ke bawah header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        text-align: center;
        z-index: 99;
    }
    .nav-menu.active {
        display: flex; 
    }

    .hamburger-menu {
        display: block; 
    }
}