/**
 * POLICE CONNECT - Premium Light-Mode Design System
 * Strict compliance with government accessibility and readability guidelines.
 */

:root {
    --base-font-size: 16px;
    --font-sans: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Palette - Police Navy & Government Civic */
    --color-primary-900: #081a30;
    --color-primary-800: #0b2545;
    --color-primary-700: #13315c;
    --color-primary-600: #134074;
    --color-primary-500: #1d4ed8;

    --color-accent-600: #b45309;
    --color-accent-500: #d97706;
    --color-accent-100: #fef3c7;

    --color-surface-bg: #f8fafc;
    --color-surface-card: #ffffff;
    --color-surface-subtle: #f1f5f9;
    --color-surface-alt: #eef2f6;

    --color-text-main: #0f172a;
    --color-text-body: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;

    --color-border: #e2e8f0;
    --color-border-subtle: #cbd5e1;

    --color-success: #059669;
    --color-success-bg: #ecfdf5;
    --color-danger: #dc2626;
    --color-danger-bg: #fef2f2;
    --color-warning: #d97706;
    --color-warning-bg: #fffbeb;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

    --container-max: 1240px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* High Contrast Accessibility Mode */
[data-contrast="high"] {
    --color-surface-bg: #ffffff;
    --color-surface-card: #ffffff;
    --color-surface-subtle: #f8fafc;
    --color-text-main: #000000;
    --color-text-body: #111111;
    --color-text-muted: #222222;
    --color-primary-800: #000000;
    --color-primary-700: #001f3f;
    --color-border: #000000;
    --color-border-subtle: #000000;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-surface-bg);
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--color-primary-600);
    text-decoration: none !important;
    transition: var(--transition);
}

a:hover,
a:focus,
a:active {
    color: var(--color-primary-800);
    text-decoration: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent-500);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 20px;
    background: var(--color-primary-900);
    color: #ffffff;
    padding: 10px 18px;
    z-index: 9999;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Emergency & Accessibility Strip (Structured 2-Tier Layout) */
.top-emergency-bar {
    color: #ffffff;
    font-size: 0.82rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.top-bar-emergency-tier {
    background-color: #061527;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
    overflow: hidden;
}

.top-bar-emergency-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.emergency-label-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(253, 230, 138, 0.25);
    z-index: 2;
}

.emergency-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: emergencyPulse 1.5s infinite;
}

@keyframes emergencyPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.emergency-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: #fde68a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Continuous Marquee Ticker Container (Auto-Scroll + Manual Swipe / Drag) */
.emergency-marquee-wrap {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    display: flex;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.emergency-marquee-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.emergency-marquee-wrap.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.emergency-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: scroll-position;
}

.emergency-badges-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
    flex-shrink: 0;
}

.emergency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    color: #ffffff;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.emergency-pill:hover,
.emergency-pill:focus,
.emergency-pill:active {
    text-decoration: none !important;
    outline: none !important;
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.emergency-pill strong {
    font-weight: 800;
    letter-spacing: 0.03em;
}

.emergency-pill.police {
    background: #dc2626;
    border: 1px solid #ef4444;
}

.emergency-pill.cyber {
    background: #d97706;
    border: 1px solid #f59e0b;
}

.emergency-pill.women {
    background: #6366f1;
    border: 1px solid #818cf8;
}

.emergency-pill.child {
    background: #0d9488;
    border: 1px solid #14b8a6;
}

.emergency-pill.senior {
    background: #0284c7;
    border: 1px solid #38bdf8;
}

.emergency-pill.whatsapp {
    background: #16a34a;
    border: 1px solid #22c55e;
}

.top-bar-utility-tier {
    background-color: var(--color-primary-900);
    border-bottom: 2px solid var(--color-accent-500);
    padding: 5px 0;
}

.top-bar-utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accessibility-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.access-tools-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 700;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tool-btn:hover {
    background: #ffffff;
    color: var(--color-primary-900);
}

.top-social-cluster {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 14px;
}

.top-social-item {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.top-social-item:hover,
.top-social-item:active,
.top-social-item:focus,
.top-social-item.is-touched {
    transform: translateY(-2px) scale(1.15);
    text-decoration: none;
}

.top-social-item.top-social-x:hover,
.top-social-item.top-social-x:active,
.top-social-item.top-social-x.is-touched {
    color: #ffffff !important;
}

.top-social-item.top-social-insta:hover,
.top-social-item.top-social-insta:active,
.top-social-item.top-social-insta.is-touched {
    color: #e1306c !important;
}

.top-social-item.top-social-fb:hover,
.top-social-item.top-social-fb:active,
.top-social-item.top-social-fb.is-touched {
    color: #1877f2 !important;
}

.top-social-item.top-social-wa:hover,
.top-social-item.top-social-wa:active,
.top-social-item.top-social-wa.is-touched {
    color: #25d366 !important;
}

.top-social-item.top-social-yt:hover,
.top-social-item.top-social-yt:active,
.top-social-item.top-social-yt.is-touched {
    color: #ff0000 !important;
}

@media (max-width: 768px) {
    .top-social-cluster {
        display: none;
    }
}

/* --- Grand Commissionerate Brand Banner (Full Space Utilization) --- */
.site-brand-banner {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}

.site-brand-banner .container,
.site-header .container,
.top-emergency-bar .container {
    max-width: 100% !important;
    padding-left: clamp(20px, 3.2vw, 48px);
    padding-right: clamp(20px, 3.2vw, 48px);
}

.brand-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.brand-identity-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-identity-link:hover {
    text-decoration: none;
}

.brand-emblems-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-emblem-ashoka {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-emblem-seal {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-divider-line {
    width: 2px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
    flex-shrink: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-marathi-name {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--color-primary-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin: 0;
}

.brand-english-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary-700);
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 1px;
}

.brand-motto-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    white-space: nowrap;
}

.brand-motto-text {
    color: var(--color-accent-600);
    font-weight: 800;
}

.brand-motto-dot {
    color: #94a3b8;
}

.brand-govt-text {
    color: #64748b;
}

/* Right Side Civic & Control Room Tools */
.brand-banner-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.control-room-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent-500);
    border-radius: var(--radius-md);
    padding: 7px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cr-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-primary-900);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.cr-helplines-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
}

