/* Header CSS for Nagpur City Police Website */

/* Khand Font Import */
@import url('https://fonts.googleapis.com/css2?family=Khand:wght@300;400;500;600;700&display=swap');

/* Global Khand Font Application */
* {
    font-family: 'Khand', system-ui, sans-serif !important;
}

body, h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th, button, input, select, textarea {
    font-family: 'Khand', system-ui, sans-serif !important;
    font-weight: 400;
}

/* Typography for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Khand', sans-serif !important;
    font-weight: 600;
}

.card-title, .card-text, .btn, .nav-link, .dropdown-item {
    font-family: 'Khand', sans-serif !important;
}

/* Floating Language Switcher - protected from external CSS */
.floating-language-switcher {
    position: fixed !important;
    bottom: 20px !important; /* Position at bottom */
    right: 20px !important; /* Exactly aligned with other buttons */
    z-index: 99999 !important;
    font-family: 'Khand', sans-serif !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.floating-lang-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: var(--police-primary, #2009c8) !important;
    color: white !important;
    padding: 0 20px;
    border-radius: 28px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 9, 200, 0.3) !important;
    border: none !important;
    min-width: 110px;
    height: 56px;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.floating-lang-btn:hover {
    background: var(--police-secondary, #FFD700) !important;
    color: white !important;
    text-decoration: none !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 16px rgba(32, 9, 200, 0.4) !important;
}

.floating-lang-btn i {
    font-size: 16px;
    color: white !important;
}

/* Responsive floating elements */
@media (max-width: 768px) {
    .floating-language-switcher {
        bottom: 20px; /* Language button at bottom on mobile */
        right: 20px; /* Standard mobile margin */
    }
    
    .floating-lang-btn {
        padding: 0 16px;
        font-size: 13px;
        min-width: 95px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .floating-language-switcher {
        bottom: 20px; /* Language button at bottom on smallest screens */
        right: 20px; /* Standard mobile margin */
    }
    
    .floating-lang-btn {
        min-width: 85px;
        font-size: 12px;
        height: 45px;
    }
}

/* Header Styles */
/* Header container styles - protected from external CSS interference */
.nagpur-police-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: transparent !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Khand', system-ui, sans-serif !important;
    overflow: visible !important; /* Allow dropdowns to overflow */
    transform-origin: center top !important; /* Ensure proper zoom scaling from top-center */
    backface-visibility: hidden !important; /* Improve rendering performance */
}

/* Compact header when scrolling */
.nagpur-police-header.compact {
    padding: 0 !important; /* Keep consistent padding to prevent shift */
}

.nagpur-police-header.compact .main-header {
    padding: 2px 0; /* Keep same padding as normal state */
    border-radius: 12px; /* Slightly smaller radius when compact */
}

.nagpur-police-header.compact .logo-img {
    height: 40px;
    width: auto; /* Let width adjust automatically to maintain aspect ratio */
    object-fit: contain; /* Ensure proper scaling */
}

.nagpur-police-header.compact .logo-text h1 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.nagpur-police-header.compact .logo-text p {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
}

.nagpur-police-header.compact .search-input,
.nagpur-police-header.compact .police-select,
.nagpur-police-header.compact .search-btn,
.nagpur-police-header.compact .police-btn {
    padding: 8px 15px;
    font-size: 14px;
}

/* Ensure body doesn't clip dropdowns */
body {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Force all containers to allow dropdown overflow */
.container, .main-navigation, .navbar-nav {
    overflow: visible !important;
}

/* Bootstrap container override for navigation */
.main-navigation .container {
    overflow: visible !important;
    position: relative !important;
    height: auto !important;
    max-height: none !important;
}

/* Navigation container should allow overflow */
.main-navigation .container {
    overflow: visible !important;
    position: relative;
    height: auto;
    min-height: 50px;
}

/* Default styles for smooth transitions */
.logo-text p {
    opacity: 1;
    max-height: 50px;
    overflow: visible;
    margin: 5px 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text h1 {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure floating buttons remain visible */
.floating-language-switcher {
    position: fixed !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.main-header {
    background: transparent; /* Keep transparent - styling goes to header-container */
    padding: 2px 0; /* Restore to 2px 0 */
    margin: 0;
    width: 100%;
    overflow: visible !important; /* Allow dropdowns to overflow */
    transform-origin: center top; /* Ensure proper zoom scaling */
}

/* Header container styles - Responsive width to match hero slider */
.header-container {
    overflow: visible; /* Keep for dropdowns */
    /* Default styles handled by inline styles in HTML, responsive overrides below */
}

/* Desktop responsive header widths to match hero slider */
/* Tablet Landscape (1024px - 1366px) - Match slider 92% width */
@media (min-width: 1024px) and (max-width: 1366px) {
    .header-container {
        width: 92% !important;
        margin: 0 4% !important;
    }
}

/* Large Desktop (1367px - 1599px) - Match slider 88% width */
@media (min-width: 1367px) and (max-width: 1599px) {
    .header-container {
        width: 88% !important;
        margin: 0 6% !important;
    }
}

/* Ultra-Wide Desktop (≥1600px) - Match slider 85% width */
@media (min-width: 1600px) {
    .header-container {
        width: 85% !important;
        margin: 0 7.5% !important;
    }
}

/* Mobile and tablet portrait (below 1024px) - Keep full width */
@media (max-width: 1023px) {
    .header-container {
        width: 100% !important;
        margin: 0 !important;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center align content */
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    padding: 5px 0; /* Restore to 5px 0 */
    /* border-bottom: 1px solid #e0e7ff; -- Removed separator line between header and navbar */
    overflow: visible !important; /* Allow dropdowns to overflow */
}

/* New combined header layout styles */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Center align the top row content */
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    padding: 5px 0; /* Restore to 5px 0 */
    /* border-bottom: 1px solid #e0e7ff; -- Removed separator line between header and navbar */
}

.header-nav-row {
    width: 100%;
    padding: 5px 0; /* Restore to 1px 0 */
    overflow: visible !important; /* Ensure dropdowns can overflow */
    position: relative;
    z-index: 1000;
}

/* Add margin to navbar on desktop for better visual separation */
@media (min-width: 1024px) {
    .header-nav-row {
        margin: 0 20px; /* Add 20px margin on left and right for desktop */
        width: calc(100% - 40px); /* Adjust width to account for margins */
    }
}

/* Larger margin for ultra-wide screens */
@media (min-width: 1600px) {
    .header-nav-row {
        margin: 0 30px; /* Add 30px margin on left and right for ultra-wide */
        width: calc(100% - 60px); /* Adjust width to account for margins */
    }
}

.header-nav-row .main-navigation {
    background: transparent; /* Remove separate nav background */
    border: none; /* Remove nav border */
    box-shadow: none; /* Remove nav shadow */
    border-radius: 8px; /* Reduced rounded corners for navbar */
    margin: 0; /* Remove nav margin */
    max-width: 100%; /* Full width within container */
    width: 100%; /* Full width within container */
    overflow: visible !important; /* Ensure dropdowns can overflow */
    position: relative;
}

.header-nav-row .navbar-nav {
    justify-content: center; /* Center the navigation items */
    gap: 30px; /* Space between nav items */
    overflow: visible !important; /* Ensure dropdowns can overflow */
    position: relative;
    z-index: 1100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0px; /* Removed gap completely for closest spacing */
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    margin: 0;
    padding: 0;
    margin-left: -5px; /* Pull text closer to logo */
}

.logo-img {
    height: 30px; /* Reduced from 35px to 30px */
    width: auto;
    filter: none; /* Remove drop-shadow */
    transition: transform 0.3s ease;
    border: none !important; /* Explicitly remove any border */
    box-shadow: none !important; /* Remove any box shadow */
    outline: none !important; /* Remove any outline */
    object-fit: contain; /* Ensure proper scaling */
    margin-right: 0; /* Removed margin to reduce space between logo and title */
}

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

.logo-text h1 {
    color: var(--police-primary, #054285);
    font-size: 1.3rem; /* Revert back to 1.3rem */
    font-weight: 700;
    margin: 0;
    line-height: 1.0; /* Revert back to 1.0 */
    text-shadow: none; /* Remove text shadow */
    font-family: 'Khand', sans-serif !important;
}

.logo-text p {
    color: var(--police-secondary, #0b72c7);
    font-size: 0.8rem; /* Revert back to 0.8rem */
    margin: 2px 0 0 0; /* Revert back to 2px */
    font-weight: 500;
    font-family: 'Khand', sans-serif !important;
}

.search-container {
    flex: 1;
    max-width: 700px;
    margin: 0 25px;
    display: flex !important; /* Ensure it's visible on desktop/tablet */
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
}

/* Search Group Styles */
.search-group {
    display: flex;
    flex: 1;
    max-width: 400px;
    border: 2px solid var(--police-secondary, #0b72c7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 114, 199, 0.2);
    transition: all 0.3s ease;
    background: transparent; /* Remove white background */
}

.search-group:focus-within {
    box-shadow: 0 6px 25px rgba(11, 114, 199, 0.3);
    transform: translateY(-2px);
}

.search-bar {
    flex: 1;
    padding: 9px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Khand', sans-serif !important;
    background: transparent;
    color: #333;
}

.search-bar::placeholder {
    color: #999;
    font-weight: 400;
}

.search-btn {
    background: var(--police-secondary, #0b72c7);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 50px;
}

.search-btn:hover {
    background: var(--police-primary, #054285);
}

/* Police Group Styles */
.police-group {
    display: flex;
    min-width: 280px;
    max-width: 300px;
    border: 2px solid var(--police-secondary, #0b72c7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 114, 199, 0.2);
    transition: all 0.3s ease;
    background: transparent; /* Remove white background */
}

.police-group:focus-within {
    box-shadow: 0 6px 25px rgba(11, 114, 199, 0.3);
    transform: translateY(-2px);
}

.police-dropdown {
    flex: 1;
    padding: 9px 20px;
    padding-right: 40px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Khand', sans-serif !important;
    background: transparent;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.police-btn {
    background: var(--police-secondary, #0b72c7);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 50px;
}

.police-btn:hover {
    background: var(--police-primary, #054285);
}

/* Keep existing search-form and police-station-dropdown for backward compatibility */
.search-form {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* Keep backward compatibility styles but prioritize new structure */

/* Police Station Container - backward compatibility */
.police-station-container {
    min-width: 280px;
}

.station-form {
    display: flex;
    gap: 10px;
}

.station-select {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Khand', sans-serif !important;
    background: white;
    transition: all 0.3s ease;
}

.station-select:focus {
    outline: none;
    border-color: var(--police-secondary, #0b72c7);
    box-shadow: 0 0 0 3px rgba(11, 114, 199, 0.1);
}

.station-btn {
    background: var(--police-accent, #FFD700);
    color: var(--police-primary, #054285);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Khand', sans-serif !important;
}

.station-btn:hover {
    background: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Navigation Styles - Modern Design with Rounded Corners */
.main-navigation {
    background: var(--police-secondary, #0b72c7) !important; /* Solid color, no gradient */
    padding: 0;
    border-radius: 8px; /* Rounded corners for modern look */
    height: 50px; /* Slightly increased height for modern look */
    width: 100%;
    margin: 0;
    max-width: none;
    position: relative;
    overflow: hidden !important; /* Prevent all scrolling */
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle bottom border */
    font-family: 'Khand', sans-serif !important; /* Ensure Khand font */
}

/* Clean Navigation Styles - Modern with Rounded Corners */
.navbar-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0;
    margin: 0 !important;
    padding: 0;
    white-space: nowrap;
    overflow: hidden !important; /* Prevent all scrolling - horizontal and vertical */
    width: 100% !important;
    position: static;
    height: 50px; /* Match main navigation height */
    background: var(--police-secondary, #0b72c7); /* Solid color, no gradient */
    border-radius: 8px; /* Rounded corners */
    font-family: 'Khand', sans-serif !important; /* Ensure Khand font */
    max-height: 50px; /* Ensure no vertical overflow */
}

/* Clean Dropdown Styles - Modern Flat */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0;
    height: 50px; /* Match navbar height for consistency */
    z-index: 1200;
    border-right: 1px solid rgba(255, 255, 255, 0.15); /* Subtle separator */
    overflow: visible !important;
    font-family: 'Khand', sans-serif !important; /* Ensure Khand font */
}

.dropdown:last-child {
    border-right: none;
}

.dropdown:last-child .dropbtn {
    border-right: none; /* Remove border from last button */
}

.dropbtn {
    background: var(--police-secondary, #0b72c7) !important; /* Solid color, no gradient */
    color: white !important;
    padding: 15px 24px; /* Increased padding for modern look */
    margin: 0;
    font-size: 14px;
    font-weight: 900; /* Increased font weight for better visibility */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth color transition */
    font-family: 'Khand', sans-serif !important; /* Ensure Khand font */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: fit-content;
    height: 50px; /* Match navigation height */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: none; /* Remove individual button borders */
    position: relative; /* For dropdown arrow positioning */
}

/* Dropdown arrow styles - make arrows visible */
.dropbtn::after {
    content: '\f107'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
    color: white;
    opacity: 1; /* Make sure arrow is visible */
}

.dropbtn:hover {
    background: var(--police-primary, #054285) !important; /* Darker blue on hover */
    color: white !important;
    padding: 15px 24px; /* Keep consistent padding */
    margin: 0;
    transform: none; /* No transform effects */
}

.dropbtn:hover::after {
    color: white !important; /* Keep arrow white on hover */
}

/* Hide Font Awesome icons in dropdowns to prevent duplicate arrows */
.dropbtn .fas, .dropbtn .fa {
    display: none !important; /* Hide to prevent duplicate arrows */
}

.dropbtn:hover .fas, .dropbtn:hover .fa {
    display: none !important; /* Hide to prevent duplicate arrows on hover */
}

/* Clean Dropdown Content - Modern with Rounded Corners */
.dropdown-content {
    display: none;
    position: fixed !important;
    background: white;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
    z-index: 99999 !important;
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensure content fits within rounded corners */
    top: auto;
    left: auto;
    margin-top: 0;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--police-accent, #FFD700); /* Keep yellow accent */
    font-family: 'Khand', sans-serif !important; /* Ensure Khand font */
}

/* Clean dropdown content styling - Modern with Rounded Corners */
.dropdown-content a {
    color: #333 !important;
    padding: 16px 24px; /* Consistent padding */
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease; /* Smooth transition */
    font-family: 'Khand', sans-serif !important; /* Ensure Khand font */
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    background: transparent; /* Flat background */
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px; /* Rounded bottom corners for last item */
}

.dropdown-content a:hover {
    background: #f8f9fa; /* Simple background change only */
    color: var(--police-secondary, #0b72c7) !important; /* Blue color on hover */
    transform: none; /* No transform effects */
}

.dropdown:hover .dropbtn,
.dropbtn.active {
    background: var(--police-primary, #054285) !important; /* Darker blue on hover/active */
    padding: 15px 24px; /* Keep consistent padding */
}

/* Desktop dropdown behavior - allow both hover and JavaScript control */
.dropdown:hover .dropdown-content,
.dropdown-content[style*="display: block"] {
    display: block !important;
}

/* Default state - hidden, but allow JavaScript override */
.dropdown-content {
    display: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mobile menu styles */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw; /* Reduce width to 70% of viewport width */
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow: visible !important; /* Allow dropdowns to extend outside */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Fix dropdown z-index in mobile navigation */
.mobile-navigation .dropdown-content {
    z-index: 99999 !important;
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: 250px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Fix dropdown z-index in mobile submenu */
.mobile-submenu .dropdown-content {
    z-index: 99999 !important;
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: 250px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    background: white !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: white;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-submenu.active {
    left: 0;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Ensure smooth dropdown behavior */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Add invisible bridge to prevent hover gap */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 99998;
}

/* Ensure dropdown container allows proper positioning */
.dropdown {
    position: relative;
}

/* Show dropdown on hover - disabled to prevent conflicts with JavaScript positioning */
/* .dropdown:hover .dropdown-content {
    display: block !important;
} */

/* Force horizontal navbar layout at all screen sizes */
.main-navigation .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.main-navigation .dropdown {
    display: inline-block !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Ensure navbar container doesn't break */
.main-navigation {
    overflow-x: auto !important;
    overflow-y: visible !important;
    white-space: nowrap !important;
    position: relative !important;
}

/* Add scrollbar styling for webkit browsers on tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-navigation::-webkit-scrollbar {
        height: 4px;
    }
    
    .main-navigation::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .main-navigation::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* Add scroll indication shadows */
    .main-navigation::before,
    .main-navigation::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 10px;
        pointer-events: none;
        z-index: 2;
    }
    
    .main-navigation::before {
        left: 0;
        background: linear-gradient(to right, rgba(11, 114, 199, 0.3), transparent);
    }
    
    .main-navigation::after {
        right: 0;
        background: linear-gradient(to left, rgba(11, 114, 199, 0.3), transparent);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        flex-wrap: wrap !important;
        overflow-x: visible;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: center; /* Center align text */
        justify-content: center; /* Center align content */
        padding: 0 20px; /* Keep only horizontal padding for mobile menu */
        margin: 0; /* Remove margin */
        font-size: 16px;
    }
    
    .dropdown-content {
        position: absolute !important;
        display: none !important;
        left: 100% !important;
        top: 0 !important;
        width: 250px !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
        background: white !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0;
        z-index: 99999 !important;
    }
    
    .dropdown:hover .dropdown-content {
        display: block !important;
    }
}

/* Large Tablet / iPad Pro responsiveness (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .header-container {
        margin: 0 4%; /* Moderate margins */
        width: 92%;
        padding: 0 18px;
    }

    .search-container {
        max-width: 600px; /* Moderate size for large tablets */
        gap: 18px;
    }

    .search-group,
    .police-group {
        max-width: 280px;
    }

    .navbar-nav {
        gap: 20px; /* Moderate gap */
    }

    .dropbtn {
        padding: 0; /* Removed all padding for tablets */
        margin: 0; /* Removed all margin for tablets */
        font-size: 13px;
        justify-content: center; /* Center align for tablets */
    }
}

/* Hide additional arrow selectors to prevent duplicates */
.dropbtn .fa-caret-down {
    display: none !important; /* Hide to prevent duplicate arrows */
}

/* Navigation Menu Original Styles - Keep for backward compatibility */
.main-navigation {
    background: var(--police-primary, #054285);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 25px; /* Further reduced padding for better proportion */
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    font-family: 'Khand', sans-serif !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--police-accent, #FFD700);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    width: 80%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.dropdown-arrow {
    display: none !important; /* Hide to prevent duplicate arrows */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    display: none;
    z-index: 99999;
    border-top: 3px solid var(--police-accent, #FFD700);
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Khand', sans-serif !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--police-secondary, #0b72c7);
    border-left-color: var(--police-secondary, #0b72c7);
}

.dropdown-menu i {
    margin-right: 12px;
    width: 18px;
    color: var(--police-secondary, #0b72c7);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        position: relative;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
        margin: 0;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .search-form {
        min-width: auto;
        margin: 0;
        max-width: none;
    }
    
    .police-station-dropdown {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .search-form {
        min-width: auto;
    }
    
    .police-station-dropdown {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .police-select {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .police-station-container {
        width: 100%;
        min-width: auto;
    }
    
    .station-form {
        flex-direction: column;
    }
    
    /* Fix navbar horizontal scrolling and add rounded corners on mobile */
    .main-navigation {
        overflow: hidden !important; /* Prevent horizontal scrolling */
        border-radius: 8px; /* Maintain rounded corners on mobile */
    }
    
    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-evenly !important; /* Distribute space evenly */
        width: 100% !important;
        overflow: hidden !important; /* Prevent horizontal scrolling */
        gap: 0;
        border-radius: 8px; /* Maintain rounded corners on mobile */
    }
    
    .dropdown {
        flex: 1; /* Equal width for all dropdown items */
        flex-shrink: 0;
        margin: 0;
        min-width: 0; /* Allow shrinking if needed */
    }
    
    .dropbtn {
        padding: 8px 12px !important; /* Reduced padding for mobile */
        margin: 0 !important;
        font-size: 11px !important; /* Smaller font for mobile */
        white-space: nowrap;
        height: 40px; /* Reduced height for mobile */
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center !important;
        width: 100%; /* Full width of flex container */
        text-overflow: ellipsis; /* Handle text overflow */
        overflow: hidden; /* Hide overflow text */
    }
    
    /* Hide dropdown arrows on mobile for space */
    .dropbtn::after {
        display: none;
    }
    
    .dropdown:last-child .dropbtn {
        border-right: none;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        border-top: none;
        border-left: 3px solid var(--police-accent, #FFD700);
    }
    
    .dropdown-menu a {
        color: white;
        padding-left: 40px;
        border-left: none;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--police-accent, #FFD700);
        transform: none;
    }
    
    .dropdown-menu i {
        color: var(--police-accent, #FFD700);
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .search-input, .search-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Mobile responsiveness utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Menu Toggle */
/* Mobile Menu Toggle - Modern Hamburger */
.mobile-menu-toggle {
    display: flex !important; /* Force visible for testing */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border-radius: 0;
    transition: none;
}

.mobile-menu-toggle:hover {
    background: none !important;
    background-color: transparent !important;
}

.mobile-menu-toggle svg {
    margin-left: 10px; /* Move hamburger icon away from left edge */
    margin-right: 15px; /* Add spacing from right side */
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--police-secondary, #0b72c7);
    margin: 3px 0;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    /* Keep hamburger as hamburger - don't transform to X since we have a close button inside */
    background-color: var(--police-primary, #054285);
}

.mobile-menu-toggle.active span:nth-child(2) {
    /* Keep middle line visible */
    background-color: var(--police-primary, #054285);
}

.mobile-menu-toggle.active span:nth-child(3) {
    /* Keep bottom line as is */
    background-color: var(--police-primary, #054285);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Search Section in Navigation */
.mobile-search-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

.mobile-search-group {
    margin-bottom: 15px;
}

.mobile-search-group {
    display: flex;
    gap: 10px;
}

.mobile-search-bar {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Khand', sans-serif;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-search-bar:focus {
    outline: none;
    border-color: var(--police-secondary, #0b72c7);
    box-shadow: 0 0 0 3px rgba(11, 114, 199, 0.1);
}

.mobile-search-btn {
    padding: 12px 15px;
    background-color: var(--police-secondary, #0b72c7);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 50px;
}

.mobile-search-btn:hover {
    background-color: var(--police-primary, #054285);
}

.mobile-police-group {
    display: flex;
    gap: 10px;
}

.mobile-police-dropdown {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Khand', sans-serif;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-police-dropdown:focus {
    outline: none;
    border-color: var(--police-secondary, #0b72c7);
    box-shadow: 0 0 0 3px rgba(11, 114, 199, 0.1);
}

.mobile-police-btn {
    padding: 12px 15px;
    background-color: var(--police-secondary, #0b72c7);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 50px;
}

.mobile-police-btn:hover {
    background-color: var(--police-primary, #054285);
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 420px;
    max-width: 95vw;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px; /* Reduce padding from 20px to 10px */
    background-color: var(--police-secondary, #0b72c7);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-header h3 {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-content {
    padding: 0;
    background-color: #ffffff;
}

.mobile-nav-item {
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-nav-item:hover {
    background-color: #f8f9fa;
}

.mobile-nav-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 10px; /* Reduce padding from 15px 20px to 12px 10px */
    background: none;
    border: none;
    text-align: left;
    font-family: 'Khand', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-nav-btn:hover {
    background-color: #f8f9fa;
}

.mobile-nav-link {
    display: block;
    padding: 12px 10px; /* Reduce padding from 15px 20px to 12px 10px */
    font-family: 'Khand', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
}

/* Mobile Submenu */
.mobile-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    transition: left 0.3s ease;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-submenu.active {
    left: 0;
}

.mobile-submenu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.mobile-back-btn {
    background: none;
    border: none;
    color: var(--police-secondary, #0b72c7);
    font-family: 'Khand', sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-submenu-header h4 {
    margin: 0;
    margin-left: 15px;
    font-family: 'Khand', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #333;
}

.mobile-submenu a {
    display: block;
    padding: 15px 20px;
    font-family: 'Khand', sans-serif;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
}

.mobile-submenu a:hover {
    background-color: #f8f9fa;
}

/* Ensure submenu scrolling works properly */
.mobile-submenu {
    box-sizing: border-box;
    padding-bottom: 40px; /* Add bottom padding for better scroll experience */
}

.mobile-submenu-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Mobile Navigation Logo Section */
.mobile-nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    margin-top: auto; /* Push to bottom */
}

.mobile-nav-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.mobile-nav-logo-text {
    text-align: center;
}

.mobile-nav-logo-title {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--police-secondary, #0b72c7);
    margin: 0 0 5px 0;
}

.mobile-nav-logo-subtitle {
    font-family: 'Khand', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #666;
    margin: 0;
}

.mobile-emergency-info h4 {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 15px 0;
    color: var(--police-secondary, #0b72c7);
}

.mobile-emergency-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-family: 'Khand', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

@media (max-width: 768px) {
    /* Mobile header base styles */
    .nagpur-police-header {
        padding: 0; /* Remove all padding on mobile */
    }

    .main-header {
        padding: 10px 0;
        min-height: auto;
        width: 100%;
        background: transparent;
    }

    .header-container {
        padding: 0 1rem; /* Match px-4 (1rem = 16px) from slider */
        width: 100%; /* Full width like slider */
        max-width: 80rem; /* Match max-w-7xl from slider */
        margin: 5px auto 0 auto; /* Center like mx-auto from slider */
        border-radius: 8px;
    }

    /* Mobile header top row layout */
    .header-top-row {
        display: flex !important;
        flex-direction: row !important; /* Keep horizontal on mobile */
        align-items: center !important;
        justify-content: space-between !important; /* Space between logo and menu button */
        padding: 15px 0;
        border-bottom: none;
        gap: 10px;
        width: 100%;
    }

    /* Logo section on mobile */
    .logo-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px;
        flex: 1;
        min-width: 0;
        text-align: left !important;
    }

    .logo-img {
        height: 35px;
        width: auto; /* Let width adjust automatically to maintain aspect ratio */
        flex-shrink: 0;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
        object-fit: contain; /* Ensure proper scaling */
    }

    .logo-text {
        flex: 1;
        min-width: 0;
        text-align: left !important;
    }

    .logo-text h1 {
        font-size: 18px !important;
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left !important;
        color: var(--police-primary, #054285);
    }

    .logo-text p {
        font-size: 12px !important;
        margin: 2px 0 0 0;
        line-height: 1.1;
        color: var(--police-secondary, #0b72c7);
        text-align: left !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 8px;
        order: 2; /* Position after logo */
    }

    /* Hide main navigation and search on mobile */
    .header-nav-row,
    .main-navigation,
    .search-container {
        display: none !important;
    }

    /* Mobile Navigation Footer Styles */
    .mobile-nav-footer {
        margin-top: 30px;
        padding: 20px;
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
    }

    .mobile-emergency-info {
        margin-bottom: 20px;
    }

    .mobile-emergency-info h4 {
        color: var(--police-primary, #054285);
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        font-family: 'Khand', sans-serif;
    }

    .mobile-emergency-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: #333;
        font-family: 'Khand', sans-serif;
        padding: 8px 12px;
        background-color: #ffffff;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }

    .mobile-language-switcher {
        text-align: center;
    }

    .mobile-lang-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: var(--police-secondary, #0b72c7);
        color: white;
        padding: 14px 24px;
        border-radius: 8px;
        text-decoration: none;
        font-family: 'Khand', sans-serif;
        font-weight: 500;
        transition: all 0.3s ease;
        border: none;
    }

    .mobile-lang-btn:hover {
        background-color: var(--police-primary, #054285);
        color: white;
        text-decoration: none;
    }

    .mobile-lang-btn i {
        font-size: 16px;
    }
}

/* Ensure search container is visible on desktop only */
@media (min-width: 1025px) {
    .search-container {
        display: flex !important;
    }
    
    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Tablet Mobile Menu Mode - Use hamburger menu for all tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Show mobile menu toggle on tablets */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 8px;
        order: 2;
    }

    /* Hide main navigation and search on tablets */
    .header-nav-row,
    .main-navigation,
    .search-container {
        display: none !important;
    }

    /* Tablet header layout - same as mobile but with better proportions */
    .header-top-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 0;
        border-bottom: none;
        gap: 15px;
        width: 100%;
    }

    .header-container {
        margin: 0 3%;
        width: 94%;
        padding: 0 15px;
    }

    /* Logo section on tablets */
    .logo-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px;
        flex: 1;
        min-width: 0;
        text-align: left !important;
    }

    .logo-img {
        height: 40px;
        width: auto; /* Let width adjust automatically to maintain aspect ratio */
        flex-shrink: 0;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
        object-fit: contain; /* Ensure proper scaling */
    }

    .logo-text {
        flex: 1;
        min-width: 0;
        text-align: left !important;
    }

    .logo-text h1 {
        font-size: 22px !important;
        margin: 0;
        line-height: 1.2;
        color: var(--police-primary, #054285);
        text-align: left !important;
    }

    .logo-text p {
        font-size: 14px !important;
        margin: 2px 0 0 0;
        line-height: 1.1;
        color: var(--police-secondary, #0b72c7);
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .nagpur-police-header {
        padding: 10px 0 0 0; /* Remove side padding for mobile */
    }
    
    .main-header {
        width: 100%; /* Full width on mobile */
        max-width: 100%; /* No cropping on mobile */
        border-radius: 12px; /* Slightly smaller radius for mobile */
        margin: 5px auto 0 auto; /* Smaller top margin on mobile */
    }
    
    .header-container {
        padding: 0 15px; /* Smaller padding on mobile */
        width: calc(100% - 30px); /* Account for padding */
        margin: 5px 15px 0 15px; /* Side margins for mobile - small crop */
        border-radius: 12px; /* Slightly smaller radius for mobile */
    }
}

@media (max-width: 480px) {
    .nagpur-police-header {
        padding: 5px 0 0 0;
    }

    .main-header {
        padding: 8px 0;
        margin: 2px auto 0 auto;
    }

    .header-container {
        padding: 0 0.75rem; /* Match mobile slider px-4 but slightly smaller */
        width: 100%; /* Full width like slider */
        max-width: 80rem; /* Match max-w-7xl from slider */
        margin: 2px auto 0 auto; /* Center like mx-auto from slider */
        border-radius: 6px;
    }

    .header-top-row {
        padding: 12px 0;
        gap: 8px;
    }

    .logo-img {
        height: 32px;
        width: auto; /* Let width adjust automatically to maintain aspect ratio */
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
        object-fit: contain; /* Ensure proper scaling */
    }

    .logo-text h1 {
        font-size: 16px !important;
        line-height: 1.1;
    }

    .logo-text p {
        font-size: 10px !important;
        margin: 1px 0 0 0;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .mobile-navigation {
        width: 65vw; /* Reduce width to 65% for smaller screens */
        right: -65vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-group {
        flex-direction: column;
    }

    .search-bar,
    .police-dropdown {
        width: 100%;
    }
}


