:root {
    /* Premium Government Palette */
    --gov-blue: #0f172a;
    /* Slate 900 - Authoritative */
    --gov-blue-light: #334155;
    /* Slate 700 */
    --gov-accent: #3b82f6;
    /* Blue 500 - Digital */
    --gov-gold: #fbbf24;
    /* Amber 400 - Prestige */
    --gov-red: #ef4444;
    /* Alert */

    --bg-body: #f1f5f9;
    /* Slate 100 */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Advanced Glass */
    --glass-surface: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --hero-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
}

/* Custom Fonts */
@font-face {
    font-family: 'Betonotes';
    src: url('../fonts/roboto/Roboto-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Black.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-body);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
    /* Tight formatting */
    color: var(--gov-blue);
}

.text-gold {
    color: var(--gov-gold);
}

.text-accent {
    color: var(--gov-accent);
}

/* --- Navbar (Compact & Tech) --- */
#header {
    background: rgba(15, 23, 42, 0.95);
    /* Always dark/slate */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

#header .logo h1 {
    color: white;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.nav-menu a {
    color: hsl(0, 0%, 100%) !important;
    /* Slate 300 */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu .active>a {
    color: #ffffff !important;
}

/* --- Command Center Hero --- */
.hero-wrapper {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-console {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
}

.console-interface {
    background: rgba(15, 23, 42, 0.6);
    /* Semi-transparent Slate */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: left;
}

.console-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.console-title {
    font-size: 3rem;
    line-height: 0.9;
    color: white;
    margin-bottom: 0.5rem;
}

.console-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    /* Slate 400 */
    font-weight: 400;
}

/* Integrated Search */
.console-search {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 1.5rem;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--gov-accent);
    background: rgba(0, 0, 0, 0.5);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gov-accent);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Quick Actions Grid (Inside Console) */
.console-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

.action-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gov-gold);
}

