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

:root {
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-dim: #9ca3af;
    --border-color: #e5e7eb;
    --hover-bg: #f9fafb;
    --search-bg: #f3f4f6;
    
    --red: #8b0000;
    --red-hover: #a30000;
    --red-light: rgba(139, 0, 0, 0.08);
    --red-medium: rgba(139, 0, 0, 0.15);
    
    --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --sh-md: 0 4px 18px rgba(0, 0, 0, 0.08);
    --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.11);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    min-height: 100vh;
}

/* Subtle background watermark matching existing style.css */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../static/img/indexbg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Top Government Banner Above Navbar (100% Full Width Edge-to-Edge) */
.top-gov-banner {
    width: 100%;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.top-gov-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5%;
    color: #ffffff;
    gap: 24px;
    flex-wrap: wrap;
}

.gov-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gov-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gov-titles {
    display: flex;
    flex-direction: column;
}

.gov-rep {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
    font-weight: 500;
}

.gov-muni {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gov-prov {
    font-size: 14px;
    color: #94a3b8;
}

.gov-right {
    text-align: right;
    background: transparent;
    padding: 6px 0;
    border: none;
    box-shadow: none;
    margin-right: 280px; /* Shifting left to clearly show the statue on the right */
}

.time-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e2e8f0;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.time-val {
    font-size: 16px;
    font-weight: 600;
    color: #38bdf8;
    font-family: monospace, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .top-gov-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 5%;
    }
    .gov-right {
        text-align: left;
        width: 100%;
        margin-right: 0;
    }
    .gov-muni {
        font-size: 19px;
    }
}

/* Header & Navigation */
.landing-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.landing-header.scrolled {
    height: 68px;
    background: #ffffff;
    box-shadow: var(--sh-md);
}

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

.logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b0000 0%, var(--red) 50%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.25);
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--red);
}

.logo-subtext {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: -3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--hover-bg);
    border-color: #d1d5db;
    color: var(--red);
}

.btn-primary {
    background: linear-gradient(155deg, #6b0000 0%, var(--red) 40%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
    background: linear-gradient(155deg, var(--red) 0%, #a30000 50%, #dc2626 100%);
}

.btn-outline {
    background: #ffffff;
    color: var(--red);
    border: 1.5px solid var(--red);
    box-shadow: var(--sh-sm);
}

.btn-outline:hover {
    background: var(--red-light);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
}

/* Hero Section & Dynamic Background Slideshow */
.hero-section {
    position: relative;
    width: 100%;
    padding: 80px 5% 85px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background Slideshow & Animations */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 6s ease;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05); /* Sleek Ken Burns zoom animation */
}

/* Legibility overlay: keeps general look clean & crisp while showcasing dynamic photos */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.95) 100%);
    z-index: 1;
}

/* Horizontal Indicator Bars Modeled After Official GovPH Portal (Photo 2) */
.hero-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-slider-indicators .indicator {
    width: 45px;
    height: 5px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-indicators .indicator:hover {
    background: rgba(139, 0, 0, 0.5);
}

.hero-slider-indicators .indicator.active {
    background: #8b0000;
    width: 65px;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.4);
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--red-light);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--red);
}

.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
    max-width: 980px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--red);
}

.hero-subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-muted);
    max-width: 740px;
    margin-bottom: 38px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15.5px;
    border-radius: 12px;
}

/* Live Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1050px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--sh-md);
}

.stat-item {
    text-align: center;
    padding: 8px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-color);
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-number.red {
    color: var(--red);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Common Styling */
.section-padding {
    padding: 90px 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red);
    background: var(--red-light);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================================
   INTERACTIVE LIVE PREVIEW SECTION (ACTBAYAN LIGHT MODE)
   ======================================================== */
.preview-showcase-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    margin-top: 10px;
}

.preview-window-top {
    background: #f8fafc;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.window-title i {
    color: var(--red);
    font-size: 16px;
}

.window-url-bar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
    justify-content: center;
}

.window-url-bar i {
    color: #10b981;
    font-size: 12px;
}

.window-url-bar span {
    color: var(--text-main);
    font-weight: 500;
}

.preview-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #a7f3d0;
}

.preview-status-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

/* Interactive Tabs Bar */
.preview-tabs-nav {
    display: flex;
    background: #f3f4f6;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.preview-tab-btn {
    padding: 16px 22px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
}

.preview-tab-btn i {
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.preview-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

.preview-tab-btn.active {
    color: var(--red);
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.03);
}

.preview-tab-btn.active i {
    color: var(--red);
}

.preview-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
}

/* Preview Content Body */
.preview-body {
    padding: 30px;
    min-height: 520px;
    background: #ffffff;
}

.preview-panel {
    display: none;
    animation: fadeInSlide 0.3s ease-out forwards;
}

.preview-panel.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel 1: GIS Map Mockup */
.gis-mockup-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    height: 460px;
}

.gis-sidebar {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-count {
    background: var(--red-light);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.incident-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--sh-sm);
}

