:root {
    /* Color Palette - Professional Balagtas (Emerald & Heritage Gold) */
    --primary: #064e3b;
    /* Deep Emerald Green */
    --primary-dark: #022c22;
    --primary-light: #10b981;
    --accent: #d4af37;
    /* Heritage Gold */
    --accent-light: #fef3c7;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Glassmorphism Refined */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);

    /* Spacing & Radii - More formal */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    /* Shadows - Soft & Deep */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Header & Nav */


#header .nav-links a {
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
}

#header .logo span {
    color: var(--primary-dark) !important;
}

#header .header-actions a,
#header .header-actions i,
#header .header-actions span {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

/* Scrolled state (Subtle shadow increase) */
#header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12) !important;
    padding: 0.25rem 0;
}

.top-bar {
    background: var(--primary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 1.5rem;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-socials {
    display: flex;
    gap: 1rem;
}

.top-socials a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-socials a:hover {
    opacity: 0.8;
}

.main-header {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Main App Layout */
.mobile-app-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-app-bar {
        display: flex !important;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

@media (min-width: 1025px) {
    .logo {
        gap: 1rem;
    }
}

.logo span {
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn {
    padding: 0.5rem 1.5rem;
    /* Smaller button */
    font-size: 0.85rem;
    border-radius: 4px;
    /* More professional square-ish radius */
}

.auth-btn {
    display: none;
    /* Removed old class */
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 2100;
}

/* Navigation Extensions */
.nav-links li a {
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* E-Services Hub */
.services-hub-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.service-view {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.service-view.hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.service-view.active {
    transform: translateX(0);
    opacity: 1;
}

.service-view.exit {
    transform: translateX(-100%);
    opacity: 0;
}

.service-tile {
    cursor: pointer;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.service-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-tile i {
    font-size: 2.25rem;
    color: var(--primary);
    width: 64px;
    height: 64px;
    background: var(--background);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.3s ease;
}

.service-tile:hover i {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.service-tile h3 {
    font-size: 0.85rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333;
}

.service-tile p {
    display: none;
    /* Hide descriptions on mobile grid for cleaner look */
}

@media(min-width: 768px) {
    .service-tile i {
        color: var(--primary);
        background: transparent;
        width: auto;
        height: auto;
        padding: 0;
        margin-bottom: 1rem;
    }

    .service-tile h3 {
        font-size: 1.25rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
    }

    .service-tile p {
        display: block;
        font-size: 0.95rem;
        color: var(--text-muted);
    }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 2rem;
    font-weight: 600;
}

.back-btn:hover {
    text-decoration: underline;
}

.sub-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sub-menu-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.sub-menu-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.sub-menu-item h4 {
    color: var(--text);
    margin: 0;
}

.sub-menu-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Hero Section Extension */
.hero {
    height: 70vh;
    min-height: 500px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1577495508048-b635879837f1?auto=format&fit=crop&q=80') center/cover;
    opacity: 0.3;
    z-index: 0;
    filter: grayscale(20%) brightness(0.6);
}

/* Reporting Form / Bayanihan */
.report-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.report-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Ensure padding doesn't increase width */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.file-upload {
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload:hover {
    background: #f1f8e9;
}

/* Emergency Specifics */
.emergency-card {
    border-left: 5px solid transparent;
}

.emergency-phone {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 1rem 0;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1;
    font-weight: 800;
    color: white;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #ffea00;
    transform: scale(1.05);
}

/* Sliding Banners */
.banner-slider-container {
    padding: 1rem;
    max-width: 1200px;
    margin: 1rem auto 2rem;
    /* Changed from negative to positive to avoid overlap */
    position: relative;
    z-index: 10;
}

.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding-bottom: 1rem;
}

.banner-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.banner-slide {
    flex: 0 0 90%;
    /* Show a bit of the next slide */
    max-width: 600px;
    scroll-snap-align: center;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 21/9;
    text-decoration: none;
    transition: transform 0.3s;
}

@media(min-width: 768px) {
    .banner-slide {
        flex: 0 0 60%;
    }
}

.banner-slide:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1rem;
    color: white;
}

.banner-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: -0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media(min-width: 768px) {
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Section Titles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Category Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* Directory Table */
.directory-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.directory-table th,
.directory-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.directory-table th {
    background: #f1f8e9;
    color: var(--primary);
    font-weight: 700;
}

.directory-table tr:last-child td {
    border-bottom: none;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.news-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

.news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--primary-dark);
}

.news-card .btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.news-card:hover .btn-text {
    gap: 0.75rem;
}

/* Transparency Section */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.transparency-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.transparency-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background: linear-gradient(to right, #ffffff, #f1f8e9);
}

.transparency-card .icon-box {
    width: 50px;
    height: 50px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.transparency-card:hover .icon-box {
    background: var(--primary);
    color: white !important;
}

.transparency-card:hover .icon-box i {
    color: white !important;
}

.transparency-card .item-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #1b5e20;
    color: white;
    margin-bottom: 0.5rem;
}

.badge-update {
    background: #2196f3;
}

.badge-alert {
    background: #f44336;
}

/* Auth Banner */
.auth-banner-card {
    background: linear-gradient(135deg, #311b92 0%, #4527a0 100%);
    /* Deep purple gradient matching MyNaga */
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.auth-banner-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* Mission Section - Professional */
.mission-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(6, 78, 59, 0.05);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.mission-bg-icon {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    color: rgba(6, 78, 59, 0.03);
    transform: rotate(-15deg);
    pointer-events: none;
}

.mission-statement {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 3rem;
    position: relative;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mission-check {
    width: 28px;
    height: 28px;
    background: var(--background);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.mission-item:hover .mission-check {
    background: var(--primary);
    color: white;
}

/* =========================================
   DASHBOARD & CITIZEN PORTAL STYLES
   ========================================= */

.app-topbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-bottom: 3px solid var(--primary);
    /* Emerald Green Stroke */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box {
    flex: 1;
    background: white;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.notif-btn {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.notif-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    color: var(--accent);
}

.greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.app-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    border: 1px solid rgba(6, 78, 59, 0.05);
    min-height: 600px;
}

/* Settings Sidebar Layout */
.settings-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.settings-nav-item:hover {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.settings-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    border: none;
    transform: translateX(6px);
}

.settings-nav-item i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.settings-nav-item.active i {
    transform: scale(1.15);
}

.settings-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.4s ease-out;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 0.75rem;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
    background: white;
}

.grid-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
}

.grid-icon-box i {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
}

.grid-item:hover .grid-icon-box {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.grid-item span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.badge-soon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.legacy-settings {
    display: none;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
}

.toggle-settings-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--background);
    border: 1px dashed var(--primary-light);
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.toggle-settings-btn:hover {
    background: var(--primary-light);
    border-style: solid;
}

/* Password Toggle Support */
.password-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    z-index: 5;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle i {
    width: 20px;
    height: 20px;
}

/* Shortcuts Grid Desktop Optimization */
@media (min-width: 1025px) {
    .shortcuts-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 2rem !important;
    }
}

/* Explore Section Centering */
@media (min-width: 1025px) {
    #explore .section-header {
        padding: 0 !important;
        margin-bottom: 3rem !important;
    }
}

/* ================================================
   PREMIUM WEB UI ENHANCEMENT LAYER v2.0
   ================================================ */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@700;800;900&display=swap');

/* Enhanced Navigation */


#header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

.nav-links a {
    position: relative;
    color: #374151 !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 0.2s !important;
}

.nav-links a:hover {
    color: #059669 !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Section Titles - More modern */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.04em;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 4px;
    margin: 0.5rem auto 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* News Cards with overflow-hidden fix */
.news-card {
    background: white;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.15), 0 8px 20px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(5, 150, 105, 0.2) !important;
}

.news-image {
    height: 220px !important;
    overflow: hidden;
}

.news-card:hover .news-image {
    transform: none !important;
    /* handled by overflow-hidden */
}

.news-image-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image-inner {
    transform: scale(1.06);
}

.news-content {
    padding: 1.75rem !important;
}

.news-card h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.badge-update {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.badge-alert {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.badge-event {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* Premium Buttons */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #059669;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.2s;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-text:hover {
    gap: 0.75rem;
    color: #047857;
}

/* Premium Hero CTA buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #d4af37, #b8921f);
    color: #1a1a1a;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Stat bar in hero */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}

.hero-stat .num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    display: block;
}

.hero-stat .lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Notification Cards on Web */
.web-notif-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.web-notif-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.web-notif-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--primary);
    border-radius: 5px 0 0 5px;
}

.web-notif-card.alert::before {
    background: #ef4444;
}

.web-notif-card.warning::before {
    background: #f59e0b;
}

.web-notif-card.event::before {
    background: #8b5cf6;
}

.web-notif-card.success::before {
    background: #10b981;
}

.web-notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ecfdf5;
    color: #059669;
}

.web-notif-card.alert .web-notif-icon {
    background: #fef2f2;
    color: #ef4444;
}

.web-notif-card.warning .web-notif-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.web-notif-card.event .web-notif-icon {
    background: #f5f3ff;
    color: #8b5cf6;
}

/* Footer Enhancement */
footer {
    background: linear-gradient(160deg, #022c22 0%, #064e3b 100%) !important;
}

/* Dashboard Desktop App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #0d9488;
    color: #0f766e;
}

.grid-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-icon-box {
    transform: scale(1.05);
}

.grid-icon-box i {
    width: 28px;
    height: 28px;
}

/* Mission Section Layouts */
.mission-section {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.03) 0%, rgba(2, 44, 34, 0.05) 100%);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(6, 78, 59, 0.08);
    position: relative;
    overflow: hidden;
}

.mission-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    color: var(--primary);
    opacity: 0.03;
    z-index: 0;
}

.mission-statement {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #0f172a;
    font-weight: 600;
    max-width: 800px;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 2;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.mission-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Official Portal Layout (Inspired by GO! Manila) */






.header-nav-item i {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    color: #1e3a8a;
}

.header-nav-item.active,
.header-nav-item:hover {
    color: #1e3a8a;
}

/* Official Portal Layout (Inspired by GO! Manila) */




.header-nav-item i {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    color: #1e3a8a;
}

.header-nav-item.active,
.header-nav-item:hover {
    color: #1e3a8a;
}



/* ---- FIXED PORTAL HEADER FIX ---- */




/* Ensure no other header overlaps */
#header,
.header {
    display: none !important;
}


/* ---- REFINED PORTAL LAYOUT ---- */
.portal-header {
    background: #ffffff !important;
    border-bottom: 2px solid #1e3a8a !important;
    padding: 0.5rem 2.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    height: auto !important;
    min-height: 75px !important;
}

.header-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2.5rem !important;
    align-items: center !important;
}

.header-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.header-nav-item i {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 4px !important;
    color: #1e3a8a !important;
}

.header-nav-item:hover,
.header-nav-item.active {
    color: #1e3a8a !important;
}

body.portal-body {
    padding-top: 85px !important;
}

/* =========================================
   REFINED PORTAL LAYOUT - RESTORED UTILITIES
   ========================================= */

/* --- Hero Section Extensions --- */
.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.25rem;
    background: var(--accent);
    color: #003300 !important;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-hero-primary:hover {
    background: #f1c40f;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* --- News & Events Card Utilities --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image-inner {
    transform: scale(1.1);
}

.news-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content .badge {
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.news-content h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem 0;
    color: var(--primary-dark);
    line-height: 1.3;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 0.6rem;
    color: var(--primary-light);
}

/* --- Section Header & Reveal Utilities --- */
.section-header {
    text-align: left;
    margin-bottom: 3.5rem;
    max-width: 850px;
    position: relative;
}

.section-header.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Action Buttons & Footer Links --- */
.section-action-footer {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
    padding-bottom: 3.5rem;
    width: 100%;
}

.btn-action-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.25rem;
    background: var(--primary);
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-action-sm:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Badge Style */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* --- Global Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hide legacy header elements at the very end */
#header,
.header,
.official-header {
    display: none !important;
}

/* Citizen Guide / Directory Styles */
.directory-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.directory-container {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.directory-table th {
    padding: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #f1f5f9;
}

.directory-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.directory-table tr:last-child td {
    border-bottom: none;
}

.directory-table tr:hover td {
    background: #f8fafc;
}

.directory-table td strong {
    color: var(--primary-dark);
    font-weight: 700;
}

@media (max-width: 768px) {
    .directory-table thead {
        display: none;
    }

    .directory-table tr {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .directory-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }
}

/* Dashboard Modals */
.dash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.dash-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dash-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.dash-modal-overlay.active .dash-modal {
    transform: translateY(0) scale(1);
}

.dash-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.dash-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dash-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dash-modal-body {
    padding: 1.5rem;
}

.dash-modal-body p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.dash-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.dash-modal-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.dash-modal-btn {
    width: 100%;
    padding: 0.85rem;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.dash-modal-btn:hover {
    background: #1e40af;
}