body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f8fafb;
    color: #334155;

    /* Branding Colors: Unified Green Theme */
    --unhas-red: #2e7d32;
    --unhas-red-dark: #1b5e20;
    --unhas-red-light: #4caf50;
    --unhas-red-soft: #e8f5e9;

    --eco-green: #2e7d32;
    --eco-green-dark: #1b5e20;
    --eco-green-light: #4caf50;
    --eco-green-soft: #e8f5e9;

    --accent-yellow: #fbc02d;
    --accent-yellow-dark: #f57f17;
    --accent-yellow-light: #ffeb3b;
    --accent-yellow-soft: #fffde7;

    --clean-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

/* --- Double-Tier Header & Topbar --- */
.topbar-info {
    background: #ffffff;
    color: #475569;
    font-size: 0.78rem;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.topbar-info::-webkit-scrollbar {
    display: none;
}

.topbar-info a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar-info a:hover {
    color: var(--eco-green);
}

.topbar-hotline {
    color: var(--eco-green) !important;
    font-weight: 700;
}

.topbar-login-btn {
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-login-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--eco-green);
}

.site-header {
    z-index: 1030;
}

header.navbar {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

header.navbar .navbar-brand span {
    font-size: 1.25rem;
    font-weight: 800;
}

header.navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-transform: none !important;
    letter-spacing: 0px;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

header.navbar .nav-link:hover,
header.navbar .nav-link.active {
    color: var(--eco-green-dark) !important;
}

header.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--eco-green);
    border-radius: 3px;
}

header.navbar .btn-success {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
    border-radius: 8px;
    padding: 10px 22px;
    background-color: var(--eco-green-dark) !important;
    border-color: var(--eco-green-dark) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(27, 94, 32, 0.2);
}

/* --- Hero Banner Section --- */
.hero-clean-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, #e8f5e9 0%, #ffffff 50%);
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-clean-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-clean-section .text-green-accent {
    color: var(--eco-green);
}

.hero-clean-section p.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-clean-section .btn-hero-primary {
    background-color: var(--eco-green-dark);
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.25);
}

.hero-clean-section .btn-hero-primary:hover {
    background-color: #164f1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(27, 94, 32, 0.35);
}

