.dataTables_length label .form-select {
    padding-right: 25px !important;
}

/* Logo Visibility Fix */
.navbar-brand.logo img {
    width: auto !important;
    height: auto !important;
    max-height: 50px;
    object-fit: contain;
}

.navbar-brand.logo {
    margin-left: 60px !important;
}

.navbar-header {
    min-width: 150px;
}

/* Mobile Header Logo Size */
.navbar-brand.logo-small img {
    width: auto !important;
    height: auto !important;
    max-height: 52px !important;
    max-width: 180px !important;
    object-fit: contain;
}

/* Sidebar Logo Size */
.menu-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 70px !important;
    object-fit: contain;
}

/* Header Logo Responsiveness Fix */
@media (max-width: 575.98px) {
    .navbar-brand.logo {
        display: none !important;
    }
    .navbar-brand.logo-small {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .navbar-header {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        position: relative;
        min-width: 0 !important; /* Remove restrictive min-width */
    }
}

/* Homepage Global Responsiveness Fixes */
@media (max-width: 991.98px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Hero Section Fixes */
    .hero-section .hero-content {
        padding: 40px 0 !important;
        text-align: center;
    }
    .hero-section .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
.hero-section .banner-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    .hero-section .banner-form .d-md-flex {
        flex-direction: column;
    }
    .hero-section .banner-form .input-group {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Owl Carousel Responsiveness Fix */
    .owl-carousel .owl-stage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure Slider Navs Display on Mobile */
    .service-slider.nav-center .owl-nav button,
    .img-slider.nav-center .owl-nav button,
    .feature-slider.nav-center .owl-nav button,
    .popular-slider-3.nav-center .owl-nav button {
        display: block !important;
    }

    /* Footer Responsiveness */
    .footer .footer-widget, 
    .footer .card-body {
        width: 100% !important;
        margin-bottom: 20px;
        text-align: center;
    }
    .footer .newsletter-form {
        flex-direction: column;
    }
    .footer .newsletter-form input,
    .footer .newsletter-form .btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
}

/* Booking slot selection should match theme gradient */
.booking-content .time-item.selected {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
}

.booking-content .time-item.selected h6,
.booking-content .time-item.selected p {
    color: #fff;
}

#slotDateHover .time-item:hover {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

#slotDateHover .time-item:hover h6 {
    color: #fff;
}

/* Master category bar */
.master-category-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.master-category-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #eef3ff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d9e2ff;
    transition: all 0.2s ease-in-out;
}

.master-category-item:hover {
    background: #e4ecff;
    color: #111827;
}

.master-category-item.active {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-color: transparent;
}



/* Global Loading Spinner */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.logo-spinner {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    perspective: 800px;
}

.logo-spinner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    animation: logo-spin-y 2.2s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
    will-change: transform;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary); /* Using the theme's primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.loader-text {
    font-family: "Archivo", sans-serif;
    color: #242b3a;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logo-spin-y {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(-360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-spinner img {
        animation: none;
    }
}

/* Service Overview Video */
.service-overview-video {
    position: relative;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111;
    background-position: center;
    background-size: cover;
    padding-top: 48%; /* Reduced from 56.25% (16:9) to be ~15% shorter */
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.service-overview-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

.service-video-play {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
}

.service-video-play .play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.service-video-play .play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #111;
}

.service-overview-video iframe,
.service-overview-video .plyr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 3;
}

.service-overview-video .plyr--video {
    background: transparent !important;
}

.service-overview-video.is-playing::after,
.service-overview-video.is-playing .service-video-play {
    display: none;
}

.service-overview-video.is-playing {
    background-image: none !important;
}

@media (max-width: 768px) {
    .service-overview-video {
        max-width: 100%;
    }
}

/* Fix Header Dropdown Clipping - Corrected Alignment */
header.header-new, 
header.header-new .container-fluid, 
header.header-new .header-nav, 
header.header-new .main-menu-wrapper, 
header.header-new .main-nav {
    overflow: visible !important;
}

header.header-new .main-nav li, 
header.header-new .dropdown {
    position: relative !important;
    overflow: visible !important;
}

header.header-new .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 280px !important;
    z-index: 9999999 !important;
}

@media (max-width: 991.98px) {
    header.header-new .main-menu-wrapper {
        overflow-y: auto !important;
    }
}

/* Services Dropdown Styling */
.home-category-scroll {
    max-height: 500px !important;
    min-width: 280px !important;
    overflow-y: auto !important;
    padding: 10px 0 !important;
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    margin-top: 10px !important;
    z-index: 999999 !important;
    position: absolute !important;
}

/* Ensure the dropdown is visible when Bootstrap adds the .show class */
.dropdown-menu.home-category-scroll.show {
    display: block !important;
}

.home-category-scroll li a {
    padding: 10px 20px !important;
    font-weight: 500 !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.home-category-scroll li a:hover {
    background-color: #f8f9fa !important;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

/* Custom Scrollbar for Services Dropdown */
.home-category-scroll::-webkit-scrollbar {
    width: 6px;
}

.home-category-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.home-category-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.home-category-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Admin Sidebar Logo Styling */
/* Admin Sidebar Logo Styling */
.header, 
.header-left {
    height: 70px !important;
}

.main-wrapper {
    padding-top: 70px !important;
}

.sidebar {
    top: 70px !important;
}

.header-left .logo-normal img,
.header-left .dark-logo img {
    width: auto !important;
    height: 45px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    position: relative !important;
}

.header-left .logo-normal,
.header-left .dark-logo {
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-left .logo-normal {
    display: flex !important;
}
.header-left .dark-logo {
    display: none !important;
}
body.dark-mode .header-left .logo-normal {
    display: none !important;
}
body.dark-mode .header-left .dark-logo {
    display: flex !important;
}

#toggle_btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* Dashboard Premium Styling */
.dashboard-welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(255, 33, 166, 0.25) !important;
}

.dashboard-welcome-card::after {
    content: "";
    position: absolute;
    background: url('../img/bg/shape-04.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    opacity: 0.1;
}

.dashboard-welcome-card h1 {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.avatar-xl i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.animate-card {
    transition: all 0.3s ease !important;
}

.animate-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}


/* =============================================
   Issue Fix #1: Featured Services - Image Size Inconsistency
   ============================================= */
.featured-image img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
}

/* Service listing page - equal height cards */
.service-list-row {
    row-gap: 1.5rem;
}

.service-list-container .service-list-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-list-container .service-list-content {
    min-height: 0;
}

.service-list-container .service-list-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
    line-height: 1.5rem;
}

.service-list-container .service-list-title a {
    color: inherit;
}

.service-list-container .service-list-meta {
    min-height: 1.5rem;
}

.service-list-container .service-list-footer {
    padding-top: 0.5rem;
}

.service-list-container .img-sec {
    flex-shrink: 0;
}

.service-list-container .serv_img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