.cr-help-item {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
}

.cr-help-item:hover {
    text-decoration: none;
}

.cr-help-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

.cr-help-val.red {
    font-size: 0.94rem;
    font-weight: 900;
    color: #dc2626;
}

.cr-help-val.amber {
    font-size: 0.94rem;
    font-weight: 900;
    color: #d97706;
}

.cr-div {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
}

.brand-whatsapp-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.brand-whatsapp-badge:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
    text-decoration: none;
}

.wa-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.wa-title {
    font-size: 0.66rem;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.wa-num {
    font-size: 0.92rem;
    font-weight: 900;
    color: #15803d;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* Header & Navigation */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
}

.mobile-sticky-brand {
    display: none;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-primary-900);
}

.mobile-sticky-seal {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.mobile-sticky-title {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto; /* Pushes the menu to the right side where space was empty */
}

.nav-link {
    color: var(--color-primary-900);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-item:hover > .nav-dropdown-trigger {
    color: var(--color-primary-700);
    background-color: #f1f5f9;
    text-decoration: none;
}

/* Navigation Mega Menu Dropdown */
.nav-dropdown-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-chevron-icon {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-dropdown-item:hover .dropdown-chevron-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu-panel {
    position: absolute;
    top: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px -10px rgba(8, 26, 48, 0.22), 0 0 0 1px rgba(8, 26, 48, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
    z-index: 1200;
    padding: 22px 24px;
}

.mega-menu-about {
    width: 820px;
    max-width: 95vw;
}

.mega-menu-medium {
    width: 580px;
    max-width: 92vw;
}

.mega-menu-compact {
    width: 360px;
    max-width: 90vw;
}

/* Dropdown Alignment when Navbar is on the right */
.dropdown-about .mega-menu-panel {
    left: auto;
    right: -360px;
    transform: translateY(10px);
}

.dropdown-report .mega-menu-panel {
    left: auto;
    right: -220px;
    transform: translateY(10px);
}

.dropdown-citizen .mega-menu-panel {
    left: auto;
    right: -120px;
    transform: translateY(10px);
}

.dropdown-police .mega-menu-panel {
    left: auto;
    right: -30px;
    transform: translateY(10px);
}

.dropdown-dashboard .mega-menu-panel {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.nav-dropdown-item:hover .mega-menu-panel,
.nav-dropdown-item:focus-within .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(4px);
}

@media (max-width: 1200px) and (min-width: 993px) {
    .mega-menu-about {
        width: 720px;
    }
    .dropdown-about .mega-menu-panel {
        right: -300px;
    }
    .dropdown-report .mega-menu-panel {
        right: -180px;
    }
    .dropdown-citizen .mega-menu-panel {
        right: -90px;
    }
}

.mega-menu-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mega-menu-compact .mega-menu-container {
    display: block;
}

.mega-menu-col {
    display: flex;
    flex-direction: column;
}

.mega-menu-header {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.mega-col-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.mega-menu-list li a:hover {
    background-color: var(--color-surface-subtle);
    color: var(--color-primary-600);
    transform: translateX(3px);
}

.chevron-prefix {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary-500);
    line-height: 1;
    display: inline-block;
    width: 12px;
}

.dot-prefix {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1;
    display: inline-block;
    width: 12px;
}

.mega-menu-list li a:hover .dot-prefix {
    color: var(--color-primary-500);
}

.unit-link-with-badge {
    justify-content: flex-start;
}

.unit-link-with-badge span:nth-child(2) {
    margin-right: auto;
}

.badge-photos {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid #e2e8f0;
    margin-left: 8px;
}

.mega-footer-link {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border);
}

.lang-selector-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.lang-selector {
    display: flex;
    align-items: center;
    background: var(--color-surface-subtle);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.lang-btn {
    padding: 3px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text-body);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--color-primary-800);
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   Searchable Language Picker Dropdown (Material UI 2.0 Style)
   ========================================================================== */
.searchable-lang-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-picker-btn {
    background: #ffffff;
    color: var(--color-primary-900);
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    height: 30px;
    min-width: 225px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lang-picker-btn:hover {
    border-color: var(--color-primary-600);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.lang-picker-btn:focus-visible {
    outline: 2px solid var(--color-primary-600);
    outline-offset: 2px;
}

.searchable-lang-picker.open .lang-picker-btn {
    border-color: var(--color-primary-700);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.lang-picker-globe {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.lang-picker-selected {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-picker-arrow {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.searchable-lang-picker.open .lang-picker-arrow {
    transform: rotate(180deg);
    color: var(--color-primary-700);
}

.lang-picker-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 330px;
    max-width: calc(100vw - 20px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.22), 0 4px 12px -2px rgba(15, 23, 42, 0.1);
    z-index: 99999;
    display: none;
    overflow: hidden;
    animation: langDropdownSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.searchable-lang-picker.open .lang-picker-dropdown {
    display: block;
}

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

.lang-search-header {
    padding: 8px 10px 6px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.lang-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-search-icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
}

.lang-search-input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 28px 6px 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.lang-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.lang-search-clear:hover {
    background: #fee2e2;
    color: #ef4444;
}

.lang-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.69rem;
    color: #64748b;
    margin-top: 5px;
    padding: 0 2px;
}

.lang-search-hint {
    font-style: italic;
    color: #64748b;
}

.lang-total-count {
    font-weight: 700;
    color: var(--color-primary-700);
}

.lang-options-list {
    max-height: 290px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
    padding: 4px 0;
}

.lang-options-list::-webkit-scrollbar {
    width: 6px;
}

.lang-options-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.lang-options-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.lang-optgroup {
    padding-bottom: 2px;
}

.lang-optgroup-title {
    padding: 6px 12px 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    border-left: 3px solid transparent;
    user-select: none;
}

.lang-option:hover,
.lang-option:focus,
.lang-option.focused {
    background: #eff6ff;
    color: #1d4ed8;
    border-left-color: #2563eb;
    outline: none;
}

.lang-option.selected {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    border-left-color: #0284c7;
}

.lang-option-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-option-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    margin-left: 8px;
}

.lang-option.selected .lang-option-badge {
    background: #bae6fd;
    color: #0369a1;
}

.lang-no-results {
    padding: 22px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.no-res-icon {
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.no-res-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.no-res-sub {
    font-size: 0.74rem;
    color: #94a3b8;
}

/* Mobile specific styling for drawer */
.searchable-lang-picker.mobile-version {
    width: 100%;
    display: block;
}

.searchable-lang-picker.mobile-version .lang-picker-dropdown {
    width: 100%;
}

/* Suppress Google Translate Top Toolbar Frame & Keep Site Clean */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-primary-800);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    background: #ffffff;
    border-bottom: 2px solid var(--color-primary-800);
    padding: 16px 20px;
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li > .nav-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.98rem;
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary-900);
}

/* Mobile Accordion Nav Groups */
.mobile-nav-group {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4px;
}

.mobile-nav-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--color-primary-900);
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
    user-select: none;
}

.mobile-nav-heading::-webkit-details-marker {
    display: none;
}

.mobile-nav-heading::after {
    content: "▾";
    font-size: 1.1rem;
    color: var(--color-primary-600);
    transition: transform 0.2s ease;
}

.mobile-nav-group[open] > .mobile-nav-heading::after {
    transform: rotate(180deg);
}

.mobile-nav-heading:hover,
.mobile-nav-group[open] > .mobile-nav-heading {
    background-color: var(--color-surface-subtle);
    color: var(--color-primary-700);
}

.mobile-sub-list {
    list-style: none;
    padding: 4px 0 8px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-sub-list li a {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-sub-list li a:hover {
    background-color: var(--color-surface-subtle);
    color: var(--color-primary-600);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0 28px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: var(--color-primary-700);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid #bfdbfe;
}

.hero-title {
    font-size: 2.05rem;
    font-weight: 800;
    color: var(--color-primary-900);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 0.98rem;
    color: var(--color-text-body);
    margin-bottom: 18px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   MATERIAL UI 2.0 / MATERIAL DESIGN 3 BUTTON & TAB SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.025em;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.35;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.98);
}

/* Material Contained Primary Button (#1976d2) */
.btn-primary {
    background-color: #1976d2;
    color: #ffffff;
    box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
    border-color: #1976d2;
}

.btn-primary:hover {
    background-color: #1565c0;
    color: #ffffff;
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Material Outlined Secondary Button */
.btn-secondary,
.btn-outline {
    background-color: #ffffff;
    color: #1976d2;
    border: 1.5px solid rgba(25, 118, 210, 0.5);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-secondary:hover,
.btn-outline:hover {
    background-color: rgba(25, 118, 210, 0.05);
    border-color: #1976d2;
    color: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.15);
    text-decoration: none;
}

/* Material Red / Emergency Button (#d32f2f) */
.btn-emergency,
.btn-danger {
    background-color: #d32f2f;
    color: #ffffff;
    box-shadow: 0 3px 5px -1px rgba(211, 47, 47, 0.35), 0 4px 8px 0 rgba(211, 47, 47, 0.2);
    border-color: #d32f2f;
}

.btn-emergency:hover,
.btn-danger:hover {
    background-color: #c62828;
    color: #ffffff;
    box-shadow: 0 5px 8px -1px rgba(211, 47, 47, 0.45), 0 8px 14px 1px rgba(211, 47, 47, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Material Amber / Cyber Warning Button (#ed6c02) */
.btn-accent,
.btn-warning {
    background-color: #ed6c02;
    color: #ffffff;
    box-shadow: 0 3px 5px -1px rgba(237, 108, 2, 0.35);
    border-color: #ed6c02;
}

.btn-accent:hover,
.btn-warning:hover {
    background-color: #e65100;
    color: #ffffff;
    box-shadow: 0 5px 8px -1px rgba(237, 108, 2, 0.45);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Material Success Button (#2e7d32) */
.btn-success {
    background-color: #2e7d32;
    color: #ffffff;
    box-shadow: 0 3px 5px -1px rgba(46, 125, 50, 0.35);
    border-color: #2e7d32;
}

.btn-success:hover {
    background-color: #1b5e20;
    color: #ffffff;
    box-shadow: 0 5px 8px -1px rgba(46, 125, 50, 0.45);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Material Button Sizes */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
}

/* Material UI 2.0 / M3 Segmented Tab Bar */
.mui-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mui-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
}

.mui-tab-btn:hover {
    color: #1976d2;
    background: rgba(255, 255, 255, 0.75);
}

.mui-tab-btn.active {
    background: #1976d2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.35);
    transform: translateY(-1px);
}

.mui-tab-btn .tab-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.mui-tab-content {
    display: none;
    animation: muiFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mui-tab-content.active {
    display: block;
}

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

@media (max-width: 820px) {
    .mui-tabs-nav {
        border-radius: var(--radius-md);
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        padding: 6px;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .mui-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .mui-tab-btn {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Hero Quick Locator Card */
.hero-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

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

.hero-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-800);
}

/* Performance Dashboard Strip */
.stats-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    border-right: 1px solid var(--color-border);
    padding-right: 16px;
}

@media (max-width: 768px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 14px;
        padding-right: 0;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.stat-title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary-800);
    margin: 4px 0;
}

.stat-sub {
    font-size: 0.82rem;
    color: var(--color-text-body);
}

/* Section Common - Calibrated Spacing */
.section {
    padding: clamp(20px, 3vw, 30px) 0;
}

.section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto clamp(12px, 2vw, 16px);
}

.section-badge {
    display: inline-block;
    background: var(--color-accent-100);
    color: var(--color-accent-600);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-900);
    line-height: 1.25;
    margin-bottom: 12px;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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

.service-card:hover {
    border-color: var(--color-primary-600);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #eff6ff;
    color: var(--color-primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-800);
    margin-bottom: 8px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--color-text-body);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    border-top: 1px solid var(--color-surface-subtle);
    padding-top: 14px;
}

.portal-tag {
    font-weight: 600;
    color: var(--color-accent-600);
}

/* Police Station Directory & Map */
.stations-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.stations-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.station-item-card:hover,
.station-item-card.active {
    border-color: var(--color-primary-800);
    background-color: #f8fbff;
}

.station-map-container {
    height: 400px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

#stationMap {
    width: 100%;
    height: 100%;
}

/* News & Notices Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-600);
}

.news-card-img {
    height: 190px;
    object-fit: cover;
    background: var(--color-surface-subtle);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-900);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-summary {
    font-size: 0.92rem;
    color: var(--color-text-body);
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Notices List */
.notices-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.notices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.notices-table th {
    background: var(--color-primary-900);
    color: #ffffff;
    text-align: left;
    padding: 14px 18px;
    font-weight: 700;
}

.notices-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
}

.notices-table tr:hover {
    background-color: var(--color-surface-bg);
}

/* Leadership Card */
.leader-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.leader-photo {
    width: 240px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 3px solid var(--color-primary-800);
}

.leader-quote {
    font-style: italic;
    color: var(--color-primary-800);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

/* Accordion Component */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--color-surface-subtle);
}

.accordion-body {
    padding: 0 22px 18px;
    color: var(--color-text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.accordion-item.open .accordion-body {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-900);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--color-text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary-700);
    box-shadow: 0 0 0 3px rgba(19, 49, 92, 0.15);
}

/* Chatbot Floating Widget */
.chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-btn {
    background: var(--color-primary-800);
    color: #ffffff;
    border: 2px solid #ffffff;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.chatbot-btn:hover {
    transform: scale(1.05);
    background: var(--color-primary-900);
}

.chatbot-window {
    width: 360px;
    height: 480px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
}

.chatbot-window.open {
    display: flex;
}

.chatbot-header {
    background: var(--color-primary-900);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--color-surface-bg);
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-bubble.bot {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.user {
    background: var(--color-primary-800);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-input-bar {
    padding: 12px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 8px;
    background: #ffffff;
}

/* --- Dedicated Social Media Connect Strip (Exact Thane Police Match) --- */
.social-connect-strip {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 0;
}

.social-connect-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.social-icons-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    color: #475569;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.social-icon-btn .social-svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover,
.social-icon-btn:active,
.social-icon-btn:focus,
.social-icon-btn:focus-visible,
.social-icon-btn.is-touched {
    transform: translateY(-4px) scale(1.1);
    outline: none;
    text-decoration: none;
}

.social-icon-btn:hover .social-svg,
.social-icon-btn:active .social-svg,
.social-icon-btn:focus .social-svg,
.social-icon-btn:focus-visible .social-svg,
.social-icon-btn.is-touched .social-svg {
    transform: scale(1.15);
}

/* 1. X (Twitter): Pure Black with White Icon */
.social-icon-btn.x-icon:hover,
.social-icon-btn.x-icon:active,
.social-icon-btn.x-icon:focus,
.social-icon-btn.x-icon:focus-visible,
.social-icon-btn.x-icon.is-touched {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38) !important;
}

/* 2. Instagram: Real Authentic Instagram Gradient */
.social-icon-btn.insta-icon:hover,
.social-icon-btn.insta-icon:active,
.social-icon-btn.insta-icon:focus,
.social-icon-btn.insta-icon:focus-visible,
.social-icon-btn.insta-icon.is-touched {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(214, 36, 159, 0.45) !important;
}

/* 3. Facebook: Real Official Facebook Blue */
.social-icon-btn.fb-icon:hover,
.social-icon-btn.fb-icon:active,
.social-icon-btn.fb-icon:focus,
.social-icon-btn.fb-icon:focus-visible,
.social-icon-btn.fb-icon.is-touched {
    background: #1877f2 !important;
    color: #ffffff !important;
    border-color: #1877f2 !important;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45) !important;
}

/* 4. WhatsApp: Real Official WhatsApp Green */
.social-icon-btn.wa-icon:hover,
.social-icon-btn.wa-icon:active,
.social-icon-btn.wa-icon:focus,
.social-icon-btn.wa-icon:focus-visible,
.social-icon-btn.wa-icon.is-touched {
    background: #25d366 !important;
    color: #ffffff !important;
    border-color: #25d366 !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.48) !important;
}

/* 5. YouTube: Real Official YouTube Red */
.social-icon-btn.yt-icon:hover,
.social-icon-btn.yt-icon:active,
.social-icon-btn.yt-icon:focus,
.social-icon-btn.yt-icon:focus-visible,
.social-icon-btn.yt-icon.is-touched {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-color: #ff0000 !important;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.45) !important;
}

/* Dark Mode support for social connect strip */
[data-theme="dark"] .social-connect-strip,
body.dark-mode .social-connect-strip {
    background: #0d1527;
    border-color: #1e293b;
}

[data-theme="dark"] .social-icon-btn,
body.dark-mode .social-icon-btn {
    background: #1a263d;
    border-color: #2b3b55;
    color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Site Footer */
.site-footer {
    background-color: var(--color-primary-900);
    color: #e2e8f0;
    margin-top: auto;
    border-top: 4px solid var(--color-accent-500);
}

.footer-top {
    padding: 56px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-accent-500);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none !important;
    transform: translateX(4px);
}

.footer-bottom {
    background: #040e1a;
    padding: 20px 0;
    font-size: 0.82rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .stations-layout {
        grid-template-columns: 1fr;
    }
    .station-map-container {
        position: static;
        height: 400px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .leader-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .leader-photo {
        margin: 0 auto;
    }
    .chatbot-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
    }
}

/* --- Visual Photo Enhancements (Thane Police Reference Benchmark) --- */
.service-card {
    padding: 0;
    overflow: hidden;
}

.service-card-media {
    position: relative;
    height: 110px;
    width: 100%;
    overflow: hidden;
    background: #e2e8f0;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.06);
}

.service-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 37, 69, 0.88);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.service-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Officer Portrait Cards */
.officer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.officer-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.officer-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-primary-600);
}

.officer-photo-wrap {
    height: 250px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.officer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.officer-card:hover .officer-photo {
    transform: scale(1.04);
}

.officer-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 37, 69, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.officer-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Community Initiatives & Field Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-primary-600);
}

.gallery-media {
    height: 110px;
    overflow: hidden;
    position: relative;
}

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

.gallery-card:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(11, 37, 69, 0.88);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.gallery-body {
    padding: 18px 20px;
}

/* Official Government Portal Logos Strip (Material UI 2.0 Hub) */
.portal-strip-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0 34px;
}

.portal-strip-header {
    text-align: center;
    margin-bottom: 20px;
}

.portal-strip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 18px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-marquee-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.portal-marquee-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.portal-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: portalScrollOpposite 40s linear infinite;
}

.portal-marquee-container:hover .portal-marquee-track,
.portal-marquee-track:hover {
    animation-play-state: paused;
}

.portal-marquee-group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
    flex-shrink: 0;
}

