/* =========================================================
   BS5.3 Custom Carousel Styles
========================================================= */
#carouselSliderHome .carousel-control-prev,
#carouselSliderHome .carousel-control-next {
    opacity: 1 !important;
}

/* Shared arrow styles */
#carouselSliderHome .carousel-control-prev-icon,
#carouselSliderHome .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 1 !important;
    filter: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 24px;
    transition:
            transform 0.25s ease,
            filter 0.25s ease;
}

/* Previous arrow */
#carouselSliderHome .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg%20width='14'%20height='24'%20viewBox='0%200%2014%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M12.75%2022.75L0.75%2011.75L12.75%200.75'%20stroke='%23002759'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Next arrow */
#carouselSliderHome .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg%20width='14'%20height='24'%20viewBox='0%200%2014%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M1.25%200.75L13.25%2011.75L1.25%2022.75'%20stroke='%23002759'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Previous arrow hover effect */
#carouselSliderHome .carousel-control-prev:hover {
    opacity: 1 !important;
}

#carouselSliderHome .carousel-control-prev:hover .carousel-control-prev-icon {
    transform: translateX(-3px) scale(1.12);
    filter: drop-shadow(0 2px 3px rgba(0, 39, 89, 0.35));
}

/* Next arrow hover effect */
#carouselSliderHome .carousel-control-next:hover {
    opacity: 1 !important;
}

#carouselSliderHome .carousel-control-next:hover .carousel-control-next-icon {
    transform: translateX(3px) scale(1.12);
    filter: drop-shadow(0 2px 3px rgba(0, 39, 89, 0.35));
}

/* Keyboard focus */
#carouselSliderHome .carousel-control-prev:focus,
#carouselSliderHome .carousel-control-next:focus {
    opacity: 1 !important;
}

/* Remove animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #carouselSliderHome .carousel-control-prev-icon,
    #carouselSliderHome .carousel-control-next-icon {
        transition: none;
    }
}
/* =========================================================
   Owl Carousel Styles
========================================================= */

/* -----------------------------------------
   Base Carousel
----------------------------------------- */
.owl-carousel {
    z-index: 0;
    position: relative; /* ensures carousel is relative for absolute positioning */
}

.owl-stage {
    padding-left: 0 !important; /* remove left padding */
}

/* -----------------------------------------
   Navigation Buttons (Owl Theme)
----------------------------------------- */
.owl-theme .owl-nav {
    position: absolute;
    color: var(--theme-color-blue-medium);
    background: unset;
    bottom: 25px; /* distance from bottom */
    left: 50%; /* center horizontally */
    transform: translateX(-50%);
    display: flex;
    gap: 0; /* spacing between prev/next buttons */
    z-index: 1;
    font-size: 14px;
}

/* Navigation buttons: images */
.owl-theme .owl-nav img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Remove default button styles */
.owl-theme .owl-nav [class*='owl-'] {
    margin: 5px 2px !important;
    padding: unset !important;
    background: unset !important;
}

/* Nav button text span size */
.owl-theme .owl-nav button span {
    font-size: 14px !important;
}

/* -----------------------------------------
   Dots / Pagination
----------------------------------------- */
.owl-theme .owl-dots {
    display: flex !important;
    align-items: center;
}

.owl-theme .owl-dots .owl-dot span {
    height: 6px;
    width: 6px;
    margin: 5px 3px;
    background: #D1D5DB;
    border: 1px solid #D1D5DB;
}

.owl-theme .owl-dots .owl-dot.active span {
    height: 8px;
    width: 8px;
    background: var(--theme-color-blue-medium);
    border: 1px solid var(--theme-color-blue-medium);
}

@media (max-width: 450px) and (min-width: 376px) {
    .owl-theme .owl-nav {
        bottom: 35px;
    }
}

@media (max-width: 390px) and (min-width: 376px) {
    .owl-theme .owl-nav {
        bottom: 30px;
    }
}

/* Real Clients / Reviews Section */
.theme-client-transformations .owl-theme .owl-nav {
    position: relative !important;
    bottom: 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    /* color: #FFF; */ /* optional override */
}

.theme-client-transformations .owl-nav button.owl-prev img,
.theme-client-transformations .owl-nav button.owl-next img {
    height: 32px;
    width: 32px;
}

.theme-client-transformations .owl-nav button.owl-prev,
.theme-client-transformations .owl-nav button.owl-next {
    color: #fff;
    background: transparent;
}

.theme-client-transformations .owl-theme .owl-dots .owl-dot.active span {
    background: #FFF;
    border: 1px solid #FFF !important;
}

.theme-client-transformations .owl-theme .owl-dots .owl-dot span {
    background: transparent;
    border: 1px solid #FFF;
    width: 8px;
    height: 8px;
    margin: 5px 2px;
}

.theme-client-transformations .owl-theme .owl-nav button:hover {
    color: #798a9f;
}

.theme-client-transformations .owl-item:hover {
    cursor: pointer;
}

.theme-client-transformations .carousel-card-wrapper {
    position: relative;
    min-height: 150px;
}

