/*
Theme Name: The Wellness Clinic
Theme URI: 
Author: Digiex Web
Author URI:https://digiexweb.com/
Description: Digiex Web Custom Theme
*/

/* Mega Menu Styles */
.mega-menu-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem) translateX(-50%);
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 30%;
    left: 160%;
    width: 1000px;
    background-color: #F0F9F8;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    z-index: 50;
    border: 1px solid #f3f4f6;
}

.group:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mega-menu-item-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
}

.mega-menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.group-item:hover .mega-menu-item-img img {
    transform: scale(1.1);
}

.mega-menu-item-title {
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 400;
    transition: color 0.3s;
}

.group-item:hover .mega-menu-item-title {
    color: #4BB0A6;
}

/* Treatment Card Hover Overlay */
.treatment-card-overlay {
    background-color: rgba(75, 176, 166, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.group:hover .treatment-card-overlay {
    opacity: 1;
}

/* Fix for Owl Carousel fractional pixel bleeding (White gap) */
.owl-carousel .owl-item img.w-full {
    width: calc(100% + 2px) !important;
    max-width: none !important;
}

/* Doctor Carousel Navigation Styling */
.doctor-carousel.owl-carousel {
    position: relative;
    padding: 0 40px;
    overflow: visible !important;
}

/* Essential for uniform height in Owl Carousel 2 */
.doctor-carousel .owl-stage {
    display: flex !important;
    flex-direction: row;
}

.doctor-carousel .owl-item {
    display: flex !important;
    height: auto !important;
}

.doctor-carousel .item {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.doctor-carousel .owl-nav button.owl-prev,
.doctor-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #389196 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border: none !important;
    outline: none !important;
}

.doctor-carousel .owl-nav button.owl-prev:hover,
.doctor-carousel .owl-nav button.owl-next:hover {
    background: #2c7276 !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.doctor-carousel .owl-nav button.owl-prev {
    left: -10px;
}

.doctor-carousel .owl-nav button.owl-next {
    right: -10px;
}

/* Adjust for mobile responsiveness */
@media (max-width: 768px) {
    .doctor-carousel.owl-carousel {
        padding: 0 15px;
        /* Ensure space for buttons */
    }

    .doctor-carousel .owl-nav button.owl-prev {
        left: -15px;
        width: 40px;
        height: 40px;
    }

    .doctor-carousel .owl-nav button.owl-next {
        right: -15px;
        width: 40px;
        height: 40px;
    }

    .doctor-carousel .owl-dots {
        margin-top: 10px !important;
    }
}

/* Ensure dots look good */
.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    background: #D1D5DB;
    display: block;
    transition: opacity .2s ease;
    border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #389196;
}

/* Specialization Carousel Full Height Robust Fix */
.specialization-carousel,
.specialization-carousel .owl-stage-outer {
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.specialization-carousel .owl-stage {
    height: 100% !important;
    display: flex !important;
}

.specialization-carousel .owl-item {
    height: 100% !important;
}

.specialization-carousel .item,
.specialization-carousel .item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Aboutus Carousel Full Height Fix */
.aboutus.owl-carousel,
.aboutus.owl-carousel .owl-stage-outer,
.aboutus.owl-carousel .owl-stage,
.aboutus.owl-carousel .owl-item,
.aboutus.owl-carousel .item {
    height: 100% !important;
}

.aboutus.owl-carousel .item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Success Stories Carousel Navigation */
.success-stories-carousel.owl-carousel {
    padding-bottom: 20px;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.success-stories-carousel .owl-nav {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    margin-top: 20px !important;
    position: relative;
}

.success-stories-carousel .owl-nav button.owl-prev,
.success-stories-carousel .owl-nav button.owl-next {
    background: #FF0000 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.success-stories-carousel .owl-nav button.owl-prev:hover,
.success-stories-carousel .owl-nav button.owl-next:hover {
    background: #cc0000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
}

.success-stories-carousel .owl-nav button.owl-prev i,
.success-stories-carousel .owl-nav button.owl-next i {
    font-size: 10px;
}

/* Hero Video Carousel Peeking Fix */
.hero-video-owl {
    width: 100%;
}

.hero-video-owl,
.hero-video-owl .owl-stage-outer {
    overflow: hidden !important;
}


.hero-video-owl .owl-item img.w-full {
    width: 100% !important;
    /* Overrides the global +2px bleeding fix to prevent shifting */
}

/* Bulletproof Custom Fade Animation for Hero Carousel */
.hero-video-owl .animated {
    animation-duration: 600ms;
    animation-fill-mode: both;
}

.hero-video-owl .owl-animated-in {
    z-index: 0;
}

.hero-video-owl .owl-animated-out {
    z-index: 1;
}

.heroFadeIn {
    animation-name: heroFadeIn;
}

.heroFadeOut {
    animation-name: heroFadeOut;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes heroFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* YouTube Box Carousel Navigation */
.youtubebox .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    /* Let clicks pass through the container */
    margin: 0 !important;
}

.youtubebox .owl-nav button.owl-prev,
.youtubebox .owl-nav button.owl-next {
    pointer-events: auto;
    /* Re-enable clicks on the buttons */
    background: white !important;
    color: #4BB0A6 !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #edf2f7 !important;
    z-index: 10;
}

.youtubebox .owl-nav button.owl-prev:hover,
.youtubebox .owl-nav button.owl-next:hover {
    background: #4BB0A6 !important;
    color: white !important;
    transform: scale(1.1);
}

.youtubebox .owl-nav button.owl-prev {
    margin-left: 10px !important;
}

.youtubebox .owl-nav button.owl-next {
    margin-right: 10px !important;
}

@media (min-width: 768px) {
    .youtubebox .owl-nav button.owl-prev {
        margin-left: -20px !important;
    }

    .youtubebox .owl-nav button.owl-next {
        margin-right: -20px !important;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* --- Laptop & Desktop Navigation Fixes --- */

.custom-desktop-nav a,
.custom-desktop-nav span,
.custom-desktop-nav div {
    white-space: nowrap !important;
}

/* Fix for 1281px to 1536px */
@media (min-width: 1281px) and (max-width: 1536px) {
    .custom-desktop-nav {
        gap: 2rem !important;
        /* increased for equal feel */
        font-size: 14px !important;
    }

    .custom-desktop-nav>*+* {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mega-menu-content {
        width: 950px !important;
        left: 100% !important;
    }
}

/* Fix for 1024px to 1280px */
@media (min-width: 1024px) and (max-width: 1280px) {
    .custom-desktop-nav {
        gap: 1rem !important;
        /* increased for equal feel */
        font-size: 13px !important;
    }

    .custom-desktop-nav>*+* {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .custom-desktop-btn a {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    header .w-40 {
        width: 120px !important;
    }

    .mega-menu-content {
        width: 800px !important;
        left: 50% !important;
    }
}

.custom-expert-care-bg {
    background-color: #3D3D3D !important;
}

.journey-step-icon {
    background-color: #4BB0A6 !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(75, 176, 166, 0.3), 0 4px 6px -4px rgba(75, 176, 166, 0.3) !important;
}

/* Hide scrollbar for horizontal scrolling containers */
.hide-scroll-bar::-webkit-scrollbar {
    display: none;
}

.hide-scroll-bar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Responsive Marquee Animation */
@media (max-width: 767px) {
    .desktop-features-container {
        display: none !important;
    }

    .responsive-marquee-container {
        overflow: hidden;
        width: 100%;
        display: block !important;
    }

    .responsive-marquee {
        display: inline-flex;
        animation: scrollX 12s linear infinite;
    }

    @keyframes scrollX {
        0% {
            transform: translateX(100vw);
        }

        100% {
            transform: translateX(-100%);
        }
    }
}

@media (min-width: 768px) {
    .responsive-marquee-container {
        display: none !important;
    }

    .desktop-features-container {
        display: flex !important;
    }
}