/* Override blue background for footer middle section */
.footer-middle-section {
    background-color: #ffffff !important;
    color: #374151 !important;
}

/* Region Tabs Styling - Proper Tab Design */
.region-tabs {
    /* border-bottom: 1px solid #e5e7eb; */
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.region-tabs .nav-tabs {
    border-bottom: none !important;
    padding-left: 0 !important;
    gap: 0;
    margin-left: 0 !important;
}

.region-tabs .nav-tabs .nav-link {
    padding: 0.75rem 0 !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 1.5rem !important;
}

.region-tabs .nav-tabs .nav-link:first-child {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.region-tab {
    background: none !important;
    border: none !important;
    color: #0d1722 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    padding: 0.75rem 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    width: auto !important;
    display: inline-block !important;
}

.region-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: width 0.2s ease;
}

.region-tab:hover {
    color: #0d1722 !important;
    background: none !important;
    border: none !important;
}

.region-tab:hover::after {
    width: 100%;
    background-color: #e5e7eb;
}

.region-tab.active {
    color: #2c6ffd !important;
    background: none !important;
    border: none !important;
    font-weight: 700 !important;
}

.region-tab.active::after {
    width: 100%;
    background-color: #2c6ffd;
}

/* Override any Bootstrap primary colors */
.region-tab:focus,
.region-tab:focus-visible,
.region-tab:active {
    color: #2c6ffd !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.region-tab:focus::after,
.region-tab:focus-visible::after,
.region-tab:active::after {
    width: 100%;
    background-color: #2c6ffd;
}

/* Ensure consistent styling with nav-tabs */
.nav-tabs .nav-link {
    color: #012152 !important;
    border-color: transparent !important;
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    position: relative;
}

.nav-tabs .nav-link.active {
    background-color: transparent !important;
    border: none !important;
    color: #012152 !important;
}

.cities-grid {
    min-height: 150px;
    margin-top: 1.5rem;
}

.city-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 18px !important;
    color: #012152 !important;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.city-link:hover {
    color: #2c6ffd !important;
    transform: translateY(-1px);
}

/* Mobile accordion styling - remove blue background */
@media (max-width: 768px) {
    .footer-middle-section .accordion-item {
        background-color: #ffffff !important;
        border: 1px solid #e5e7eb !important;
    }
    
    .footer-middle-section .accordion-button {
        background-color: #ffffff !important;
        color: #0d1722 !important;
        font-weight: 700 !important;
        font-size: 18px !important;
        border: none !important;
    }
    
    .footer-middle-section .accordion-button:not(.collapsed) {
        background-color: #ffffff !important;
        color: #2c6ffd !important;
        box-shadow: none !important;
    }
    
    .footer-middle-section .accordion-button:focus {
        background-color: #ffffff !important;
        color: #0d1722 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .footer-middle-section .accordion-body {
        background-color: #ffffff !important;
        color: #0d1722 !important;
    }
    
    .footer-middle-section .accordion-body a {
        color: #0d1722 !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        display: block !important;
        padding: 0.5rem 0 !important;
    }
    
    .footer-middle-section .accordion-body a:hover {
        color: #2c6ffd !important;
        transform: translateY(-1px) !important;
    }
    .footer-top-section .col-md-2 {
        text-align: center;
    }
    
    /* Reduce padding on mobile */
    .footer-top-section {
        padding-top: 2rem !important;
    }
    
    .footer-top-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce margins and padding for mobile */
    .footer-top-section .row {
        margin-bottom: 2rem !important;
    }
    
    .footer-top-section h4 {
        margin-bottom: 1.5rem !important;
        font-size: 1.25rem !important;
    }
    
    .footer-top-section .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    /* Optimize newsletter section */
    .footer-top-section .col-md-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Reduce accordion spacing */
    .accordion-item {
        margin-bottom: 0.5rem !important;
    }
    
    .accordion-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 0.75rem 1rem !important;
    }
    
    /* Middle section mobile optimization */
    .footer-middle-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .footer-middle-section h4 {
        margin-bottom: 1.5rem !important;
        font-size: 1.25rem !important;
    }
    
    /* Bottom section mobile optimization */
    .footer-bottom-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .footer-bottom-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce gap between elements */
    .footer-bottom-section .gap-5 {
        gap: 1.5rem !important;
    }
    
    .footer-bottom-section .gap-3 {
        gap: 1rem !important;
    }
    
    /* Optimize blog slider for mobile */
    .blogSwiper {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .blogSwiper h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .blogSwiper .lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }
    
    /* Additional mobile optimizations */
    .footer-top-section .newsletter-column {
        margin-top: 1rem !important;
    }
    
    .footer-top-section .ms-3 {
        margin-left: 0.5rem !important;
    }
    
    /* Reduce form spacing */
    .footer-email-form {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Optimize logo spacing */
    .footer-logo-img {
        margin-top: 1rem !important;
    }
    
    /* Reduce region accordion spacing */
    .footer-middle-section .accordion-item {
        margin-bottom: 0.5rem !important;
    }
    
    /* Optimize footer bottom section */
    .footer-bottom-section .gap-5 {
        gap: 1rem !important;
    }
    
    .footer-bottom-section .small {
        font-size: 0.8rem;
    }
    
    /* Ensure no horizontal overflow */
    .footer-top-section,
    .footer-middle-section,
    .footer-bottom-section {
        overflow-x: hidden;
    }
}
