/* Custom Header Search Styles */
.header-search-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2px 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header style adaptation */
header.fixedHeader .header-search-form {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

header.fixedHeader .header-search-form input {
    color: #fff;
}

header.fixedHeader .header-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

header.fixedHeader .header-search-form button {
    color: #fff;
}

header.scrollHeader .header-search-form {
    background: #f8f9fa;
    border-color: #dee2e6;
}

header.scrollHeader .header-search-form input {
    color: #1e3e55;
}

header.scrollHeader .header-search-form input::placeholder {
    color: #adb5bd;
}

header.scrollHeader .header-search-form button {
    color: #1e3e55;
}

.header-search-form input {
    border: none;
    background: none;
    outline: none;
    width: 130px;
    height: 32px;
    font-size: 13px;
    padding: 0 5px;
    transition: width 0.3s ease;
    color: #fff;
}

.header-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-form button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.3s ease;
    color: #fff;
}

.header-search-form input {
    border: none;
    background: none;
    outline: none;
    width: 130px;
    height: 32px;
    font-size: 13px;
    padding: 0 5px;
    transition: width 0.3s ease;
}

.header-search-form input:focus {
    width: 180px;
}

.header-search-form button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.3s ease;
}

.header-search-form:hover,
.header-search-form:focus-within {
    border-color: #d8973d !important;
    background: #fff !important;
}

header.fixedHeader .header-search-form:hover,
header.fixedHeader .header-search-form:focus-within {
    background: rgba(255, 255, 255, 0.2) !important;
}

.header-search-form button:hover {
    color: #d8973d !important;
}

/* Improve the theme's default top-search overlay */
.top-search.bg-primary {
    background: #1e3e55 !important;
    border-bottom: 3px solid #d8973d;
    height: 60px;
    /* Reduced from 100px */
    align-items: center;
    z-index: 10001;
    /* Above sticky header */
}

.top-search .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    /* Reduced from 1.5rem */
    box-shadow: none !important;
    height: 60px;
    padding-top: 0;
    padding-bottom: 0;
}

.top-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.top-search .input-group-addon {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.1rem !important;
    /* Reduced from 1.5rem */
    display: flex;
    align-items: center;
}

