/* Custom UI/UX Improvements for Consultant Menu */

:root {
    --primary-gradient: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-premium: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --header-inner-bg: #1F4B3F;
}

/* Performance: Prevent layout thrashing for common elements */
.listing-style1, .list-thumb, .list-content {
    contain: content;
}

#theme-ucarenow header,
#theme-ucarenow header .navbar .navbar-collapse {
    background-color: var(--header-inner-bg) !important;
}

#theme-ucarenow .header-nav.inner-page-header,
#theme-ucarenow .header-nav.inner-page-header .navbar-collapse {
    background-color: var(--header-inner-bg) !important;
}

/* Desktop Header Refinement */
.header-nav.at-home2 {
    background: transparent !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
}

/* Hide mobile header on desktop to prevent background interference */
@media only screen and (min-width: 992px) {
    .mobilie_header_nav {
        display: none !important;
    }
}

/* Ensure visibility on light backgrounds even when transparent */
.header-nav.at-home2:not(.stricky-fixed) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

.header-nav.stricky-fixed {
    background: rgba(31, 75, 63, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-premium);
    padding: 8px 0;
}

/* Menu Item Styling */
.ace-responsive-menu .list-item a,
.ace-responsive-menu .list-item {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    font-size: 15px !important;
    margin: 0 10px !important;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-nav.stricky-fixed .ace-responsive-menu .list-item a,
.header-nav.stricky-fixed .ace-responsive-menu .list-item {
    color: var(--text-light) !important;
    text-shadow: none !important;
}

.ace-responsive-menu .list-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1abc9c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ace-responsive-menu .list-item a:hover::after {
    width: 100%;
}

.ace-responsive-menu .list-item a:hover {
    color: #1abc9c !important;
}

/* Mega Menu Button */
.btn-mega {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
    border-radius: 50px !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    color: var(--text-light) !important;
}

/* Responsive adjustments for 992px - 1400px to prevent menu wrapping */
@media (min-width: 992px) and (max-width: 1400px) {
    .ace-responsive-menu .list-item a,
    .ace-responsive-menu .list-item {
        margin: 0 3px !important; /* Extremely tight margin */
        font-size: 13px !important;
    }
    .btn-mega {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    .header-logo img {
        max-width: 110px !important;
    }
    .login-info {
        font-size: 13px !important;
        margin: 0 5px !important;
    }
    .ud-btn.btn-white {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
}

.header-nav.stricky-fixed .btn-mega {
    background: rgba(26, 188, 156, 0.1) !important;
    color: #1abc9c !important;
    border-color: rgba(26, 188, 156, 0.2) !important;
}

.btn-mega:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

/* Header Buttons & Links */
.login-info,
.login-info span {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    color: var(--text-light) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-nav.stricky-fixed .login-info,
.header-nav.stricky-fixed .login-info span {
    color: var(--text-light) !important;
    text-shadow: none !important;
}

.login-info:hover {
    color: #1abc9c !important;
    opacity: 1;
}

/* Join Button Styling */
.ud-btn.btn-white {
    background: #ffffff !important;
    color: #1abc9c !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.header-nav.stricky-fixed .ud-btn.btn-white {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.ud-btn.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

/* Search Icon Specificity */
.flaticon-loupe::before {
    font-weight: 700 !important;
}

/* Submenu Styling */
.ace-responsive-menu ul {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-premium) !important;
    border: 1px solid #f1f3f5 !important;
    padding: 10px 0 !important;
    margin-top: 15px !important;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.ace-responsive-menu ul li a {
    color: #495057 !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.ace-responsive-menu ul li a:hover {
    background: #f8f9fa !important;
    color: #1abc9c !important;
    padding-left: 25px !important;
}

/* Mobile Header Refinement */
.mobilie_header_nav {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-premium);
    height: 70px;
    display: flex;
    align-items: center;
    width: 100% !important;
    overflow: hidden;
    padding: 0 15px !important;
}

.mobilie_header_nav .login-info {
    color: #1abc9c !important;
    font-weight: 600 !important;
    margin-right: 10px !important;
    text-shadow: none !important;
}

.mobile-menu {
    width: 100%;
}

.mobile_logo img {
    transition: transform 0.3s ease;
    max-height: 40px;
}

.mobile_logo:hover img {
    transform: scale(1.05);
}

/* Hamburger Icon Styling */
.menubar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none !important;
    margin-left: 10px !important;
}

.menubar span {
    font-size: 28px !important;
    color: #1abc9c;
    transition: all 0.3s ease;
    display: block !important;
    line-height: 1;
}

.menubar:hover span {
    transform: rotate(90deg);
    color: #16a085;
}

/* Mmenu Premium Styling */
.mm-menu {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
    font-family: 'Inter', sans-serif !important;
}

.mm-listitem a,
.mm-listitem span {
    font-weight: 500 !important;
    padding: 15px 20px !important;
    transition: all 0.2s ease !important;
    color: var(--text-dark) !important;
}

.mm-listitem:hover>a,
.mm-listitem:hover>span {
    background: rgba(26, 188, 156, 0.1) !important;
    color: #1abc9c !important;
    padding-left: 25px !important;
}

.mm-navbar {
    background: var(--primary-gradient) !important;
    border: none !important;
}

.mm-navbar__title {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mm-btn_prev:before,
.mm-btn_next:after {
    border-color: #ffffff !important;
}

/* Divider Styling */
.mm-divider {
    background: #f1f3f5 !important;
    color: #adb5bd !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 10px 20px !important;
}

/* Active State */
.mm-listitem_selected>a,
.mm-listitem_selected>span {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.mm-listitem {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

.mm-listitem:nth-child(1) {
    animation-delay: 0.1s;
}

.mm-listitem:nth-child(2) {
    animation-delay: 0.15s;
}

.mm-listitem:nth-child(3) {
    animation-delay: 0.2s;
}

.mm-listitem:nth-child(4) {
    animation-delay: 0.25s;
}

.mm-listitem:nth-child(5) {
    animation-delay: 0.3s;
}

.mm-listitem:nth-child(n+6) {
    animation-delay: 0.35s;
}

/* Final Refinements for Visibility */
@media (max-width: 992px) {
    .header-nav.at-home2 {
        background: #ffffff !important;
    }

    .header-nav.at-home2 .list-item a,
    .header-nav.at-home2 .login-info {
        color: var(--text-dark) !important;
        text-shadow: none !important;
    }
}

@media (max-width: 576px) {
    .mobilie_header_nav {
        padding: 0 15px !important;
    }
}

/* Hide desktop header on mobile */
@media only screen and (max-width: 991px) {
    .header-nav.at-home2 {
        display: none !important;
    }
}

/* Categories List Section UI Improvement */
.categories_list_section {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    box-shadow: inset 0 -2px 10px rgba(0,0,0,0.02);
    overflow: visible !important; /* Ensure parent doesn't clip */
}

.listings_category_nav_list_menu {
    position: relative;
    width: 100%;
}

.listings_category_nav_list_menu ul {
    overflow-x: auto;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 15px; /* Added horizontal padding */
    width: 100% !important;
    margin-bottom: 0;
    /* Custom Scrollbar for better UX */
    scrollbar-width: thin;
    scrollbar-color: #1F4B3F #f8f9fa;
}

.listings_category_nav_list_menu ul::-webkit-scrollbar {
    height: 4px;
    display: block; /* Ensure it is shown */
}

.listings_category_nav_list_menu ul::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.listings_category_nav_list_menu ul::-webkit-scrollbar-thumb {
    background-color: #1F4B3F;
    border-radius: 20px;
}

.listings_category_nav_list_menu ul li {
    list-style: none;
    margin: 0 !important;
    flex: 0 0 auto; /* Prevent items from shrinking */
}

/* Remove the "ugly" line from base theme */
.listings_category_nav_list_menu ul li a::before {
    display: none !important;
    content: none !important;
}

.listings_category_nav_list_menu ul li a {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    background: #fff;
    color: #444 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    text-decoration: none !important;
    position: relative;
    z-index: 1;
}

.listings_category_nav_list_menu ul li a:hover {
    background: #1F4B3F;
    color: #fff !important;
    border-color: #1F4B3F !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 75, 63, 0.2);
}

.listings_category_nav_list_menu ul li a.active {
    background: #1F4B3F !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(31, 75, 63, 0.3) !important;
    border-color: #1F4B3F !important;
    font-weight: 600;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .listings_category_nav_list_menu ul li a {
        padding: 6px 18px;
        font-size: 13px;
    }
    .categories_list_section {
        padding: 5px 0;
    }
}
/* Premium Filter Form Styling */
.premium-filter-form {
    background: #fff;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.custom-input-group {
    background: #f8f9fa;
    border-radius: 50px !important;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-input-group:focus-within {
    border-color: #1F4B3F;
    box-shadow: 0 0 0 3px rgba(31, 75, 63, 0.1);
}

.custom-input-group .input-group-text {
    background: transparent;
    border: none;
    color: #1F4B3F;
    padding-left: 20px;
}

.custom-input-group .form-control {
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: none !important;
}

.custom-select {
    border-radius: 50px !important;
    padding: 10px 25px 10px 20px !important;
    font-size: 14px !important;
    border: 1px solid #e9ecef !important;
    background-color: #f8f9fa !important;
    cursor: pointer;
    min-width: 180px;
    box-shadow: none !important;
    height: auto !important;
}

.custom-select:focus {
    border-color: #1F4B3F !important;
    box-shadow: 0 0 0 3px rgba(31, 75, 63, 0.1) !important;
}

.price-range-field {
    transition: all 0.3s ease;
}

.price-range-field:hover {
    border-color: #1F4B3F !important;
}

.price-range-field input::-webkit-outer-spin-button,
.price-range-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-range-field input:focus {
    outline: none;
}
/* Premium Filter Bar */
.premium-filter-wrapper {
    margin-bottom: 40px;
}

.premium-filter-bar {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 10px 15px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.premium-filter-bar:focus-within {
    box-shadow: 0 15px 35px rgba(31, 75, 63, 0.1);
    border-color: #1F4B3F;
}

.filter-search-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 45px !important;
    height: 45px !important;
    font-size: 15px !important;
    width: 100%;
}

.filter-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 10;
}

.filter-divider {
    width: 1px;
    height: 30px;
    background: #eee;
    margin: 0 5px;
}

.filter-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: #eee;
    color: #1F4B3F;
}

.filter-toggle-btn i {
    color: #1F4B3F;
}

.premium-sort-select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    padding-right: 25px !important;
    min-width: 140px;
    font-size: 14px;
}

.filter-submit-btn {
    background: #1F4B3F !important;
    color: white !important;
    border: none !important;
    padding: 10px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(31, 75, 63, 0.2) !important;
}

.filter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(31, 75, 63, 0.3) !important;
}

/* Advanced Filter Panel */
.advanced-filter-panel {
    margin-top: 15px;
    border: none !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
    padding: 25px !important;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-control {
    background: #f8f9fa !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
}

.filter-control:focus {
    background: #fff !important;
    border-color: #1F4B3F !important;
    box-shadow: 0 0 0 3px rgba(31, 75, 63, 0.05) !important;
}

/* Active Filter Chips */
.active-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.filter-chip {
    background: #eef3f1;
    color: #1F4B3F;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border: 1px solid rgba(31, 75, 63, 0.1);
}

.filter-chip a {
    color: #1F4B3F;
    margin-left: 8px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    opacity: 0.6;
}

.filter-chip a:hover {
    opacity: 1;
}

.clear-all-link {
    font-size: 12px;
    color: #ff4d4d;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
    align-self: center;
}

.clear-all-link:hover {
    text-decoration: underline;
}

/* Home Banner Search Button Refinement */
.hero-home2 .advance-search-tab .ud-btn.btn-thm {
    height: 55px;
    line-height: 55px;
    padding: 0 25px;
    font-size: 15px;
    font-weight: 600;
    background: #1abc9c !important;
    border: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.hero-home2 .advance-search-tab .ud-btn.btn-thm:hover {
    background: #16a085 !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

@media (max-width: 1199px) {
    .hero-home2 .advance-search-tab .ud-btn.btn-thm {
        height: 50px;
        line-height: 50px;
        font-size: 14px;
        padding: 0 15px;
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .premium-filter-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        align-items: stretch;
    }
    
    .filter-divider {
        display: none;
    }
    
    .premium-sort-select {
        border: 1px solid #eee !important;
        border-radius: 10px;
        margin-top: 10px;
        padding: 10px !important;
    }
}

/* Premium Service Card */
.premium-service-card {
    border: 1px solid #f2f2f2 !important;
    transition: all 0.3s ease-in-out;
}

.premium-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: #1F4B3F !important;
}

.premium-service-card .list-thumb img {
    transition: transform 0.5s ease;
}

.premium-service-card:hover .list-thumb img {
    transform: scale(1.05);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.hover-primary:hover {
    color: #1F4B3F !important;
}

/* Premium Freelancer Card */
.premium-freelancer-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.premium-freelancer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: #1F4B3F !important;
}

.card-header-bg {
    background: linear-gradient(135deg, rgba(31,75,63,0.1) 0%, rgba(31,75,63,0.02) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.premium-freelancer-card .thumb img {
    transition: transform 0.3s ease;
}

.premium-freelancer-card:hover .thumb img {
    transform: scale(1.05);
}

.hover-primary-filled:hover {
    background-color: #1F4B3F !important;
    border-color: #1F4B3F !important;
    color: #fff !important;
}
/* Performance Optimizations */
.premium-service-card {
    contain: layout style; /* Limit layout scope */
    backface-visibility: hidden; /* GPU Acceleration */
    -webkit-backface-visibility: hidden;
}

section {
    content-visibility: auto; /* Defer rendering of off-screen sections */
    contain-intrinsic-size: 0 500px; /* Placeholder size for layout stability */
}

/* Hero section should always be visible immediately */
.hero-section, 
header, 
.preloader {
    content-visibility: visible !important;
}

/* Skeleton Loading State (Optional, for future use) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    content-visibility: auto;
}

/* Consultant Profile Specific Enhancements */
.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.timeline-icon {
    transition: all 0.3s ease;
}

.timeline-icon:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(31, 75, 63, 0.2);
}

.bg-primary-light {
    background-color: rgba(31, 75, 63, 0.05) !important;
}

/* Sticky Sidebar Adjustment */
.blog-sidebar.sticky-top {
    transition: top 0.3s ease;
}

/* Owl Carousel Navigation Styles */
.services-slider-wrapper .owl-nav {
    display: block !important;
    position: absolute;
    top: -60px;
    right: 0;
}

.services-slider-wrapper .owl-nav button.owl-prev,
.services-slider-wrapper .owl-nav button.owl-next {
    background: #fff !important;
    color: #1F4B3F !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    margin-left: 10px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.services-slider-wrapper .owl-nav button:hover {
    background: #1F4B3F !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.services-slider-wrapper .owl-dots {
    margin-top: 20px;
}

.services-slider-wrapper .owl-dots .owl-dot.active span {
    background: #1F4B3F !important;
}

/* Service Type Badges */
.bg-onsite-subtle { background-color: #ff9800 !important; }
.text-onsite { color: #fff !important; }
.bg-local-subtle { background-color: #2196f3 !important; }
.text-local { color: #fff !important; }
.bg-live-subtle { background-color: #009688 !important; }
.text-live { color: #fff !important; }
.bg-purple-subtle { background-color: #9c27b0 !important; }
.text-purple { color: #fff !important; }

.service-type-badge .badge {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 16px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.premium-service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.premium-service-card .list-thumb {
    position: relative;
    overflow: hidden;
}

.premium-service-card .list-thumb::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.premium-service-card .service-type-badge {
    z-index: 2;
}

.premium-service-card .list-thumb img {
    transition: transform 0.6s ease;
}

.premium-service-card:hover .list-thumb img {
    transform: scale(1.08);
}

/* Premium UI/UX Improvements for Category Thumbnail Cards (.feature-style1) */
.feature-style1 {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Force hardware acceleration */
}

.feature-style1:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(31, 75, 63, 0.15);
}

.feature-style1 .feature-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.feature-style1 .feature-img img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    object-fit: cover;
}

.feature-style1:hover .feature-img img {
    transform: scale(1.08) rotate(-1deg);
}

/* Permanent highly premium gradient overlay to guarantee perfect text contrast at all times */
.feature-style1 .feature-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 32, 39, 0.85) 0%, rgba(15, 32, 39, 0.4) 45%, rgba(15, 32, 39, 0.1) 100%);
    transition: all 0.4s ease;
    pointer-events: none; /* Let clicks pass through to link if needed */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 20px;
    z-index: 2;
}

/* On hover, smoothly intensify the overlay with an elegant modern dark mode tint */
.feature-style1:hover .feature-content {
    background: linear-gradient(180deg, rgba(15, 32, 39, 0.92) 0%, rgba(15, 32, 39, 0.6) 50%, rgba(15, 32, 39, 0.3) 100%);
}

/* Refined Typography and layout inside the card */
.feature-style1 .top-area {
    position: relative !important;
    top: auto !important;
    padding-left: 0 !important;
    pointer-events: auto; /* Re-enable pointer events for inner text links */
}

.feature-style1 .top-area .title {
    color: #1abc9c !important; /* Premium curated accent color instead of plain white */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-style1 .top-area .text a {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: color 0.2s ease;
    display: block;
}

.feature-style1 .top-area .text a:hover {
    color: #1abc9c !important;
}
