/* =============================================
   HOME.CSS — Clean & Deduplicated
   Organized by section matching home.blade.php
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2196f3;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --dark: #333;
    --light: #f8f9fa;
}

/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    background: #f0f0f0;
}

/* ===== UTILITY ===== */
.custom-shadow {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== TYPOGRAPHY ===== */
.heading {
    font-size: 30px;
}

a {
    color: #111;
    font-family: 'Poppins', sans-serif;
}

.text-uppercase {
    text-transform: capitalize !important;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 767px) {
    .heading { font-size: 15px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .heading { font-size: 25px; }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT ===== */
@media print {
    .video-thumbnail iframe,
    .play-button,
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    .video-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* ==============================================
   SEARCH SECTION
   ============================================== */

.search-flex-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Weather Box */
.weather-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.weather-emoji {
    font-size: 18px;
}

/* Location */
.location-input-container {
    position: relative;
    min-width: 200px;
    flex: 1 1 220px;
}

.location-input {
    width: 100%;
    height: 45px;
    border-radius: 50px;
    padding: 0 40px 0 15px;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: #f9fafb;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.location-input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.location-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.detect_icon {
    background-image: url('https://akam.cdn.jdmagicbox.com/images/icontent/newwap/web2022/search_locat_icon.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    width: 28px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    top: 110%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 999;
}

.dropdown-item {
    padding: 12px 15px;
    font-size: 14px;
    color: black;
    text-decoration: none;
    display: block;
    transition: background 0.2s ease;
}

.dropdown-item:hover,
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.location-dropdown:hover .dropdown-content {
    display: block;
}

/* Search Input */
.search-input-container {
    position: relative;
    flex: 2 1 320px;
    min-width: 250px;
}

.input_search_box {
    height: 50px;
    border-radius: 24px;
    font-family: "Poppins", sans-serif;
}

.input_search {
    width: 100%;
    height: 48px;
    border-radius: 50px;
    padding: 0 60px 0 18px;
    outline: none;
    font-size: 14px;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.input_search:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

/* Search Button */
.search_button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    width: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search_button:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.jdicon {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex: none;
    display: inline-block;
    vertical-align: middle;
    background-image: url(https://akam.cdn.jdmagicbox.com/images/icontent/newwap/web2022/search_white_icon.svg);
    width: 16px;
    height: 16px;
}

/* Suggestions */
.suggestions-container {
    position: absolute;
    width: 100%;
    top: 110%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 0 0.5px #bbb;
    max-height: 250px;
    overflow-y: auto;
    z-index: 999;
    border: none;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

/* Search Responsive */
@media (max-width: 992px) {
    .search-flex-wrapper { padding: 18px; }
    .weather-box { font-size: 13px; }
}

@media (max-width: 768px) {
    .search-flex-wrapper {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        padding: 15px !important;
        gap: 10px !important;
        box-sizing: border-box;
    }
    .weather-box {
        justify-content: center !important;
        flex: 1 1 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .location-input-container {
        flex: 1 1 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .location-input-container .location-input {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }
    .search-input-container {
        flex: 1 1 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .search_button { right: 8px; }
}
@media (max-width: 480px) {
    .input_search,
    .location-input {
        font-size: 13px;
        height: 44px;
    }
    .search_button {
        height: 34px;
        width: 34px;
    }
    .weather-box {
        font-size: 12px;
        padding: 8px 14px;
    }
}


/* ==============================================
   BANNERS
   ============================================== */

.banner-size {
    border-radius: 20px;
}

@media (max-width: 325px) {
    .banner-size { height: 125px; }
}

@media (min-width: 326px) and (max-width: 767px) {
    .banner-size { height: 180px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .banner-size { height: 400px; }
}

@media (min-width: 992px) {
    .banner-size { height: 370px !important; }
}

/* Mid Banner */
.mid-banner-wrapper {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.mid-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: #f8f9fa;
}

@media (min-width: 768px) {
    .mid-banner-wrapper {
        max-width: 600px;
    }
}


/* ==============================================
   BUSINESS CATEGORY & HOME SERVICE GRIDS
   ============================================== */

/* .business-grid and #business_category are the same element — use one rule */
#business_category,
#home_service {
    display: grid;
    gap: 16px;
    justify-items: center;
    grid-template-columns: repeat(9, 1fr); /* Desktop: 9 */
}

@media (max-width: 991px) {
    #business_category,
    #home_service {
        grid-template-columns: repeat(3, 1fr); /* Tablet: 3 */
        gap: 14px;
    }
}

@media (max-width: 575px) {
    #business_category,
    #home_service {
        grid-template-columns: repeat(3, 1fr); /* Mobile: 3 */
        gap: 10px;
    }
}

@media (max-width: 359px) {
    #business_category,
    #home_service {
        gap: 8px;
    }
}

/* Anchor fills column */
#business_category > a,
#home_service > a {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Category Card */
.category-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    min-height: 90px;
    max-width:110px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-img-hover {
    width: clamp(32px, 40%, 46px) !important;
    height: clamp(32px, 40%, 46px) !important;
    object-fit: contain;
    transition: transform 0.1s ease-in-out;
}

.category-card:hover .card-img-hover {
    transform: scale(1.1);
}

.category-text {
    display: block;
    font-size: clamp(9px, 1.8vw, 13px);
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 359px) {
    .category-card { min-height: 75px; }
}

/* View More Button */
.view-more-btn {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background-color: #64748b;
    border-radius: 50rem;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
}

.view-more-btn:hover {
    background-color: #334155;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    color: #fff;
}


/* ==============================================
   HIGHLIGHTS SECTION
   ============================================== */

#highlights h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    min-height: 100px;
    color: #fff;
    border: none;
    will-change: transform;
    width: 100%;
    padding: 16px !important;
}

.highlight-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.highlight-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .highlight-img {
        width: 40px;
        height: 40px;
    }
}
.rounded-lg {
    border-radius: 1rem !important;
}


/* ==============================================
   FREE DIGITAL SERVICES
   ============================================== */

.service-card {
    border-radius: 16px;
    padding: 15px;
    color: white;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.service-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 20px;
}

.service-title {
    font-weight: 600;
    margin-top: 8px;
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ==============================================
   RENT & HIRE
   ============================================== */

.rent-hire-card {
    width: 90px;
    height: 90px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.rent-hire-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rent-hire-img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.rent-hire-card:hover .rent-hire-img {
    transform: scale(1.1);
}

.rent-hire-text {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


/* ==============================================
   POPULAR
   ============================================== */

.popular-card {
    width: 90px;
    height: 90px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.popular-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popular-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.popular-card:hover .popular-img {
    transform: scale(1.1);
}

.popular-text {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Rent & Popular shared mobile sizing */
@media (max-width: 768px) {
    .popular-card,
    .rent-hire-card {
        width: 90px;
        height: 90px;
        margin: 4px;
    }
    .popular-img,
    .rent-hire-img {
        width: 50px !important;
        height: 50px !important;
    }
    .popular-text,
    .rent-hire-text {
        font-size: 10px;
    }
}


/* ==============================================
   EXPLORE MORE SECTION
   ============================================== */

.exploreMoreSwiper {
    padding: 15px 5px;
}

.explore-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    border-radius: 16px;
    padding: 25px 15px;
    color: #fff;
    text-align: center;
    width: 190px;
    min-height: 170px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.explore-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.explore-card:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.explore-card:hover::after {
    opacity: 1;
}

.explore-card h5 {
    margin-top: 10px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

.explore-card:hover h5 {
    transform: scale(1.05);
}

/* Explore card color variants */
.explore-card.green  { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.explore-card.orange { background: linear-gradient(135deg, #FF9800, #EF6C00); }
.explore-card.blue   { background: linear-gradient(135deg, #2196F3, #1565C0); }
.explore-card.purple { background: linear-gradient(135deg, #9C27B0, #6A1B9A); }

/* Icon wrapper */
.icon-wrapper {
    border-radius: 50%;
    width: 75px;
    height: 75px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.explore-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.icon-wrapper lottie-player {
    width: 100%;
    height: 100%;
}

/* Custom swiper nav for explore */
.swiper-button-next-custom,
.swiper-button-prev-custom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
}

.swiper-button-next-custom { right: 0; }
.swiper-button-prev-custom { left: 0; }

.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
    background: #007bff;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .swiper-button-next-custom,
    .swiper-button-prev-custom { display: none; }

    .explore-card {
        width: 160px;
        min-height: 150px;
        padding: 20px 12px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .explore-card h5 { font-size: 0.9rem; }
}


/* ==============================================
   SWIPER (card_slider, mid_card_slider)
   ============================================== */

.swiper-button-next::after,
.swiper-button-prev::after {
    content: "" !important;
}

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #f0f8ff;
    transform: scale(1.05);
}

.swiper-button-prev::before { content: "‹"; }
.swiper-button-next::before { content: "›"; }

.swiper-button-next::before,
.swiper-button-prev::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #00aaff;
    font-size: 18px;
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .swiper-wrapper { height: 190px; }
}

@media (max-width: 480px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
}


/* ==============================================
   IMAGE BOX
   ============================================== */

.img_box img {
    max-width: 100%;
}

.img2 {
    height: 230px;
    width: 151px;
}


/* ==============================================
   VIDEO SECTION
   ============================================== */

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    background-color: #1e1e1e;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.location-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.location-purple { background-color: #8e44ad; }

.premium-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background-color: #27ae60;
    z-index: 10;
}

.duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #8e44ad;
    margin-left: 5px;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    display: flex;
    justify-content: center;
}

.countdown {
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.countdown-timer {
    background: linear-gradient(to right, #6B7280, #4B5563);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
@media (max-width: 767px) {
    .play-button {
        width: 48px;
        height: 48px;
    }

    .play-icon {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 18px solid #8e44ad;
        margin-left: 4px;
    }
     .video-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .location-tag{
        font-size:10px;
    }
}

/* ==============================================
   LOADING & ERROR STATES
   ============================================== */

.error-message,
#error {
    color: #e74c3c;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

.loading {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8e44ad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ==============================================
   MISC
   ============================================== */

.box_list.has-business {
    border: 2px solid green;
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    margin-top: 50px;
}

.tagline {
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
    color: #555;
}

.badge {
    font-weight: 600;
}
/* ==============================================
   POPULAR BRANDS
   ============================================== */

.slider_container {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
}

.slider_container .swiper,
.slider_container .card_slider {
    width: 100%;
    height: 100%;
}

.slider_container .swiper-wrapper {
    height: 100%;
}

.slider_container .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider_container .img_box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider_container .img_box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

/* Right-side image matches slider height */
.brands-banner-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
}

@media (max-width: 767px) {
    .slider_container {
        height: 220px;
    }
    .brands-banner-img {
        height: 220px;
        margin-top: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .slider_container,
    .brands-banner-img {
        height: 250px;
    }
}
/* Keep CLS reservation aligned with mobile banner height */
@media (max-width: 325px) {
    #carouselExampleIndicators .carousel-inner {
        min-height: 125px !important;
    }
}

@media (min-width: 326px) and (max-width: 767px) {
    #carouselExampleIndicators .carousel-inner {
        min-height: 180px !important;
    }
}





/* =========================================================
   MIDDLE AD / RENT & HIRE / POPULAR
   DESKTOP ONLY
   ---------------------------------------------------------
   Layout only. Existing JS and carousel behaviour unchanged.
   ========================================================= */

@media (min-width: 992px) {

    /* =====================================================
       TWO COLUMN BALANCED LAYOUT
       ===================================================== */

    .row.text-center.px-6.py-3 {
        align-items: stretch;
    }

    .row.text-center.px-6.py-3 > .col-lg-6 {
        display: flex;
        flex-direction: column;
    }


    /* =====================================================
       LEFT: MIDDLE AD
       ===================================================== */

    .row.text-center.px-6.py-3 > .col-lg-6:first-child {
        min-height: 0;
    }

    #carouselInnerMid {
        flex: 1 1 auto;
        min-height: 0;

        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;

        border: 1px solid #ccc;
        border-radius: 8px;
        background: #f8f9fa;

        overflow: hidden;
    }

    /*
     * Keep the carousel's own slide mechanism intact.
     * Only the active slide's visual content is centered.
     */
    #carouselInnerMid .carousel-inners {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    #carouselInnerMid .carousel-item.active {
        width: 100%;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /*
     * Real API-loaded banners.
     * Natural size/aspect ratio is preserved.
     */
    #carouselInnerMid .carousel-item.active > img.mid-banner {
        display: block;

        width: auto !important;
        height: auto !important;

        max-width: 100% !important;
        max-height: 100% !important;

        margin: 0 auto !important;

        object-fit: contain;
        flex: 0 0 auto;
    }

    /*
     * Default/fallback banners.
     * Existing wrapper remains supported.
     */
    #carouselInnerMid .carousel-item.active > .mid-banner-wrapper {
        width: 100%;
        height: 100%;
        max-width: 600px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 auto;
        background: transparent;
        border: 0;
    }

    #carouselInnerMid .mid-banner-wrapper > img.mid-banner {
        display: block;

        width: auto !important;
        height: auto !important;

        max-width: 100% !important;
        max-height: 100% !important;

        margin: 0 auto !important;

        object-fit: contain;
        flex: 0 0 auto;
    }


    /* =====================================================
       RIGHT: EXACTLY 5 CARDS PER ROW
       ===================================================== */

    #rent_hire,
    #popular {
        width: 100%;
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;

        display: flex;
        flex-wrap: wrap;

        justify-content: center !important;
        align-content: flex-start;

        gap: 14px !important;
    }

    #rent_hire > a,
    #popular > a {
        width: 90px;
        flex: 0 0 90px;
        margin: 0 !important;
    }

    .rent-hire-card,
    .popular-card {
        width: 90px;
        height: 90px;
    }

}