.incident-card:hover, .incident-card.selected {
    border-color: var(--red);
    box-shadow: var(--sh-md);
    transform: translateX(4px);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.incident-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.tag-infra { background: #fef3c7; color: #d97706; }
.tag-safety { background: var(--red-light); color: var(--red); }
.tag-env { background: #d1fae5; color: #047857; }

.incident-time { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.incident-title { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.incident-loc { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.incident-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.upvote-badge { display: flex; align-items: center; gap: 4px; color: var(--red); font-weight: 700; }

.gis-sidebar::-webkit-scrollbar {
    width: 6px;
}
.gis-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.gis-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.gis-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.gis-map-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--sh-sm);
    height: 100%;
}

.gis-map-header {
    background: #f8fafc;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
}

.map-badge {
    color: #059669;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.map-coords {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 12px;
}

/* Leaflet custom styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    padding: 2px !important;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-title { font-size: 14.5px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.popup-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.popup-action { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 10px; }

/* Panel 2: Bulletins Mockup */
.bulletins-mockup {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bulletin-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill.active, .filter-pill:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.2);
}

.bulletins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.bulletin-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--sh-sm);
}

.bulletin-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: var(--sh-md);
}

.bulletin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.bulletin-emoji {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bulletin-date { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.bulletin-h3 { font-size: 17px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; line-height: 1.3; }
.bulletin-p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }

.bulletin-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b0000 0%, var(--red) 50%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
}

.author-info h5 { font-size: 13px; font-weight: 700; color: var(--text-main); }
.author-info span { font-size: 11px; font-weight: 500; color: var(--text-muted); }

/* Panel 3: Analytics Mockup */
.analytics-mockup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.analytics-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--sh-sm);
}

.analytics-card.span-2 { grid-column: span 2; }
.analytics-card.span-3 { grid-column: span 3; }

.analytics-title { font-size: 13.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.analytics-big-val { font-size: 34px; font-weight: 900; color: var(--text-main); margin-bottom: 6px; letter-spacing: -1px; }
.analytics-trend { font-size: 12.5px; color: #059669; font-weight: 700; display: flex; align-items: center; gap: 4px; }

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b0000, #dc2626);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Simulated Chart Bars */
.chart-bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 170px;
    padding-top: 20px;
    gap: 12px;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    background: #fca5a5;
    border-radius: 6px 6px 0 0;
    transition: height 1s ease-in-out;
    position: relative;
}

.chart-bar:hover {
    background: var(--red);
}

.chart-label { font-size: 11px; color: var(--text-muted); font-weight: 700; }

/* Panel 4: Verification & Resolution Tracking */
.workflow-mockup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--red-light);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 { font-size: 14.5px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

.simulated-notification {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--sh-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noti-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.noti-badge-icon {
    width: 40px; height: 40px; border-radius: 50%; background: #d1fae5; color: #059669; display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.noti-body {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #ecfdf5 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.65;
    box-shadow: 0 10px 25px -6px rgba(16, 185, 129, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* ========================================================
   MUNICIPAL PUBLIC WORKS MONITORING & COVERAGE SECTION
   ======================================================== */
.municipal-scope-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.scope-info h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.scope-info p {
    font-size: 15.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.65;
}

.scope-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.highlight-item:hover {
    background: #f1f5f9;
    border-color: var(--red);
    transform: translateX(4px);
}

.highlight-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}

.highlight-text h4 { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 2px; }
.highlight-text span { font-size: 13px; color: var(--text-muted); }

/* Municipal Barangays Grid / Cards */
.barangays-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.brgy-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

.brgy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--border-color);
    transition: var(--transition);
}

.brgy-card.pioneer::before { background: var(--red); }
.brgy-card:hover::before { background: var(--red); width: 6px; }

.brgy-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: var(--sh-md);
}

.brgy-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.badge-pioneer { background: var(--red-light); color: var(--red); }
.badge-active { background: #d1fae5; color: #047857; }
.badge-expansion { background: #fef3c7; color: #d97706; }

.brgy-card h3 { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.brgy-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }

.brgy-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 10px; font-weight: 500; }
.brgy-stats strong { color: var(--text-main); font-weight: 700; }

/* ========================================================
   HOW IT WORKS & FEATURE GRID
   ======================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--sh-sm);
}

.feature-box:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--red-light);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
    background: var(--red);
    color: white;
    transform: scale(1.08);
}

.feature-box h3 { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.feature-box p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Call to Action Banner */
.cta-banner-wrapper {
    padding: 50px 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.cta-banner {
    background: linear-gradient(155deg, #6b0000 0%, #8b0000 40%, #b91c1c 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.25);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, 0.06);
}

.cta-banner h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 900; color: white; margin-bottom: 14px; position: relative; z-index: 2; letter-spacing: -0.5px; }
.cta-banner p { font-size: 16.5px; color: rgba(255, 255, 255, 0.85); max-width: 660px; margin: 0 auto 32px; position: relative; z-index: 2; line-height: 1.6; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

/* Footer */
.landing-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 70px 5% 30px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p { font-size: 13.5px; color: var(--text-muted); max-width: 300px; margin-top: 14px; line-height: 1.6; }

.footer-col h4 { font-size: 13.5px; font-weight: 800; color: var(--text-main); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: var(--transition); }
.footer-socials a:hover { background: var(--red); color: white; transform: translateY(-2px); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .scope-grid { grid-template-columns: 1fr; gap: 36px; }
    .gis-mockup-grid { grid-template-columns: 1fr; height: auto; }
    .gis-sidebar { max-height: 240px; }
    .gis-map-canvas { height: 340px; }
    .analytics-mockup { grid-template-columns: 1fr; }
    .analytics-card.span-2, .analytics-card.span-3 { grid-column: span 1; }
    .workflow-mockup { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .header-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero-section { padding: 34px 5% 50px; }
    .barangays-showcase { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
