/********** Template CSS **********/
:root {
    --primary: #0463FA;
    --light: #EFF5FF;
    --dark: #1B2C51;
}

:root {
    /* Light Mode Variables */
    --bg-body: #ffffff;
    --bg-surface: #f8fbff;
    --text-main: #1a202c;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;

}



/* This forces all headings and paragraphs to respect the theme */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] , 
[data-theme="dark"] , 
[data-theme="dark"] h6,
[data-theme="dark"] .display-5,
[data-theme="dark"] {
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}


/* Apply to the Body */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Apply variables to generic classes */
.bg-light { background-color: var(--bg-surface) !important; }
.text-dark { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted) !important; }

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: url(../img/header-page.jpg) top center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service-item {
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}




.header-img {
    height: 105vh; /* This makes the image 70% of the screen height */
    object-fit: cover; /* This crops the image to fit the area instead of stretching it */
}

/* Adjust height for mobile phones so it doesn't look too small */
@media (max-width: 768px) {
    .header-img {
        height: 50vh; 
    }
}


.owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 44, 81, .3); /* This adds a subtle dark tint to the image so text pops */
    z-index: 1;
}

.owl-carousel-text h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Makes text pop */
    font-weight: 700;
}

/* Ensure animations trigger every time the slide changes */
.owl-item.active .animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}