.hero-clean-section .btn-hero-outline {
    background-color: transparent;
    color: #475569;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hero-clean-section .btn-hero-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.hero-illustration-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.06));
    animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- Info Ticker Ribbon --- */
.info-ribbon {
    background-color: var(--eco-green-soft);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.info-ribbon-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.info-ribbon-text {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-ribbon-text i {
    color: var(--eco-green);
    font-size: 1.1rem;
}

.info-ribbon-link {
    color: var(--eco-green-dark);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-ribbon-link:hover {
    text-decoration: underline;
}

/* --- Statistics Section --- */
.stat-card-row {
    margin-top: 1.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-green {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon-yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.stat-icon-purple {
    background: #faf5ff;
    color: #9333ea;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-trend {
    font-size: 0.72rem;
    color: #16a34a;
    font-weight: 700;
}

/* --- Interactive Track & Report Section --- */
.interactive-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    height: 100%;
    transition: border-color 0.2s ease;
}

.interactive-panel:hover {
    border-color: #cbd5e1;
}

.panel-icon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.panel-icon-header i {
    color: var(--eco-green);
}

.panel-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.lacak-input-group {
    display: flex;
    gap: 8px;
}

.lacak-input {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.lacak-input:focus {
    border-color: var(--eco-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.btn-lacak {
    background: var(--eco-green-dark);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-lacak:hover {
    background: #164f1a;
}

.lacak-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.btn-report-outline {
    border: 1px solid var(--eco-green);
    color: var(--eco-green);
    background: transparent;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-report-outline:hover {
    background: var(--eco-green-soft);
    color: var(--eco-green-dark);
}

/* --- Service Cards Section --- */
.section-title-wrapper {
    margin-bottom: 2.5rem;
}

.section-title-wrapper h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.section-title-wrapper p {
    color: var(--text-muted);
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 30px rgba(46, 125, 50, 0.12);
    border-color: var(--eco-green-light);
}

.service-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--eco-green-soft);
    color: var(--eco-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.service-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.service-icon-yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--eco-green-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.service-link:hover {
    gap: 8px;
    color: var(--eco-green);
}

/* --- News & Waste Categories Section --- */
.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 30px rgba(46, 125, 50, 0.12);
    border-color: var(--eco-green-light);
}

.news-image-wrapper {
    height: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    background-color: var(--eco-green);
    /* Fallback */
}

.news-badge-berita {
    background-color: var(--eco-green);
}

.news-badge-pengumuman {
    background-color: #3b82f6;
}

.news-badge-edukasi {
    background-color: #ca8a04;
}

.news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 160px);
}

.news-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Category Sidebar Card */
.category-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
}

.category-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.category-sidebar-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.category-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.cat-icon-organik {
    background: #e8f5e9;
    color: #2e7d32;
}

.cat-icon-anorganik {
    background: #fef9c3;
    color: #ca8a04;
}

.cat-icon-b3 {
    background: #ffebee;
    color: #d32f2f;
}

.category-text {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.category-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.category-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Call to Action (CTA) Banner --- */
.cta-banner-box {
    background: linear-gradient(135deg, var(--eco-green-dark) 0%, var(--eco-green) 100%);
    border-radius: 24px;
    padding: 3rem;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(27, 94, 32, 0.15);
}

.cta-banner-box h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-banner-box p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.btn-cta-white {
    background-color: #ffffff;
    color: var(--eco-green-dark);
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.btn-cta-white:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    color: var(--eco-green-dark);
}

/* --- Re-themed Footer --- */
.footer-dark {
    background-color: #123e25 !important;
    /* Premium Dark Green */
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-dark h5 {
    font-weight: 700;
}

.footer-dark a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-dark a:hover {
    color: #ffffff;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: #ffffff;
    color: var(--eco-green-dark);
}

/* Scroll Top Custom */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    background: var(--eco-green);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background: var(--eco-green-dark);
    color: #fff;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Keep Other Original Components --- */
.feature-card,
.info-box,
.card {
    border-radius: 20px;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    position: relative;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--eco-green-light);
    border-radius: 4px;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: calc(1rem - 12px);
    top: 1.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid #ffffff;
}

.timeline-item h5 {
    margin-top: 1rem;
}

.page-loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Custom Thematic Loader Styling */
.loader-animation-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer spinning ring */
.loader-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--eco-green);
    border-bottom-color: var(--eco-green);
    border-radius: 50%;
    animation: spin-clockwise 2s linear infinite;
}

/* Inner counter-spinning ring */
.loader-inner-ring {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 3px solid transparent;
    border-left-color: #3b82f6;
    /* Blue theme accent */
    border-right-color: #3b82f6;
    border-radius: 50%;
    animation: spin-counter 1.5s linear infinite;
}

/* Central pulsing leaf */
.loader-leaf-wrapper {
    position: absolute;
    font-size: 2rem;
    color: var(--eco-green);
    animation: pulse-leaf 1.8s ease-in-out infinite;
}

/* --- Custom Leaflet BSU Marker Pin --- */
.custom-bsu-marker {
    background: transparent !important;
    border: none !important;
}

.bsu-marker-pin {
    width: 38px;
    height: 38px;
    background: #15803d;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.45);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bsu-marker-pin i {
    transform: rotate(45deg);
    font-size: 15px;
}

.bsu-marker-pin:hover {
    transform: rotate(-45deg) scale(1.2);
    background: #166534;
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.6);
}

/* Typography elements */
.loader-brand {
    font-weight: 800;
    color: var(--eco-green-dark);
    letter-spacing: 0.5px;
}

.loader-status {
    letter-spacing: 0.2px;
}

.loader-dots {
    display: inline-block;
    animation: loader-blink 1.4s infinite both;
}

/* Keyframes */
@keyframes spin-clockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-counter {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-leaf {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.15) rotate(15deg);
    }
}

@keyframes loader-blink {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.content {
    padding: 1.5rem;
    background: #f1f5f9;
}

.sidebar .nav-link {
    color: #334155;
    margin-bottom: 0.5rem;
    border-radius: 12px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: var(--eco-green-soft);
    color: var(--eco-green-dark);
}

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

.btn-delete-schedule,
.btn-delete-report {
    width: 38px;
    height: 38px;
    padding: 0;
}

.card {
    border: none;
}

.collab-card {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.collab-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.collab-img {
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    /* Default slide up */
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.reveal.reveal-up {
    transform: translateY(-60px);
    /* Slide down when scrolling up */
}

.reveal.reveal-down {
    transform: translateY(60px);
    /* Slide up when scrolling down */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) !important;
}

/* Custom cards */
.feature-card i,
.info-box h5 {
    color: var(--eco-green) !important;
}

/* --- RESPONSIVE MOBILE OPTIMIZATIONS --- */
body.public-body {
    padding-top: 110px;
    /* adjusted for two-tier header */
}

@media (max-width: 991px) {
    body.public-body {
        padding-top: 110px;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        min-height: auto;
    }

    header.navbar .navbar-collapse {
        background: #ffffff;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        border-radius: 0 0 16px 16px;
        max-height: 70vh;
        overflow-y: auto;
    }

    header.navbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f8fafc;
    }

    header.navbar .nav-link:last-child {
        border-bottom: none;
    }

    header.navbar .nav-link.active {
        background: var(--eco-green-soft);
        border-radius: 8px;
        margin: 2px 0.5rem;
    }

    header.navbar .nav-link.active::after {
        display: none;
    }

    .navbar-brand img {
        height: 42px !important;
    }

    .hero-clean-section h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-clean-section {
        padding: 4rem 0 2rem;
    }

    .hero-clean-section h1 {
        font-size: 1.85rem;
    }

    .hero-clean-section p.lead {
        font-size: 0.95rem;
    }

    .hero-illustration {
        margin-top: 2rem;
        max-width: 80%;
    }

    #bsuMap {
        height: 320px !important;
    }
}

@media (max-width: 575px) {
    body.public-body {
        padding-top: 105px;
    }

    .navbar-brand img {
        height: 36px !important;
    }

    .cta-banner-box {
        padding: 2rem 1.5rem;
    }

    .cta-banner-box h3 {
        font-size: 1.5rem;
    }
}

/* --- PUBLIC TEMPLATE OVERRIDES: MAP DANGER STYLES TO FOREST GREEN --- */
body.public-body .btn-danger {
    background-color: var(--eco-green) !important;
    border-color: var(--eco-green) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(27, 94, 32, 0.2) !important;
}

body.public-body .btn-danger:hover,
body.public-body .btn-danger:focus,
body.public-body .btn-danger:active {
    background-color: var(--eco-green-dark) !important;
    border-color: var(--eco-green-dark) !important;
    color: #ffffff !important;
}

body.public-body .btn-outline-danger {
    color: var(--eco-green) !important;
    border-color: var(--eco-green) !important;
}

body.public-body .btn-outline-danger:hover,
body.public-body .btn-outline-danger:focus,
body.public-body .btn-outline-danger:active {
    background-color: var(--eco-green) !important;
    border-color: var(--eco-green) !important;
    color: #ffffff !important;
}

body.public-body .text-danger {
    color: var(--eco-green) !important;
}

body.public-body .bg-danger {
    background-color: var(--eco-green) !important;
}

body.public-body .bg-danger.bg-opacity-10 {
    background-color: rgba(46, 125, 50, 0.1) !important;
}

body.public-body .border-danger {
    border-color: var(--eco-green) !important;
}

body.public-body .badge.bg-danger.bg-opacity-10.text-danger {
    background-color: rgba(46, 125, 50, 0.1) !important;
    color: var(--eco-green) !important;
}

body.public-body .table-danger {
    --bs-table-bg: var(--eco-green) !important;
    --bs-table-color: #ffffff !important;
    --bs-table-border-color: var(--eco-green) !important;
    background-color: var(--eco-green) !important;
    color: #ffffff !important;
}

body.public-body .table-danger th {
    background-color: var(--eco-green) !important;
    color: #ffffff !important;
}

/* --- Premium Mockup Dashboard in Hero --- */
.hero-dashboard-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.mockup-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.mockup-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-body {
    padding: 20px;
}

.mockup-kpi {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    text-align: left;
}

.kpi-title {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.kpi-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.mockup-list {
    text-align: left;
}

.mockup-item {
    font-size: 0.75rem;
}

.item-name {
    color: #475569;
    font-weight: 600;
}

.item-percentage {
    font-weight: 700;
}

.mockup-chart {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chart-title {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 75px;
    padding: 10px 10px 0;
    margin-top: 5px;
}

.chart-bar {
    width: 24px;
    background: #cbd5e1;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover,
.chart-bar.active {
    background: var(--eco-green);
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 600;
}

/* --- News Card Gradient Thumbnails --- */
.news-gradient-1 {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.news-gradient-2 {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.news-gradient-3 {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}

.news-icon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.22);
    transition: all 0.3s ease;
}

.news-card:hover .news-icon-overlay {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(255, 255, 255, 0.35);
}

/* --- Interactive Panel Icon --- */
.interactive-panel-icon {
    font-size: 2.8rem;
    color: var(--eco-green);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.interactive-panel:hover .interactive-panel-icon {
    opacity: 0.45;
    transform: scale(1.08) rotate(3deg);
}

/* --- Topbar Seamless Scrolling Marquee --- */
.topbar-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
}

.topbar-marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: topbar-marquee 30s linear infinite;
}

.topbar-marquee-wrapper:hover .topbar-marquee-content {
    animation-play-state: paused;
}

@keyframes topbar-marquee {
    0% {
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* --- Brand Logo Sizing & Responsive Branding --- */
.brand-logo-img {
    height: 74px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
    transition: all 0.3s ease;
}

.brand-title-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1.1;
}

.brand-subtitle-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
}

.admin-sidebar-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* --- Mobile Web Responsiveness & Optimizations --- */
@media (max-width: 991.98px) {
    .site-header {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .brand-logo-img {
        height: 60px;
    }

    .brand-title-text {
        font-size: 1.25rem;
    }

    .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        padding: 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        border-radius: 8px;
        font-weight: 600;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--eco-green-soft);
        color: var(--eco-green-dark) !important;
    }

    .hero-clean-section {
        padding-top: 6.5rem !important;
        padding-bottom: 2.5rem !important;
        text-align: center;
    }

    .hero-clean-section h1 {
        font-size: 1.85rem !important;
        line-height: 1.35 !important;
    }

    .hero-clean-section .lead {
        font-size: 0.95rem !important;
    }

    .hero-clean-section .btn-hero-primary,
    .hero-clean-section .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-illustration {
        max-height: 260px;
        margin: 0 auto;
    }

    #bsuMap {
        height: 380px !important;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 52px;
    }

    .brand-title-text {
        font-size: 1.1rem;
    }

    .brand-subtitle-text {
        font-size: 0.65rem;
    }

    .topbar-info {
        display: none;
        /* Hide topbar marquee on small mobile to maximize view area */
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .simba-card,
    .card {
        border-radius: 16px !important;
    }

    .display-5,
    .display-6 {
        font-size: 1.75rem !important;
    }

    #bsuMap {
        height: 320px !important;
    }

    .lacak-input-group {
        flex-direction: column;
    }

    .btn-lacak {
        width: 100%;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}

/* --- Hero Banner with Aesthetic Parepare City Background --- */
.hero-parepare-section {
    position: relative;
    padding-top: 9.5rem !important;
    padding-bottom: 5.5rem !important;
    background: linear-gradient(180deg, rgba(18, 62, 37, 0.75) 0%, rgba(15, 23, 42, 0.82) 100%),
        url('../images/hero-parepare-bg.png') center/cover no-repeat;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
    overflow: hidden;
    color: #ffffff;
}

.hero-parepare-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(46, 125, 50, 0.25), transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}