/**
 * RehabCare Premium CSS Theme Stylesheet (RTL Natively)
 *
 * @package RehabCare
 * @since 1.0.0
 */

/* ==========================================================================
   1. Reset & General Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    letter-spacing: 0px !important;
    font-family: 'Cairo', sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    line-height: 1.3;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Custom Selection */
::selection {
    background-color: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   2. Accessibility States
   ========================================================================== */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    z-index: 99999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   3. Header & Navigation (Three-Tier Header System)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%) !important;
}

/* 1. Top Bar */
.header-top-bar {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl; /* Force RTL layout */
}

.top-bar-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-svg-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2px;
    color: #ffffff; /* White color for contrast */
    flex-shrink: 0;
}

.top-bar-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-search form {
    display: flex;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 3px 12px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 220px;
    transition: all 0.3s ease;
}

.top-bar-search form:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(50, 188, 214, 0.3);
}

.top-bar-search .search-field {
    border: none;
    outline: none;
    background: transparent;
    padding: 4px 6px;
    font-size: 13px;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    color: #1e293b;
}

.top-bar-search .search-field::placeholder {
    color: #94a3b8;
}

.top-bar-search .search-submit {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #32BCD6; /* Brand primary color */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar-search .search-submit:hover {
    color: #F18E29; /* Brand secondary color on hover */
    transform: scale(1.1);
}

.top-bar-search .search-submit svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

/* 2. Main Bar */
.header-main-bar {
    background-color: #f7f7f7;
    padding: 12px 0;
}

.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.site-branding-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-branding img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.header-call-anytime {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #e2e8f0;
    padding-right: 20px;
}

.call-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--color-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 16px;
}

.call-text {
    display: flex;
    flex-direction: column;
}

.call-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.call-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

/* Force all telephone links to render in LTR format to prevent RTL backward numbers */
a[href^="tel:"] {
    direction: ltr !important;
    display: inline-block !important;
    unicode-bidi: embed !important;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
}

.mobile-drawer-header {
    display: none;
}

/* Primary Navigation Menu */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px;
    display: none;
    min-width: 240px;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    color: #0f172a;
}

.main-navigation ul ul a:hover {
    background-color: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.main-navigation ul ul a::after {
    display: none;
}

.header-action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-appointment {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb), 0.25);
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    background-color: #c26a05;
    transform: translateY(-2px);
    color: #ffffff;
}

.appointment-icon {
    font-size: 14px;
}

.header-cart-wrapper,
.header-quote-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
}

.cart-contents-header,
.header-quote-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    position: relative !important;
    padding: 0 5px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease !important;
}

.cart-contents-header:hover,
.header-quote-link:hover {
    transform: scale(1.08) !important;
}

.cart-contents-header svg,
.header-quote-link svg {
    width: 22px !important;
    height: 22px !important;
    stroke: var(--color-primary) !important;
    stroke-width: 2.2px !important;
    display: block !important;
}

.cart-contents-header .count,
.header-quote-link .quote-count {
    position: absolute !important;
    top: -4px !important;
    right: -6px !important;
    background-color: #F18E29 !important; /* Unified Brand Orange */
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #ffffff !important; /* Premium white thin border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12) !important;
}

/* 3. Sub Bar */
.header-sub-bar {
    background-color: #f7f7f7; /* Solid light background to separate header and hero */
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Very thin, clean border */
    position: relative;
    z-index: 10;
}

.header-sub-flex {
    display: flex;
    justify-content: space-between; /* Notice on right, social icons on left */
    align-items: center;
    direction: rtl;
}

/* Social icons on notice bar */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 8px; /* Slightly tighter gap for more items */
    padding-left: 15px; /* Offset from left edge */
}

.social-link-item {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #ffffff; /* Contrast white background */
    border: 1px solid rgba(50, 188, 214, 0.15); /* Soft teal border */
    color: var(--color-primary); /* Brand Teal */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.social-link-item:hover {
    background-color: var(--color-primary); /* Fills with brand teal on hover */
    border-color: var(--color-primary);
    color: #ffffff; /* White icon on hover */
    transform: translateY(-3px) scale(1.05); /* Premium float-up effect */
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.2);
}

.social-link-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
}

.header-notice-tab {
    background-color: var(--color-primary); /* Brand Primary Teal */
    color: #ffffff;
    padding: 10px 24px 10px 40px; /* Extra left padding to protect text from slant clip */
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    top: -1px; /* Align perfectly with the 1px border */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25px 100%); /* Slant goes down-right: top-left is 0, bottom-left is 25px */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 3D Folded Ribbon Corner at top right */
.header-notice-tab::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent rgba(0, 0, 0, 0.55) transparent;
}

.notice-prefix {
    color: #11323a; /* Dark premium teal for excellent contrast on primary teal */
    font-weight: 800;
    letter-spacing: 0.5px;
}

.notice-text {
    color: #ffffff; /* Crisp white for clean readability */
    font-weight: 600;
}

.notice-link {
    color: #F18E29; /* Exact Brand Orange */
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.notice-link:hover {
    color: #ffffff;
    opacity: 1;
}

/* Scrolled Sticky State customizations */
.site-header.scrolled {
    background-color: #f7f7f7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .header-top-bar,
.site-header.scrolled .header-sub-bar {
    display: none;
}

.site-header.scrolled .header-main-bar {
    padding: 6px 0;
}

/* Mobile toggler */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #2e4f7b;
    padding: 5px;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
    }
    .site-branding-wrapper .header-call-anytime {
        display: none;
    }
    .header-action-buttons .btn-appointment {
        display: none;
    }
}

