/* Pre-loader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e4d7b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-logo {
    font-size: 28px;
    font-weight: 700;
    color: #1e4d7b;
    margin-bottom: 10px;
}

.preloader-text {
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Header - White Background */
.top-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.top-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input-box {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input-box:focus {
    border-color: #1e4d7b;
    box-shadow: 0 0 0 3px rgba(30, 77, 123, 0.1);
}

.search-icon-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e4d7b;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-icon-btn:hover {
    background: #163a5f;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item i {
    color: #1e4d7b;
    width: 20px;
}

.search-result-category {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* Right Side Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* City Selector */
.city-selector {
    position: relative;
}

.city-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.city-dropdown-btn:hover {
    background: #e9ecef;
    border-color: #1e4d7b;
}

.city-dropdown-btn i {
    color: #1e4d7b;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    min-width: 180px;
    display: none;
    z-index: 100;
}

.city-dropdown.active {
    display: block;
}

.city-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-option:last-child {
    border-bottom: none;
}

.city-option:hover {
    background: #f8f9fa;
}

.city-option.selected {
    background: #e3f2fd;
    color: #1e4d7b;
    font-weight: 600;
}

/* Live Connect Button */
.live-connect {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.live-connect:hover {
    border-color: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e4d7b;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(30, 77, 123, 0.3);
}

/* Main Navigation - MINIMIZED HEIGHT WITH LARGER TEXT */
.main-nav {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    height: 50px;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

/* ALL MENU ITEMS - WITH YELLOW UNDERLINE ON HOVER */
.nav-menu li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 17px; /* INCREASED FONT SIZE */
    padding: 10px 25px; /* MINIMIZED HEIGHT */
    transition: all 0.3s;
    position: relative;
}

.nav-menu li a:hover {
    color: #1e4d7b;
    background: #ffffff;
}

/* YELLOW UNDERLINE FOR LEFT MENU */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #fbbf24;
    transition: width 0.3s;
    bottom: 6px;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a.active::after {
    width: 100%;
}

/* RIGHT SIDE ITEMS - SAME STYLING WITH YELLOW UNDERLINE */
.nav-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-right a {
    text-decoration: none !important;
    color: #333;
    font-weight: 600;
    font-size: 17px; /* INCREASED FONT SIZE */
    padding: 10px 0; /* MINIMIZED HEIGHT */
    transition: all 0.3s;
    position: relative;
    bottom: 4px;
}

.nav-right a:hover {
    color: #1e4d7b;
}

/* YELLOW UNDERLINE FOR RIGHT SIDE TOO */
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #fbbf24;
    transition: width 0.3s;
}

.nav-right a:hover::after {
    width: 100%;
}

.nav-right a.active {
    color: #1e4d7b;
    font-weight: 700;
}

.nav-right a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1e4d7b;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu - Hidden on Desktop */
.mobile-menu {
    display: none;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .nav-menu li a {
        padding: 10px 20px;
        font-size: 16px;
    }

    .nav-right a {
        font-size: 16px;
    }

    .nav-right {
        gap: 20px;
    }
}

/* Mobile Styles - ONE ROW: Logo / Search Icon / Location / Hamburger */
@media (max-width: 768px) {
    /* Top Header - Single Row Grid Layout */
    .top-header-content {
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "logo search city hamburger";
        gap: 12px;
        align-items: center;
    }

    .logo {
        grid-area: logo;
    }

    .logo-image {
        height: 45px;
    }

    /* Search Container - Show Only Icon */
    .search-container {
        grid-area: search;
        max-width: 40px;
        position: relative;
        transition: all 0.3s ease;
    }

    .search-wrapper {
        position: relative;
    }

    /* Hide search input box by default */
    .search-input-box {
        display: none;
    }

    .search-icon-btn {
        position: static;
        transform: none;
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Expanded Search State on Mobile */
    .search-container.search-expanded {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        max-width: 100%;
        z-index: 1001;
        background: white;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .search-container.search-expanded .search-input-box {
        display: block;
        width: 100%;
    }

    .search-container.search-expanded .search-icon-btn {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 6px;
        width: auto;
        padding: 8px 15px;
    }

    .search-container.search-expanded .search-results {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 10px;
    }

    .search-results {
        left: -100px;
        min-width: 280px;
    }

    .header-actions {
        display: contents;
    }

    /* Show City Selector on Mobile */
    .city-selector {
        display: block;
        grid-area: city;
    }

    .city-dropdown-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 120px;
    }

    .city-dropdown-btn span {
        display: inline;
    }

    .city-dropdown {
        right: 0;
        left: auto;
    }

    /* Hide Live Connect on Mobile */
    .live-connect {
        display: none;
    }

    /* Social Icons - Hidden */
    .social-icons {
        display: none;
    }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
        grid-area: hamburger;
    }

    /* Hide Main Nav Bar on Mobile */
    .main-nav {
        display: none;
    }

    /* Mobile Menu Styles */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li {
        width: 100%;
    }

    .mobile-menu-list li a {
        display: block;
        padding: 16px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s;
    }

    .mobile-menu-list li a:hover {
        background: #f8f9fa;
        color: #1e4d7b;
    }

    .mobile-menu-list li a.active {
        background: #fbbf24;
        color: #1a1a2e;
        border-left: 5px solid #1e4d7b;
    }

    .mobile-menu-list li a i {
        margin-right: 10px;
        color: #1e4d7b;
    }

    /* Separator before Contact Us */
    .mobile-menu-list li.separator a {
        border-top: 3px solid #1e4d7b;
        margin-top: 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .top-header-content {
        grid-template-columns: auto 40px 1fr 40px;
        gap: 8px;
    }

    .logo-image {
        height: 40px;
    }

    .search-icon-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .city-dropdown-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
    display: none;
}

.overlay.active {
    display: block;
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: #333;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #1e4d7b;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