@keyframes portalScrollOpposite {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.portal-badge-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 165px;
    min-width: 165px;
    min-height: 98px;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.portal-badge-card:hover {
    background: #ffffff;
    border-color: #1e3a8a;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px -4px rgba(30, 58, 138, 0.16);
}

.portal-badge-logo-wrap {
    height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.portal-badge-logo-wrap img {
    max-height: 40px;
    max-width: 115px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

.portal-badge-card:hover .portal-badge-logo-wrap img {
    transform: scale(1.08);
}

.portal-badge-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.portal-badge-card:hover .portal-badge-label {
    color: #1e3a8a;
}

.portal-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e3a8a;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    opacity: 0.85;
}

.portal-arrow-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.portal-arrow-left {
    left: -12px;
}

.portal-arrow-right {
    right: -12px;
}

@media (max-width: 768px) {
    .portal-arrow-btn {
        display: none;
    }
    .portal-badge-card {
        width: 135px;
        min-width: 135px;
        min-height: 88px;
        padding: 10px 8px 8px;
    }
    .portal-badge-logo-wrap {
        height: 38px;
    }
    .portal-badge-logo-wrap img {
        max-height: 34px;
        max-width: 90px;
    }
    .portal-badge-label {
        font-size: 0.68rem;
    }
    .portal-marquee-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20px, #000 calc(100% - 20px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }
}

/* --- Dignitaries Section (आमचे नेतृत्व / State & Department Leadership) --- */
.dignitaries-section {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0 16px;
}

.dignitaries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .dignitaries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .dignitaries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dignitaries-see-more-wrap {
        display: flex !important;
        justify-content: center;
        margin-top: 18px;
    }

    .dignitaries-grid .dignitary-card-extra {
        display: none;
    }

    .dignitaries-grid.show-all .dignitary-card-extra {
        display: flex;
        animation: fadeInDignitary 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.dignitaries-see-more-wrap {
    display: none;
}

.dignitaries-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.dignitaries-toggle-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.14);
}

.dignitaries-toggle-shield {
    color: #1e3a8a;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dignitaries-toggle-icon {
    font-size: 0.68rem;
    color: #3b82f6;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

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

html[data-theme="dark"] .dignitaries-toggle-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .dignitaries-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .dignitaries-toggle-shield {
    color: #60a5fa;
}

html[data-theme="dark"] .dignitaries-toggle-icon {
    color: #93c5fd;
}

.dignitary-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 12px 18px;
    text-align: center;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dignitary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(30, 58, 138, 0.12);
    border-color: #ea580c;
}

.dignitary-avatar-wrap {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 12px;
    border: 2.5px solid #ea580c;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dignitary-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dignitary-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.28;
}

.dignitary-role {
    font-size: 0.78rem;
    font-weight: 500;
    font-style: italic;
    color: #64748b;
    line-height: 1.38;
}

/* --- 8 Report Crime Cards (ठाणे पोलीस आयुक्तालयात तक्रार करा - Compact) --- */
.report-crime-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 992px) {
    .report-crime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .report-crime-grid {
        grid-template-columns: 1fr;
    }
}

