/* =========================================================
   FINAL HERO BANNER OVERRIDE CSS
   Put this file AFTER all existing CSS files
   Purpose:
   - Full banner visible on tablet/mobile
   - Content always stays ON banner
   - Logo/description/buttons in fixed safe area
   - Desktop view remains premium
   ========================================================= */

/* ---------- Banner root ---------- */
.hero-section {
    position: relative;
}

    .hero-section .hero-carousel {
        position: relative;
    }

        .hero-section .hero-carousel .carousel-inner {
            position: relative;
        }

        .hero-section .hero-carousel .carousel-item {
            position: relative !important;
            overflow: hidden !important;
            background: #000 !important;
            isolation: isolate;
        }

            /* ---------- Media layer ---------- */
            .hero-section .hero-carousel .carousel-item .hero-media {
                position: absolute !important;
                inset: 0 !important;
                z-index: 0;
                overflow: hidden !important;
                background: #000 !important;
            }

                .hero-section .hero-carousel .carousel-item .hero-media > img,
                .hero-section .hero-carousel .carousel-item .hero-media > video,
                .hero-section .hero-carousel .carousel-item .hero-video,
                .hero-section .hero-carousel .carousel-item .hero-preview {
                    position: absolute !important;
                    inset: 0 !important;
                    width: 100% !important;
                    height: 100% !important;
                    display: block;
                }

            .hero-section .hero-carousel .carousel-item .hero-preview {
                z-index: 1;
            }

            .hero-section .hero-carousel .carousel-item .hero-overlay {
                position: absolute !important;
                inset: 0 !important;
                z-index: 2 !important;
                pointer-events: none;
            }

            /* ---------- Content layer ---------- */
            .hero-section .hero-carousel .carousel-item .site-container.hero-content {
                position: absolute !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                bottom: clamp(14px, 4vw, 64px) !important;
                top: auto !important;
                width: min(100% - 2rem, var(--container-max, 1440px)) !important;
                padding: 0 !important;
                margin: 0 auto !important;
                z-index: 3 !important;
                pointer-events: none;
            }

            .hero-section .hero-carousel .carousel-item .hero-content .row {
                margin: 0 !important;
                align-items: flex-end !important;
            }

            .hero-section .hero-carousel .carousel-item .hero-content .col-lg-7 {
                width: min(100%, 620px) !important;
                max-width: min(100%, 620px) !important;
                padding: 0 !important;
                flex: 0 0 auto !important;
            }

            /* content itself clickable */
            .hero-section .hero-carousel .carousel-item .hero-logo,
            .hero-section .hero-carousel .carousel-item .hero-copy,
            .hero-section .hero-carousel .carousel-item .hero-actions,
            .hero-section .hero-carousel .carousel-item .hero-actions .btn,
            .hero-section .hero-carousel .carousel-item h1 {
                pointer-events: auto;
            }

            /* ---------- Typography / logo / buttons base ---------- */
            .hero-section .hero-carousel .carousel-item .hero-logo {
                display: block;
                width: auto;
                height: auto;
                max-width: clamp(110px, 22vw, 280px);
                max-height: clamp(42px, 8vw, 110px);
                margin: 0 0 clamp(6px, 1.4vw, 16px) 0 !important;
                filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
            }

            .hero-section .hero-carousel .carousel-item h1 {
                margin: 0 0 clamp(6px, 1vw, 12px) 0 !important;
                font-size: clamp(1rem, 2.2vw, 3rem) !important;
                line-height: 1.1 !important;
                color: #fff;
            }

            .hero-section .hero-carousel .carousel-item .hero-copy {
                margin: 0 0 clamp(8px, 1.6vw, 20px) 0 !important;
                max-width: 100% !important;
                color: rgba(255, 255, 255, 0.92) !important;
                text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
                font-size: clamp(0.72rem, 1.15vw, 1.05rem) !important;
                line-height: 1.45 !important;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .hero-section .hero-carousel .carousel-item .hero-actions {
                display: flex !important;
                flex-wrap: wrap !important;
                gap: clamp(8px, 1vw, 14px) !important;
                align-items: center;
            }

                .hero-section .hero-carousel .carousel-item .hero-actions .btn {
                    min-height: clamp(31px, 3vw, 48px) !important;
                    padding: clamp(5px, 0.8vw, 12px) clamp(12px, 1.5vw, 22px) !important;
                    border-radius: 999px !important;
                    font-size: clamp(0.7rem, 0.95vw, 0.95rem) !important;
                    line-height: 1 !important;
                    display: inline-flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    white-space: nowrap !important;
                }

                    .hero-section .hero-carousel .carousel-item .hero-actions .btn i {
                        font-size: clamp(0.68rem, 0.9vw, 0.95rem) !important;
                        margin-right: 5px !important;
                    }

                .hero-section .hero-carousel .carousel-item .hero-actions .button-text {
                    white-space: nowrap !important;
                }

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 1200px) {
    .hero-section .hero-carousel .carousel-item {
        min-height: clamp(520px, 58vw, 760px) !important;
        height: clamp(520px, 58vw, 760px) !important;
        border-radius: 0 0 36px 36px !important;
    }

        .hero-section .hero-carousel .carousel-item .hero-media > img,
        .hero-section .hero-carousel .carousel-item .hero-media > video,
        .hero-section .hero-carousel .carousel-item .hero-video {
            object-fit: cover !important;
            object-position: center center !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-overlay {
            background: radial-gradient(circle at 78% 30%, rgba(229, 9, 20, 0.14), transparent 26%), linear-gradient(90deg, rgba(18, 19, 24, 0.78) 0%, rgba(18, 19, 24, 0.48) 32%, rgba(18, 19, 24, 0.14) 62%, rgba(18, 19, 24, 0.05) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(18, 19, 24, 0.04) 42%, rgba(18, 19, 24, 0.68) 100%) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-content .col-lg-7 {
            width: min(48%, 620px) !important;
            max-width: min(48%, 620px) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-copy {
            -webkit-line-clamp: 3;
        }

/*        .hero-section .hero-carousel .carousel-item.video-playing {
            min-height: 620px !important;
            height: 620px !important;
        }*/
}

/* =========================================================
   LAPTOP / SMALL DESKTOP
   ========================================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section .hero-carousel .carousel-item {
        min-height: clamp(460px, 56vw, 640px) !important;
        height: clamp(460px, 56vw, 640px) !important;
        border-radius: 0 0 32px 32px !important;
    }

        .hero-section .hero-carousel .carousel-item .hero-media > img,
        .hero-section .hero-carousel .carousel-item .hero-media > video,
        .hero-section .hero-carousel .carousel-item .hero-video {
            object-fit: cover !important;
            object-position: center center !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-overlay {
            background: linear-gradient(90deg, rgba(18,19,24,.74) 0%, rgba(18,19,24,.42) 36%, rgba(18,19,24,.12) 65%, rgba(18,19,24,.04) 100%), linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(18,19,24,.06) 46%, rgba(18,19,24,.70) 100%) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-content .col-lg-7 {
            width: min(54%, 560px) !important;
            max-width: min(54%, 560px) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-copy {
            -webkit-line-clamp: 3;
        }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .hero-carousel .carousel-item {
        min-height: clamp(380px, 58vw, 560px) !important;
        height: clamp(380px, 58vw, 560px) !important;
        border-radius: 0 0 28px 28px !important;
    }

        .hero-section .hero-carousel .carousel-item .hero-media > img,
        .hero-section .hero-carousel .carousel-item .hero-media > video,
        .hero-section .hero-carousel .carousel-item .hero-video {
            object-fit: contain !important;
            object-position: center center !important;
            background: #000 !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-overlay {
            background: linear-gradient(90deg, rgba(18,19,24,.64) 0%, rgba(18,19,24,.28) 42%, rgba(18,19,24,.08) 70%, rgba(18,19,24,0) 100%), linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(18,19,24,.08) 38%, rgba(18,19,24,.78) 100%) !important;
        }

        .hero-section .hero-carousel .carousel-item .site-container.hero-content {
            bottom: 20px !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-content .col-lg-7 {
            width: min(62%, 420px) !important;
            max-width: min(62%, 420px) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-copy {
            -webkit-line-clamp: 3;
        }

        .hero-section .hero-carousel .carousel-item .hero-actions {
            gap: 9px !important;
        }

            .hero-section .hero-carousel .carousel-item .hero-actions .btn {
                min-height: 36px !important;
            }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 5.4rem !important;
    }

        .hero-section .hero-carousel .carousel-item {
            min-height: clamp(260px, 66vw, 420px) !important;
            height: clamp(260px, 66vw, 420px) !important;
            border-radius: 0 0 22px 22px !important;
        }

            .hero-section .hero-carousel .carousel-item .hero-media > img,
            .hero-section .hero-carousel .carousel-item .hero-media > video,
            .hero-section .hero-carousel .carousel-item .hero-video {
                object-fit: contain !important;
                object-position: center top !important;
                background: #000 !important;
            }

            .hero-section .hero-carousel .carousel-item .hero-overlay {
                background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.05) 34%, rgba(0,0,0,.84) 100%), linear-gradient(90deg, rgba(18,19,24,.26) 0%, rgba(18,19,24,.10) 30%, rgba(18,19,24,0) 70%) !important;
            }

            .hero-section .hero-carousel .carousel-item .site-container.hero-content {
                bottom: 12px !important;
                width: calc(100% - 24px) !important;
            }

            .hero-section .hero-carousel .carousel-item .hero-content .col-lg-7 {
                width: min(84%, 290px) !important;
                max-width: min(84%, 290px) !important;
            }

            .hero-section .hero-carousel .carousel-item .hero-logo {
                max-width: 90px !important;
                max-height: 34px !important;
                margin-bottom: 5px !important;
            }

            .hero-section .hero-carousel .carousel-item h1 {
                font-size: 0.9rem !important;
                margin-bottom: 4px !important;
            }

            .hero-section .hero-carousel .carousel-item .hero-copy {
                font-size: 0.72rem !important;
                line-height: 1.3 !important;
                margin-bottom: 8px !important;
                -webkit-line-clamp: 2;
            }

            .hero-section .hero-carousel .carousel-item .hero-actions {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 7px !important;
                width: 100%;
                max-width: 178px !important;
            }

                .hero-section .hero-carousel .carousel-item .hero-actions .btn {
                    width: 100% !important;
                    min-height: 30px !important;
                    height: 30px !important;
                    padding: 5px 10px !important;
                    font-size: 0.7rem !important;
                }

                    .hero-section .hero-carousel .carousel-item .hero-actions .btn i {
                        font-size: 0.68rem !important;
                        margin-right: 4px !important;
                    }

            .hero-section .hero-carousel .carousel-item .hero-preview::after {
                font-size: 0.72rem !important;
                padding: 0.45rem 0.7rem !important;
            }

        .hero-section .hero-carousel .carousel-control-prev,
        .hero-section .hero-carousel .carousel-control-next {
            width: 12% !important;
        }

        .hero-section .hero-carousel .carousel-indicators {
            display: none !important;
        }
}

/* =========================================================
   EXTRA SMALL MOBILE
   ========================================================= */
@media (max-width: 420px) {
    .hero-section .hero-carousel .carousel-item {
        min-height: clamp(240px, 68vw, 360px) !important;
        height: clamp(240px, 68vw, 360px) !important;
    }

        .hero-section .hero-carousel .carousel-item .site-container.hero-content {
            bottom: 10px !important;
            width: calc(100% - 20px) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-content .col-lg-7 {
            width: min(86%, 260px) !important;
            max-width: min(86%, 260px) !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-logo {
            max-width: 82px !important;
            max-height: 30px !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-copy {
            font-size: 0.68rem !important;
            margin-bottom: 7px !important;
        }

        .hero-section .hero-carousel .carousel-item .hero-actions {
            max-width: 168px !important;
            gap: 6px !important;
        }

            .hero-section .hero-carousel .carousel-item .hero-actions .btn {
                min-height: 28px !important;
                height: 28px !important;
                font-size: 0.67rem !important;
            }
}

/* =========================================
   GLOBAL HERO CONTENT POSITION (ALL DEVICES)
   ========================================= */

.hero-section .hero-carousel .carousel-item .site-container.hero-content {
    position: absolute !important;
    /* Move RIGHT */
    left: 56% !important; /* try 54%–60% */
    /* keep centering logic */
    transform: translateX(-50%) !important;
    /* Move UP */
    bottom: clamp(70px, 12vw, 170px) !important;
    width: min(100% - 2rem, var(--container-max, 1440px)) !important;
    margin: 0 auto !important;
}

/* =========================================
   HERO BUTTONS - PERFECT BALANCE (ALL DEVICES)
   ========================================= */

.hero-section .hero-carousel .carousel-item .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: clamp(6px, 1vw, 14px) !important;
}

    .hero-section .hero-carousel .carousel-item .hero-actions .btn {
        flex: 0 0 auto !important; /* prevent stretching */
        width: auto !important;
        max-width: 48% !important; /* prevent overflow on small screens */
        padding-left: clamp(10px, 1.2vw, 20px) !important;
        padding-right: clamp(10px, 1.2vw, 20px) !important;
        justify-content: center !important;
    }

    .hero-section .hero-carousel .carousel-item .hero-actions .button-text {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* =========================================
   MOBILE FIX (VERY IMPORTANT)
   ========================================= */
@media (max-width: 480px) {
    .hero-section .hero-carousel .carousel-item .hero-actions {
        gap: 6px !important;
    }

        .hero-section .hero-carousel .carousel-item .hero-actions .btn {
            max-width: 60% !important;
            font-size: 0.68rem !important;
            padding: 5px 8px !important;
        }

            .hero-section .hero-carousel .carousel-item .hero-actions .btn i {
                font-size: 0.65rem !important;
                margin-right: 3px !important;
            }
}

@media (max-width: 767.98px) {
    .hero-section .hero-carousel .carousel-item .site-container.hero-content {
        bottom: 135px !important;
    }
}

@media (max-width: 430px) {
    .hero-section .hero-carousel .carousel-item .site-container.hero-content {
        bottom: 70px !important;
    }
}

/* =========================================
   REDUCE GAP BETWEEN ICON & TEXT
   ========================================= */

.hero-section .hero-carousel .carousel-item .hero-actions .btn i {
    margin-right: -17px !important; /* reduce gap (try 2px–6px) */
}

/* Optional: tighten more on mobile */
@media (max-width: 480px) {
    .hero-section .hero-carousel .carousel-item .hero-actions .btn i {
        margin-right: -17px !important;
    }
}

/*for below back space issue in banners*/
/*mobiles*/
@media (max-width: 768px) {
    .hero-carousel,
    .carousel,
    .carousel-inner,
    .carousel-item,
    .hero-section {
        overflow: hidden !important;
        height: clamp(296px, 58vw, 580px);
    }

    .hero-media img,
    .hero-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}

/* iPad Mini / Tablets fix */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-carousel,
    .carousel,
    .carousel-inner,
    .carousel-item,
    .hero-section {
        overflow: hidden !important;
        height: 584px /* reduced from 58vw */
    }

    .hero-media img,
    .hero-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}

/*large mobiles*/
@media (min-width: 540px) and (max-width: 767.98px) {
    .hero-carousel,
    .carousel,
    .carousel-inner,
    .carousel-item,
    .hero-section {
        overflow: hidden !important;
        height: 387px;
    }

    .hero-media img,
    .hero-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}


/*for below back space issue in banners*/