.theme-client-transformations .carousel-detail-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(5%);
    pointer-events: none;
    /* transition: all 0.4s ease; */
}

.theme-client-transformations .carousel-detail-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

@media (min-width: 992px) {
    .theme-client-transformations .owl-theme .owl-nav {
        display: none !important;
    }
}

/* Google reviews Section */

#ThemeGoogleReviewSlider.owl-theme .owl-stage-outer,
#ThemeGoogleReviewSlider.owl-theme .owl-stage-outer .owl-item {
    border-radius: 5px;
}

/* Hide dots only */
div.owl-theme#ThemeGoogleReviewSlider .owl-dots {
    display: none !important;
}

/* Navigation */
div.owl-theme#ThemeGoogleReviewSlider .owl-nav {
    position: absolute;
    top: 52%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

/* Enable clicking on buttons */
div.owl-theme#ThemeGoogleReviewSlider .owl-nav button {
    position: absolute;
    pointer-events: auto;
    margin: 0 !important;
}

/* Previous button (Left) */
div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.owl-prev {
    display: block !important;
    left: -2.5%;
}

/* Next button (Right) */
div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.owl-next {
    right: -2.5%;
}

/* Keep disabled buttons visible */
div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.disabled {
    display: block !important;
    opacity: .35;
    cursor: default;
}

/* Arrow images */
div.owl-theme#ThemeGoogleReviewSlider .owl-nav img {
    height: 40px !important;
    width: auto;
}

@media (max-width: 440px) {
    /* Right shadow */
    .carousel-shadow::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(
                to left,
                rgb(255 255 255 / 80%),
                rgb(255 255 255 / 20%)
        );
    }

    div.owl-theme#ThemeGoogleReviewSlider .owl-nav {
        top: 55% !important;
        left: 0.3rem;
        right: 0.3rem;
    }

    #ThemeGoogleReviewSlider.owl-theme .owl-stage-outer,
    #ThemeGoogleReviewSlider.owl-theme .owl-stage-outer .owl-item {
        padding: 3px 0 3px 3px;
    }
}

@media (max-width: 991px) {
    #ThemeGoogleReviewSlider {
        display: block;
    }
}

@media (min-width: 992px) {
    div.owl-theme#ThemeGoogleReviewSlider .item {
        padding: 5px 5px !important;
    }

    #ThemeGoogleReviewSlider .theme-card-default {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.25) !important;
    }

    div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.owl-prev {
        left: -2%;
    }

    div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.owl-next {
        right: -2%;
    }

    div.owl-theme#ThemeGoogleReviewSlider .owl-nav img {
        height: 78px !important;
        width: auto;
    }
}

@media (min-width: 1600px) {
    div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.owl-prev {
        left: -1.5%;
    }

    div.owl-theme#ThemeGoogleReviewSlider .owl-nav button.owl-next {
        right: -1.5%;
    }
}

/* Stock Page Slider section for desktop */

#ThemeStockProductSlider.owl-theme .owl-stage-outer, #ThemeStockProductSlider.owl-theme .owl-stage-outer .owl-item {
    border-radius: 5px;
}

div.owl-theme#ThemeStockProductSlider .owl-nav .owl-dots,
div.owl-theme#ThemeStockProductSlider .owl-nav button.owl-prev {
    display: none !important;
}

/* Position navigation on the right side, vertically centered */
div.owl-theme#ThemeStockProductSlider .owl-nav {
    color: #FFF !important;
    bottom: unset !important;
    top: 24% !important; /* vertical center */
    left: unset;
    right: -2.5%;
    transform: translate(0, -50%);
}

div.owl-theme#ThemeStockProductSlider .owl-nav img {
    height: 78px !important;
    width: auto;
}

@media (max-width: 991px) {
    #ThemeStockProductSlider {
        display: block;
    }
}

@media (min-width: 992px) {
    div.owl-theme#ThemeStockProductSlider .item {
        padding: 5px 5px !important;
    }

    #ThemeStockProductSlider .theme-card-default {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.25) !important;
    }
}

/* =========================================================
   Theme Product Images Slider Overrides
========================================================= */

/* Hide default dots and prev button */
div.owl-theme.theme-product-images-slider .owl-nav .owl-dots,
div.owl-theme.theme-product-images-slider .owl-nav button.owl-prev {
    display: none !important;
}

/* Position navigation on the right side, vertically centered */
div.owl-theme.theme-product-images-slider .owl-nav {
    color: #FFF !important;
    bottom: unset !important;
    top: 50% !important; /* vertical center */
    left: unset;
    right: 2%;
    transform: translate(0, -50%);
}

/* Next button icon with semi-transparent background */
div.owl-theme.theme-product-images-slider .owl-nav button.owl-next i {
    padding: 10px 12px !important;
    background-color: rgba(35, 49, 76, 0.1) !important; /* semi-transparent */
    border-radius: 50%;
    border: 2px solid #3d4965;
    color: #FFF; /* icon color stays opaque */
}