.report-crime-card {
    position: relative;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.report-crime-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-crime-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.report-crime-card:hover .report-crime-bg {
    transform: scale(1.06);
}

.report-crime-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(11, 37, 69, 0.8) 50%, rgba(11, 37, 69, 0.96) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.report-crime-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.report-crime-title {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.report-crime-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-accent-400);
}

/* --- Combined Leadership & WhatsApp Compact Grid --- */
.comm-wa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.comm-spotlight-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.comm-avatar-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.comm-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--color-primary-800);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.comm-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary-900);
    margin: 0 0 2px;
}

.comm-desig {
    font-size: 0.78rem;
    color: var(--color-accent-600);
    font-weight: 700;
    margin: 0;
}

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

.comm-quote {
    font-style: italic;
    font-weight: 700;
    color: var(--color-primary-800);
    font-size: 0.88rem;
    margin-bottom: 8px;
    border-left: 3px solid var(--color-primary-800);
    padding-left: 8px;
}

.comm-body-text {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--color-text-body);
    margin-bottom: 10px;
}

.comm-hours-box {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent-500);
    font-size: 0.78rem;
    margin-top: auto;
}

.whatsapp-compact-card {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.whatsapp-compact-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 6px 0 4px;
    color: #ffffff;
}

.whatsapp-compact-sub {
    font-size: 0.82rem;
    opacity: 0.9;
    line-height: 1.45;
    margin-bottom: 10px;
}

