/* Smooth N Shine - Custom Styles & Enhancements */
:root {
    --color-btn-primary: #A66373;
    --color-btn-hover: #8E4B5B;
    --color-primary: #A66373;
    --color-primary-dark: #7E4150;
    --color-primary-light: #FAF2EF;
    --color-secondary: #C57668;
    --color-accent-peach: #EAA597;
    --color-accent-lavender: #DFC2C9;
    --color-border: #ECDAD5;
    --color-bg: #FAF4F0;
    --color-dark: #2B1A20;
    --color-muted: #78636B;
    --color-white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: #FAF4F0;
    color: #2B1A20;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ================= ALL BUTTONS STYLING (#A66373) ================= */
button:not([class*="bg-transparent"]):not([class*="bg-white"]):not(.modal-close-btn):not(.faq-question):not(.swiper-pagination-bullet),
.btn-primary,
.btn:not([class*="bg-transparent"]):not([class*="bg-white"]),
[type="submit"],
.bg-primary,
a[href="booking.html"]:not([class*="text-"]),
a[href="#bookingModal"]:not([class*="text-"]):not([class*="bg-transparent"]),
[data-open-modal="booking"]:not([class*="text-"]):not([class*="bg-transparent"]),
[data-bs-target="#bookingModal"]:not([class*="text-"]):not([class*="bg-transparent"]),
.treatment-filter-btn.bg-primary {
    background-color: #A66373;
    border-color: #A66373 !important;
    color: #FFFFFF !important;
    transition: all 0.25s ease-in-out;
}

/* Buttons Hover Effect */
button:not([class*="bg-transparent"]):not([class*="bg-white"]):not(.modal-close-btn):not(.faq-question):not(.swiper-pagination-bullet):hover,
.btn-primary:hover,
.btn:not([class*="bg-transparent"]):not([class*="bg-white"]):hover,
[type="submit"]:hover,
.bg-primary:hover,
a[href="booking.html"]:not([class*="text-"]):hover,
a[href="#bookingModal"]:not([class*="text-"]):hover,
[data-open-modal="booking"]:not([class*="text-"]):hover,
[data-bs-target="#bookingModal"]:not([class*="text-"]):hover {
    background-color: #8E4B5B !important;
    border-color: #8E4B5B !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(166, 99, 115, 0.4) !important;
}

/* Before / After Image Slider */
.ba-container {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #FFFFFF;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 30;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.ba-slider-handle::after {
    content: "◀ ▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: #A66373;
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(166, 99, 115, 0.45);
}

.ba-before-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 20;
}

.ba-before-image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
}

/* Swiper Customizations */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(166, 99, 115, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 6px;
    background: #A66373 !important;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: #A66373 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF4F0;
}

::-webkit-scrollbar-thumb {
    background: #ECDAD5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A66373;
}

/* Floating Vertical Enquire Tab */
.vertical-enquire-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Toast Notification Animation */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-animate {
    animation: toastSlideIn 0.3s ease forwards;
}

/* Bottom Nav Padding for Mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: 72px;
    }
}

/* Hide horizontal scrollbar completely */
.filter-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.filter-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
    width: 0;
    height: 0;
}

/* Logo Image Styling */
.site-logo-img {
    height: 46px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.site-logo-img:hover {
    transform: scale(1.02);
}

.site-logo-footer {
    height: 48px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}




/* About CSS  */


/* Custom Tabbed UI */
.tab-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background-color: #A66373;
    color: #FFFFFF;
    border-color: #A66373;
    box-shadow: 0 8px 20px rgba(166, 99, 115, 0.25);
}

.tab-btn.active i {
    color: #FFFFFF !important;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Certificate card hover effects */
.cert-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(43, 26, 32, 0.12);
}

.cert-card img {
    transition: transform 0.4s ease;
}

.cert-card:hover img {
    transform: scale(1.03);
}



/* service category css  */


/* =====================================================
       HORIZONTAL SCROLLBAR HIDDEN
    ====================================================== */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


/* =====================================================
       SERVICE CARD
    ====================================================== */

