/* ********************************** General/Global Styles ********************************** */
/* Ensure no body margins/padding cause scroll issues */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Additional safeguard against horizontal scroll */
}
 
/* .navbar {
    height: 8vh;
} */

/* Section below hero */
.content-section {
    background-color: #f5f5f5;
    padding: 150px 40px 50px;
    min-height: 400px;
}

.states-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* General Location Card Styles (used in multiple contexts) */
.location-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 300px;
    flex-shrink: 0;
}

.location-card-header {
    background-color: #003f7f;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.location-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.location-card-content {
    padding: 20px;
    background: white;
}

.location-card-logo {
    width: 120px;
    margin-bottom: 10px;
}

.location-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.location-card-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #003f7f;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 15px;
}

.phone-icon {
    background-color: #003f7f;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Phone Number Badge */
.phone-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-80%);
    background-color: white;
    padding: 0px 0px;
    /* border-radius: 25px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    /* gap: 10px; */
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-badge:hover {
    background-color: #0066cc;
    color: white;
    transform: translateX(-50%) translateY(-2px);
}

.phone-badge .arrow-icon {
    background-color: #0066cc;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.phone-badge:hover .arrow-icon {
    background-color: white;
    color: #0066cc;
}

/* ********************************** Location Over Section ********************************** */
.locard {
    background: radial-gradient(circle at 39% 40%, #2B7CE6 17%, #1B67D1 30%, #155EBC 45%, #0F4A9C 80%, #0A3A7C 100%);
    background-color: #155EBC;
    position: relative;
    max-width: 100%;
    margin: 0;
    z-index: 20; /* Higher z-index to appear above everything */
}

.locationcard {
    width: 100%;
    height: auto;
    z-index: 5;
    /* max-height: 0rem; */
}

.headtext p {
    color: white;
    margin-left: auto;
    color: #FFF;
    font-size: 1.2rem;
    /* font-size: clamp(1rem, 2.5vw, 1.563rem); */
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.img1 {
    position: relative;
}

.subimg {
    position: absolute;
    /* top: -2.5rem;
    left: 1.5rem; */
    border: 1px solid white;
    top: -17%;
    left: 5%;
}

.subsec1 {
    background: linear-gradient(90deg, rgba(96, 163, 255, 0) 0%, rgba(25, 94, 188, 0.8) 9%, rgba(141, 196, 247, 0.7) 65%, rgba(141, 196, 247, 0.5) 100%);
    padding: 0.6rem 1.5rem;
    position: absolute;
    top: 4.5rem;
    left: -1rem;
    border-radius: 0.5rem;
}

.subsec2 {
    padding: 0.6rem 1.5rem;
    position: absolute;
    top: 77.99%;
    right: 18%;
    font-size: 1.875rem;
}

.subsec3 {
    position: absolute;
    top: 73%;
    right: 2%;
}

.bodysec {
    color: #FFF;
    font-size: clamp(1.2rem, 4vw, 2.101rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.subsec1 p, .subsec2 p {
    font-size: 1.101rem !important;
}

/* Location Over - Mask Elements */
.mask-container {
    width: 100%; /* Use full container width */
    margin: 0 auto;
    padding: 0;
}

.mask-pos-target {
    display: block;
    width: 100%;
    height: auto;
    min-height: clamp(250px, 30vw, 400px); /* Increased height */
    margin: 0 auto;
    mask-image: url('/assets/images/pages/locations/mask.png');
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-position: center;
}

.mask-logo {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1rem);
    left: clamp(1rem, 3vw, 2rem);
    border: 1px #FFF solid;
    z-index: 1;
    width: clamp(3rem, 8vw, 6rem);
    height: clamp(3rem, 8vw, 6rem);
}

.mask-title {
    position: absolute;
    top: clamp(2rem, 6vw, 4rem);
    left: 0rem;
    background: linear-gradient(
        90deg,
        rgba(96, 163, 255, 0) 0%,
        rgba(25, 94, 188, 0.8) 9%,
        rgba(141, 196, 247, 0.7) 65%,
        rgba(141, 196, 247, 0.5) 100%
    );
    z-index: 2;
    padding: clamp(3px, 1vw, 8px) clamp(6px, 1.5vw, 12px);
    color: white;
    font-size: clamp(0.875rem, 2.5vw, 1.875rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: clamp(3px, 0.5vw, 6px);
}

.mask-phone {
    position: absolute;
    bottom: clamp(2rem, 4vw, 3rem);
    right: 0rem;
    transform: translateX(-40%);
    background: linear-gradient(
        90deg,
        rgba(96, 163, 255, 0.1) 0%,
        rgba(25, 94, 188, 0.8) 9%,
        rgba(141, 196, 247, 0.7) 65%,
        rgba(141, 196, 247, 0.5) 100%
    );
    z-index: 2;
    padding: clamp(3px, 1vw, 8px) clamp(6px, 1.5vw, 12px);
    color: white;
    font-size: clamp(0.75rem, 2vw, 1.875rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: clamp(3px, 0.5vw, 6px);
}

.mask-iconphone {
    position: absolute;
    z-index: 5;
    right: clamp(4rem, 4vw, 5rem);
    bottom: clamp(2rem, 5vw, 3.5rem);
    width: clamp(1rem, 2.5vw, 2rem);
    height: auto;
}

/* Location Over - Responsive Styles */
/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
    .subsec1 {
        padding: 0.5rem 1.2rem;
        top: 2.5rem;
        left: -0.5rem;
    }

    .subsec2 {
        top: 75%;
        right: 12%;
        font-size: 1.5rem;
        padding: 0.5rem 1.2rem;
    }

    .subsec3 {
        top: 71%;
        right: 1%;
    }

    .subsec1 p, .subsec2 p {
        font-size: 1rem !important;
    }
}

/* Mobile landscape and small tablets (480px - 768px) */
@media (max-width: 768px) {
    .subimg {
        top: -1.5rem;
        left: 1rem;
    }

    .subsec1 {
        padding: 0.4rem 1rem;
        top: 2rem;
        left: 0;
        font-size: 0.875rem;
    }

    .subsec2 {
        top: 72%;
        right: 6%;
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .subsec3 {
        top: 68%;
        right: 1%;
    }

    .subsec1 p, .subsec2 p {
        font-size: 0.875rem !important;
    }
}

/* Mobile portrait (320px - 480px) */
@media (max-width: 480px) {
    .headtext p {
        margin-left: 0;
        text-align: center;
        padding: 0 1rem;
    }

    .subimg {
        top: -1rem;
        left: 0.5rem;
        max-width: 80%;
    }

    .subsec1 {
        padding: 0.3rem 0.8rem;
        top: 1.5rem;
        left: 0;
        right: 0;
        margin: 0 0.5rem;
        font-size: 0.75rem;
    }

    .subsec2 {
        top: 74%;
        right: 8%;
        font-size: 0.875rem;
        padding: 0.3rem 0.8rem;
    }

    .subsec3 {
        top: 70%;
        right: 0.5%;
        font-size: 0.75rem;
    }

    .bodysec {
        padding: 0 1rem;
        text-align: center;
    }

    .subsec1 p, .subsec2 p {
        font-size: 0.75rem !important;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    .subsec1 {
        position: relative;
        top: 1rem;
        left: 0;
        margin: 0.5rem;
    }

    .subsec2 {
        position: relative;
        top: auto;
        right: auto;
        margin: 0.5rem;
        text-align: center;
    }

    .subsec3 {
        position: relative;
        top: auto;
        right: auto;
        margin: 0.5rem;
        text-align: center;
    }
}

/* Container query support for modern browsers */
@container (max-width: 768px) {
    .subsec1, .subsec2, .subsec3 {
        position: relative;
        inset: auto;
        margin: 0.5rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .subsec1 {
        top: 1rem;
    }

    .subsec2, .subsec3 {
        top: auto;
        bottom: 1rem;
    }
}

/* Mask responsive styles */
@media (min-width: 500px) and (max-width: 768px) {
    .mask-container {
        width: 100%; /* Use full container width */
        height:100%;
        margin: 0 auto;
        padding: 0rem;
    }

    .mask-pos-target {
        height: 10rem;
    }

    .mask-pos-target img {
        width: 100%;
    }

    .mask-title {
        top: 5rem;
        left:1rem;
    }

    .mask-iconphone {
        z-index: 5;
        right: 3rem;
        bottom: 2rem;
        height: auto;
    }

    .mask-iconphone img {
        width: 3rem;
        height: auto;
    }

    .mask-phone {
        transform: translateX(-60%);
    }
}

@media (max-width: 499px) {
    .mask-container {
        width: 100%; /* Use full container width */
        height:100%;
        margin: 0 auto;
        padding: 0rem;
    }

    .mask-pos-target {
        height: 10rem;
    }

    .mask-pos-target img {
        width: 100%;
    }

    .mask-title {
        top: 2rem;
        left:0rem;
    }

    .mask-iconphone {
        z-index: 5;
        right: 4.5rem;
        bottom: 1.5rem;
        height: auto;
    }

    .mask-iconphone img {
        width: 3rem;
        height: auto;
    }

    .mask-phone {
        transform: translateX(-55%);
        bottom:1.5rem;
    }
}

/* ********************************** Hero Section ******************************* */

.hero__image {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    margin: 0;
    /* Create gradient background: 90% hero image, 10% white */
    background: 
        linear-gradient(to bottom, 
            transparent 0%, 
            transparent 90%, 
            white 90%, 
            white 100%
        ),
        url('/assets/images/pages/locations/hero-img.png') center top / cover no-repeat;
    /* margin-top: 8vh; */
    padding-bottom: 0;
    overflow: visible;
    z-index: 1;
}

.hero__image .carousel-caption {
    position: static !important;
    padding: 20rem 0rem 2rem 0rem;
    text-align: left;
}

.hero__image .carousel-caption h1 {
    font-size: clamp(2rem, 6.8vw, 8.125rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    color: white;
}

/* Ensure search section follows naturally */
.search-section {
    position: relative;
    max-width: 100%;
    margin: 0;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.search-label {
    color: white;
    font-size: clamp(1.2rem, 3vw, 2rem); /* Responsive font size */
    margin-bottom: 10px;
    display: block;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: clamp(350px, 50vw, 600px); /* Match card width */
    /* margin: 0 auto; */
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: clamp(12px, 2.5vw, 15px) clamp(40px, 8vw, 50px) clamp(12px, 2.5vw, 15px) clamp(40px, 8vw, 50px);
    border: 2px solid #fff;
    border-radius: clamp(4px, 1vw, 8px);
    font-size: clamp(0.875rem, 2vw, 1rem);
    background: transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.75); /* White with 50% opacity */
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #155EBC;
    color: white;
    border: none;
    padding: clamp(4px, 1vw, 8px) clamp(12px, 2.5vw, 20px);
    border-radius: clamp(4px, 1vw, 8px);
    cursor: pointer;
    font-size: clamp(0.875rem, 2vw, 1.3rem);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

.hero-overlay-container {
    position: relative;
    /* margin-bottom:50%; */
}

/* Map Container - Simplified */
.map-container {
    position: relative;
    width: 100%;
    z-index: 10;
    margin-top: 0;
    padding-top: 0;
    height: auto;
    /* Make map match the total height of search + card */
    min-height: calc(
        clamp(1.2rem, 3vw, 2rem) + /* search label */
        clamp(44px, 7vw, 60px) + /* search input */
        clamp(1rem, 3vw, 2rem) + /* gap */
        clamp(250px, 30vw, 400px) /* card height */
    );
    display: flex;
    align-items: flex-start;
}

.map-container img {
    width: 100%;
    height: 100%;
    min-height: clamp(250px, 30vw, 400px); /* Match card height */
    object-fit: contain;
    object-position: center;
    border-radius: clamp(8px, 2vw, 15px);
}

.map {
    padding-top: 3rem !important;
}

/* Hero Responsive Styles */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .map-container {
        min-height: 300px; /* 1.2rem + 44px + 1rem + 230px */
        margin-top: 1rem;
    }
    
    .map-container img {
        min-height: 230px;
        max-height: 280px;
        object-fit: contain;
        border-radius: 6px;
    }
}

/* Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero__image .carousel-caption {
        padding-top: 8rem !important;
    }
     .search-section {
        display: flex;
        flex-direction: column;
        align-items: center;
     }
    .map-container {
        min-height: 340px; /* 1.4rem + 48px + 1.2rem + 270px */
        margin-top: 1.5rem;
    }
    
    .map-container img {
        min-height: 270px;
        max-height: 320px;
        border-radius: 8px;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero__image .carousel-caption {
        display: flex;
        flex-direction: column;
        padding-top: 8rem !important;
        padding-bottom: 5rem;
        text-align: center !important;
    }
    
     .middle-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
     }
    .map-container {
        min-height: 380px; /* 1.6rem + 52px + 1.4rem + 300px */
        margin-top: 0;
    }
    
    .map-container img {
        min-height: 300px;
        max-height: 360px;
        border-radius: 10px;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .search-section {
        margin-top: 2rem;
    }
    .map-container {
        min-height: 420px; /* 1.8rem + 56px + 1.6rem + 340px */
        padding-top: 200px;
    }
    
    .map-container img {
        min-height: 340px;
        max-height: 600px;
        border-radius: 12px;
        margin-left: 3rem;
    }
}

/* Large Desktop (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .map-container {
        min-height: 460px; /* 2rem + 60px + 1.8rem + 370px */
    }
    
    .map-container img {
        min-height: 370px;
        max-height: 700px;
        border-radius: 14px;
    }
}

/* Ultra-wide (1921px - 2200px) */
@media (min-width: 1921px) and (max-width: 2200px) {
    .map-container {
        min-height: 480px; /* 2rem + 60px + 2rem + 390px */
        max-height: 500px; /* Cap height for ultra-wide */
    }
    
    .map-container img {
        min-height: 390px;
        max-height: 700px;
        border-radius: 15px;
    }
}

/* Ultra-wide (2201px - 2560px) */
@media (min-width: 2201px) and (max-width: 2560px) {
    .map-container {
        min-height: 480px; /* 2rem + 60px + 2rem + 390px */
        max-height: 500px; /* Cap height for ultra-wide */
    }
    
    .map-container img {
        min-height: 390px;
        max-height: 850px;
        border-radius: 15px;
    }
}

/* 4K and beyond (2561px+) */
@media (min-width: 2561px) {
    .map-container {
        min-height: 500px; /* 2rem + 60px + 2rem + 400px */
        max-height: 900px; /* Strict cap for 4K+ */
        max-width: 50vw; /* Also limit width */
        margin: 0 auto; /* Center the container */
    }
    
    .map-container img {
        min-height: 900px;
        max-height: 50vh;
        object-fit: contain; /* Better for ultra-wide */
        border-radius: 15px;
    }
}

/* Specific for 4K displays (3840x2160) */
@media (min-width: 3840px) {
    .map-container {
        min-height: 960px;
    }
    
    .map-container img {
        max-height: 960px;
    }
}

/* Height-based adjustments for landscape orientations */
/* @media (orientation: landscape) and (max-height: 600px) {
    .map-container {
        min-height: 200px;
        max-height: 250px;
    }
    
    .map-container img {
        min-height: 180px;
        max-height: 230px;
    }
} */

/* Ultra-tall screens */
@media (min-height: 1200px) {
    .map-container {
        min-height: 900px;
    }
    
    .map-container img {
        min-height: 900px;
    }
}

/* Ultra-tall screens */
@media (min-height: 1800px) {
    .map-container {
        min-height: 40vh;
    }
    
    .map-container img {
        min-height: 1260px;
    }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .hero__image {
        /* Adjust gradient for mobile */
        background: 
            linear-gradient(to bottom, 
                transparent 0%, 
                transparent 85%, 
                white 85%, 
                white 100%
            ),
            url('/assets/images/pages/locations/hero-img.png') center top / cover no-repeat;
    }

    .mask-pos-target img {
        width: 100%;
        height: 100%;
    }

    .hero__image .carousel-caption {
        padding: clamp(4rem, 10vw, 8rem) 0rem 1rem 0rem;
        text-align: center;
    }
    
    .search-section {
        margin-bottom: 1.5rem;
    }
    
    .locard {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero__image .col-lg-7 {
        padding-top: 0;
    }
    
    .hero__image .row:last-child {
        align-items: flex-start;
    }

    .headtext p {
        font-size:1rem;
    }

    .mask-iconphone {
        bottom:0.25rem;
        right:5rem;
    }

    .mask-phone {
        transform: translateX(-35%);
    }
}

@media (max-width: 576px) {
    .hero__image {
        /* More white space on mobile */
        background: 
            linear-gradient(to bottom, 
                transparent 0%, 
                transparent 80%, 
                white 80%, 
                white 100%
            ),
            url('/assets/images/pages/locations/hero-img.png') center top / cover no-repeat;
    }

    .mask-pos-target img {
        width: 100%;
        height: 100%;
    }
    
    .hero__image .carousel-caption h1 {
        line-height: 1.1;
    }
    
    .search-label {
        text-align: center;
    }
    
    .mask-title,
    .mask-phone {
        font-size: 0.875rem;
        padding: 4px 8px;
    }

    .headtext p {
        font-size:1rem;
    }

    .mask-iconphone {
        bottom:2rem;
        right:4rem;
    }

    .mask-phone {
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero__image .carousel-caption {
        padding: 8rem 0rem 1rem 0rem;
        text-align: center;
    }
    .search-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Large screen adjustments */
@media (min-width: 1400px) and (max-width:1920px) {
    .hero__image {
        max-height: none;
    }
    
    .locard {
        max-width: 600px;
    }
    
    .hero__image .col-lg-7 {
        padding-top: 2rem;
    }
}

@media (min-width: 1921px) and (max-width:2400px) {
    .hero__image {
        max-height: none;
    }
    
    .mask-pos-target img {
        width: 100%;
    }

    .locard {
        max-width: 700px !important;
    }
    
    .hero__image .col-lg-7 {
        padding-top: 2rem;
    }

    .mask-title {
        font-size:2rem;
    }

    .mask-phone {
        bottom:5rem;
        transform: translateX(-50%);
        font-size:2rem;
    }
 
    .mask-iconphone img {
        width:5rem;
        height:5rem;
    }

    .mask-iconphone {
        bottom:5rem;
        right:6rem;
    }

    .mask-logo {
        width: 8rem;
        height: 8rem;
    }

    .headtext p {
        font-size:1.75rem;
    }

    .search-container {
        max-width:700px;
        font-size:2rem;
    }

    .search-input{
        font-size:2rem;
        padding:2rem 5rem;
    }

    .search-button {
        font-size:1.75rem;
    }
}

@media (min-width: 2401px) and  (max-width: 3000px)  {
    .hero__image {
        max-height: none;
    }
    
    .mask-pos-target img {
        width: 100%;
    }

    .locard {
        max-width: 950px !important;
    }
    
    .hero__image .col-lg-7 {
        padding-top: 2rem;
    }

    .mask-title {
        font-size:2rem;
    }

    .mask-phone {
        bottom:5rem;
        transform: translateX(-60%);
        font-size:2.5rem;
    }
 
    .mask-iconphone img {
        width:6rem;
        height:6rem;
    }

    .mask-iconphone {
        bottom:6rem;
        right:8rem;
    }

    .mask-logo {
        width: 8rem;
        height: 8rem;
    }

    .headtext p {
        font-size:2rem;
    }

    .search-container {
        max-width:950px;
        font-size:2rem;
    }

    .search-input{
        font-size:2rem;
        padding:2rem 5rem;
    }

    .search-button {
        font-size:1.75rem;
    }
}

@media (min-width: 3001px) and (max-width:3800px) {
    .hero__image {
        max-height: none;
    }

    .mask-pos-target img {
        width: 100%;
    }

    .locard {
        max-width: 900px !important;
    }
   
    .hero__image .col-lg-7 {
        padding-top: 2rem;
    }

    .mask-title {
        font-size:2.5rem;
    }

    .mask-phone {
        bottom:5rem;
        transform: translateX(-56%);
        font-size:2.5rem;
    }

    .mask-iconphone img {
        width:6rem;
        height:6rem;
    }

    .mask-iconphone {
        bottom:6rem;
        right:8rem;
    }

    .mask-logo {
        width: 9rem;
        height: 9rem;
    }

    .headtext p {
        font-size:2.5rem;
    }

    .search-container {
        max-width:1200px;
        font-size:2rem;
    }

    .search-input{
        font-size:2rem;
        padding:2rem 5rem;
    }

    .search-button {
        font-size:2rem;
    }
}

@media (min-width: 3801px) and (max-width:5000px) {
    .hero__image {
        max-height: none;
    }

    .mask-pos-target img {
        width: 100%;
    }

    .locard {
        max-width: 1200px !important;
    }
   
    .hero__image .col-lg-7 {
        padding-top: 2rem;
    }

    .mask-title {
        font-size:3.5rem;
    }

    .mask-phone {
        bottom:7rem;
        transform: translateX(-56%);
        font-size:3.5rem;
    }

    .mask-iconphone img {
        width:8rem;
        height:8rem;
    }

    .mask-iconphone {
        bottom:8rem;
        right:12rem;
    }

    .mask-logo {
        width: 10rem;
        height: 10rem;
    }

    .headtext p {
        font-size:2.5rem;
    }

    .search-container {
        max-width:1200px;
        font-size:2.5rem;
    }

    .search-input{
        font-size:2.5rem;
        padding:2.5rem 5rem;
    }

    .search-button {
        font-size:2.5rem;
    }
}

@media (min-width: 5001px) {
    .hero__image {
        max-height: none;
    }

    .mask-pos-target img {
        width: 100%;
    }

    .locard {
        max-width: 1600px !important;
    }
   
    .hero__image .col-lg-7 {
        padding-top: 2rem;
    }

    .mask-title {
        font-size:5rem;
    }

    .mask-phone {
        bottom:9rem;
        transform: translateX(-56%);
        font-size:5rem;
    }

    .mask-iconphone img {
        width:11rem;
        height:11rem;
    }

    .mask-iconphone {
        bottom:9rem;
        right:16rem;
    }

    .mask-logo {
        width: 12rem;
        height: 12rem;
    }

    .headtext p {
        font-size:3rem;
    }

    .search-container {
        max-width:1600px;
        font-size:3rem;
    }

    .search-input{
        font-size:3rem;
        padding:3rem 6rem;
    }

    .search-button {
        font-size:3rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero__image .col-lg-5,
    .hero__image .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .mask-phone {
        transform: translateX(-56%);
    }
}

/* ********************************** End Hero Section ******************************* */

/* ************************** Section - 2 (Location Carousel) ************************** */

/* Carousel Container */
.location-carousel-section {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 4rem 15px; /* Default/mobile */
}

/* Carousel wrapper with arrow positioning */
.location-carousel-wrapper {
    position: relative;
    padding: 0 60px; /* Space for arrows */
}

.carousel-header {
    /* margin-bottom: clamp(20px, 4vw, 40px); */
    color: #666;
    font-size: clamp(0.875rem, 2.2vw, 1.25rem);
}

/* Arrow Navigation Styles */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav i {
    font-size: 16px;
    color: #333;
}

/* Disable arrows when at bounds */
.carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav.disabled:hover {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.location-carousel-container {
    display: flex;
    gap: clamp(15px, 3vw, 25px); /* Responsive gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Location Card (in carousel context) */
.location-carousel-section .location-card {
    /* flex: 0 0 calc(20% - 15px); */
    width: auto;
    background-color: white;
    border: 1px solid blue;
    border-radius: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: clamp(4px, 1vw, 8px);
}

.location-carousel-section .location-card:hover {
    transform: translateY(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Card Header (in carousel context) */
.location-carousel-section .location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(10px, 2.5vw, 18px);
    background-color: #fff;
}

.location-info {
    flex: 1;
    padding-right: 10px;
}

.location-title {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem); /* 14px min, scales with viewport, 20px max */
    font-weight: 400;
    color: #155EBC;
    margin-bottom: 2px;
    padding: 3px;
}

.location-address {
    font-size: clamp(0.75rem, 2vw, 1rem); /* 12px min, scales with viewport, 16px max */
    color: #155EBC;
    line-height: 1.2; /* Slightly increased for better readability */
    padding: 3px;
}

.location-logo {
    width: auto;
    height: auto;
    background-color: #0066cc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Card Image Section */
.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-image-container {
    position: relative;
}

/* Mask Carousel Styles */
.mask-carousel {
    max-width: 100%; /* Use full container width */
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.mask-carousel-target {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    mask-image: url('/assets/images/pages/locations/masked-carousel.png');
    mask-repeat: no-repeat;
    mask-size: cover; /* This will cover the entire container */
    mask-position: center;
}

.mask-carousel-phone {
    position: absolute;
    bottom: 2rem; /* Logo top + logo height + 10px gap */
    right: 0rem; /* Same left position as logo */
    background: #FFFFFF; /* Solid white background */
    z-index: 2;
    padding: 0.5rem 1rem; /* Add padding for better text spacing */
    color: #155EBC; /* Text color */
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.mask-carousel-phone a {
    background: #155EBC;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #0066cc;
    width: 10px;
    border-radius: 5px;
}

/* Section 2 Responsive Styles */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .location-carousel-section {
        padding: 2rem 10px;
    }
    
    .carousel-header {
        margin-bottom: 15px;
        font-size: 0.8rem;
    }

    .location-carousel-wrapper {
        padding: 0 30px;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
    }

    .carousel-nav i {
        font-size: 14px;
    }

    .carousel-nav.prev {
        left: -10px;
    }

    .carousel-nav.next {
        right: -10px;
    }
    .mask-carousel-phone {
        font-size: 0.9rem !important;
    }
}

/* Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .location-carousel-section {
        padding: 3rem 20px;
    }
    
    .carousel-header {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .location-carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .img-card {
        width: 100%;
    }

    .carousel-nav.next.img-card {
        width: 100%;
    }

    .carousel-nav.prev.img-card {
        width: 100%;
    }

}

@media (min-width: 769px) and (max-width: 925px) {
    .mask-carousel-phone {
        font-size: 1.1rem !important;
    }

    .img-card {
        width: 100%;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .location-carousel-section {
        padding: 5rem 25px;
    }
    
    .carousel-header {
        margin-bottom: 25px;
        font-size: 1rem;
    }
    
    .location-carousel-container{
        width: 50% !important;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .location-carousel-section {
        padding: 8rem 30px;
    }
    
    .carousel-header {
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
}

@media (min-width: 1367px) and (max-width: 1440px) {
    .location-carousel-section {
        padding: clamp(8rem, 4vw, 12rem) 30px;
    }
    
    .carousel-header {
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
}

/* Large Desktop (1441px - 1600px) */
@media (min-width: 1441px) and (max-width: 1600px) {
    .location-carousel-section {
        padding: 10rem 35px;
    }
    
    .carousel-header {
        margin-bottom: 35px;
        font-size: 1.15rem;
    }
}

/* Large Desktop (1537px - 1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .location-carousel-section {
        padding: 6rem 6rem;
    }
    
    .carousel-header {
        margin-bottom: 35px;
        font-size: 1.15rem;
    }
}

/* Ultra-wide (1921px and above) */
@media (min-width: 1921px) {
    .location-carousel-section {
        padding: 4rem 40px;
    }
    
    .carousel-header {
        margin-bottom: 40px;
        font-size: 1.25rem;
    }
}

/* Specific breakpoint adjustments */
@media (min-width: 2048px) {
    .location-carousel-section {
        padding: 2rem 40px;
    }
}

@media (min-width: 3840px) {
    .location-carousel-section {
        padding: 2rem 40px;
    }
}

/* Responsive for card sizes */
/* @media (max-width: 1200px) {
    .location-carousel-section .location-card {
        flex: 0 0 calc(33.333% - 15px);
    }
} */

@media (max-width: 992px) {
    .location-carousel-section .location-card {
        flex: 0 0 calc(100% - 10px);
    }
}

@media (max-width: 768px) {
    .location-carousel-section .location-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 100%;
    }
}

/* Large screen adjustments for carousel */
@media (min-width: 1400px) and (max-width:1920px) {
    .carousel-header {
        font-size:2rem;
        padding-left: 4rem;
    }
}

@media (min-width: 1921px) and (max-width:2400px) {
    .location-carousel-section {
        padding: 2rem 40px;
    }
    
    .carousel-header {
        font-size:2.5rem;
    }
    
    .location-carousel-section {
        padding:12rem 40px;
    }
}

@media (min-width: 2401px) and (max-width: 3000px) {
    .location-carousel-section {
        padding: 2rem 40px;
    }
    
    .carousel-header {
        font-size:2.5rem;
    }
    
    .location-carousel-section {
        padding:12rem 40px;
    }
}

@media (min-width: 3001px) and (max-width:3800px) {
    .location-carousel-section {
        padding: 8rem 40px;
    }
    
    .carousel-header {
        font-size:2.5rem;
    }
    
    .location-carousel-section {
        padding:12rem 40px;
    }
}

@media (min-width: 3801px) and (max-width:5000px) {
    .location-carousel-section {
        padding: 8rem 40px;
    }
    
    .carousel-header {
        font-size:3.5rem;
    }
}

@media (min-width: 5001px) {
    .location-carousel-section {
        padding: 8rem 40px;
    }
    
    .carousel-header {
        font-size:5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .location-carousel-container{
        width: 100% !important;
    }
}

/* ************************** End Section - 2 ************************** */

/* ************************** Section - 3 (Blue Section with Form) ************************** */

.section-3-container {
    background-color: #1C61BE;
    padding: clamp(40px, 8vw, 100px) 0;
}

.sect-content {
    font-size: clamp(2.5rem, 8vw, 6rem); /* Responsive heading */
    line-height: 1.1;
}

.sect-btn {
    background-color: #609AE9;
    color: #FFFFFF;
    border-radius: clamp(0.5rem, 1.5vw, 0.75rem);
    width: clamp(12rem, 40%, 14.9375rem);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: bold !important;
    border: none;
    transition: all 0.3s ease;
}

.sect-btn:hover {
    background-color: #609ae9;
    transition: all 0.3s ease;
}

.phone-number {
    font-size: clamp(1rem, 2.5vw, 1.4rem) !important;
}

/* Form Card Styles */
.card {
    border: none;
    max-width: clamp(350px, 90vw, 500px) !important;
    border-radius: 0 !important;
}

/* Optional custom styles */
.btn-light {
    border-radius: clamp(15px, 3vw, 25px);
    font-weight: 500;
}

.form-control, .form-select {
    border: 1px solid #000000;
    padding: clamp(8px, 2vw, 15px) clamp(10px, 2.5vw, 18px);
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-radius: clamp(4px, 1vw, 8px);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #1e5cbe;
    box-shadow: 0 0 0 0.2rem rgba(30, 92, 190, 0.25);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(90deg, #1c61be 0%, #5c97e7 100%) !important;
    border-radius: 12px !important;
    font-weight: 500;
    padding: clamp(10px, 2vw, 15px);
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-radius: clamp(6px, 1.5vw, 10px);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1650a0;
    transform: translateY(-2px);
}

/* Section 3 Responsive Styles */

/* Responsive adjustments */
@media (max-width: 768px) {
    .sect-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .sect-btn {
        width: 100%;
        margin: 0 0 1rem 0 !important;
    }
    
    .card {
        margin: 2rem auto 0 auto !important;
    }
    
    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .form-control, .form-select {
        margin-bottom: 0.75rem;
    }
    
    .row.mb-3 .col-6 {
        margin-bottom: 0.5rem;
    }
}

/* Container adjustments */
@media (min-width: 1400px) {
    .sect-content {
        font-size: 5.5rem;
    }
}

/* ************************** End Section - 3 ************************** */

/* ********************************** Footer ********************************** */

ul {
    margin: 0px;
    padding: 0px;
}

.footer-section {
    background: #2E2E2E;
    position: relative;
}

.footer-cta {
    /* border-bottom: 1px solid #373636; */
}

.single-cta i {
    color: #ff5e14;
    font-size: 30px;
    float: left;
    margin-top: 8px;
}

.cta-text {
    /* padding-left: 15px; */
    display: inline-block;
}

.cta-text h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cta-text span {
    color: #FFFFFF;
    font-size: 1.2rem;
}

.footer-content {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: #ffffff !important;
    line-height: 28px;
}

.footer-pattern img {
    position: absolute;
    top: 0;
    left: 0;
    height: 330px;
    background-size: cover;
    background-position: 100% 100%;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-text p {
    margin-bottom: 14px;
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 25px;
}

.footer-social-icon {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Adjust spacing between rows */
    margin-left: 3rem;
    /* margin-top: 3rem; */
}

.footer-social-icon img {
    width: 75%;
}

.footer-social-icon span {
    color: #fff;
    display: block;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

.footer-social-icon a {
    color: #fff;
    font-size: 16px;
    margin-right: 15px;
    display: block;
}

.footer-social-icon i {
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 38px;
    border-radius: 50%;
}

.footer-widget-heading h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.footer-widget-heading h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    height: 2px;
    width: 50px;
    background: #ff5e14;
}

.footer-widget ul li {
    display: inline-block;
    float: left;
    width: 50%;
    margin-bottom: 12px;
}

.footer-widget ul li a:hover{
    color: #ff5e14;
}

.footer-widget ul li a {
    color: #878787;
    text-transform: capitalize;
}

.legacy-cta-footer {
    background: linear-gradient(to right, #1a61be, #5c96e6) !important;
    color: white !important;
    padding: 12px 140px !important;
    border: none;
    border-radius: 16px !important;
    font-size: 1.2rem !important;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    /* margin-left: 1rem; */
}

.legacy-cta-footer:hover {
    background: linear-gradient(to right, #1558a6, #5289d6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.subscribe-form {
    position: relative;
    overflow: hidden;
}

.subscribe-form input {
    width: auto;
    padding: 14px 28px;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #fff !important;
    margin-top: 0.5rem;
}

.subscribe-form button i {
    color: #fff;
    font-size: 22px;
    transform: rotate(-6deg);
}

.copyright-area{
    background: #202020;
    padding: 25px 0;
}

.copyright-text p {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.copyright-text p a{
    color: #fff;
    text-decoration: none;
}

.footer-menu {
    margin-left: 2rem;
}

.footer-menu li {
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 0.8rem !important;
}

.footer-menu li:hover a{
    color: #ff5e14;
}

.footer-menu li a {
    font-size: 1.5rem;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: none !important;
}

/* ********************************** End Footer ********************************** */