/* ==========================================================================
   4. Hero Section (Premium Split Slider Theme)
   ========================================================================== */
.hero-premium-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen viewport height */
    background-color: #11323a; /* Dark brand teal background */
    overflow: hidden;
    z-index: 1;
    padding: 0 !important; /* Force reset global theme section padding to prevent bottom gap */
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row; /* Split columns */
    align-items: stretch; /* Stretch columns to 100% height */
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* 1. Full Screen Background Image Wrapper */
.slide-image-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%; /* Cover full width */
    height: 100% !important;
    overflow: hidden;
    z-index: 1;
}

.slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 6s ease;
}

.hero-slide.active .slide-img {
    transform: scale(1.05); /* Slow premium Ken Burns effect */
}

/* Premium Dark/Teal Overlay for High Contrast & Text Readability */
.slide-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 50, 58, 0.72) 0%, rgba(17, 50, 58, 0.58) 100%);
    z-index: 2;
}

/* 2. Full Screen Centered Content Column */
.slide-content-wrapper {
    width: 100%; /* Cover full width */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Horizontally center content */
    background-color: transparent;
    padding: 170px 24px 80px 24px; /* Center content padding */
    z-index: 3;
}

.slide-content-inner {
    max-width: 800px; /* Wider content width for full screen layout */
    width: 100%;
    text-align: center; /* Center text alignments */
    direction: rtl;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; /* Delayed fade up */
}

.hero-slide.active .slide-content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Subtitle Tagline with Wavy Line */
.slide-script-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Horizontally center tagline elements */
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-primary); /* Brand Primary Cyan/Teal */
}

.slide-wavy-line {
    color: var(--color-primary);
    animation: waveFlow 2s infinite linear;
}

@keyframes waveFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}

.slide-script {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Slide Titles */
.slide-title {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #ffffff; /* Crisp white title for dark background contrast */
    line-height: 1.3;
    margin-bottom: 20px;
}

.slide-title .highlight-orange {
    color: var(--color-secondary); /* Brand Orange */
}

.slide-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #f1f5f9; /* Soft light slate/white for readability on dark overlay */
    margin-bottom: 35px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.btn-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-secondary); /* Brand Orange */
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px; /* Clean, app-like rounding */
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(241, 142, 41, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-slide-cta:hover {
    background-color: #d97416;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(241, 142, 41, 0.35);
    color: #ffffff;
}

.btn-arrow-icon {
    transition: transform 0.3s ease;
}

.btn-slide-cta:hover .btn-arrow-icon {
    transform: translateX(-4px); /* Moves left in RTL */
}

/* 3. Premium Interactive Slider Nav Dots (Horizontal Bottom Centered) */
.hero-slider-nav {
    position: absolute;
    bottom: 35px; /* Positioned at the bottom of the slider */
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.hero-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3); /* White transparent for visibility on dark overlay */
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: transparent;
}

.hero-nav-dot.active {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary); /* Brand Teal */
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.hero-nav-dot .dot-number {
    display: none;
    font-family: 'Cairo', sans-serif;
}

.hero-nav-dot.active .dot-number {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-premium-slider {
        height: 100vh; /* Keep full viewport on mobile/tablet */
    }
    
    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
    }
    
    .slide-content-wrapper {
        padding: 160px 20px 80px 20px; /* Safe padding for mobile header */
    }
    
    .hero-slider-nav {
        bottom: 24px;
    }
}

@media (max-width: 767px) {
    .slide-title {
        font-size: 32px;
    }
    
    .slide-desc {
        font-size: 14px;
    }
}

/* Specialties Section (We Specialize In) */
.specialities-section {
    background-color: #f8fafc;
    padding: 90px 0 35px 0;
}

.specialities-header {
    text-align: center;
    margin-bottom: 60px;
}

.specialities-script {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.specialities-title {
    font-size: 36px;
    font-weight: 900;
    color: #2e4f7b;
    margin-bottom: 20px;
}

.specialities-line-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.specialities-line {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background-color: #e2e8f0;
    position: absolute;
    z-index: 1;
}

.btn-all-specialities {
    background-color: #00bef0;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 190, 240, 0.2);
    transition: all 0.3s ease;
}

.btn-all-specialities:hover {
    background-color: #02a8d4;
    transform: translateY(-2px);
    color: #ffffff;
}

.specialities-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 5;
}

/* Specialties Carousel Layout */
.specialities-carousel-container {
    position: relative;
    margin-top: 50px;
    padding: 0 45px; /* Leave space for navigation arrows */
}

.specialities-carousel-track-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    padding: 10px 0 60px 0; /* Extra bottom padding to prevent avatar clipping */
}

.specialities-carousel-track-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Webkit */
}

.specialities-carousel-track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: nowrap;
}

.speciality-card-item {
    flex: 0 0 calc((100% - 48px) / 3); /* 3 cards visible on desktop */
    min-width: 280px;
    box-sizing: border-box;
    display: flex; /* Make column flex container to stretch links */
}

.speciality-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex; /* Make link a flex column to stretch the card */
    flex-direction: column;
    width: 100%;
    height: 100%; /* Stretch to item height */
}

/* Premium Hover Transitions */
.speciality-card-link-wrapper:hover .speciality-card {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 190, 240, 0.2);
}

.speciality-card-link-wrapper:hover .speciality-doctor-avatar {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 190, 240, 0.15);
}

.specialities-carousel-track-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    padding: 10px 0 60px 0; /* Extra bottom padding to prevent avatar clipping */
    cursor: grab;
}