.owl-carousel-text .btn-primary {
    border-radius: 50px; /* Makes the button rounded and modern */
    font-weight: 500;
    transition: .5s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.owl-carousel-text .btn-primary:hover {
    background: #ffffff; /* Changes to white on hover */
    color: var(--primary); /* Text takes the brand blue color */
    border-color: #ffffff;
}

/* This forces the animation to trigger ONLY when the slide is active */
.owl-item .animated {
    visibility: hidden; /* Hide text before animation starts */
}

.owl-item.active .animated {
    visibility: visible;
    animation-fill-mode: both;
}

/* Optional: Make the zoomIn look more like a "popup" */
.zoomIn {
    animation-name: zoomIn;
    animation-duration: 0.8s;
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
}



@media (max-width: 768px) {
    /* 1. Shrink the massive H1 so it doesn't break into 5 lines */
    .owl-carousel-text h1 {
        font-size: 2rem !important; /* Adjust this number to fit your title */
        font-weight: 1000;
        line-height: 1.2;
        margin-bottom: 15px !important;
    }

    /* 2. Adjust the paragraph text */
    .owl-carousel-text p {
        font-size: 1rem !important;
        padding: 0 15px; /* Adds space on the sides so text doesn't touch screen edges */
        margin-bottom: 20px !important;
    }

    /* 3. Make the button smaller and easier to tap */
    .owl-carousel-text .btn {
        padding: 10px 30px !important;
        font-size: 14px !important;
    }


    
    /* 4. Ensure the container has enough space */
    .owl-carousel-text .text-center {
        width: 100% !important;
        padding: 20px !important;
    }
    
    /* 5. Adjust Header Height for Mobile */
    .header-img {
        height: 70vh !important; /* Slightly shorter on mobile */
    }
}


/* --- Language Selector Styling --- */

/* 1. The Button Look */
#languageSelector {
    border-radius: 4px;
    padding: 5px 15px;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

/* 2. Layering (Fixes being hidden behind Navbar) */
.container-fluid.bg-light.p-0 {
    position: relative;
    z-index: 1040; /* Sit above the sticky navbar */
}

.dropdown-menu {
    z-index: 9999 !important;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.sticky-top {
    z-index: 1030 !important; 
}

/* 3. Mobile Left Corner & Dropdown Alignment */
@media (max-width: 991.98px) {
    /* Ensures the dropdown menu opens to the right (from the left corner) */
    .dropdown-menu {
        left: 0 !important;
        right: auto !important;
    }
    
    /* Small adjustment to the Topbar height for mobile */
    .container-fluid.bg-light.p-0 .row.gx-0 {
        min-height: 50px;
        display: flex;
        align-items: center;
    }
}

/* 4. Dropdown Hover Colors */
.dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
}

.dropdown-item:hover {
    background-color: var(--dark);
    color: #ffffff;
}



/* Make the check-marks more prominent */
.fa-check-circle {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Add a subtle shadow to the overlapping images to create depth */
.col-lg-6 .img-fluid {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Hover effect for the about images */
.col-lg-6 .img-fluid:hover {
    transform: scale(1.02);
}

/* Professional spacing for the bullet points on mobile */
@media (max-width: 576px) {
    .col-sm-6 p {
        margin-bottom: 10px;
    }
}

/* Ensure the background image stays back */
.img-behind {
    position: relative;
    z-index: 1;
}

/* Ensure the foreground image stays front */
.img-front {
    position: relative;
    z-index: 5 !important; /* Higher number stays on top */
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Adds depth to the overlap */
}


/* Service Item Styling */
.service-item {
    transition: .5s;
    border: 1px solid #f0f0f0;
}

.service-item img {
    transition: .5s;
    width: 100%;
    height: 250px;
    object-fit: cover; /* This prevents the image from looking stretched */
}

.service-item:hover {
    margin-top: -10px; /* Moves the whole card up slightly */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-item:hover img {
    transform: scale(1.1); /* Zooms the image slightly on hover */
}

.service-item .btn {
    font-weight: 500;
    color: var(--primary);
    padding: 0;
}



/* Prevent the Feature section from feeling cramped on mobile */
@media (max-width: 768px) {
    .feature-text {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Adds a subtle semi-transparent background to boxes for better readability */
    .bg-white-50 {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Stack the features vertically if the screen is very narrow */
    .feature-text .col-12 {
        margin-bottom: 10px;
    }
}



/* Appointment Form Improvements */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid #eee !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.1);
    border-color: var(--primary) !important;
}

/* Adjusting the Info Boxes on small screens */
@media (max-width: 576px) {
    .bg-light.d-flex.align-items-center.p-4 {
        padding: 1.5rem !important;
    }
    .ms-4 h5 {
        font-size: 1.1rem; /* Prevent phone number from breaking lines */
    }
}


/* Testimonial Enhancements */
.testimonial-text {
    background: #F0F4FB; /* Light blueish tint */
    border: 1px solid #dee2e6;
    position: relative;
    transition: 0.5s;
}

.testimonial-item:hover .testimonial-text {
    background: #ffffff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Star rating color */
.testimonial-text .fa-star {
    font-size: 12px;
}

@media (max-width: 576px) {
    .testimonial-text p {
        font-size: 14px; /* Slightly smaller text for small phones */
    }
}


/* --- Fix Testimonial Arrows --- */

/* 1. Remove absolute positioning so they don't cover images */
.testimonial-carousel .owl-nav {
    position: relative; 
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between the two arrows */
}

/* 2. Style the buttons (Blue circles with white arrows) */
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    background: #FFFFFF !important;
    border: 1px solid var(--primary) !important;
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

/* 3. Hover effect */
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}

/* 4. Ensure dots (if active) don't look messy */
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    text-align: center;
}




/* Gallery Carousel Styling */
.gallery-carousel .gallery-item {
    position: relative;
    margin: 10px; /* Space between sliding items */
    height: 300px;
}

.gallery-carousel .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.6);
    opacity: 0;
    transition: 0.5s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Position Navigation Arrows below the Gallery */
.gallery-carousel .owl-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery-carousel .owl-nav .owl-prev,
.gallery-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    background: #FFFFFF !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 45px;
    font-size: 20px;
    transition: 0.5s;
}

.gallery-carousel .owl-nav .owl-prev:hover,
.gallery-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}
/* Perfect Alignment for Gallery & Testimonial Arrows */
.gallery-carousel .owl-nav .owl-prev,
.gallery-carousel .owl-nav .owl-next,
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important; /* Remove default padding */
    display: flex !important; /* Use flexbox for centering */
    align-items: center !important; /* Vertical center */
    justify-content: center !important; /* Horizontal center */
    background: #FFFFFF !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 50% !important; /* Perfect circle */
    font-size: 18px !important;
    transition: .5s;
    cursor: pointer;
}

/* Ensure the icon itself has no extra margins */
.gallery-carousel .owl-nav .owl-prev i,
.gallery-carousel .owl-nav .owl-next i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Hover effect */
.gallery-carousel .owl-nav .owl-prev:hover,
.gallery-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}