.top-search .close-search {
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-search .close-search:hover {
    color: #d8973d !important;
}

/* Header sticky and visibility fixes */
header.scrollHeader {
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header.scrollHeader .navbar-default {
    background: #fff !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Breadcrumb / Page Title Section Improvements */
.page-title-section {
    padding: 190px 0 90px !important;
    /* Restored to Original Theme Default */
}

/* Mobile Small Screen Fix (<575px) */
@media screen and (max-width: 575px) {
    .page-title-section {
        padding: 140px 0 70px !important;
        /* Theme default for <575px */
    }
}

.page-title-section h1 {
    font-size: 40px !important;
    /* Slightly smaller and cleaner */
    font-weight: 800;
    letter-spacing: 2px;
}


/* Layout Fixes for Homepage */
/* Compensate for the negative margin so the slider covers the full screen including the bottom gap */
.top-position1.full-screen {
    min-height: calc(100vh + 73px) !important;
}

/* Missing Theme Utility Classes */
.mt-n1-9 {
    margin-top: -1.9rem !important;
}

.mt-n2-9 {
    margin-top: -2.9rem !important;
}

/* Mobile specific fixes (max-width: 991px) */
@media screen and (max-width: 991px) {

    /* Remove the negative margin overlap on mobile to prevent covering slider content */
    .mt-n2-9 {
        margin-top: 0 !important;
    }

    /* Ensure slider text is legible and not hidden */
    .top-position1.full-screen {
        min-height: calc(100vh + 73px) !important;
        /* Fixed: Compensate for negative margin on mobile too */
    }
}

.mt-1-9 {
    margin-top: 1.9rem !important;
}

.mt-2-9 {
    margin-top: 2.9rem !important;
}

.mt-6 {
    margin-top: 6rem !important;
}

.mb-1-6 {
    margin-bottom: 1.6rem !important;
}

.mb-1-9 {
    margin-bottom: 1.9rem !important;
}

.mb-2-9 {
    margin-bottom: 2.9rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.pt-1-9 {
    padding-top: 1.9rem !important;
}

.pt-2-9 {
    padding-top: 2.9rem !important;
}

.pt-6 {
    padding-top: 6rem !important;
}

.pb-1-9 {
    padding-bottom: 1.9rem !important;
}

.pb-2-9 {
    padding-bottom: 2.9rem !important;
}

.pb-6 {
    padding-bottom: 6rem !important;
}

.p-1-9 {
    padding: 1.9rem !important;
}

.p-2-9 {
    padding: 2.9rem !important;
}

.pe-1-6 {
    padding-right: 1.6rem !important;
}

.pe-1-9 {
    padding-right: 1.9rem !important;
}

.pe-2-9 {
    padding-right: 2.9rem !important;
}

.ps-1-6 {
    padding-left: 1.6rem !important;
}

.ps-1-9 {
    padding-left: 1.9rem !important;
}

.ps-2-9 {
    padding-left: 2.9rem !important;
}

.px-1-6 {
    padding-left: 1.6rem !important;
    padding-right: 1.6rem !important;
}

.px-1-9 {
    padding-left: 1.9rem !important;
    padding-right: 1.9rem !important;
}

.px-2-9 {
    padding-left: 2.9rem !important;
    padding-right: 2.9rem !important;
}

.py-1-6 {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
}

.py-1-9 {
    padding-top: 1.9rem !important;
    padding-bottom: 1.9rem !important;
}

.py-2-9 {
    padding-top: 2.9rem !important;
    padding-bottom: 2.9rem !important;
}

.about-style01 {
    position: relative;
    z-index: 2;
    /* Ensure proper stacking relative to banner */
    background-color: transparent;
    /* Changed to transparent to allow overlap if needed, or white if card based */
}

/* About style uses nested elements for background, so section bg should be transparent or default */

/* Mobile specific fixes */
@media screen and (max-width: 991px) {

    /* Breadcrumb Mobile Overrides - Restoring Original Theme Values */
    .page-title-section {
        padding: 210px 0 50px !important;
        /* Theme default for <991px */
    }

    .page-title-section h1 {
        font-size: 28px !important;
        margin-bottom: 5px !important;
    }

    /* Hide desktop integrated search on mobile */
    .header-search-container {
        display: none !important;
    }

    /* Ensure normal search icon is visible and works as a toggle */
    .attr-nav ul li.search {
        display: block !important;
    }

    /* Fixed header z-index on mobile */
    header.fixedHeader {
        z-index: 999;
    }

    /* Force Sticky Header on Mobile */
    header.header-style3 {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999 !important;
    }

    /* Ensure proper background when scrolling on mobile */
    header.header-style3.scrollHeader {
        background-color: #fff !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    /* Fix Search Icon Color in Sticky Header on Mobile */
    header.header-style3.scrollHeader .attr-nav ul li.search a {
        color: #d8973d !important;
    }
}

/* Ensure Logo doesn't get squashed */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* About Us feature boxes mobile optimization */
@media screen and (max-width: 575px) {
    .about-style01 .about-img-text .col-sm-6>div {
        padding: 12px !important;
        border-radius: 5px !important;
    }

    .about-style01 .about-img-text .display-23 {
        font-size: 1.1rem !important;
        margin-bottom: 3px !important;
    }

    .about-style01 .about-img-text p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }

    .about-style01 .about-img-text {
        bottom: 15px !important;
        width: 95% !important;
    }

    /* About style 01 general mobile text shrinking */
    .about-style01 h2.display-4 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .about-style01 .steps-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .about-style01 .steps-content p {
        font-size: 0.85rem !important;
    }

    /* General Mobile Typography & Spacing */
    h1,
    .display-1 {
        font-size: 2.5rem !important;
    }

    h2,
    .display-4 {
        font-size: 1.8rem !important;
    }

    h3,
    .display-5 {
        font-size: 1.5rem !important;
    }

    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Mobile Nav Touch Targets */
    .navbar-toggler {
        width: 45px;
        height: 45px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px !important;
    }

    /* Footer Mobile Optimization */
    footer .list-style02 li {
        margin-bottom: 12px !important;
    }

    footer .list-style02 li a {
        display: block;
        padding: 8px 0;
        font-size: 15px;
    }

    /* Card Mobile Fixes */
    .card-style05 .blog-img img {
        height: 200px !important;
    }

    /* Cookie Banner Mobile */
    .cookie-banner {
        width: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        padding: 15px !important;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    .cookie-buttons {
        margin-top: 15px;
        width: 100%;
    }

    .cookie-buttons button {
        width: 100%;
    }
}

/* Performance and Smoothness */
/* Performance and Smoothness */
/* .wow {
    visibility: hidden;
} */

/* Image Aspect Ratio Consistency */
.partner-logo {
    object-fit: contain;
}

/* Better Tap Targets for Buttons */
.butn-style01,
.butn-style02,
.butn-style03 {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility: Improve Contrast for Primary Color Backgrounds */
.bg-primary,
.butn-style01,
.butn-style02 {
    color: #1e3e55 !important;
}

.butn-style01 span,
.butn-style02 span {
    color: #1e3e55 !important;
}

/* Ensure secondary buttons (Dark Blue) keep white text, as that is high contrast */
.butn-style01.secondary,
.butn-style02.secondary {
    color: #ffffff !important;
}

.butn-style01.secondary span,
.butn-style02.secondary span {
    color: #ffffff !important;
}

/* Fix Top Search Text Contrast */
.top-search.bg-primary {
    color: #1e3e55 !important;
}

.top-search .input-group-addon {
    color: #1e3e55 !important;
}

.top-search .close-search:hover {
    color: #fff !important;
    /* Invert hover for visibility on gold */
}