@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f6f8fb;
    color: #0f172a;
}

.portal-page {
    background: #f6f8fb;
    overflow-x: hidden;
}

.portal-hero {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(6, 12, 34, 0.65), rgba(12, 22, 52, 0.7)),
        url('https://images.unsplash.com/photo-1529927992851-b6817b9fdba3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #fff;
}

.portal-hero.portal-hero-nav {
    min-height: unset;
    padding: 0;
    background: linear-gradient(135deg, rgba(6, 12, 34, 0.9), rgba(12, 22, 52, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.portal-hero.portal-hero-nav::after {
    display: none;
}

.portal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 40, 0.65) 0%, rgba(8, 15, 40, 0.4) 50%, rgba(8, 15, 40, 0.8) 100%);
}

.portal-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 30px;
    padding-bottom: 60px;
}

.portal-hero.portal-hero-nav .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.portal-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

.portal-brand .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb703, #ff6b00);
}

.portal-nav {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-nav a {
    color: #e4e8f4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.portal-nav a:hover {
    color: #fff;
}

.portal-cta {
    background: linear-gradient(135deg, #38b6ff, #3474f5);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(52, 116, 245, 0.35);
}

.hero-content {
    padding: 70px 0 20px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.hero-title .highlight {
    color: #a4ffb5;
}

.hero-subtitle {
    font-size: 17px;
    color: #e5edff;
    margin-top: 14px;
}

.stat-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(26px, 3vw, 36px);
    color: #0f172a;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 35px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.bencana-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bencana-card .date {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.bencana-card .title {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

.bencana-card .location {
    color: #6b7280;
    font-size: 13px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(52, 116, 245, 0.12);
    color: #2c528b;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.pill.status-y {
    background: rgba(34, 197, 94, 0.15);
    color: #0f9d58;
}

.pill.status-n {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.jenis-section {
    background: #0f233d;
    color: #fff;
    position: relative;
    padding: 70px 0 80px;
    overflow: hidden;
}

.jenis-section::before,
.jenis-section::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 60%);
}

.jenis-section::before {
    top: -60px;
    left: -40px;
}

.jenis-section::after {
    bottom: -80px;
    right: 20px;
}

.jenis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
}

.jenis-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.jenis-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.35);
}

.jenis-item .name {
    font-weight: 700;
    margin-bottom: 4px;
}

.jenis-item .count {
    color: #cbd5e1;
}

.gallery-section {
    background: #f6f8fb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-card .caption {
    padding: 12px 14px 14px;
    color: #0f172a;
    font-weight: 600;
}

.panel-surface {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 15px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.table-clean {
    margin-bottom: 0;
}

.table-clean th {
    color: #6b7280;
    font-weight: 600;
}

.table-clean td {
    color: #0f172a;
}

.chart-container {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 15px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.chart-container.chart-compact {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 14px;
}

.bmkg-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    margin-top: 12px;
}

.footer-block {
    background: #0f233d;
    color: #e2e8f0;
    padding: 60px 0 40px;
    position: relative;
}

.footer-card {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(201, 68, 12, 0.35);
    margin-top: -70px;
    margin-bottom: 30px;
}

.footer-links h6 {
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .portal-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .portal-hero {
        min-height: 60vh;
    }
    .stat-badges {
        gap: 10px;
    }
}