/* Footer Enhancements */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    background: #ffffff;
    color: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

/* Contact Form Styling */
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.1);
}

@media (max-width: 991px) {
    .contact-info-box {
        margin-bottom: 30px;
    }
}



/* Premium Navbar Styling */
.navbar {
    transition: all 0.5s ease;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

/* Modern Underline Hover Effect */
.navbar .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 2px;
    bottom: 25px;
    left: 15px;
    background: var(--bs-primary);
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
    width: calc(100% - 30px);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

/* Navbar Shadow on Scroll */
.sticky-top.shadow-sm {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
    .navbar .navbar-nav .nav-link::before {
        display: none; /* Hide underline on mobile for cleaner look */
    }
}





/* --- Premium Navbar & Logo Customization --- */

/* Logo Fit */
.logo-main {
    height: 65px; /* Perfect desktop height */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Navbar Link Styles */
.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: .3s;
}

/* Hover Underline Effect */
.navbar .navbar-nav .nav-link::after {
    position: absolute;
    content: "";
    width: 0;
    height: 3px;
    bottom: 25px;
    left: 15px;
    background: #0463FA; /* Your primary blue */
    transition: .3s;
    border-radius: 2px;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Sticky Navbar Glass Effect */
.sticky-top.shadow-sm {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hover Lift for Button */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 99, 250, 0.3) !important;
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    .logo-main {
        height: 50px; /* Smaller logo to keep navbar thin on phones */
    }
    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
    }
    .navbar .navbar-nav .nav-link::after {
        display: none; /* Cleaner look for mobile menu */
    }
}






/* --- Desktop Gallery Logic --- */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #f8f9fa;
}

.main-feature { height: 420px; }
.side-item { height: 202px; }

.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-container:hover img { transform: scale(1.08); }

/* Overlays */
.gallery-content, .gallery-content-mini {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(4, 99, 250, 0.9), transparent);
    opacity: 0;
    transition: 0.4s;
}

.gallery-container:hover .gallery-content,
.gallery-container:hover .gallery-content-mini {
    opacity: 1;
}

/* --- Mobile Specific Customization --- */
@media (max-width: 991.98px) {
    .main-feature { height: 280px; }
    
    .mobile-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        margin: 0 -15px; /* Pull to edges of screen */
        padding-left: 15px;
        scrollbar-width: none;
    }
    
    .mobile-scroll-wrapper::-webkit-scrollbar { display: none; }

    /* Forces the row to stay horizontal on mobile */
    .mobile-scroll-wrapper .row {
        flex-wrap: nowrap !important;
        margin: 0;
        width: max-content;
    }

    .mobile-scroll-wrapper .col-sm-6 {
        width: 260px; /* Precise width for mobile cards */
        flex: 0 0 auto;
    }

    .side-item { height: 180px; }
    
    .gallery-content-mini {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
        padding: 10px;
    }
}




/* --- Icon-Based Service Cards --- */
.service-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.service-icon-box {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF5FF;
    border-radius: 20px;
    transition: 0.4s;
}

.service-card h4 {
    transition: 0.4s;
}

.service-card .btn-square {
    width: 45px;
    height: 45px;
    background: #EFF5FF;
    transition: 0.4s;
}

/* --- Hover Effects (Desktop) --- */
.service-card:hover {
    background: var(--bs-primary); /* Your brand blue */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(4, 99, 250, 0.2);
}

.service-card:hover h4, 
.service-card:hover p {
    color: #ffffff !important;
}

.service-card:hover .service-icon-box {
    background: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon-box i {
    color: #ffffff !important;
}

.service-card:hover .btn-square {
    background: #ffffff;
}

/* --- Mobile Specific Optimization --- */
@media (max-width: 767.98px) {
    .service-card {
        padding: 2.5rem 1.5rem !important; /* Smaller padding for mobile */
    }
    
    /* Disable intense hover effect on mobile for better accessibility */
    .service-card:active {
        background: #f8f9fa;
        transform: scale(0.98);
    }
    
    .service-icon-box {
        width: 70px;
        height: 70px;
    }
    
    .service-icon-box i {
        font-size: 2rem;
    }
}



/* --- Hide/Show Logic --- */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); /* Smooth slide */
    opacity: 0;
}