.specialities-carousel-track-wrapper.grabbing {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto; /* Turn off smooth behavior for 1:1 responsive dragging */
}

/* Premium Navigation Buttons Styles */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centered vertically relative to container height */
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px); /* Modern glassmorphism look */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-nav-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(0, 190, 240, 0.28);
}

.carousel-nav-btn.prev-btn {
    right: 0;
}

.carousel-nav-btn.prev-btn:hover {
    transform: translateY(-50%) scale(1.08); /* Maintain vertical alignment while scaling */
}

.carousel-nav-btn.next-btn {
    left: 0;
}

.carousel-nav-btn.next-btn:hover {
    transform: translateY(-50%) scale(1.08); /* Maintain vertical alignment while scaling */
}

.arrow-icon-svg {
    transition: transform 0.3s ease;
}

.carousel-nav-btn:hover .arrow-icon-svg {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .speciality-card-item {
        flex: 0 0 calc((100% - 24px) / 2); /* 2 cards visible on tablet */
    }
    .specialities-carousel-container {
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    .speciality-card-item {
        flex: 0 0 100%; /* 1 card visible on mobile */
    }
    .specialities-carousel-container {
        padding: 0 15px;
    }
}

.speciality-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px 80px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    text-align: center;
    position: relative;
    overflow: visible; /* Let avatar overlap bottom border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1 1 auto;
}

.speciality-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #2e4f7b;
    margin-bottom: 15px;
}

.speciality-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
}

.speciality-doctor-avatar {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: #e2e8f0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Base Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
    100% { transform: translateY(0px); }
}

/* Premium Products Tabs Navigation */
.tabs-nav-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
}

.tabs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 40px; /* Fully rounded capsule container */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.tab-nav-item {
    display: block;
    margin: 0;
    padding: 0;
}

.tab-nav-btn {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.tab-nav-btn:hover {
    color: var(--color-primary);
}

.tab-nav-btn.active {
    background-color: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Tab Panes Transition and Display */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Base button styles retained for customizer/templates */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(var(--color-primary-rgb), 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    color: #fff;
}

/* ==========================================================================
   5. Section Titles
   ========================================================================== */
.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--wp--preset--color--dark);
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-description {
    color: #64748B;
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================================
   6. Custom Post Types grid layouts (Physiotherapy & Daycare)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.08);
    border-color: rgba(var(--color-primary-rgb), 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background-color: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
    background-color: var(--color-primary);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card-desc {
    color: #64748B;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-card-footer {
    display: flex;
    gap: 15px;
}

.card-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-btn-primary {
    background-color: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.card-btn-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.card-btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-btn-whatsapp:hover {
    background-color: #128c7e;
    color: #fff;
    transform: translateY(-2px);
}

/* Premium Product Card Styles */
.product-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: right;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
    border-color: rgba(50, 188, 214, 0.2);
}

/* Image Wrapper */
.product-card-img-wrapper {
    width: 100%;
    height: 230px; /* Fixed height for consistent grids */
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px; /* RTL top right */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sale-badge {
    background-color: #ef4444;
}

/* Card Content */
.product-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Match card heights */
}

.product-card-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-title a:hover {
    color: var(--color-primary);
}

/* Price Box */
.product-card-price-box {
    margin-top: auto; /* Push price block to bottom of content area */
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-secondary);
}

.product-card-price-box del {
    font-size: 14px;
    color: #94a3b8;
    margin-left: 8px;
    font-weight: 600;
}

.product-card-price-box ins {
    text-decoration: none;
    color: var(--color-secondary);
}

/* Action Buttons Container */
.product-card-actions {
    display: flex;
    flex-direction: row;
    border-top: 1px solid #f1f5f9;
    background-color: #fafafa;
    padding: 16px 20px;
    gap: 12px;
}

.product-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.product-action-btn svg {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.product-action-btn span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Add to Cart button */
.add-to-cart-btn {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.15);
}

.add-to-cart-btn:hover {
    background-color: #02a8d4;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(50, 188, 214, 0.25);
}

/* WhatsApp button */
.whatsapp-btn {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.whatsapp-btn:hover {
    background-color: #1ebd58;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

/* Request Quote button */
.request-quote-btn {
    background-color: #F18E29; /* Brand Orange */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(241, 142, 41, 0.15);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.request-quote-btn:hover {
    background-color: #df7f1e;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(241, 142, 41, 0.25);
}

/* ==========================================================================
   7. About Us Section (Glassmorphism design)
   ========================================================================== */
.about-section {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.02) 0%, rgba(var(--color-secondary-rgb), 0.02) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 25px 35px;
    border-radius: 20px;
    text-align: center;
}

.about-badge .badge-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.about-badge .badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--dark);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    color: #64748B;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
}

.about-feature-item svg {
    color: var(--color-secondary);
}

/* ==========================================================================
   8. Features / Stats Section
   ========================================================================== */
.features-section {
    background-color: var(--wp--preset--color--dark);
    color: #fff;
}

