/* ===================================================
   Homepage Overrides - Who We Are (Offer Section)
   =================================================== */

/* Reduce the excessive padding on the text column */
.offer-section .content-column .inner-column {
    padding: 50px 80px 50px 0 !important;
}

@media only screen and (max-width: 767px) {
    .offer-section .content-column .inner-column {
        padding: 30px 0 20px !important;
    }
}

/* Show the full video without cropping — contain fits the whole video */
.offer-section .image-column .image-box .image video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Remove the overflow that pushes the video off-screen */
.offer-section .image-column .image-box {
    margin-right: 0 !important;
}

/* ===================================================
   Testimonial Navigation Fix
   =================================================== */

/* Bring the navigation arrows back into view */
.testimonial-section .carousel-outer .owl-nav {
    position: relative !important;
    left: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 30px !important;
    transform: none !important;
}

/* Ensure the arrows themselves are visible and correctly styled */
.testimonial-section .owl-nav .owl-prev,
.testimonial-section .owl-nav .owl-next {
    position: relative !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    background: var(--theme-color-white) !important;
    color: var(--theme-color1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-section .owl-nav .owl-prev:hover,
.testimonial-section .owl-nav .owl-next:hover {
    background: var(--theme-color1) !important;
    color: var(--theme-color-white) !important;
}

/* Hide navigation entirely only if specified by the carousel logic (itemCount <= 1) */
.testimonial-section .owl-nav.disabled {
    display: none !important;
}

/* ===================================================
   Homepage Banner Overrides
   =================================================== */

/* Reduce the main heading (banner->subtitle) font size */
.banner-section .banner-two-carousel .content-box .title {
    font-size: 58px !important;
    line-height: 1.2 !important;
    margin-bottom: 40px !important;
}

/* Responsive adjustments for the banner heading */
@media only screen and (max-width: 1023px) {
    .banner-section .banner-two-carousel .content-box .title {
        font-size: 46px !important;
        line-height: 1.2 !important;
        margin-bottom: 30px !important;
    }
}

@media only screen and (max-width: 767px) {
    .banner-section .banner-two-carousel .content-box .title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
    }

    /* Prevent page-title heading text from breaking mid-word on mobile */
    .page-title .title {
        font-size: clamp(28px, 8vw, 42px) !important;
        line-height: 1.2 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        white-space: normal !important;
    }
}

/* ===================================================
   Projects Section Navigation Override
   =================================================== */
@media only screen and (max-width: 767px) {
    .projects-carousel .owl-nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important; /* Space between left and right arrows */
        margin: 25px auto 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        float: none !important;
        z-index: 10 !important;
    }

    /* Style the arrows beautifully in mobile view */
    .projects-carousel .owl-nav .owl-prev,
    .projects-carousel .owl-nav .owl-next {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        color: var(--theme-color1) !important;
        border: 1px solid rgba(var(--theme-color1-rgb), 0.15) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        font-size: 16px !important;
        opacity: 1 !important;
        visibility: visible !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    /* Smooth transitions and interactive state for a premium feel */
    .projects-carousel .owl-nav .owl-prev:hover,
    .projects-carousel .owl-nav .owl-next:hover,
    .projects-carousel .owl-nav .owl-prev:active,
    .projects-carousel .owl-nav .owl-next:active {
        background: var(--theme-color1) !important;
        color: #ffffff !important;
        border-color: var(--theme-color1) !important;
        box-shadow: 0 6px 16px rgba(var(--theme-color1-rgb), 0.25) !important;
        transform: translateY(-2px) !important;
    }
}