.service-card {
    flex: 0 0 auto;
    width: 145px;

    background: #ffffff;

    padding: 8px;

    border-radius: 24px;

    border: 1px solid #E9E2DE;

    box-shadow:
        0 2px 8px rgba(32, 18, 15, 0.05);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    scroll-snap-align: start;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =====================================================
       CARD HOVER
    ====================================================== */

.service-card:hover {
    transform: translateY(-5px);

    border-color: #D92734;

    box-shadow:
        0 12px 30px rgba(32, 18, 15, 0.12);
}


/* =====================================================
       IMAGE CONTAINER
    ====================================================== */

.service-image {
    width: 100%;
    height: 112px;

    border-radius: 18px;

    overflow: hidden;

    margin-bottom: 10px;

    background: #F5F2F0;
}


/* =====================================================
       IMAGE
    ====================================================== */

.service-img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;
}


.service-card:hover .service-img {
    transform: scale(1.1);
}


/* =====================================================
       TITLE
    ====================================================== */

.service-title {
    display: block;

    width: 100%;

    min-height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #20120F;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.35;

    transition:
        color 0.25s ease;
}


.service-card:hover .service-title {
    color: #D92734;
}


/* =====================================================
       MOBILE
    ====================================================== */

@media (max-width: 640px) {

    .service-card {
        width: 135px;
        padding: 7px;
        border-radius: 20px;
    }

    .service-image {
        height: 105px;
        border-radius: 15px;
        margin-bottom: 8px;
    }

    .service-title {
        font-size: 11px;
    }

}


/* =====================================================
       TABLET
    ====================================================== */

@media (min-width: 641px) and (max-width: 1024px) {

    .service-card {
        width: 150px;
    }

    .service-image {
        height: 115px;
    }

}



/* header css  */

/* ---------------------------------------------
       Treatments Mega Menu
    --------------------------------------------- */

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}


/* ---------------------------------------------
       Concerns Dropdown
    --------------------------------------------- */

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* ---------------------------------------------
       Mega Menu Links
    --------------------------------------------- */

.mega-link {
    display: block;
    padding: 0.25rem 0.375rem;
    font-size: 9.5px;
    line-height: 1.25rem;
    border-radius: 0.375rem;
    color: #66555C;
    transition: all 0.2s ease;
}


.mega-link:hover {
    background: #FCE8EA;
    color: #D92734;
}


/* Facial Links */
.facial-link:hover {
    background: #F4E8DE;
    color: #A66373;
}


/* Body Links */
.body-link:hover {
    background: #EBE6FD;
    color: #6300ED;
}


/* ---------------------------------------------
       Smooth Animation
    --------------------------------------------- */

.mega-menu,
.dropdown-menu {
    will-change: transform, opacity;
}


/* ---------------------------------------------
       Prevent Mega Menu Overflow
    --------------------------------------------- */

@media (max-width: 1100px) and (min-width: 1024px) {

    .mega-menu {
        width: 570px !important;
    }

    nav {
        gap: 1rem !important;
    }

}



/* Expert css  */





.expert-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.expert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(43, 26, 32, .12);
}

.doctor-image {
    transition: transform .5s ease;
}

.expert-card:hover .doctor-image {
    transform: scale(1.06);
}

.badge-pop {
    animation: badgePop .8s ease-in-out infinite alternate;
}

@keyframes badgePop {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .08) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .06) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, .06) 0 2px, transparent 3px);
    background-size: 100px 100px;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 68px;
    }
}


/* User dashboard CSS  */

#dashboardSidebar > div:first-child {
    scrollbar-width: thin;
    scrollbar-color: #d8b9c0 transparent;
}

#dashboardSidebar > div:first-child::-webkit-scrollbar {
    width: 5px;
}

#dashboardSidebar > div:first-child::-webkit-scrollbar-track {
    background: transparent;
}

#dashboardSidebar > div:first-child::-webkit-scrollbar-thumb {
    background: #d8b9c0;
    border-radius: 10px;
}

#dashboardSidebar > div:first-child::-webkit-scrollbar-thumb:hover {
    background: #A66373;
}