.action-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* Alert Ticker (Integrated) */
.console-ticker {
    margin-top: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    /* Red Tint */
    border-left: 3px solid var(--gov-red);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Custom Form Dropdowns --- */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-dropdown-toggle {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.custom-dropdown-toggle:hover {
    border-color: var(--gov-accent, #0088cc);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.custom-dropdown-toggle:focus,
.custom-dropdown-toggle.active {
    outline: none;
    border-color: var(--gov-accent, #0088cc);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.2);
}

.custom-dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6c757d;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.custom-dropdown-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white !important;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 136, 204, 0.3) transparent;
}

.custom-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 136, 204, 0.3);
    border-radius: 2px;
}

.custom-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    color: #1a1a2e !important;
    background: white !important;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover {
    background: rgba(0, 136, 204, 0.1);
    color: var(--gov-accent, #0088cc);
    padding-left: 1.5rem;
}

.custom-dropdown-item.selected {
    background: var(--gov-accent, #0088cc);
    color: white;
    font-weight: 600;
}

.custom-dropdown-item.selected::after {
    content: '✓';
    margin-left: auto;
    font-weight: bold;
}

/* Custom Dropdown Variants */
.custom-dropdown.primary .custom-dropdown-toggle {
    background: var(--gov-blue);
    color: white;
    border-color: var(--gov-blue);
}

.custom-dropdown.primary .custom-dropdown-toggle:hover {
    background: var(--gov-accent);
    border-color: var(--gov-accent);
}

.custom-dropdown.primary .custom-dropdown-item.selected {
    background: var(--gov-blue);
}

.custom-dropdown.outline .custom-dropdown-toggle {
    background: transparent;
    border-color: var(--gov-accent);
    color: var(--gov-accent);
}

.custom-dropdown.outline .custom-dropdown-toggle:hover {
    background: rgba(0, 136, 204, 0.1);
}

/* Custom Dropdown Sizes */
.custom-dropdown.small .custom-dropdown-toggle {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.custom-dropdown.large .custom-dropdown-toggle {
    padding: 1rem 2.5rem 1rem 1.25rem;
    font-size: 1.125rem;
    min-height: 52px;
}

/* Custom Dropdown States */
.custom-dropdown.disabled .custom-dropdown-toggle {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-dropdown.disabled .custom-dropdown-toggle:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.custom-dropdown.error .custom-dropdown-toggle {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.custom-dropdown.success .custom-dropdown-toggle {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Searchable Dropdown */
.custom-dropdown.searchable .custom-dropdown-menu {
    padding: 0;
}

.custom-dropdown-search {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.custom-dropdown-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    outline: none;
}

.custom-dropdown-search input:focus {
    border-color: var(--gov-accent);
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.custom-dropdown.no-results {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
    .custom-dropdown-menu {
        max-height: 150px;
        border-radius: 12px;
    }
    
    .custom-dropdown-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .custom-dropdown-toggle {
        min-height: 44px;
        padding: 0.875rem 2.5rem 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .custom-dropdown.small .custom-dropdown-toggle {
        min-height: 36px;
        padding: 0.625rem 2rem 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .custom-dropdown.large .custom-dropdown-toggle {
        min-height: 52px;
        padding: 1.125rem 2.5rem 1.125rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-title-massive {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle-pill {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-search-container {
        max-width: 95% !important;
    }
    
    .hero-search-input {
        font-size: 0.9rem !important;
        padding: 0.875rem 1rem !important;
        min-height: 44px !important;
    }
    
    .hero-search-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }
    
    /* Emergency Strip Mobile */
    .emergency-strip {
        padding: 1rem 0 !important;
    }
    
    .emergency-strip h5 {
        font-size: 0.9rem !important;
    }
    
    .emergency-strip small {
        font-size: 0.75rem !important;
    }
    
    .emergency-strip a {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Form Elements Mobile */
    .form-input-modern {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
    }
    
    .btn-form-primary {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
        min-height: 44px !important;
    }
    
    .btn-form-secondary {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
        min-height: 44px !important;
    }
    
    /* Card Elements Mobile */
    .service-card {
        padding: 1.5rem !important;
    }
    
    .service-card h3 {
        font-size: 1.25rem !important;
    }
    
    .service-card p {
        font-size: 0.9rem !important;
    }
    
    /* Navigation Mobile */
    .nav-menu a {
        font-size: 0.7rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    h5 {
        font-size: 1.1rem !important;
    }
    
    h6 {
        font-size: 1rem !important;
    }
    
    p, .lead {
        font-size: 0.9rem !important;
    }
    
    /* Button Sizes Mobile */
    .btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.25rem !important;
        min-height: 44px !important;
    }
    
    .btn-sm {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 36px !important;
    }
    
    .btn-lg {
        font-size: 1rem !important;
        padding: 1rem 1.75rem !important;
        min-height: 52px !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Hero Section Extra Small */
    .hero-title-massive {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle-pill {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .hero-search-input {
        font-size: 0.85rem !important;
        padding: 0.75rem 0.875rem !important;
        min-height: 40px !important;
    }
    
    .hero-search-btn {
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 0.85rem !important;
    }
    
    /* Emergency Strip Extra Small */
    .emergency-strip {
        padding: 0.75rem 0 !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .emergency-strip .d-flex {
        justify-content: center !important;
    }
    
    .emergency-strip h5 {
        font-size: 0.85rem !important;
        text-align: center !important;
    }
    
    .emergency-strip small {
        font-size: 0.7rem !important;
        text-align: center !important;
    }
    
    .emergency-strip a {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        min-height: 32px !important;
    }
    
    /* Form Elements Extra Small */
    .form-input-modern {
        font-size: 0.85rem !important;
        padding: 0.625rem 0.875rem !important;
        min-height: 40px !important;
    }
    
    .btn-form-primary {
        font-size: 0.85rem !important;
        padding: 0.625rem 1.25rem !important;
        min-height: 40px !important;
    }
    
    .btn-form-secondary {
        font-size: 0.85rem !important;
        padding: 0.625rem 1.25rem !important;
        min-height: 40px !important;
    }
    
    /* Custom Dropdown Extra Small */
    .custom-dropdown-toggle {
        min-height: 40px !important;
        padding: 0.625rem 2rem 0.625rem 0.875rem !important;
        font-size: 0.85rem !important;
    }
    
    .custom-dropdown-item {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.85rem !important;
    }
    
    .custom-dropdown.small .custom-dropdown-toggle {
        min-height: 32px !important;
        padding: 0.5rem 1.75rem 0.5rem 0.625rem !important;
        font-size: 0.75rem !important;
    }
    
    .custom-dropdown.large .custom-dropdown-toggle {
        min-height: 48px !important;
        padding: 1rem 2.25rem 1rem 1.125rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Typography Extra Small */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.375rem !important;
    }
    
    h4 {
        font-size: 1.125rem !important;
    }
    
    h5 {
        font-size: 1rem !important;
    }
    
    h6 {
        font-size: 0.9rem !important;
    }
    
    p, .lead {
        font-size: 0.85rem !important;
    }
    
    /* Button Sizes Extra Small */
    .btn {
        font-size: 0.85rem !important;
        padding: 0.625rem 1rem !important;
        min-height: 40px !important;
    }
    
    .btn-sm {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.875rem !important;
        min-height: 32px !important;
    }
    
    .btn-lg {
        font-size: 0.95rem !important;
        padding: 0.875rem 1.5rem !important;
        min-height: 48px !important;
    }
    
    /* Mobile Navigation Extra Small */
    .mobile-nav-toggle {
        width: 40px !important;
        height: 40px !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
    }
    
    .burger-icon {
        width: 20px !important;
        height: 16px !important;
    }
    
    .burger-line {
        height: 2.5px !important;
    }
    
    .mobile-nav-toggle.active .burger-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg) !important;
    }
    
    .mobile-nav-toggle.active .burger-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg) !important;
    }
}

/* Ultra Small Mobile Devices */
@media (max-width: 360px) {
    .hero-title-massive {
        font-size: 1.75rem !important;
    }
    
    .hero-search-container {
        max-width: 98% !important;
    }
    
    .hero-search-input {
        font-size: 0.8rem !important;
        padding: 0.625rem 0.75rem !important;
        min-height: 36px !important;
    }
    
    .hero-search-btn {
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 0.8rem !important;
    }
    
    .form-input-modern {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 36px !important;
    }
    
    .btn-form-primary, .btn-form-secondary {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 36px !important;
    }
    
    .custom-dropdown-toggle {
        min-height: 36px !important;
        padding: 0.5rem 1.75rem 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .custom-dropdown-item {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Animation for dropdown opening */
@keyframes dropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-dropdown-menu.show {
    animation: dropdownOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Mobile Navigation with Custom Burger Button --- */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--gov-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 10001 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover {
    background: var(--gov-accent);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.mobile-nav-toggle:active {
    transform: scale(0.95);
}

/* Burger Button Animation */
.burger-icon {
    position: relative;
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-nav-toggle.active .burger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-nav-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-accent) 100%);
    z-index: 10000 !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-content {
    padding: 1.5rem;
}

.mobile-nav-section {
    margin-bottom: 2rem;
}

.mobile-nav-section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.mobile-nav-links a:hover::before {
    left: 0;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.mobile-nav-links a i {
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
}

.mobile-language-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-language-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Responsive */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-nav-menu {
        width: 90%;
        max-width: 320px;
    }
    
    .mobile-nav-toggle {
        width: 45px;
        height: 45px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .mobile-nav-header {
        padding: 1.5rem 1rem 0.75rem;
    }
    
    .mobile-nav-content {
        padding: 1rem;
    }
    
    .mobile-nav-links a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav-menu {
        width: 100%;
        max-width: none;
        right: -100%;
    }
    
    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .burger-icon {
        width: 20px;
        height: 16px;
    }
    
    .burger-line {
        height: 2.5px;
    }
    
    .mobile-nav-toggle.active .burger-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .burger-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}

/* --- Magazine Content Density --- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.75rem;
    margin: 0;
    color: var(--gov-blue);
}

.bento-grid-dense {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

.dense-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dense-card:hover {
    border-color: var(--gov-accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dense-card.featured {
    grid-column: span 2;
    background: var(--gov-blue);
    color: white;
    border: none;
}

.dense-card.featured .text-muted {
    color: #94a3b8 !important;
}

.dense-card.featured h3 {
    color: white;
}

/* Footer */
.mega-footer {
    background: var(--gov-blue);
    color: #cbd5e1;
    padding: 4rem 0;
    font-size: 0.9rem;
}

.footer-col h5 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--gov-gold);
}

@media (max-width: 768px) {
    .console-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid-dense {
        grid-template-columns: 1fr;
    }

    .dense-card.featured {
        grid-column: span 1;
    }

    .console-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tourism-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .tourism-card {
        max-width: 100%;
        height: 180px;
    }
}

/* --- Image Handling & Effects --- */

/* Global Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ratio-1x1 {
    aspect-ratio: 1 / 1;
}

.ratio-4x3 {
    aspect-ratio: 4 / 3;
}

.ratio-16x9 {
    aspect-ratio: 16 / 9;
}

/* Enhanced Leadership Photos */
.leadership-card .leader-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    filter: grayscale(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leadership-card:hover .leader-img {
    filter: grayscale(0%);
    transform: scale(1.05);
    border-color: var(--gov-gold);
}

/* Enhanced Tourism Cards */
.tourism-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.tourism-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    /* Fix for safari overflow */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 280px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.tourism-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.tourism-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.tourism-card:hover img {
    transform: scale(1.15);
}

.tourism-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
    z-index: 2;
}

.tourism-overlay h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tourism-overlay small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Partners Grayscale Fix */
.partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%) contrast(80%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%) contrast(100%);
    transform: translateY(-2px);
}

@font-face {
    font-family: 'Betonotes', sans-serif;
    src: url('../fonts/monograph/monograph-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Phase 6: Futuristic "Visionary" Hero --- */

.hero-visionary {
    position: relative;
    height: 95vh;
    /* Taller hero */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Much brighter visibility */
    color: #ffffff;
    /* Pure white for maximum contrast */
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.9), 0 4px 8px rgba(0, 0, 0, 0.7);
    /* Strong, sharp shadows for all areas */

    /* Overlay Effect - Much lighter */
    mix-blend-mode: normal;
    z-index: 2;
    margin-bottom: 2rem;
    position: relative;

    /* Optional: Stroke for definition */
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

/* Massive Layered Text */
.hero-title-massive {
    font-family: 'Betonotes', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    color: #ffffff;
    /* Pure white for maximum visibility */
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.95), 0 5px 12px rgba(0, 0, 0, 0.8);
    /* Very strong shadows for all lighting conditions */
    mix-blend-mode: normal;
    filter: brightness(1.2) contrast(1.1);
    /* Enhanced brightness and contrast */
}

.hero-subtitle-pill {
    background: rgba(0, 0, 0, 0.7);
    /* Darker background for maximum contrast */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    /* Brighter, thicker border */
    color: #ffffff;
    /* Pure white text for maximum visibility */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    display: inline-block;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    /* Strong shadow for readability */
    font-weight: 700;
    /* Bolder text */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* Add depth */
}

/* Hero subtitle text styling */
.hero-visionary .lead {
    color: #ffffff !important;
    /* Override text-white-50 with pure white */
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.9), 0 3px 6px rgba(0, 0, 0, 0.7);
    /* Strong shadows for visibility */
    font-weight: 600;
    /* Make it bolder */
    filter: brightness(1.1) contrast(1.1);
    /* Enhance visibility */
}

/* Hero Search Bar */
.hero-search-container {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-box {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.hero-search-input::placeholder {
    color: #666;
}

.hero-search-btn {
    background: var(--gov-accent);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.hero-search-btn:hover {
    background: #2563eb;
}

/* Hero Search Results Dropdown */
.hero-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-search-results.active {
    display: block;
}

.hero-search-results:empty {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:first-child {
    border-radius: 16px 16px 0 0;
}

.search-result-item:last-child {
    border-radius: 0 0 16px 16px;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    background: var(--gov-accent);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-icon i {
    font-size: 1rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 0.7rem;
    color: var(--gov-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    flex-shrink: 0;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: #666;
}

.search-no-results i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 8px;
    display: block;
}

/* Search Loading State */
.search-loading {
    padding: 24px;
    text-align: center;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gov-accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Search Results */
@media (max-width: 768px) {
    .hero-search-results {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px);
        max-height: 60vh;
        border-radius: 20px;
    }
}

/* Curved Bottom Interface */
.curved-dock-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 2rem 2rem 2rem;
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

.curved-dock {
    background: rgba(15, 23, 42, 0.8);
    /* Dark Slate Glass */
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    /* The Curve */
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
    max-width: 1400px;
    margin: 0 auto;
}

/* Pill Navigation Buttons */
.pill-nav-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.pill-nav-item:hover {
    background: white;
    color: var(--gov-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pill-nav-icon {
    font-size: 1.2rem;
}

/* Floating Abstract Shapes (Optional decoration) */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gov-accent);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gov-gold);
    bottom: 20%;
    right: -5%;
}

@media (max-width: 768px) {
    .hero-title-massive {
        font-size: 15vw;
    }

    .curved-dock {
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px 20px 0 0;
    }

    .pill-nav-item {
        width: 100%;
    }
}

/* --- Phase 8: Ultra-Modern Footer --- */

.modern-footer {
    background: #0f172a;
    /* Slate 900 */
    color: white;
    padding: 6rem 0 0 0;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.footer-watermark {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12vw;
    font-weight: 900;
    font-family: 'Palmas', serif;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-family: 'Betonotes', sans-serif;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.footer-column h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    /* Slate 400 */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gov-gold);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: #64748b;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    /* Emerald 500 */
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.floating-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gov-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.floating-fab:hover {
    transform: scale(1.1) rotate(10deg);
}

/* AI Chatbot Modal */
.chatbot-modal {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.chatbot-modal.active {
    display: flex;
}

.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--gov-accent), #2563eb);
    color: white;
    padding: 1.2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-details h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.status-indicator {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.status-indicator.online::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: var(--gov-accent);
    color: white;
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: #e2e8f0;
    color: #333;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.3rem;
    padding: 0 0.5rem;
}

.chatbot-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.5rem;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--gov-accent);
}

.chatbot-send {
    background: var(--gov-accent);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send:hover {
    background: #2563eb;
}

/* AI Chatbot Bubble */
.chatbot-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gov-accent), #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.chatbot-bubble:hover {
    transform: scale(1.1);
}

.bubble-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.bubble-content span {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Greeting Message */
.greeting-message {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.greeting-message.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.greeting-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.greeting-content {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.greeting-content i {
    color: var(--gov-gold);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.greeting-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 480px) {
    .chatbot-modal {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 80px;
        height: 60vh;
    }
    
    .chatbot-bubble {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .greeting-message {
        right: -10px;
        min-width: 200px;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-toggle span {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.language-switcher:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.language-option:hover {
    background-color: var(--gov-accent);
    color: white;
}

.language-option.active {
    background-color: var(--gov-accent);
    color: white;
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 12px 12px;
}

.flag {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0.5rem;
    }
    
    .language-toggle {
        padding: 0.4rem 0.8rem;
    }
    
    .language-toggle span {
        font-size: 0.7rem;
    }
    
    .language-menu {
        min-width: 130px;
    }
    
    .language-option {
        padding: 0.6rem 0.8rem;
    }
}

/* Enhanced Mobile UX */
@media (max-width: 768px) {
    /* Smooth Mobile Navigation */
    .navbar-mobile {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-mobile ul {
        padding: 2rem 0;
        max-height: 70vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }
    
    .navbar-mobile ul::-webkit-scrollbar {
        width: 4px;
    }
    
    .navbar-mobile ul::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar-mobile ul::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .navbar-mobile li {
        margin: 0.5rem 1rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-mobile li:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(4px);
    }
    
    .navbar-mobile a {
        padding: 1rem 1.5rem !important;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-mobile a:hover {
        color: #ffffff !important;
        background: rgba(0, 136, 204, 0.2);
        transform: translateX(4px);
    }
    
    .navbar-mobile .dropdown ul {
        margin: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0.5rem 0;
    }
    
    .navbar-mobile .dropdown ul li {
        margin: 0;
        border-radius: 0;
    }
    
    .navbar-mobile .dropdown ul a {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .navbar-mobile .dropdown ul a:hover {
        color: #ffffff !important;
        background: rgba(0, 136, 204, 0.3);
    }
    
    /* Mobile Menu Toggle */
    .mobile-nav-toggle {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    
    .mobile-nav-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .mobile-nav-toggle.active {
        background: var(--gov-accent);
        transform: rotate(90deg);
    }
    
    /* Mobile Header Improvements */
    #header {
        backdrop-filter: blur(20px);
        background: rgba(26, 26, 46, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile Language Switcher */
    .language-switcher {
        position: relative;
        margin-left: 0.5rem;
    }
    
    .language-toggle {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        transition: all 0.3s ease;
    }
    
    .language-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    /* Mobile Report Button */
    .btn-danger {
        padding: 0.6rem 1.2rem !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
    }
    
    .btn-danger:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-visionary {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title-massive {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle-pill {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .lead.text-white-50 {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-search-container {
        padding: 0 1rem;
    }
    
    .hero-search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-search-input {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 25px !important;
    }
    
    .hero-search-btn {
        width: 100%;
        padding: 1rem 2rem !important;
        border-radius: 25px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Emergency Strip Mobile */
    .emergency-strip {
        padding: 1rem 0;
        text-align: center;
    }
    
    .emergency-strip .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .emergency-strip .d-flex.gap-4 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }
    
    .emergency-strip a {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease !important;
    }
    
    .emergency-strip a:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px) !important;
    }
    
    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 2rem !important;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Services Grid Mobile */
    .bento-grid-dense {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .dense-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .dense-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    }
    
    .dense-card.featured {
        grid-column: 1 !important;
        padding: 2rem !important;
    }
    
    /* Leadership Card Mobile */
    .leadership-card {
        padding: 2rem !important;
        text-align: center;
        border-radius: 16px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .leadership-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    }
    
    .leader-img {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 1.5rem !important;
        border-radius: 50% !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* News Section Mobile */
    .news-scroll-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .news-sticky-col {
        order: 2 !important;
    }
    
    .news-scroll-content {
        order: 1 !important;
    }
    
    .news-img-stack {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding: 1rem 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 136, 204, 0.3) transparent;
    }
    
    .news-img-stack::-webkit-scrollbar {
        height: 4px;
    }
    
    .news-img-stack::-webkit-scrollbar-thumb {
        background: rgba(0, 136, 204, 0.3);
        border-radius: 2px;
    }
    
    .news-img {
        min-width: 200px;
        height: 120px !important;
        border-radius: 12px !important;
        object-fit: cover;
    }
    
    .news-block {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        margin-bottom: 1rem !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .news-block:hover {
        transform: translateX(4px) !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    }
    
    .news-headline {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .news-excerpt {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Development Tracker Mobile */
    .project-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .project-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Investment Gateway Mobile */
    .bg-dark.text-white.rounded-3 {
        padding: 2rem !important;
        border-radius: 20px !important;
        text-align: center;
    }
    
    .display-5 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .btn {
        width: 100% !important;
        padding: 1rem 2rem !important;
        border-radius: 25px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Tourism Grid Mobile */
    .tourism-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .tourism-card {
        border-radius: 16px !important;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .tourism-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
    }
    
    .tourism-card img {
        height: 200px !important;
        object-fit: cover;
    }
    
    .tourism-overlay {
        padding: 1.5rem !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent) !important;
    }
    
    /* Feedback Section Mobile */
    .bg-light.p-4 {
        padding: 2rem !important;
        border-radius: 16px !important;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .bg-light.p-4:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Footer Mobile */
    .modern-footer {
        padding: 3rem 0 2rem !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    .footer-brand {
        order: 1 !important;
    }
    
    .footer-column {
        order: 2 !important;
    }
    
    .footer-bottom-bar {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center;
        padding-top: 2rem !important;
    }
    
    .d-flex.gap-4 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Touch-Optimized Interactions & Animations */
@media (max-width: 768px) {
    /* Touch-Friendly Button Sizes */
    .btn, .hero-search-btn, .language-toggle, .mobile-nav-toggle {
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Smooth Touch Feedback */
    .btn:active, .hero-search-btn:active, 
    .language-toggle:active, .mobile-nav-toggle:active,
    .dense-card:active, .leadership-card:active,
    .project-card:active, .tourism-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Enhanced Card Interactions */
    .dense-card, .leadership-card, .project-card, 
    .tourism-card, .bg-light.p-4 {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 136, 204, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .dense-card::before, .leadership-card::before, 
    .project-card::before, .tourism-card::before,
    .bg-light.p-4::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
    }
    
    .dense-card:active::before, .leadership-card:active::before,
    .project-card:active::before, .tourism-card:active::before,
    .bg-light.p-4:active::before {
        width: 300px;
        height: 300px;
    }
    
    /* Smooth Scroll Behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Optimized Form Inputs */
    input, textarea, select {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px !important;
        touch-action: manipulation;
    }
    
    /* Enhanced Dropdown Animations */
    .navbar-mobile .dropdown ul {
        transform-origin: top;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: scaleY(0.8) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: scaleY(1) translateY(0);
        }
    }
    
    /* Language Switcher Touch Enhancement */
    .language-menu {
        transform-origin: top right;
        animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    /* Chatbot Mobile Optimizations */
    .chatbot-bubble {
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    }
    
    .chatbot-bubble:active {
        transform: scale(0.95) !important;
    }
    
    .chatbot-modal {
        width: calc(100vw - 2rem) !important;
        height: 70vh !important;
        bottom: 80px !important;
        right: 1rem !important;
        border-radius: 20px !important;
    }
    
    .chatbot-input {
        font-size: 16px !important;
        padding: 1rem !important;
        border-radius: 25px !important;
    }
    
    .chatbot-send {
        min-height: 44px !important;
        min-width: 44px !important;
        border-radius: 50% !important;
    }
    
    /* Tourism Modal Mobile */
    .tourism-modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem !important;
        border-radius: 20px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .tourism-modal-image-container img {
        border-radius: 20px 20px 0 0 !important;
        max-height: 40vh !important;
        object-fit: cover !important;
    }
    
    .tourism-modal-info {
        padding: 2rem !important;
    }
    
    .tourism-modal-close {
        top: 1rem !important;
        right: 1rem !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* Loading States */
    .btn.loading, .hero-search-btn.loading {
        position: relative;
        color: transparent !important;
        pointer-events: none;
    }
    
    .btn.loading::after, .hero-search-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top-color: currentColor;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Haptic Feedback Simulation */
    .btn:active, .hero-search-btn:active, 
    .mobile-nav-toggle:active, .language-toggle:active {
        animation: hapticPulse 0.1s ease;
    }
    
    @keyframes hapticPulse {
        0% { transform: scale(1); }
        50% { transform: scale(0.95); }
        100% { transform: scale(1); }
    }
    
    /* Improved Focus States */
    .btn:focus, .hero-search-btn:focus, 
    .language-toggle:focus, .mobile-nav-toggle:focus,
    input:focus, textarea:focus, select:focus {
        outline: 2px solid var(--gov-accent, #0088cc) !important;
        outline-offset: 2px !important;
    }
    
    /* Safe Area Support */
    @supports (padding: max(0px)) {
        .navbar-mobile {
            padding-top: max(1rem, env(safe-area-inset-top));
        }
        
        .modern-footer {
            padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }
        
        .chatbot-bubble {
            bottom: max(20px, env(safe-area-inset-bottom) + 20px);
        }
    }
    
    /* Reduced Motion Support */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}
/* Extra Small Mobile (320px and below) */
@media (max-width: 480px) {
    .hero-title-massive {
        font-size: 2.8rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .dense-card,
    .leadership-card,
    .project-card,
    .bg-light.p-4 {
        padding: 1.5rem !important;
    }
    
    .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .tourism-card img {
        height: 180px !important;
    }
    
    /* Enhanced Typography for Small Screens */
    body {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    p {
        margin-bottom: 1rem !important;
    }
    
    /* Improved Spacing */
    .container {
        padding: 0 1rem !important;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 3rem !important;
    }
    
    .g-5 {
        gap: 2rem !important;
    }
    
    .g-4 {
        gap: 1.5rem !important;
    }
    
    /* Enhanced Readability */
    .small {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Optimized Lists */
    ul, ol {
        padding-left: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    li {
        margin-bottom: 0.5rem !important;
        line-height: 1.5 !important;
    }
    
    /* Better Form Spacing */
    .form-check {
        margin-bottom: 1rem !important;
    }
    
    .form-check-label {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Enhanced Badge Styling */
    .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
    }
    
    /* Improved Progress Bars */
    .progress {
        height: 8px !important;
        border-radius: 4px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Better Card Content */
    .card-text, .text-muted {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Enhanced Links */
    a {
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    a:hover {
        text-decoration: underline !important;
    }
    
    /* Improved Quote Styling */
    blockquote {
        border-left: 4px solid var(--gov-accent) !important;
        padding-left: 1rem !important;
        margin: 1.5rem 0 !important;
        font-style: italic !important;
        color: #6c757d !important;
    }
    
    /* Better Table Styling */
    table {
        font-size: 0.875rem !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    th, td {
        padding: 0.75rem !important;
        text-align: left !important;
        border-bottom: 1px solid #dee2e6 !important;
    }
    
    /* Enhanced Code Blocks */
    code {
        background: #f8f9fa !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 4px !important;
        font-size: 0.875rem !important;
    }
    
    pre {
        background: #f8f9fa !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        overflow-x: auto !important;
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    /* Better Alert Styling */
    .alert {
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Enhanced Modal Typography */
    .modal-title {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-body {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Better Pagination */
    .pagination {
        margin-bottom: 2rem !important;
    }
    
    .page-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }
    
    /* Enhanced Breadcrumb */
    .breadcrumb {
        padding: 1rem 0 !important;
        margin-bottom: 2rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Better Tooltip Styling */
    .tooltip-inner {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
        border-radius: 8px !important;
    }
    
    /* Improved Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* Enhanced Accordion */
    .accordion-button {
        font-size: 1rem !important;
        font-weight: 600 !important;
        padding: 1rem !important;
        border-radius: 8px !important;
    }
    
    .accordion-body {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        padding: 1rem !important;
    }
    
    /* Better Tabs */
    .nav-tabs .nav-link {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 8px 8px 0 0 !important;
    }
    
    .tab-content {
        padding: 1.5rem !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Enhanced Pills */
    .nav-pills .nav-link {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 25px !important;
    }
    
    /* Better List Groups */
    .list-group-item {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Enhanced Cards */
    .card {
        border-radius: 16px !important;
        overflow: hidden !important;
        margin-bottom: 2rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card-header {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        padding: 1rem 1.5rem !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Better Jumbotron */
    .jumbotron {
        padding: 2rem 1.5rem !important;
        border-radius: 16px !important;
        text-align: center !important;
    }
    
    .jumbotron h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .jumbotron p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Enhanced Media Objects */
    .media {
        margin-bottom: 1.5rem !important;
    }
    
    .media-body {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Better Figures */
    .figure {
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .figure-caption {
        font-size: 0.875rem !important;
        color: #6c757d !important;
        margin-top: 0.5rem !important;
    }
    
    /* Enhanced Wells */
    .well {
        padding: 1.5rem !important;
        border-radius: 12px !important;
        background: #f8f9fa !important;
        margin-bottom: 2rem !important;
    }
    
    /* Better Thumbnails */
    .thumbnail {
        padding: 0.5rem !important;
        border-radius: 8px !important;
        border: 1px solid #dee2e6 !important;
        margin-bottom: 1rem !important;
    }
    
    .thumbnail img {
        border-radius: 4px !important;
    }
    
    /* Enhanced Close Buttons */
    .close {
        font-size: 1.5rem !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        color: #000 !important;
        text-shadow: none !important;
        opacity: 0.5 !important;
    }
    
    .close:hover {
        opacity: 0.75 !important;
    }
}
.tourism-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.tourism-modal.active {
    display: flex;
}

.tourism-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.tourism-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    height: 600px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tourism-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.tourism-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.tourism-modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

.tourism-modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tourism-modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8), transparent);
    color: white;
    padding: 2rem;
    text-align: center;
}

.tourism-modal-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gov-gold);
}

.tourism-modal-info p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .tourism-modal-content {
        flex-direction: column;
        width: 95vw;
        height: 80vh;
    }
    
    .tourism-modal-image-container {
        height: 60%;
    }
    
    .tourism-modal-info {
        position: relative;
        background: var(--gov-blue);
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Phase 9: Dynamic News Scroll --- */

.news-scroll-wrapper {
    background: #fff;
    padding: 6rem 0;
    position: relative;
}

.news-scroll-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* Force side-by-side */
}

/* Sticky Image Column */
.news-sticky-col {
    width: calc(50% - 2rem);
    /* Adjust for gap */
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    /* Offset from top */
    height: 60vh;
    /* Taller image area */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    order: 1;
    /* Keeping Image on Left as per HTML */
}

.news-img-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.15);
}

.news-img.active {
    opacity: 1;
    transform: scale(1);
}

/* Scrolling Text Column */
.news-scroll-content {
    width: calc(50% - 2rem);
    /* Adjust for gap */
    padding-bottom: 20vh;
    padding-top: 5vh;
    /* Align first item */
    order: 2;
}

.news-block {
    min-height: 80vh;
    /* Each block takes up almost full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 0.3;
    transition: opacity 0.5s;
    border-left: 3px solid #e2e8f0;
    margin-left: 2rem;
}

.news-block.active {
    opacity: 1;
    border-color: var(--gov-blue);
}

.news-date {
    font-size: 0.9rem;
    color: var(--gov-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.news-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gov-slate);
}

.news-excerpt {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Logo Sizing Fix */
.navbar-brand img,
.logo-img {
    height: 70px !important;
    /* Force larger size */
    width: auto;
    transition: all 0.3s ease;
}

.footer-brand img {
    height: 50px !important;
    width: auto !important;
    max-width: 100%;
}

@media (max-width: 992px) {
    .news-scroll-container {
        flex-direction: column-reverse;
    }

    .news-sticky-col {
        position: relative;
        width: 100%;
        height: 300px;
        top: 0;
        margin-bottom: 2rem;
    }

    .news-scroll-content {
        width: 100%;
    }

    .news-block {
        min-height: auto;
        margin-bottom: 4rem;
        padding-left: 0;
        border-left: none;
        opacity: 1;
    }
}

/* --- Phase 10: Site-Wide Modernization (Internal Pages) --- */

.internal-hero {
    position: relative;
    height: 35vh;
    min-height: 250px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
    background: #0f172a;
    text-align: center;
}

.internal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(10px) brightness(0.7);
    transform: scale(1.1);
}

.internal-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.internal-hero-title {
    font-family: 'Betonotes', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.modern-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.modern-breadcrumb a:hover {
    opacity: 1;
}

.modern-breadcrumb .separator {
    color: #ef4444;
    /* Neon Red accent */
    font-weight: bold;
}

/* Internal Content Sections */
.bg-slate-dark {
    background-color: #0f172a !important;
    color: rgba(255, 255, 255, 0.8);
}

.glass-card-modern {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    margin-top: -60px;
    /* Overlap with hero */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.glass-card-modern p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.glass-card-modern p:last-child {
    margin-bottom: 0;
}

/* Overlap container */
.overlap-container {
    padding-bottom: 6rem;
}

/* Profile Cards */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-card-featured {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.3);
}

.profile-card-featured:hover {
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 60, 115, 0.3);
}

.profile-card-featured .profile-avatar {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b7a 100%);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

/* Profile Image for Real Photos */
.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 60, 115, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 60, 115, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-card-featured .profile-image {
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.3);
}

.profile-card-featured:hover .profile-image {
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 0.5);
}

/* Click hint for profile cards */
.profile-click-hint {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.profile-card:hover .profile-click-hint {
    color: rgba(255, 255, 255, 0.8);
}

.profile-card[role="button"] {
    cursor: pointer;
}

/* Profile Modal Styles */
.profile-modal .modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.profile-modal .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.modal-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 60, 115, 0.4);
}

.modal-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.modal-profile-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-profile-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-profile-bio {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.modal-profile-contact {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-profile-contact .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.profile-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.profile-badge {
    display: inline-block;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Phase 10: Form & Interactive Elements --- */
.glass-card-modern .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.glass-card-modern .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ef4444;
    /* Neon Red */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
    color: white;
}

.glass-card-modern label {
    color: rgba(255, 255, 255, 0.6);
}

.btn-visionary {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-visionary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* --- Phase 11: Downloads Page --- */

/* Downloads Hero */
#downloads-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 250px;
    display: flex;
    align-items: center;
}

.downloads-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.downloads-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Downloads Toolbar */
.downloads-toolbar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.downloads-search {
    position: relative;
    display: flex;
    align-items: center;
}

.downloads-search i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
}

.downloads-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.downloads-search input:focus {
    outline: none;
    border-color: var(--gov-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 82, 165, 0.1);
}

.downloads-filters {
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--gov-accent);
    color: var(--gov-accent);
}

.filter-btn.active {
    background: var(--gov-accent);
    border-color: var(--gov-accent);
    color: white;
}

/* Downloads Stats */
.downloads-stats {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gov-accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Download Card */
.download-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon i {
    font-size: 1.5rem;
    color: white;
}

.download-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gov-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.download-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.download-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.download-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.meta-item {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-item i {
    font-size: 0.75rem;
}

.download-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-download {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--gov-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.3);
    color: white;
}

.btn-preview {
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: #e2e8f0;
    color: #475569;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-results h4 {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Preview Modal */
#documentPreviewModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

#documentPreviewModal .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

#documentPreviewModal .modal-title {
    font-weight: 600;
    color: #1e293b;
}

#documentPreviewModal .modal-body {
    padding: 0;
}

.preview-container {
    width: 100%;
    height: 500px;
    background: #f8fafc;
}

.preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#documentPreviewModal .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

/* Ensure all Bootstrap modals appear in front */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

.modal-dialog {
    z-index: 100000 !important;
}

/* Force modal content to front */
.modal-content {
    z-index: 100001 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .downloads-title {
        font-size: 1.75rem;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .btn-preview {
        width: 100%;
    }
}

/* --- Phase 12: Services Page --- */

/* Services Hero */
#services-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.services-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.services-search-hero {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-container i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 2;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-container input::placeholder {
    color: #94a3b8;
}

/* Services Categories */
#services-categories {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-tab:hover {
    border-color: var(--gov-accent);
    color: var(--gov-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.15);
}

.category-tab.active {
    background: var(--gov-accent);
    border-color: var(--gov-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 165, 0.3);
}

.category-tab i {
    font-size: 1rem;
}

/* Services Stats */
.services-stats {
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gov-accent) 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gov-accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gov-accent) 0%, #0056b3 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gov-accent) 0%, #0056b3 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
}

.service-category {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gov-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0369a1;
}

.feature-tag i {
    font-size: 0.65rem;
}

.service-action {
    margin-top: auto;
}

.btn-service {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--gov-accent) 0%, #030f1c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-service:hover {
    background: linear-gradient(135deg, #003d7a 0%, #002d5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 165, 0.3);
    color: white;
}

/* Service Request Modal */
#serviceRequestModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

#serviceRequestModal .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px 20px 0 0;
}

#serviceRequestModal .modal-title {
    font-weight: 600;
    color: #1e293b;
}

#serviceRequestModal .modal-body {
    padding: 2rem;
}

#serviceRequestModal .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .services-title {
        font-size: 2rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .categories-tabs {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .categories-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
    }
    
    .category-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .service-features {
        gap: 0.35rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}