.whatsapp-features-compact {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.whatsapp-features-compact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    opacity: 0.95;
}

.whatsapp-features-compact li svg {
    color: #6ee7b7;
    flex-shrink: 0;
}

.whatsapp-action-box-compact {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.whatsapp-action-box-compact .whatsapp-info-col {
    min-width: 0;
}

.whatsapp-number-compact {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    white-space: nowrap !important;
    text-decoration: none;
    display: inline-block;
}

.whatsapp-number-compact:hover {
    color: #a7f3d0;
}

.whatsapp-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.whatsapp-btn-compact:hover {
    background: #20ba5a;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .comm-wa-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .whatsapp-action-box-compact {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }
    .whatsapp-action-box-compact .whatsapp-info-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .whatsapp-number-compact {
        font-size: 1.35rem;
        letter-spacing: 0.04em;
        margin-top: 2px;
    }
    .whatsapp-btn-compact {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.95rem;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    }
}

/* --- WhatsApp Helpline Card --- */
.whatsapp-card {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: 0 10px 25px -5px rgba(6, 95, 70, 0.3);
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.whatsapp-features {
    list-style: none;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whatsapp-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.whatsapp-features li svg {
    flex-shrink: 0;
    color: #6ee7b7;
}

.whatsapp-action-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.whatsapp-number {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 6px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    width: 100%;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

@media (max-width: 768px) {
    .whatsapp-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Responsiveness & Font Uniformity Rules --- */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 992px) {
    .header-inner {
        justify-content: space-between !important;
    }

    .mega-menu-panel {
        display: none !important;
    }
    
    .nav-desktop {
        display: none;
    }

    .mobile-sticky-brand {
        display: flex;
    }

    .brand-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .brand-banner-tools {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .control-room-card {
        flex: 1;
        min-width: 200px;
    }

    .brand-whatsapp-badge {
        flex: 1;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .top-bar-emergency-inner {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .emergency-label-box {
        padding: 2px 7px;
    }

    .emergency-label {
        font-size: 0.72rem;
    }

    .emergency-marquee-wrap {
        width: 100%;
    }

    .emergency-pill {
        padding: 3px 9px;
        font-size: 0.73rem;
    }

    .emergency-marquee-track {
        animation-duration: 20s;
    }

    .top-bar-utility-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .accessibility-tools {
        justify-content: center;
        width: 100%;
    }

    .lang-selector-group {
        justify-content: center;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .brand-identity-link {
        gap: 12px;
    }

    .brand-emblem-ashoka,
    .brand-emblem-seal {
        height: 48px;
    }

    .brand-divider-line {
        height: 44px;
    }

    .brand-marathi-name {
        font-size: 1.18rem;
    }

    .brand-english-name {
        font-size: 0.88rem;
    }

    .brand-motto-row {
        font-size: 0.68rem;
    }

    .units-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .brand-identity-link {
        gap: 8px;
    }

    .brand-emblems-cluster {
        gap: 6px;
    }

    .brand-emblem-ashoka,
    .brand-emblem-seal {
        height: 40px;
    }

    .brand-divider-line {
        height: 38px;
        width: 1px;
    }

    .brand-marathi-name {
        font-size: 1.02rem;
    }

    .brand-english-name {
        font-size: 0.74rem;
        letter-spacing: 0.02em;
    }

    .brand-motto-row {
        font-size: 0.62rem;
        flex-wrap: wrap;
    }

    .brand-banner-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .control-room-card,
    .brand-whatsapp-badge {
        width: 100%;
    }
}

/* --- Global Responsive Content Grids & Utilities --- */
.grid-2col-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-sidebar-responsive {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    align-items: start;
}

.grid-form-sidebar-responsive {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 36px;
    align-items: start;
}

.grid-cards-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-emergency-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 44px;
}

/* --- Leadership Page Specialized Responsive Classes --- */
.leadership-hero-banner {
    background: linear-gradient(135deg, #0d2847 0%, #1e3a8a 100%);
    border-radius: 18px;
    padding: 36px 32px;
    color: #ffffff;
    margin-bottom: 36px;
    box-shadow: 0 10px 25px -5px rgba(13,40,71,0.25);
    position: relative;
    overflow: hidden;
}

.officer-apex-card {
    background: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(30,58,138,0.08);
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
}

.officer-apex-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #d97706 0%, #1e3a8a 100%);
}

.officer-apex-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: center;
}

.officer-apex-profile {
    text-align: center;
}

.officer-apex-avatar-wrap {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #f8fafc;
    border: 4px solid #1e3a8a;
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.officer-apex-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.officer-apex-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.officer-apex-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 4px;
}

.officer-apex-desig {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e40af;
}

.officer-apex-quote-box {
    background: #f8fafc;
    border-left: 4px solid #1e3a8a;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.officer-apex-quote {
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.officer-apex-quote-author {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.officer-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.officer-contact-cell {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 10px;
}

.officer-contact-cell .cell-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.officer-contact-cell .cell-val {
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.95rem;
}

.officer-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.officers-flowchart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

/* Tablet & Mobile Breakpoint (<= 860px) */
@media (max-width: 860px) {
    .grid-2col-responsive,
    .grid-sidebar-responsive,
    .grid-form-sidebar-responsive {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .site-header .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .header-inner {
        padding: 8px 0 !important;
        justify-content: space-between !important;
    }

    .leadership-hero-banner {
        padding: 24px 18px !important;
        border-radius: 14px !important;
        margin-bottom: 24px !important;
    }

    .officer-apex-card {
        padding: 20px 16px !important;
        border-radius: 16px !important;
        margin-bottom: 28px !important;
    }

    .officer-apex-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }

    .officer-apex-avatar-wrap {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto 12px !important;
    }

    .officer-apex-quote-box {
        padding: 14px 16px !important;
        text-align: left;
    }

    .officer-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        text-align: left;
    }

    .officer-actions-row {
        flex-direction: column !important;
        width: 100% !important;
    }

    .officer-actions-row .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .officers-grid-tier {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .officers-flowchart-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Base Section Definitions for Calibrated Spacing */
.mui-operations-section {
    border-bottom: 1px solid var(--color-border);
    padding: 26px 0 22px;
}

.dignitaries-section {
    border-bottom: 1px solid var(--color-border);
    padding: 22px 0 24px;
}

.feedback-form-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 3vw, 24px);
    box-shadow: var(--shadow-sm);
}

/* Site-wide Balanced Mobile Spacing System (No Excessive Gaps) */
@media (max-width: 768px) {
    .section {
        padding: 18px 0 !important;
    }

    .section-header {
        margin: 0 auto 12px !important;
    }

    .section-badge {
        padding: 3px 10px !important;
        margin-bottom: 6px !important;
        font-size: 0.74rem !important;
    }

    .section-title {
        font-size: 1.45rem !important;
        margin-top: 3px !important;
        margin-bottom: 6px !important;
    }

    .section-desc {
        font-size: 0.86rem !important;
        line-height: 1.45 !important;
        margin-top: 4px !important;
    }

    .mui-operations-section {
        padding: 18px 0 16px !important;
    }

    .mui-tabs-nav {
        margin-bottom: 16px !important;
    }

    main > .container,
    .main-content > .container {
        padding-top: 20px !important;
        padding-bottom: 28px !important;
    }

    .dignitaries-section {
        padding: 16px 0 18px !important;
    }

    .stats-strip {
        padding: 16px 0 !important;
    }

    .stats-grid {
        gap: 12px !important;
    }

    .portal-strip-section {
        padding: 16px 0 18px !important;
    }

    .portal-strip-header {
        margin-bottom: 12px !important;
    }

    .social-connect-strip {
        padding: 14px 0 !important;
    }

    .social-icons-group {
        gap: 14px !important;
    }

    .feedback-form-card {
        padding: 16px 14px !important;
    }
}

/* Small Mobile Screen Breakpoint (<= 600px) */
@media (max-width: 600px) {
    .form-row-2col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .grid-cards-responsive {
        grid-template-columns: 1fr !important;
    }

    .grid-emergency-boxes {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 24px !important;
    }
}

/* ==========================================================================
   POLICE CONNECT - DARK MODE SYSTEM (डार्क मोड)
   ========================================================================== */

/* ==========================================================================
   POLICE CONNECT - ADVANCED DARK THEME CALIBRATION
   ========================================================================== */
html[data-theme="dark"],
html.dark-mode {
    color-scheme: dark;

    /* Base Surfaces */
    --color-surface-bg: #090f1d;
    --color-surface-card: #131e33;
    --color-surface-card-hover: #1a2a46;
    --color-surface-subtle: #0d1627;
    --color-surface-alt: #0a1122;

    /* Typography */
    --color-text-title: #f8fafc;
    --color-text-main: #f8fafc;
    --color-text-body: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-light: #64748b;

    /* Primary Police Tones (Luminous in Dark Mode) */
    --color-primary-900: #f8fafc;
    --color-primary-800: #60a5fa;
    --color-primary-700: #93c5fd;
    --color-primary-600: #3b82f6;
    --color-primary-500: #60a5fa;

    /* Accents (Radiant Amber & Gold) */
    --color-accent-600: #fbbf24;
    --color-accent-500: #f59e0b;
    --color-accent-400: #fcd34d;
    --color-accent-100: rgba(245, 158, 11, 0.15);

    /* Borders */
    --color-border: #20314d;
    --color-border-subtle: #172439;

    /* Status BGs */
    --color-success-bg: rgba(16, 185, 129, 0.15);
    --color-danger-bg: rgba(239, 68, 68, 0.15);
    --color-warning-bg: rgba(245, 158, 11, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] body,
html.dark-mode body {
    background-color: #090f1d !important;
    color: #cbd5e1 !important;
}

/* 1. Header & Navigation Tiers */
html[data-theme="dark"] .top-emergency-bar {
    background-color: #040810 !important;
}

html[data-theme="dark"] .top-bar-emergency-tier {
    background-color: #040810 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .top-bar-utility-tier {
    background-color: #060c18 !important;
    border-bottom: 2px solid #f59e0b !important;
}

html[data-theme="dark"] .site-brand-banner {
    background: #0b1323 !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .brand-marathi-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .brand-english-name {
    color: #93c5fd !important;
}

html[data-theme="dark"] .brand-motto-row {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .brand-motto-text {
    color: #fbbf24 !important;
}

html[data-theme="dark"] .brand-govt-text {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .control-room-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    border-left: 3px solid #f59e0b !important;
}

html[data-theme="dark"] .cr-badge {
    color: #f8fafc !important;
}

html[data-theme="dark"] .cr-help-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .cr-helplines-row {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .brand-whatsapp-badge {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

html[data-theme="dark"] .wa-title {
    color: #4ade80 !important;
}

html[data-theme="dark"] .wa-num {
    color: #f8fafc !important;
}

html[data-theme="dark"] .site-header {
    background: #090f1d !important;
    border-color: #1a273f !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .nav-dropdown-item:hover > .nav-dropdown-trigger {
    color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.14) !important;
}

html[data-theme="dark"] .mega-menu-panel {
    background: #131e33 !important;
    border: 1px solid #20314d !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .mega-menu-header {
    border-color: #20314d !important;
}

html[data-theme="dark"] .mega-col-title {
    color: #60a5fa !important;
}

html[data-theme="dark"] .mega-menu-list li a {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .mega-menu-list li a:hover {
    background-color: #1a2a46 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .badge-photos {
    background: #1a2a46 !important;
    color: #94a3b8 !important;
    border-color: #20314d !important;
}

/* 2. Language Dropdown in Dark Mode */
html[data-theme="dark"] .lang-picker-btn {
    background: #131e33 !important;
    color: #f8fafc !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .lang-picker-btn:hover {
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .lang-picker-dropdown {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .lang-search-header {
    background: #0d1627 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .lang-search-input {
    background-color: #131e33 !important;
    color: #f8fafc !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .lang-optgroup-title {
    color: #60a5fa !important;
    background: #0d1627 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .lang-option {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .lang-option:hover,
html[data-theme="dark"] .lang-option:focus,
html[data-theme="dark"] .lang-option.focused {
    background: #1a2a46 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .lang-option.selected {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .lang-option-badge {
    background: #1a2a46 !important;
    color: #94a3b8 !important;
}

/* 3. Hero Section */
html[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, #0c1424 0%, #090f1d 100%) !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .hero-badge-pill {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .hero-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .hero-lead {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .hero-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .hero-card-header {
    border-color: #20314d !important;
}

html[data-theme="dark"] .hero-card-title {
    color: #f8fafc !important;
}

/* 4. Dignitaries Section (आमचे नेतृत्व) */
html[data-theme="dark"] .dignitaries-section {
    background-color: #090f1d !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .dignitaries-section h2 {
    color: #fb923c !important;
}

html[data-theme="dark"] .dignitaries-section h2 + div {
    background: #fb923c !important;
}

html[data-theme="dark"] .dignitary-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .dignitary-card:hover {
    background: #1a2a46 !important;
    border-color: #f97316 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .dignitary-avatar-wrap {
    background: #0d1627 !important;
    border-color: #f97316 !important;
}

html[data-theme="dark"] .dignitary-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dignitary-role {
    color: #cbd5e1 !important;
}

/* 5. Metrics Strip & Alternate Sections */
html[data-theme="dark"] .section-alt,
html.dark-mode .section-alt,
body.dark-mode .section-alt {
    background-color: #0b1323 !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .mui-operations-section,
html.dark-mode .mui-operations-section,
body.dark-mode .mui-operations-section {
    border-color: #1a273f !important;
}

html[data-theme="dark"] .dignitaries-section,
html.dark-mode .dignitaries-section,
body.dark-mode .dignitaries-section {
    border-color: #1a273f !important;
}

html[data-theme="dark"] .stats-strip {
    background: #0b1323 !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .stat-item {
    border-color: #20314d !important;
}

html[data-theme="dark"] .stat-title {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .stat-value {
    color: #60a5fa !important;
}

html[data-theme="dark"] .stat-sub {
    color: #94a3b8 !important;
}

/* 6. Commissioner Spotlight */
html[data-theme="dark"] .comm-spotlight-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .comm-avatar-box {
    border-color: #20314d !important;
}

html[data-theme="dark"] .comm-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .comm-desig {
    color: #fbbf24 !important;
}

html[data-theme="dark"] .comm-quote {
    color: #93c5fd !important;
    border-left-color: #3b82f6 !important;
}

html[data-theme="dark"] .comm-body-text {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .comm-hours-box {
    background: #0d1627 !important;
    border-color: #20314d !important;
    border-left-color: #f59e0b !important;
    color: #e2e8f0 !important;
}

/* 7. Operations Hub, Tabs & Content */
html[data-theme="dark"] #muiOperationsHub {
    background-color: #090f1d !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .hub-badge {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

html[data-theme="dark"] .mui-tabs-nav {
    background: #0d1627 !important;
    border: 1px solid #20314d !important;
}

html[data-theme="dark"] .mui-tab-btn {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .mui-tab-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .mui-tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

html[data-theme="dark"] .service-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .service-card:hover {
    background: #1a2a46 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .service-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .service-desc {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .service-footer {
    border-top-color: #20314d !important;
}

html[data-theme="dark"] .gallery-card {
    background: #131e33 !important;
    border: 1px solid #20314d !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .gallery-card:hover {
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .gallery-body h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .gallery-body p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .safety-preview-card {
    background: #131e33 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .safety-preview-card h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .safety-preview-card p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .station-filter-bar {
    background: #131e33 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .station-item-card {
    background: #131e33 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .station-item-card:hover {
    background: #1a2a46 !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .station-item-card h4 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .station-zone-badge {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .accordion-header {
    background: #131e33 !important;
    color: #f8fafc !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .accordion-item.open .accordion-header {
    background: #1a2a46 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .accordion-body {
    background: #0d1627 !important;
    color: #cbd5e1 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .home-news-card {
    background: #131e33 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .home-news-card h4 a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .home-news-card p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .feedback-form-card {
    background: #131e33 !important;
    border-color: #20314d !important;
}

/* 8. Secondary Buttons in Dark Mode */
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-outline {
    background-color: rgba(96, 165, 250, 0.12) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}

html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-outline:hover {
    background-color: rgba(96, 165, 250, 0.24) !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
}

/* 9. Portal Logos Strip */
html[data-theme="dark"] .portal-strip-section {
    background: #060b14 !important;
    border-color: #1a273f !important;
}

html[data-theme="dark"] .portal-strip-badge {
    background: #131e33 !important;
    border-color: #20314d !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .portal-badge-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .portal-badge-card:hover {
    background: #1a2a46 !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .portal-badge-label {
    color: #f8fafc !important;
}

html[data-theme="dark"] .portal-arrow-btn {
    background-color: #131e33 !important;
    color: #60a5fa !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .portal-arrow-btn:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* 10. Footer in Dark Mode */
html[data-theme="dark"] .site-footer {
    background-color: #060b14 !important;
    border-top: 4px solid #f59e0b !important;
}

html[data-theme="dark"] .footer-bottom {
    background: #03060a !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* 11. Inputs, Forms & Controls */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control {
    background-color: #0b1323 !important;
    border-color: #20314d !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] ::placeholder {
    color: #64748b !important;
}

/* 13. Global Catch-All for inline styles across other pages */
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"] {
    background-color: #131e33 !important;
    border-color: #20314d !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] [style*="background:#eff6ff"],
html[data-theme="dark"] [style*="background: #eff6ff"],
html[data-theme="dark"] [style*="background:#e3f2fd"],
html[data-theme="dark"] [style*="background: #e3f2fd"],
html[data-theme="dark"] [style*="background:#f1f5f9"],
html[data-theme="dark"] [style*="background: #f1f5f9"] {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] [style*="background:#ecfdf5"],
html[data-theme="dark"] [style*="background: #ecfdf5"] {
    background-color: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}

html[data-theme="dark"] [style*="background:#fef2f2"],
html[data-theme="dark"] [style*="background: #fef2f2"] {
    background-color: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

/* 14. Tables, Modals, Pagination */
html[data-theme="dark"] table,
html[data-theme="dark"] .table {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] th {
    background-color: #0d1627 !important;
    color: #f8fafc !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] td {
    background-color: #131e33 !important;
    border-color: #172439 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] tr:hover td {
    background-color: #1a2a46 !important;
}

html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-box {
    background-color: #131e33 !important;
    border: 1px solid #20314d !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pagination-btn,
html[data-theme="dark"] .page-link {
    background-color: #131e33 !important;
    border-color: #20314d !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pagination-btn:hover,
html[data-theme="dark"] .page-link:hover {
    background-color: #1a2a46 !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .pagination-btn.active,
html[data-theme="dark"] .page-item.active .page-link {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* 15. Leadership & Apex Command Component Dark Mode */
html[data-theme="dark"] .leadership-hero-banner {
    background: linear-gradient(135deg, #09152b 0%, #172a4d 100%) !important;
    border: 1px solid #20314d !important;
}

html[data-theme="dark"] .officer-apex-card {
    background: #131e33 !important;
    border-color: #20314d !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .officer-apex-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .officer-apex-desig {
    color: #60a5fa !important;
}

html[data-theme="dark"] .officer-apex-quote-box {
    background: #0d1627 !important;
    border-left-color: #3b82f6 !important;
}

html[data-theme="dark"] .officer-apex-quote {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .officer-apex-quote-author {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .officer-contact-cell {
    background: #0d1627 !important;
}

html[data-theme="dark"] .officer-contact-cell .cell-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .officer-contact-cell .cell-val {
    color: #60a5fa !important;
}

html[data-theme="dark"] .officer-card-mui {
    background: #131e33 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .filter-chip {
    background: #131e33 !important;
    color: #cbd5e1 !important;
    border-color: #20314d !important;
}

html[data-theme="dark"] .filter-chip:hover {
    background: #1a2a46 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .filter-chip.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}