.service-card.active .service-details {
    max-height: 200px; /* Large enough to fit text */
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

/* Rotate the Plus to an X when open */
.service-card.active .toggle-service i {
    transform: rotate(45deg);
    color: #dc3545 !important; /* Optional: turn red on close */
}

.service-card.active {
    border-color: var(--bs-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Maintain your previous card styles, just ensure text colors don't clash */
.service-card .toggle-service {
    border: none;
    cursor: pointer;
    z-index: 5;
}






/* --- Premium Team Card (No Social Version) --- */
.team-card {
    position: relative;
    padding-bottom: 20px;
    transition: 0.4s;
}

.team-img {
    position: relative;
    border-radius: 2rem; /* Extra rounded for a friendly modern look */
    overflow: hidden;
    z-index: 1;
}

.team-img img {
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* The Experience Badge */
.experience-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bs-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(4, 99, 250, 0.3);
    z-index: 3;
}

/* Info Box Adjustments */
.team-info {
    position: relative;
    margin-top: -60px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    z-index: 2;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.4s;
}

.team-card:hover .team-info {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.team-card:hover img {
    transform: scale(1.05);
}

/* Mobile Tweak */
@media (max-width: 991.98px) {
    .team-info {
        margin-top: -40px;
        padding: 15px;
    }
    .experience-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}









/* --- Premium FAQ Customization --- */
.custom-faq .accordion-item {
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.custom-faq .accordion-button {
    padding: 1.5rem;
    background-color: #ffffff;
    box-shadow: none;
    transition: 0.3s;
}

.custom-faq .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: #ffffff;
    box-shadow: none;
}

/* Customizing the Arrow Icon */
.custom-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230463FA'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 1.25rem;
}

.custom-faq .accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Mobile Tweaks */
@media (max-width: 991.98px) {
    .custom-faq .accordion-button {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}


/* --- FAQ Grid Enhancements --- */
.custom-faq .accordion-button {
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem !important;
}

.custom-faq .accordion-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

/* Hover effect for a "Premium" touch */
.custom-faq .accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.custom-faq .accordion-button:not(.collapsed) {
    border-bottom: 1px solid rgba(4, 99, 250, 0.1);
}

@media (max-width: 991.98px) {
    .custom-faq .accordion-button {
        font-size: 0.95rem;
    }
}







/* --- Before & After Result Cards --- */
.results-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.results-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.results-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide the Before image by default */
.result-before {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.1);
}

/* Reveal Before image on hover */
.results-card:hover .result-before {
    opacity: 1;
    transform: scale(1);
}

.results-card:hover .result-after {
    opacity: 0;
}

/* Labels */
.results-label-before, .results-label-after {
    position: absolute;
    bottom: 15px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

.results-label-before {
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    opacity: 0; /* Hidden until hover */
    transition: 0.4s;
}

.results-label-after {
    right: 15px;
    background: var(--bs-primary);
    color: #fff;
    opacity: 1;
    transition: 0.4s;
}

.results-card:hover .results-label-before { opacity: 1; }
.results-card:hover .results-label-after { opacity: 0; }

.results-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(4, 99, 250, 0.1);
}









/* --- Premium Stats Section --- */
.stats-section {
    background: linear-gradient(135deg, #0463FA 0%, #0352cc 100%);
    position: relative;
    overflow: hidden;
}

/* Add a subtle decorative circle in the background */
.stats-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: 0.4s;
    text-align: center;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .stat-item {
        margin-bottom: 10px;
    }
}








/* --- Bento About Grid --- */
.bento-img-tall {
    height: 400px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.bento-img-small {
    height: 190px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Feature Boxes */
.bg-light.rounded-end {
    transition: 0.3s;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.bg-light.rounded-end:hover {
    background-color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .bento-img-tall { height: 250px; }
    .bento-img-small { height: 150px; }
}


/* --- Bento Grid Refinements --- */
.bento-item {
    overflow: hidden;
    border-radius: 1.5rem; /* Matches rounded-4 */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bento-img-tall {
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-img-small {
    height: 190px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Subtle Zoom Effect */
.bento-item:hover img {
    transform: scale(1.08);
}

/* The Stats Card Styling */
.bento-stat-card {
    height: 195px; /* Aligns with the tall image height + gap */
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(4, 99, 250, 0.2);
}

.bento-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(4, 99, 250, 0.3);
    background-color: #0352cc !important; /* Slightly deeper blue on hover */
}

/* Desktop alignment fix */
@media (min-width: 992px) {
    .bento-img-tall {
        height: 400px; 
    }
}

/* Mobile responsive fix */
@media (max-width: 576px) {
    .bento-img-tall {
        min-height: 250px;
    }
    .bento-stat-card {
        height: 150px;
    }
}









/* --- Premium Feature Section --- */
.feature-section {
    background: #0463FA;
}

/* Glassmorphism Cards */
.feature-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Icon Box Styling */
.feature-glass-card .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Text Refinements */
.feature-text h1 {
    letter-spacing: -1px;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Mobile Tweak */
@media (max-width: 991.98px) {
    .feature-section {
        padding-bottom: 0;
    }
    .feature-text {
        order: 1;
    }
}






/* Keep your original shadow and radius, just add the fade transition speed */
#headerCarousel .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

#headerCarousel .carousel-item img {
    /* Ensures every image in the carousel stays exactly 400px high */
    height: 400px;
    object-fit: cover;
}

/* Fix for Bootstrap's default carousel behavior to ensure a smooth cross-fade */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}







/* Testimonial Section Refinements */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #eff5ff;
    transition: all 0.5s ease;
    min-height: 400px; /* Keeps cards uniform height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-primary-light {
    color: #e6efff; /* Subtle background quote icon */
}

.italic-quote {
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

/* Center Item Highlight */
.testimonial-carousel .owl-item.center .testimonial-card {
    background: #ffffff;
    border-color: #0463FA;
    box-shadow: 0 15px 45px rgba(4, 99, 250, 0.12);
    transform: scale(1.03);
    z-index: 2;
}

/* Side items fade slightly */
.testimonial-carousel .owl-item:not(.center) {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Styling the dots for a premium look */
.testimonial-carousel .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.testimonial-carousel .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    background: #d6d6d6 !important;
    border-radius: 50%;
    transition: 0.3s;
}

.testimonial-carousel .owl-dot.active {
    background: #0463FA !important;
    width: 30px;
    border-radius: 10px;
}






/* --- Premium Footer Styling --- */
.footer {
    background: #0f172a !important; /* Deep Navy, more premium than pure black */
    color: #94a3b8 !important;
}

.footer-title {
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

/* Accent line under titles */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #0463FA;
    border-radius: 2px;
}

/* Icon Box Style */
.footer-icon-box {
    width: 35px;
    height: 35px;
    background: rgba(4, 99, 250, 0.1);
    color: #0463FA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Animated Social Buttons */
.btn-social-elite {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-social-elite:hover {
    background: #0463FA;
    color: white;
    transform: translateY(-5px);
}

/* Modern Link Hover */
.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-link:hover {
    color: #0463FA;
    padding-left: 10px; /* Subtle slide effect */
}

/* Timetable styling */
.hours-row {
    border-bottom: 1px border rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.newsletter-box .form-control {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}







/* --- Premium Contact Styling --- */
.contact-card-elite {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s all ease;
    border: 1px solid #f1f5f9;
}

.contact-card-elite:hover {
    transform: translateY(-5px);
    border-color: #0463FA;
}

.contact-card-elite .icon-circle {
    width: 50px;
    height: 50px;
    background: #eff5ff;
    color: #0463FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
}

/* Map Styling */
iframe {
    transition: 0.5s;
}

/* When user interacts with the map section, colors come alive */
.position-relative:hover iframe {
    filter: grayscale(0) contrast(1) brightness(1);
}








/* --- Elite Impact Bar --- */
.stats-section {
    background: linear-gradient(135deg, #0463FA 0%, #0348b6 100%);
    position: relative;
    overflow: hidden;
}

/* Add a subtle pattern overlay */
.stats-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.glass-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.glass-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.stats-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
}










.ai-splash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0f172a; /* Deep Navy */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.ai-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.ai-glow-ring {
    width: 80px; height: 80px;
    background: rgba(4, 99, 250, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(4, 99, 250, 0.5);
    animation: pulse-ai 2s infinite;
}

.ai-icon { color: #0463FA; font-size: 2rem; }

.lang-pill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.lang-pill {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes pulse-ai {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(4, 99, 250, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(4, 99, 250, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(4, 99, 250, 0); }
}

.splash-hidden {
    opacity: 0;
    visibility: hidden;
}









/* Card Adjustments */
[data-theme="dark"] .bg-white {
    background-color: var(--bg-surface) !important;
}

[data-theme="dark"] .appointment-info-card, 
[data-theme="dark"] .contact-card-elite {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

/* Modal/Splash Adjustment */
[data-theme="dark"] .ai-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



[data-theme="dark"] .btn-primary {
    box-shadow: 0 0 15px rgba(4, 99, 250, 0.4);
}



/* FAQ Dark Mode Fix */
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-surface);
    color: var(--text-main);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(4, 99, 250, 0.1); /* Subtle blue tint when open */
    color: #0463FA;
}

[data-theme="dark"] .accordion-body {
    color: var(--text-muted);
}

[data-theme="dark"] .navbar-toggler {
    background-color: #0463FA;
    border: #0463FA;
    color: #0463FA;
}



[data-theme="dark"] .newsletter-box .form-control::placeholder {
    color: #adb5bd !important; 
}

[data-theme="dark"] .footer-title  span {
    color: #ffffff !important;
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .navbar-nav,
[data-theme="dark"] .nav-link
  {
    color: var(--primary) !important;

}
 

/* Form & Input Dark Mode Fix */
[data-theme="dark"] .form-control, 
[data-theme="dark"] .form-select,
[data-theme="dark"] .elite-input,
[data-theme="dark"] .form-minimal {
    background-color: #1e293b !important; /* Slightly lighter than the body navy */
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: #1e293b !important;
}

/* Floating Label Fix */
[data-theme="dark"] .form-floating > label {
    color: #94a3b8;
}

[data-theme="dark"] .form-floating > .form-control:focus ~ label {
    color: #0463FA;
}



[data-theme="dark"] .bg-light {
    background-color: #1e3d68 !important;
}


[data-theme="dark"] .logo-main
 {
    
    content: url(../img/logo-2.png);
}


/* If you have image captions or facility labels */
[data-theme="dark"] .facility-item-text {
    background: rgba(15, 23, 42, 0.9); /* Dark semi-transparent overlay */
    
}



[data-theme="dark"] .shadow-sm, 
[data-theme="dark"] .shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}





/* Align the desktop theme toggle perfectly with the nav links */
@media (min-width: 992px) {
    .navbar-nav .theme-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-top: auto;
        margin-bottom: auto;
        height: 40px; /* Matches your specific height */
        align-self: center; /* Forces vertical centering in flex container */
    }
}




/* --- Modern Page Header --- */
.page-header-elite {
    background: linear-gradient(rgba(27, 44, 81, 0.7), rgba(27, 44, 81, 0.7)), 
                url('../img/carousel-1.jpg') center center no-repeat; /* Use your best clinic photo */
    background-size: cover;
    position: relative;
    border-bottom: 5px solid var(--bs-primary);
}

.page-header-elite h1 {
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

/* Glass-morphism Breadcrumb */
.glass-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: inline-flex;
    padding: 10px 25px;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: 0.3s;
    font-weight: 500;
}

.glass-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-primary) !important;
}

.glass-breadcrumb .breadcrumb-item.active {
    color: #fff !important;
    font-weight: 700;
}

.glass-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "〉"; /* More modern than a slash */
    font-size: 10px;
    vertical-align: middle;
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .page-header-elite {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
                url('../img/carousel-1.jpg') center center no-repeat;
    background-size: cover;
}


.elite-input {
    color: #212529 !important; /* Forces a clear, dark charcoal/black text */
}


.ai-splash-overlay {
    /* ... your existing styles ... */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.ai-splash-overlay.splash-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1); /* Subtle "zoom away" effect */
    pointer-events: none;
}








.lang-pill {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}
.lang-pill:hover, .lang-pill.active {
    opacity: 1;
    background-color: var(--bs-primary); /* Or your primary brand color */
    color: #fff;
    font-weight: bold;
}