.features-section .section-title {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.stat-icon {
    color: var(--color-secondary);
    margin-bottom: 20px;
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}

.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-title {
    color: #94A3B8;
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   9. CTA & Inquiries Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ==========================================================================
   10. Contact Us & Maps Section
   ========================================================================== */
.contact-section {
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-content p {
    color: #64748B;
    margin: 0;
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--wp--preset--color--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-map {
    height: 100%;
    min-height: 350px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #94A3B8;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-menu a::before {
    content: '←';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-menu a:hover::before {
    transform: translateX(-4px);
}

.footer-menu a:hover {
    color: #ffffff;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
}

.footer-contact-list svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.site-footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    direction: rtl;
}

.site-footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

.footer-bottom-right,
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-regulatory-logo {
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 4px 8px;
    transition: transform 0.2s ease;
}

.footer-regulatory-logo:hover {
    transform: translateY(-2px);
}

.footer-payment-logo {
    height: 18px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.7;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-payment-logo:hover {
    filter: brightness(0) invert(1) !important;
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .site-footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        justify-content: center !important;
    }
    
    .footer-bottom-right,
    .footer-bottom-center,
    .footer-bottom-left {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   12. Standard WordPress Pages layout & Breadcrumbs & Widgets
   ========================================================================== */
.rehabcare-breadcrumbs {
    background-color: #f8fafc; /* Premium soft slate-blue background */
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 220px; /* offset sticky header on desktop */
}

.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    color: #64748B;
}

.breadcrumbs-list li a {
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.breadcrumbs-list li a:hover {
    color: var(--color-secondary);
}

.breadcrumb-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.breadcrumb-home-svg {
    width: 15px;
    height: 15px;
    color: var(--color-primary);
    stroke-width: 2.2px;
}

.breadcrumbs-list li.active span {
    color: var(--wp--preset--color--dark);
    font-weight: 600;
}

.breadcrumbs-list .separator {
    color: #cbd5e1;
    margin: 0 4px;
    font-size: 12px;
}

.main-content-area {
    padding: 60px 0;
    margin-top: 220px; /* offset header when breadcrumbs is absent */
}

/* Remove spacing if breadcrumbs are present to avoid double offset */
.rehabcare-breadcrumbs + .container .main-content-area,
.rehabcare-breadcrumbs + .main-content-area,
.rehabcare-breadcrumbs + main,
.rehabcare-breadcrumbs + .rehabcare-woocommerce-wrapper-page {
    margin-top: 0 !important;
}

.rehabcare-woocommerce-wrapper-page {
    margin-top: 220px; /* offset header when breadcrumbs is absent */
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 50px;
}

.layout-fullwidth {
    width: 100%;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.post-content-wrap {
    padding: 30px;
}

.post-meta {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Sidebar Styles */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget ul li a {
    color: #64748B;
    font-size: 15px;
}

.widget ul li a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   13. Dynamic Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Scroll reveal helper classes */
.reveal-item {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   14. Responsive Layout Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .header-container {
        padding: 20px 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background: none;
        border: none;
        backdrop-filter: none;
        padding: 10px 20px 0 0;
        margin: 0;
        display: none;
        opacity: 1;
        transform: none;
        min-width: unset;
    }

    .main-navigation li.active-submenu > ul {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-badge {
        bottom: -20px;
        right: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rehabcare-breadcrumbs,
    .main-content-area,
    .rehabcare-woocommerce-wrapper-page {
        margin-top: 165px !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 24px 12px !important;
    }

    .stat-card .stat-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
    }

    .stat-num {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }

    .stat-title {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-features-list {
        grid-template-columns: 1fr;
    }

    .rehabcare-breadcrumbs,
    .main-content-area,
    .rehabcare-woocommerce-wrapper-page {
        margin-top: 160px !important;
    }
}

/* ==========================================================================
   16. About Intro Section (التعريف بالمركز)
   ========================================================================== */
.about-intro-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-intro-collage {
    order: 2; /* flows to left in RTL */
    display: flex;
    align-items: flex-end;
    gap: 24px;
    position: relative;
}

.collage-main-img {
    width: 55%;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.collage-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-main-img:hover img {
    transform: scale(1.04);
}

.collage-side-wrapper {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.collage-stat-box {
    background-color: rgba(50, 188, 214, 0.06); /* Soft brand teal */
    border: 1px solid rgba(50, 188, 214, 0.12);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(50, 188, 214, 0.02);
}

.stat-icon {
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    margin-bottom: 12px;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    line-height: 1.4;
}

.collage-overlapping-img {
    height: 230px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 5px solid #ffffff;
    margin-right: -50px; /* pull right overlapping the main image in RTL */
    z-index: 2;
    transition: transform 0.3s ease;
}

.collage-overlapping-img:hover {
    transform: translateY(-5px);
}

.collage-overlapping-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right content details (flows to right in RTL) */
.about-intro-content {
    order: 1;
}

.about-intro-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F18E29; /* Brand orange color */
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0px;
}

.subtitle-wave {
    color: #F18E29;
    display: flex;
    align-items: center;
}

.about-intro-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 20px;
}

.about-intro-title .text-primary {
    color: var(--color-primary);
}

.about-intro-title .text-secondary {
    color: #F18E29;
}

.about-intro-desc {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-intro-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-intro-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.about-intro-features li .feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(50, 188, 214, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(50, 188, 214, 0.05);
}

.about-intro-features li .feature-icon svg {
    stroke-width: 2.5px;
}

.about-intro-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hide Read More button inside About Us page template */
.page-template-pageabout-php .about-intro-actions {
    display: none !important;
}

.btn-read-more {
    background-color: #F18E29;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(241, 142, 41, 0.25);
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #d67a1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 142, 41, 0.35);
}

.arrow-up-right-icon {
    transition: transform 0.3s ease;
}

.btn-read-more:hover .arrow-up-right-icon {
    transform: translate(2px, -2px);
}

.btn-play-video {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #11323a;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(17, 50, 58, 0.25);
}

.btn-play-video:hover {
    background-color: var(--color-primary);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(50, 188, 214, 0.3);
}

.btn-play-video svg.play-icon {
    margin-right: 2px;
}

/* Responsive Styles for About Intro */
@media (max-width: 991px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-intro-collage {
        order: 1; /* collage on top for mobile */
    }
    
    .about-intro-content {
        order: 2;
        text-align: center;
    }
    
    .about-intro-subtitle {
        justify-content: center;
    }
    
    .about-intro-features li {
        justify-content: flex-start;
        text-align: right;
    }
    
    .about-intro-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .about-intro-collage {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .collage-main-img {
        width: 100%;
        height: 300px;
    }
    
    .collage-side-wrapper {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .collage-stat-box {
        flex: 1;
        padding: 16px;
    }
    
    .collage-overlapping-img {
        flex: 1.2;
        height: 160px;
        margin-right: 0;
        border-width: 3px;
    }
    
    .about-intro-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   17. Header Responsive Layout Fixes (إصلاح تجاوب الهيدر)
   ========================================================================== */
@media (max-width: 991px) {
    /* Top Bar */
    .header-top-flex {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 15px !important;
    }
    
    .top-bar-contact {
        flex-direction: row !important;
        gap: 15px !important;
        margin: 0 !important;
    }
    
    /* Hide address and clock on tablets/mobiles to prevent overflow */
    .top-bar-contact .contact-item:not(:first-child) {
        display: none !important;
    }
    
    .top-bar-actions {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .top-bar-search {
        margin: 0 !important;
    }
    
    .top-bar-search form {
        max-width: 170px !important;
    }
    
    /* Main Bar */
    .header-main-flex {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
    }
    
    .site-branding-wrapper {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        order: 1 !important;
    }
    
    /* Hide the call text on tablets/mobiles to give logo space */
    .header-call-anytime {
        display: none !important;
    }
    
    /* Hamburger toggle container order */
    .header-nav-wrapper {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 3 !important;
    }
    
    .menu-toggle {
        margin: 0 !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background-color: #f8fafc !important;
        color: var(--color-primary) !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus {
        background-color: #f1f5f9 !important;
    }
    
    .menu-toggle span.icon-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .menu-toggle span.icon-close {
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .menu-toggle[aria-expanded="true"] span.icon-menu {
        display: none !important;
    }
    
    .menu-toggle[aria-expanded="true"] span.icon-close {
        display: flex !important;
    }
    
    .menu-toggle svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2.2px !important;
        display: block !important;
        margin: auto !important;
    }
    
    /* Group actions and push them left next to menu toggle */
    .header-action-buttons {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important; /* Unified compact gap between action buttons */
        margin-right: auto !important;
        margin-left: 8px !important; /* Unified compact gap between actions group and Hamburger */
        order: 2 !important;
        height: 38px !important;
        padding: 0 !important;
    }

    .mobile-search-toggle {
        background-color: #f8fafc !important;
        border: none !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--color-primary) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .mobile-search-toggle:hover {
        background-color: #f1f5f9 !important;
    }
    
    .mobile-search-toggle svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2.2px !important;
        display: block !important;
        margin: auto !important;
    }

    .header-cart-wrapper,
    .header-quote-wrapper {
        width: 38px !important;
        height: 38px !important;
        background-color: #f8fafc !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        margin: 0 !important; /* Reset margins */
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .header-cart-wrapper a,
    .header-quote-wrapper a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        text-decoration: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .header-cart-wrapper svg,
    .header-quote-wrapper svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2.2px !important;
        display: block !important;
        margin: auto !important;
        color: var(--color-primary) !important;
        stroke: var(--color-primary) !important;
    }
    
    .header-cart-wrapper:hover,
    .header-quote-wrapper:hover {
        background-color: #f1f5f9 !important;
    }
    
    /* Cart and Quote count badges offset adjustments */
    .header-cart-wrapper .count,
    .header-quote-wrapper .quote-count {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        left: auto !important;
        background-color: var(--color-secondary) !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        width: 17px !important;
        height: 17px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1.5px solid #ffffff !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 5 !important;
    }
    
    /* Sub Bar */
    .header-sub-bar {
        background-color: var(--color-primary) !important;
        padding: 0 !important;
        height: auto !important;
    }
    
    .header-sub-flex {
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
    }
    
    .header-notice-tab {
        width: 100% !important;
        clip-path: none !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px 15px !important;
        top: 0 !important;
        background: transparent !important;
    }
    
    .header-notice-tab::after {
        display: none !important;
    }
    
    /* Hide social icons from header on tablets/mobiles */
    .header-social-links {
        display: none !important;
    }
    
    /* Height adjustments */
    .rehabcare-breadcrumbs,
    .main-content-area,
    .rehabcare-woocommerce-wrapper-page {
        margin-top: 165px !important;
    }
}

@media (max-width: 768px) {
    .site-branding img {
        max-height: 52px !important;
    }
    
    /* Carousel Navigation Arrows layout on mobile */
    .carousel-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 576px) {
    /* Hide top bar on mobile screen to make it look like native mobile app header */
    .header-top-bar {
        display: none !important;
    }
    
    /* Height adjustments for mobile */
    .rehabcare-breadcrumbs,
    .main-content-area,
    .rehabcare-woocommerce-wrapper-page {
        margin-top: 160px !important;
    }
}

/* ==========================================================================
   18. Premium Mobile Menu Drawer Styling
   ========================================================================== */
@media (max-width: 991px) {
    /* Override display: none on main-navigation from line 546 */
    .main-navigation {
        display: flex !important; /* Force layout activation */
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 310px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.08) !important;
        padding: 0 !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 99999 !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .main-navigation.active {
        right: 0 !important;
    }

    /* Mobile Drawer Header */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 20px 24px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background-color: #ffffff !important;
        width: 100% !important;
    }

    .drawer-title {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .mobile-drawer-close {
        background: transparent !important;
        border: none !important;
        color: #64748b !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        transition: all 0.25s ease !important;
        padding: 0 !important;
    }

    .mobile-drawer-close:hover {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
    }

    .mobile-drawer-close svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2.5px !important;
    }

    /* Scrollable links menu container */
    .main-navigation ul#primary-menu-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 15px 24px !important;
        list-style: none !important;
        overflow-y: auto !important;
        flex-grow: 1 !important;
        text-align: right !important;
    }

    .main-navigation li {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        float: none !important;
    }

    .main-navigation li:last-child {
        border-bottom: none !important;
    }

    .main-navigation a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 8px !important;
        font-size: 15.5px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        text-decoration: none !important;
        transition: all 0.25s ease !important;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a,
    .main-navigation li.active-submenu > a {
        color: #ffffff !important;
        background-color: #F18E29 !important; /* Brand Orange */
        border-radius: 8px !important;
        padding-right: 14px !important;
    }

    /* Submenu Chevrons */
    .main-navigation li.menu-item-has-children > a svg {
        transition: transform 0.3s ease !important;
        width: 14px !important;
        height: 14px !important;
        stroke-width: 2.5px !important;
    }

    .main-navigation li.active-submenu > a svg {
        transform: rotate(180deg) !important;
        color: var(--color-primary) !important;
    }

    /* Submenu dropdown list */
    .main-navigation ul ul.sub-menu {
        background-color: #f8fafc !important;
        border-radius: 8px !important;
        padding: 6px 15px !important;
        margin: 0 0 10px 0 !important;
        display: none !important;
        box-shadow: inset 0 2px 6px rgba(0,0,0,0.02) !important;
        list-style: none !important;
    }

    .main-navigation li.active-submenu > ul.sub-menu {
        display: flex !important;
    }

    .main-navigation ul ul.sub-menu li {
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .main-navigation ul ul.sub-menu li:last-child {
        border-bottom: none !important;
    }

    .main-navigation ul ul.sub-menu a {
        font-size: 13.5px !important;
        padding: 10px 8px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        transition: all 0.2s ease !important;
    }

    .main-navigation ul ul.sub-menu a:hover {
        background-color: #F18E29 !important;
        color: #ffffff !important;
        padding-right: 14px !important;
        border-radius: 6px !important;
    }

    /* Mobile Drawer Info Styling */
    .mobile-drawer-info {
        display: block !important;
        margin-top: auto !important;
        padding: 30px 24px 40px 24px !important;
        text-align: right !important;
    }

    .drawer-info-divider {
        width: 100% !important;
        height: 1px !important;
        background-color: #e2e8f0 !important;
        margin-bottom: 20px !important;
    }

    .drawer-contact {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .drawer-info-label {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    .drawer-info-phone {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: var(--color-secondary) !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
    }

    .drawer-info-email {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }
}

/* Hide mobile drawer contact info on desktop */
.mobile-drawer-info {
    display: none;
}

/* ==========================================================================
   19. Sticky Header Shrink Styles (تنسيق تقلص الهيدر عند السكرول)
   ========================================================================== */
.header-top-bar,
.header-sub-bar,
.header-main-bar,
.site-branding img {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Scrolled State */
.site-header.scrolled .header-top-bar,
.site-header.scrolled .header-sub-bar {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    border: none !important;
}

.site-header.scrolled .header-main-bar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background-color: #f7f7f7 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.site-header.scrolled .site-branding img {
    max-height: 48px !important; /* Elegant compact size */
}

/* Desktop navigation links padding reduction when scrolled */
@media (min-width: 992px) {
    .site-header.scrolled .main-navigation a {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        font-size: 15px !important;
    }
}

/* ==========================================================================
   20. Mobile Search Overlay & Dropdown Styling
   ========================================================================== */
.mobile-search-toggle {
    display: none;
}

.mobile-search-dropdown {
    display: none;
}

@media (max-width: 991px) {
    .mobile-search-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #f8fafc;
        color: #334155;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-left: 10px; /* Space next to cart icon */
    }

    .mobile-search-toggle:hover,
    .mobile-search-toggle.active {
        background-color: var(--color-primary);
        color: #ffffff;
    }

    .mobile-search-toggle svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5px;
    }

    /* Mobile Search Dropdown Container overlay */
    .mobile-search-dropdown {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #f1f5f9;
        padding: 14px 0;
        transform: translateY(-15px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .mobile-search-dropdown.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-search-form {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .mobile-search-field {
        width: 100%;
        padding: 12px 20px 12px 50px; /* 50px left padding for submit button, 20px right */
        border: 1px solid #e2e8f0;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        background-color: #f8fafc;
        outline: none;
        transition: all 0.3s ease;
        font-family: 'Cairo', sans-serif;
        text-align: right;
    }

    .mobile-search-field:focus {
        border-color: var(--color-primary);
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(50, 188, 214, 0.15);
    }

    .mobile-search-submit {
        position: absolute;
        left: 6px; /* Positioned left inside the input */
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        cursor: pointer;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .mobile-search-submit:hover {
        color: var(--color-primary);
        background-color: rgba(50, 188, 214, 0.08);
    }

    .mobile-search-submit svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5px;
    }
}

/* ==========================================================================
   21. Mobile Horizontal Scrollable Tabs & 2-Column Product Grid
   ========================================================================== */
@media (max-width: 768px) {
    /* Horizontal scrollable capsule tabs */
    .tabs-nav-container {
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
        padding: 5px 0 15px 0 !important;
        justify-content: flex-start !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE 10+ */
    }
    
    .tabs-nav-container::-webkit-scrollbar {
        display: none !important; /* WebKit */
    }

    .tabs-nav-list {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 4px 15px !important;
        background: none !important;
        box-shadow: none !important;
        gap: 10px !important;
    }

    .tab-nav-item {
        flex-shrink: 0 !important;
    }

    .tab-nav-btn {
        font-size: 13.5px !important;
        padding: 8px 18px !important;
        border-radius: 25px !important;
        background-color: #f1f5f9 !important;
        color: #64748b !important;
        border: 1px solid #e2e8f0 !important;
        transition: all 0.25s ease !important;
    }

    .tab-nav-btn.active {
        background-color: var(--color-primary) !important;
        color: #ffffff !important;
        border-color: var(--color-primary) !important;
        box-shadow: 0 4px 12px rgba(50, 188, 214, 0.2) !important;
    }
}

@media (max-width: 576px) {
    /* Force 2 products per row */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Adjust product card contents for 2-column layout */
    .product-card-img-wrapper {
        height: 125px !important; /* Shorter image to prevent stretching */
    }

    .product-card-content {
        padding: 12px !important;
    }

    .product-card-category {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .product-card-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    .product-card-price-box {
        font-size: 14px !important;
        padding-top: 6px !important;
    }

    .product-card-price-box del {
        font-size: 11px !important;
        margin-left: 4px !important;
    }

    .product-card-actions {
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    .product-action-btn {
        padding: 8px 4px !important;
        font-size: 10.5px !important;
        border-radius: 6px !important;
        gap: 4px !important;
    }

    .product-action-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Reduce vertical distance between specialties carousel and physiotherapy section */
.physio-section {
    padding-top: 35px !important;
}

/* ==========================================================================
   22. Premium Contact Us Page Styling
   ========================================================================== */
.contact-page-wrapper {
    background-color: #fcfdfe;
    padding-bottom: 80px;
    font-family: 'Cairo', sans-serif;
}

/* contact hero */
.contact-hero-header {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0 60px 0;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.contact-subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: 12px;
}

.contact-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    line-height: 1.2;
}

.contact-description {
    font-size: 16px;
    color: #475569;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Info Cards section */
.contact-cards-section {
    padding: 60px 0;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-info-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(50, 188, 214, 0.08);
    border-color: rgba(50, 188, 214, 0.3);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(50, 188, 214, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.contact-info-card:hover .card-icon-wrapper {
    background-color: var(--color-primary);
    color: #ffffff;
}

.card-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.contact-info-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.contact-info-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.card-link-item {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #1e293b;
    padding: 10px;
    border-radius: 10px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-link:hover {
    color: var(--color-primary);
    background-color: rgba(50, 188, 214, 0.05);
}

.whatsapp-link {
    color: #25d366;
    background-color: rgba(37, 211, 102, 0.06);
}

.whatsapp-link:hover {
    background-color: #25d366;
    color: #ffffff;
}

.email-link:hover {
    color: var(--color-primary);
    background-color: rgba(50, 188, 214, 0.05);
}

.hours-info {
    font-weight: 800;
    color: var(--color-secondary);
}

.hours-info-secondary {
    font-size: 13px;
    color: #94a3b8;
}

/* Form and Map Row */
.contact-primary-section {
    padding: 20px 0 60px 0;
}

.contact-form-map-row {
    display: flex;
    gap: 40px;
}

.contact-form-column {
    flex: 1.4;
}

.contact-map-column {
    flex: 1;
}

.contact-form-card,
.contact-details-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.02);
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.contact-form-card p {
    font-size: 14.5px;
    color: #64748b;
    margin-bottom: 30px;
}

.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
}

.form-group label .required {
    color: #ef4444;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: all 0.25s ease;
    background-color: #fcfdfe;
}

.form-control:focus {
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(50, 188, 214, 0.12);
}

.select-control {
    height: 48px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 4 6 8 10 4'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.textarea-control {
    resize: none;
}

.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(50, 188, 214, 0.2);
}

.btn-submit-contact:hover {
    background-color: #27a2ba;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 188, 214, 0.3);
}

.btn-submit-contact svg {
    transition: transform 0.3s ease;
}

.btn-submit-contact:hover svg {
    transform: translate(-3px, -3px);
}

/* Success notification message */
.contact-alert {
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    animation: fadeIn 0.4s ease forwards;
}

.contact-alert-success {
    background-color: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #15803d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Details and Map styling */
.contact-map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.contact-address-info {
    margin-bottom: 25px;
}

.contact-address-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.address-text {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.addr-icon {
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-socials-wrapper {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.contact-socials-wrapper h4 {
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 15px;
}

.contact-social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.social-icon-btn.inst:hover { background-color: #e1306c; border-color: #e1306c; }
.social-icon-btn.twi:hover { background-color: #1da1f2; border-color: #1da1f2; }
.social-icon-btn.lnk:hover { background-color: #0077b5; border-color: #0077b5; }
.social-icon-btn.ytb:hover { background-color: #ff0000; border-color: #ff0000; }

/* FAQ section */
.contact-faq-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.faq-header {
    margin-bottom: 45px;
}

.faq-subtitle {
    color: var(--color-secondary);
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 8px;
}

.contact-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-accordion-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    border-color: rgba(50, 188, 214, 0.2);
}

.faq-accordion-trigger {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    transition: all 0.25s ease;
}

.faq-accordion-trigger:hover {
    color: var(--color-primary);
}

.faq-chevron {
    color: #94a3b8;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-accordion-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(50, 188, 214, 0.05);
}

.faq-accordion-item.active .faq-accordion-trigger {
    color: var(--color-primary);
}

.faq-accordion-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-content p {
    padding: 0 28px 24px 28px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.8;
}

/* ==========================================
   Responsive Overrides
   ========================================== */
@media (max-width: 991px) {
    .contact-form-map-row {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-hero-header {
        padding: 50px 0 40px 0;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-form-card,
    .contact-details-card {
        padding: 25px;
    }
    
    .faq-accordion-trigger {
        padding: 16px 20px;
        font-size: 14.5px;
    }
    
    .faq-accordion-content p {
        padding: 0 20px 20px 20px;
        font-size: 13.5px;
    }
    
    .faq-header h2 {
        font-size: 26px;
    }
}

/* ==========================================================================
   23. Desktop Header Dropdown Orange Background & White Links
   ========================================================================== */
@media (min-width: 992px) {
    .main-navigation ul ul {
        background: #F18E29 !important; /* Brand Orange */
        border: none !important;
        box-shadow: 0 12px 35px rgba(241, 142, 41, 0.18) !important;
        border-radius: 28px 0 28px 28px !important;
        width: max-content !important;
    }
    
    .main-navigation ul ul a {
        color: #ffffff !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
    }
    
    .main-navigation ul ul a:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }
}

/* Quote Added Popup Modal styling */
.quote-added-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-added-modal.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    border: 1px solid #f1f5f9;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-added-modal.active .quote-modal-content {
    transform: translateY(0);
}

.quote-modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.quote-modal-content h3 {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.quote-modal-content p {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.quote-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-go-quote {
    background-color: var(--color-primary);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14.5px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.2);
}

.btn-go-quote:hover {
    background-color: #2ba2b9;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(50, 188, 214, 0.3);
}

.btn-continue-quote {
    background-color: #F18E29; /* Brand Orange */
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: all 0.25s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 12px rgba(241, 142, 41, 0.15);
}

.btn-continue-quote:hover {
    background-color: #df7f1e;
    box-shadow: 0 6px 16px rgba(241, 142, 41, 0.25);
    transform: translateY(-1.5px);
}

/* ==========================================================================
   25. Header Notice Typewriter Caret Animation
   ========================================================================== */
@keyframes blink-notice-caret {
    from, to { border-color: transparent }
    50% { border-color: #ffffff }
}

.notice-text {
    border-left: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.notice-text.typing-active {
    border-left: 2px solid #ffffff !important;
    animation: blink-notice-caret 0.75s step-end infinite;
    padding-left: 4px;
    display: inline-block;
}

/* ==========================================================================
   26. Partners Marquee Section Styling
   ========================================================================== */
.partners-section {
    padding: 80px 0;
    background-color: #fafbfc;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #f1f5f9;
}

.partners-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.partners-header .section-subtitle {
    color: var(--color-primary);
    font-size: 14.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
    background-color: rgba(50, 188, 214, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
}

.partners-header .section-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.partners-header .section-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    direction: ltr !important; /* Force LTR context to align track from left side of viewport */
}

/* Gradient overlays for fade effects on sides */
.partners-marquee-container::before,
.partners-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee-container::before {
    right: 0;
    background: linear-gradient(to left, #fafbfc, rgba(250, 251, 252, 0));
}

.partners-marquee-container::after {
    left: 0;
    background: linear-gradient(to right, #fafbfc, rgba(250, 251, 252, 0));
}

.partners-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee-left-to-right 30s linear infinite;
}

/* Seamless Left to Right looping animation */
@keyframes marquee-left-to-right {
    0% {
        transform: translate3d(-33.3333%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 28px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    direction: rtl !important; /* Keep card inner layout and text RTL */
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.partner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--partner-bg);
    color: var(--partner-color);
}

.partner-icon svg {
    display: block;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.partner-name {
    font-size: 15px;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0;
    }
    
    .partners-header .section-title {
        font-size: 26px;
    }
    
    .partners-header {
        margin-bottom: 30px;
    }
    
    .partner-card {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .partner-icon {
        width: 40px;
        height: 40px;
    }
    
    .partner-name {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   27. Brands Marquee Section Styling
   ========================================================================== */
.brands-section {
    padding: 80px 0;
    background-color: #ffffff; /* Contrast background with gray partners section! */
    overflow: hidden;
    position: relative;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.brands-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.brands-header .section-subtitle {
    color: var(--color-primary);
    font-size: 14.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
    background-color: rgba(50, 188, 214, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
}

.brands-header .section-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.brands-header .section-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.brands-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    direction: ltr !important;
}

/* Gradient overlays for fade effects on sides */
.brands-marquee-container::before,
.brands-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee-container::before {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.brands-marquee-container::after {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.brands-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee-left-to-right 30s linear infinite;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 28px;
    background-color: #fafbfc;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    direction: rtl !important;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--brand-bg);
    color: var(--brand-color);
}

.brand-icon svg {
    display: block;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .brands-section {
        padding: 50px 0;
    }
    
    .brands-header .section-title {
        font-size: 26px;
    }
    
    .brands-header {
        margin-bottom: 30px;
    }
    
    .brand-card {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 13.5px;
    }
}
