/**
 * 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 ,
.header-account-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
}

.cart-contents-header,
.header-quote-link ,
.header-account-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 ,
.header-account-link:hover {
    transform: scale(1.08) !important;
}

.cart-contents-header svg,
.header-quote-link svg ,
.header-account-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(--notice-bg, var(--color-primary)); /* Brand Primary Teal (overridable from the control panel) */
    color: var(--notice-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: var(--notice-prefix, #11323a); /* Dark premium teal for excellent contrast on primary teal */
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

.notice-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Fade mode: the message fades out before it is replaced */
.notice-text {
    transition: opacity 0.4s ease;
}

.notice-text.notice-fade-out {
    opacity: 0;
}

/* Social icons stay on the left even when the notice bar is hidden */
.header-social-links {
    margin-right: auto;
}

.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: var(--hero-ov, 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);
}

/* Sliding highlight behind the active tab (created by main.js) */
.tabs-nav-list.has-indicator {
    position: relative;
}

.tabs-nav-list.has-indicator .tab-nav-item {
    position: relative;
    z-index: 1;
}

.tabs-nav-list.has-indicator .tab-nav-btn.active {
    background-color: transparent;
    box-shadow: none;
}

.tabs-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    transition: transform var(--tabs-speed, 450ms) cubic-bezier(0.4, 0, 0.2, 1),
                width var(--tabs-speed, 450ms) cubic-bezier(0.4, 0, 0.2, 1),
                height var(--tabs-speed, 450ms) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab panes: an animation (not a transition) so it also plays when display switches from none */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: rc-tab-fade-up var(--tabs-speed, 450ms) cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.tabs-effect-fade .tab-pane.active { animation-name: rc-tab-fade; }
.tabs-effect-zoom .tab-pane.active { animation-name: rc-tab-zoom; }
.tabs-effect-slide .tab-pane.active.from-end { animation-name: rc-tab-from-right; }
.tabs-effect-slide .tab-pane.active.from-start { animation-name: rc-tab-from-left; }
[dir="rtl"] .tabs-effect-slide .tab-pane.active.from-end { animation-name: rc-tab-from-left; }
[dir="rtl"] .tabs-effect-slide .tab-pane.active.from-start { animation-name: rc-tab-from-right; }
.tabs-effect-none .tab-pane.active { animation: none; }

/* Cards one after another: the pane only fades, each card runs the effect with a small delay */
.tabs-stagger:not(.tabs-effect-none) .tab-pane.active {
    animation-name: rc-tab-fade;
}

.tabs-stagger.tabs-effect-fade_up .tab-pane.active .product-card,
.tabs-stagger.tabs-effect-slide .tab-pane.active .product-card,
.tabs-stagger.tabs-effect-fade .tab-pane.active .product-card,
.tabs-stagger.tabs-effect-zoom .tab-pane.active .product-card {
    animation: rc-tab-fade-up var(--tabs-speed, 450ms) cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: calc(var(--card-i, 0) * 60ms);
}

.tabs-stagger.tabs-effect-fade .tab-pane.active .product-card { animation-name: rc-tab-fade; }
.tabs-stagger.tabs-effect-zoom .tab-pane.active .product-card { animation-name: rc-tab-zoom; }
.tabs-stagger.tabs-effect-slide .tab-pane.active.from-end .product-card { animation-name: rc-tab-from-right; }
.tabs-stagger.tabs-effect-slide .tab-pane.active.from-start .product-card { animation-name: rc-tab-from-left; }
[dir="rtl"] .tabs-stagger.tabs-effect-slide .tab-pane.active.from-end .product-card { animation-name: rc-tab-from-left; }
[dir="rtl"] .tabs-stagger.tabs-effect-slide .tab-pane.active.from-start .product-card { animation-name: rc-tab-from-right; }

@keyframes rc-tab-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes rc-tab-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rc-tab-zoom {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes rc-tab-from-right {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: none; }
}

@keyframes rc-tab-from-left {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tab-pane.active,
    .tab-pane.active .product-card {
        animation: none !important;
    }

    .tabs-indicator {
        transition: none;
    }
}

/* 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: #fff;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 12px; /* Room for the hover zoom without clipping */
    transition: transform 0.5s ease;
}

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

/* Badges */
/* Home cards: badges stacked in one corner */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px; /* RTL top right */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.product-badges .product-badge {
    position: static;
}

.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;
}

.out-of-stock-badge {
    background-color: #64748b;
}

/* 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);
}

.product-card-price-box .price-on-request {
    font-size: 15px;
    color: #64748b;
}

/* 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);
}

/* Out of stock: same shape, greyed out and not clickable */
.add-to-cart-btn.out-of-stock-btn,
.add-to-cart-btn.out-of-stock-btn:hover {
    background-color: #e2e8f0;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
}

/* 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);
}

/* Buy Now button (second button of the product cards, see the control panel > المتجر) */
.buy-now-btn {
    background-color: #F18E29; /* Brand Orange, can be changed in the panel */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(241, 142, 41, 0.15);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
}

.buy-now-btn:hover {
    color: #ffffff;
    filter: brightness(0.92);
    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 {
    position: relative;
    overflow: hidden;
    background: var(--cta-bg, linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%));
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.cta-section.cta-pad-m { padding: 70px 0; }
.cta-section.cta-pad-s { padding: 45px 0; }

.cta-section > .container {
    position: relative;
    z-index: 1;
}

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

.cta-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--cta-subtitle, rgba(255, 255, 255, 0.85));
}

.cta-section h2 {
    color: var(--cta-title, #fff);
    font-size: var(--cta-title-size, 40px);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
}

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

/* Highlighted words: [written between brackets] in the control panel */
.cta-hl {
    color: var(--cta-hl, #f59e0b);
}

.cta-hl-bold .cta-hl {
    font-weight: 800;
}

.cta-hl-underline .cta-hl {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.cta-hl-marker .cta-hl {
    padding: 0 8px;
    border-radius: 6px;
    color: inherit;
    background-color: var(--cta-hl, #f59e0b);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.cta-hl-gradient .cta-hl {
    background: linear-gradient(90deg, var(--cta-hl, #f59e0b), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.cta-section .cta-btn {
    border: 2px solid transparent;
    font-weight: 700;
}

.cta-section .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.cta-section .cta-btn-main {
    background-color: var(--cta-btn-bg, #ffffff);
    color: var(--cta-btn-color, var(--color-primary));
}

.cta-section .cta-btn-second {
    background-color: var(--cta-btn2-bg, #25d366);
    color: var(--cta-btn2-color, #ffffff);
}

.cta-btn-pill .cta-btn {
    border-radius: 50px;
}

.cta-btn-outline .cta-btn-main,
.cta-btn-outline .cta-btn-second {
    background-color: transparent;
}

.cta-btn-outline .cta-btn-main {
    border-color: var(--cta-btn-bg, #ffffff);
    color: var(--cta-btn-color, #ffffff);
}

.cta-btn-outline .cta-btn-second {
    border-color: var(--cta-btn2-bg, #25d366);
    color: var(--cta-btn2-color, #ffffff);
}

/* Layout: text on one side, buttons on the other */
.cta-layout-split .cta-container {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: start;
}

.cta-layout-split .cta-text {
    flex: 1;
    max-width: 760px;
}

.cta-layout-split p {
    margin-bottom: 0;
}

.cta-layout-split .cta-buttons {
    flex-shrink: 0;
    justify-content: flex-end;
}

/* Layout: rounded card inside the page (and the frosted glass variant) */
.cta-layout-card,
.cta-layout-glass {
    background: transparent;
    padding: 60px 0;
}

.cta-layout-card .cta-container {
    max-width: none;
    padding: 70px 40px;
    border-radius: 28px;
    background: var(--cta-bg, linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%));
    box-shadow: 0 25px 50px rgba(var(--color-primary-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.cta-layout-card.cta-pad-m .cta-container { padding: 50px 40px; }
.cta-layout-card.cta-pad-s .cta-container { padding: 32px 30px; }

.cta-layout-glass {
    background: var(--cta-bg, linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%));
    padding: 100px 0;
}

.cta-layout-glass .cta-container {
    padding: 50px 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.cta-layout-glass.cta-pad-m { padding: 70px 0; }
.cta-layout-glass.cta-pad-s { padding: 45px 0; }

/* Decorative patterns over the background */
.cta-section[class*="cta-pattern-"]:not(.cta-pattern-none)::before,
.cta-layout-card[class*="cta-pattern-"]:not(.cta-pattern-none) .cta-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
}

.cta-layout-card[class*="cta-pattern-"]::before {
    content: none !important;
}

.cta-layout-card .cta-container > * {
    position: relative;
    z-index: 1;
}

.cta-pattern-dots::before,
.cta-pattern-dots .cta-container::before {
    background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.cta-pattern-lines::before,
.cta-pattern-lines .cta-container::before {
    background-image: repeating-linear-gradient(45deg, #ffffff 0 1px, transparent 1px 18px);
}

.cta-pattern-circles::before,
.cta-pattern-circles .cta-container::before {
    opacity: 0.25 !important;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.6) 0 90px, transparent 91px),
        radial-gradient(circle at 88% 85%, rgba(255, 255, 255, 0.45) 0 140px, transparent 141px),
        radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.3) 0 50px, transparent 51px);
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: calc(var(--cta-title-size, 40px) * 0.7);
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-layout-split .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .cta-layout-split .cta-buttons {
        justify-content: center;
    }

    .cta-layout-card .cta-container,
    .cta-layout-glass .cta-container {
        padding: 40px 20px;
    }
}

/* ==========================================================================
   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: var(--f-bg, #0f172a);
    color: var(--f-text, #94a3b8);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-widget-title {
    color: var(--f-title, #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(--f-accent, 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: var(--f-text, #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: var(--f-title, #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(--f-icon, 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: var(--f-text, #94a3b8);
}

.footer-copy-brand {
    color: var(--f-title, #ffffff);
    font-weight: 600;
}

.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: 24px !important;
    width: auto !important;
    background-color: #fff;
    padding: 6px;
    border-radius: 25px;
    margin: 0px;
    object-fit: contain !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-payment-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 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 ,
    .header-account-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 ,
    .header-account-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 ,
    .header-account-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 ,
    .header-account-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;
    }

    /* Nothing left to show in the sub bar without a notice */
    .header-sub-bar.no-notice {
        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: currentColor }
}

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

.notice-text.typing-active {
    border-left: 2px solid currentColor !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 var(--logo-speed, 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 var(--logo-speed, 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;
    }
}

/* Force currency symbols to stay strictly on the left of the numeral */
.woocommerce-Price-amount, .price, .amount, .woocommerce-Price-amount bdi, .amount bdi {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Old price (sale): browsers do not draw a strikethrough across the inline-flex amounts above,
   so the line is drawn here; the old price is also smaller and grey so it never reads as a second price. */
del .woocommerce-Price-amount,
.price del {
    position: relative;
    text-decoration: none !important;
    color: #94a3b8 !important;
    opacity: 1;
}

.price del {
    font-size: 0.72em !important;
    font-weight: 600 !important;
}

del .woocommerce-Price-amount::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    border-top: 1.5px solid currentColor;
    transform: rotate(-6deg);
    pointer-events: none;
}

.price ins {
    text-decoration: none !important;
    background: transparent !important;
}

.price del + .screen-reader-text + ins,
.price del ~ ins {
    margin-inline-start: 6px;
}

/* Pagination Styling */
.rehabcare-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 30px;
    width: 100%;
}

.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pagination-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pagination-list li a,
.pagination-list li span,
.pagination-list li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pagination-list li a:hover {
    color: #ffffff !important;
    background-color: #32bcd6 !important;
    border-color: #32bcd6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.15);
}

.pagination-list li span.current,
.pagination-list li.active a,
.pagination-list li.active span,
.pagination-list li .page-numbers.current {
    color: #ffffff !important;
    background-color: #32bcd6 !important;
    border-color: #32bcd6 !important;
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.15);
}


/* ==========================================================================
   Banner sections (managed from the control panel)
   One banner, two banners or four banners side by side. All banners are 350px
   high at full width (1400px); the width is split by the banners count.
   ========================================================================== */
.banner-section {
    padding: 30px 0;
}

.banner-wrap {
    width: 100%;
    max-width: 1440px; /* 1400px of banners + the side padding */
    margin: 0 auto;
    padding: 0 20px;
}

.banner-grid {
    display: grid;
    gap: 20px;
}

.banner-grid.cols-1 { grid-template-columns: 1fr; }
.banner-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.banner-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.banner-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.banner-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.banner-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.banner-item picture,
.banner-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-item {
    --d: 0ms; /* entrance delay of this banner */
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
}

.banner-item img {
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.banner-rounded .banner-item {
    border-radius: 16px;
}

/* --- Hover effects (chosen per section in the control panel) --- */
.banner-hover-zoom .banner-item:hover img {
    transform: scale(1.07);
}

.banner-hover-lift .banner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(17, 50, 58, 0.22);
}

.banner-hover-shine .banner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.banner-hover-shine .banner-item:hover::after {
    animation: banner-shine 0.9s ease;
}

@keyframes banner-shine {
    to { left: 130%; }
}

/* --- Entrance animations: the JS adds .banner-anim-ready, then .banner-visible when the section scrolls into view --- */
.banner-anim-fade { --banner-anim: banner-fade; }
.banner-anim-fade_up { --banner-anim: banner-fade-up; }
.banner-anim-zoom_in { --banner-anim: banner-zoom-in; }
.banner-anim-slide .banner-item:nth-child(odd) { --banner-anim: banner-slide-right; }
.banner-anim-slide .banner-item:nth-child(even) { --banner-anim: banner-slide-left; }

.banner-section.banner-anim-ready .banner-item {
    opacity: 0;
}

.banner-section.banner-anim-ready.banner-visible .banner-item {
    opacity: 1;
    animation: var(--banner-anim, banner-fade) 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d) backwards;
}

@keyframes banner-fade { from { opacity: 0; } }
@keyframes banner-fade-up { from { opacity: 0; transform: translateY(44px); } }
@keyframes banner-zoom-in { from { opacity: 0; transform: scale(0.9); } }
@keyframes banner-slide-right { from { opacity: 0; transform: translateX(70px); } }
@keyframes banner-slide-left { from { opacity: 0; transform: translateX(-70px); } }

@media (prefers-reduced-motion: reduce) {
    .banner-section.banner-anim-ready .banner-item { opacity: 1; animation: none !important; }
    .banner-item, .banner-item img { transition: none; }
}

/* Desktop: every banner is 350px high at 1400px wide (the gaps are taken into account) */
@media (min-width: 768px) {
    .banner-grid.cols-1 .banner-item { aspect-ratio: 1400 / 350; }
    .banner-grid.cols-2 .banner-item { aspect-ratio: 690 / 350; }
    .banner-grid.cols-3 .banner-item { aspect-ratio: 453 / 350; }
    .banner-grid.cols-4 .banner-item { aspect-ratio: 335 / 350; }
    .banner-grid.cols-5 .banner-item { aspect-ratio: 264 / 350; }
}

/* Mobile: one column (2:1), and four banners as a 2 x 2 grid of squares */
@media (max-width: 767px) {
    .banner-section {
        padding: 16px 0;
    }

    .banner-grid {
        gap: 12px;
    }

    .banner-grid.cols-1,
    .banner-grid.cols-2,
    .banner-grid.cols-3 {
        grid-template-columns: 1fr;
    }

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

    .banner-grid.cols-1 .banner-item,
    .banner-grid.cols-2 .banner-item,
    .banner-grid.cols-3 .banner-item {
        aspect-ratio: 2 / 1;
    }

    .banner-grid.cols-4 .banner-item {
        aspect-ratio: 1 / 1;
    }
}


/* Saudi Riyal glyph (inline SVG printed inside prices) */
.sar-new-symbol .sar-symbol-svg {
    height: 0.85em;
    width: auto;
    fill: currentColor;
    display: inline-block;
    vertical-align: -0.1em;
    margin: 0 0.15em;
}


/* WooCommerce Blocks (cart, checkout, mini cart) money amounts: same LTR context as the classic prices above,
   so the riyal symbol (printed first) always sits on the LEFT of the number, in every part of the page */
.wc-block-formatted-money-amount,
.wc-block-components-formatted-money-amount {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* Product sections: 4 cards per row, first/last card flush with the banners' edges (same 1400px width) */
@media (min-width: 1025px) {
    .product-section .container {
        max-width: 1440px;
    }

    .product-section .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Phones: the sliding highlight takes the colour of the active tab pill */
@media (max-width: 768px) {
    .tabs-nav-list.has-indicator .tab-nav-btn.active {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .tabs-nav-list.has-indicator .tabs-indicator {
        border-radius: 25px;
        background-color: var(--color-primary);
        box-shadow: 0 4px 12px rgba(50, 188, 214, 0.2);
    }
}

/* "وفّرت X ر.س" (لوحة الإدارة > صفحة المنتج > مبلغ التوفير) */
.rc-price-saving {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    direction: rtl;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.rc-price-saving .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.rc-saving-pill {
    padding: 3px 12px;
    border-radius: 20px;
    background-color: #dcfce7;
    color: #15803d !important;
}

.rc-saving-red {
    padding: 3px 12px;
    border-radius: 20px;
    background-color: #fee2e2;
    color: #b91c1c !important;
}

.rc-saving-text {
    color: #15803d !important;
}

/* Product page: its own line under the price */
.rc-saving-row {
    margin: -10px 0 18px;
}

.rc-saving-row .rc-price-saving {
    font-size: 14px;
}

/* Cards: a line break inside the (inline-flex) price, then the badge centred under it */
.price:has(.rc-saving-break) {
    flex-wrap: wrap !important;
    justify-content: center;
}

.rc-saving-break {
    flex-basis: 100%;
    height: 0;
}

/* ==========================================================================
   Homepage slider: new layouts (لوحة الإدارة > السلايدر > شكل السلايدر)
   ========================================================================== */
.hero-v2 {
    position: relative;
    padding: calc(var(--rc-header-h, 205px) + 18px) 0 24px !important;
    background-color: transparent;
}

.hero-v2-inner {
    width: 100%;
    max-width: 1440px; /* Same 1400px content width as the banners and product sections */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-width-full .hero-v2-inner {
    max-width: none;
    padding: 0;
}

.hero-v2-main {
    position: relative;
    min-width: 0;
}

.hero-v2-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--hero-radius, 16px);
    background-color: #e2e8f0;
}

.hero-width-full:not(.hero-layout-banners) .hero-v2-viewport {
    border-radius: 0;
}

/* Fade / zoom: slides stacked in one grid cell, so the viewport takes the height of a slide */
.hero-v2-track {
    display: grid;
}

.hero-v2-slide {
    grid-area: 1 / 1;
    position: relative;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s, transform 0.9s ease;
    color: inherit;
    text-decoration: none;
}

.hero-v2-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-effect-zoom .hero-v2-slide {
    transform: scale(1.06);
}

.hero-effect-zoom .hero-v2-slide.is-active {
    transform: none;
}

/* Slide: one row that moves (main.js sets the transform) */
.hero-effect-slide .hero-v2-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-effect-slide .hero-v2-slide {
    flex: 0 0 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero-v2-media,
.hero-v2-media picture {
    display: block;
    width: 100%;
    aspect-ratio: var(--hero-ratio, 21 / 9);
}

.hero-v2-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text over the image (option "إظهار عنوان الشريحة") */
.hero-with-text:not(.hero-layout-split) .hero-v2-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 6% 7%;
    background: var(--hero-ov-text, linear-gradient(to left, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.1) 70%));
    color: #ffffff;
    text-align: start;
}

.hero-v2-script {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
}

.hero-v2-title {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.35;
    color: inherit;
}

.hero-v2-title .highlight-orange {
    color: var(--color-secondary);
}

.hero-v2-desc {
    margin: 0 0 6px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.92;
}

/* Arrows and dots */
.hero-v2-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-v2-arrow:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.hero-v2-prev { inset-inline-start: 14px; }
.hero-v2-next { inset-inline-end: 14px; }

.hero-v2-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-v2-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 9px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-v2-dot.is-active {
    width: 26px;
    background-color: var(--color-primary);
}

/* ---- Layout: slider and side banners ---- */
.hero-layout-banners .hero-v2-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: var(--hero-gap, 12px);
}

.hero-layout-banners.hero-side-count-0 .hero-v2-inner {
    grid-template-columns: minmax(0, 1fr);
}

.hero-layout-banners.hero-side-right .hero-v2-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}

.hero-layout-banners.hero-side-right .hero-v2-side {
    order: -1;
}

.hero-v2-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--hero-gap, 12px);
    min-height: 0;
}

.hero-side-count-3 .hero-v2-banner-3 { grid-column: 1 / -1; }
.hero-side-count-2 .hero-v2-side { grid-template-columns: 1fr; }
.hero-side-count-1 .hero-v2-side { grid-template-columns: 1fr; grid-template-rows: 1fr; }

.hero-v2-banner {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--hero-radius, 16px);
    background-color: #e2e8f0;
}

.hero-v2-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

a.hero-v2-banner:hover img {
    transform: scale(1.04);
}

/* ---- Layout: split (text beside the image) ---- */
.hero-layout-split .hero-v2-viewport {
    background-color: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.hero-layout-split .hero-v2-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
}

.hero-layout-split .hero-v2-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 40px 6%;
    color: #0f172a;
}

.hero-layout-split .hero-v2-media,
.hero-layout-split .hero-v2-media picture {
    height: 100%;
}

.hero-layout-split .hero-v2-dots {
    left: auto;
    inset-inline-start: 6%;
    transform: none;
}

/* ---- Layout: carousel (neighbours peek in) ---- */
.hero-layout-carousel .hero-v2-viewport {
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.hero-layout-carousel .hero-v2-track {
    display: flex;
    gap: 16px;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-layout-carousel .hero-v2-slide {
    flex: 0 0 72%;
    border-radius: var(--hero-radius, 16px);
    overflow: hidden;
    opacity: 0.55;
    visibility: visible;
    transform: scale(0.94);
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
}

.hero-layout-carousel .hero-v2-slide.is-active {
    opacity: 1;
    transform: none;
}

@media (max-width: 991px) {
    .hero-layout-banners .hero-v2-inner,
    .hero-layout-banners.hero-side-right .hero-v2-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-layout-banners.hero-side-right .hero-v2-side {
        order: 0;
    }

    .hero-v2-side {
        grid-template-rows: auto;
    }

    .hero-v2-banner {
        aspect-ratio: 1 / 1;
    }

    .hero-side-count-3 .hero-v2-banner-3,
    .hero-side-count-1 .hero-v2-banner {
        aspect-ratio: 2 / 1;
    }

    .hero-side-count-2 .hero-v2-side {
        grid-template-columns: 1fr 1fr;
    }

    .hero-side-mobile-hide .hero-v2-side {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-v2 {
        padding-top: calc(var(--rc-header-h, 140px) + 10px) !important;
    }

    .hero-v2-inner {
        padding: 0 14px;
    }

    .hero-v2-arrow {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .hero-layout-split .hero-v2-slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-layout-split .hero-v2-media {
        order: -1;
    }

    .hero-layout-split .hero-v2-text {
        padding: 22px 18px 46px;
    }

    .hero-layout-carousel .hero-v2-slide {
        flex-basis: 86%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-v2-track,
    .hero-v2-slide {
        transition: none !important;
    }
}

/* Image inside its space: whole image (contain) on the chosen background, or filling it (cover) */
.hero-fit-contain .hero-v2-viewport,
.hero-fit-contain .hero-v2-banner {
    background-color: var(--hero-fit-bg, #ffffff);
}

.hero-fit-contain .hero-v2-img,
.hero-fit-contain .hero-v2-banner img {
    object-fit: contain;
}

.hero-layout-carousel.hero-fit-contain .hero-v2-slide {
    background-color: var(--hero-fit-bg, #ffffff);
}

/* ---- Side banners: hover animations (setting "حركة البنر لما الماوس يعدي عليه") ---- */
.hero-v2-banner {
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.hero-v2-banner img {
    transition: transform 0.6s ease, filter 0.4s ease;
}

/* The earlier default zoom only applies to the zoom effect now */
a.hero-v2-banner:hover img {
    transform: none;
}

.hero-hover-zoom .hero-v2-banner:hover img {
    transform: scale(1.07);
}

.hero-hover-lift .hero-v2-banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    z-index: 2;
}

.hero-hover-shine .hero-v2-banner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -75%;
    width: 50%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.hero-hover-shine .hero-v2-banner:hover::after {
    animation: hero-banner-shine 0.9s ease;
}

@keyframes hero-banner-shine {
    from { left: -75%; }
    to { left: 125%; }
}

.hero-hover-tilt .hero-v2-banner:hover img {
    transform: scale(1.06) rotate(-1.5deg);
}

.hero-hover-glow .hero-v2-banner:hover {
    box-shadow: 0 0 0 3px var(--color-primary), 0 12px 28px rgba(var(--color-primary-rgb), 0.3);
    z-index: 2;
}

.hero-hover-dim .hero-v2-side:hover .hero-v2-banner {
    opacity: 0.55;
}

.hero-hover-dim .hero-v2-side:hover .hero-v2-banner:hover {
    opacity: 1;
}

.hero-hover-gray .hero-v2-banner img {
    filter: grayscale(1);
}

.hero-hover-gray .hero-v2-banner:hover img {
    filter: none;
    transform: scale(1.03);
}

@media (hover: none) {
    /* Phones: no hover, so the banners always show in colour */
    .hero-hover-gray .hero-v2-banner img {
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-v2-banner,
    .hero-v2-banner img {
        transition: none !important;
    }

    .hero-hover-shine .hero-v2-banner:hover::after {
        animation: none;
    }
}
/* CTA width "بنفس عرض السلايدر والبنرات": same 1400px box as the slider, background inside rounded corners */
.cta-width-content {
    background: transparent !important;
    padding: 30px 0 !important;
}

.cta-width-content > .container {
    max-width: 1440px;
    padding: 0 20px;
}

.cta-width-content .cta-container {
    position: relative;
    overflow: hidden;
    max-width: none;
    padding: 80px 40px;
    border-radius: var(--cta-radius, 16px);
    background: var(--cta-bg, linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%));
}

.cta-width-content.cta-pad-m .cta-container { padding: 55px 40px; }
.cta-width-content.cta-pad-s .cta-container { padding: 35px 30px; }

.cta-width-content.cta-layout-center .cta-text {
    max-width: 800px;
    margin: 0 auto;
}

.cta-width-content.cta-layout-split .cta-container {
    padding-inline: 50px;
}

.cta-width-content.cta-layout-card .cta-container {
    border-radius: var(--cta-radius, 16px);
}

/* Patterns live inside the rounded box, not over the page */
.cta-width-content[class*="cta-pattern-"]::before {
    content: none !important;
}

.cta-width-content[class*="cta-pattern-"]:not(.cta-pattern-none) .cta-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
}

.cta-width-content .cta-container > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-width-content {
        padding: 20px 0 !important;
    }

    .cta-width-content > .container {
        padding: 0 14px;
    }

    .cta-width-content .cta-container,
    .cta-width-content.cta-layout-split .cta-container {
        padding: 40px 20px;
    }
}
/* Banner sections of type "سلايدر بنرات": the homepage slider engine inside the page flow */
.hero-v2.hero-embedded {
    padding: 0 !important;
}

.banner-section.banner-type-slider {
    padding: 30px 0;
}
/* 5 banners: a swipeable row on phones */
@media (max-width: 767px) {
    .banner-grid.cols-5 {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 44%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .banner-grid.cols-5::-webkit-scrollbar {
        display: none;
    }

    .banner-grid.cols-5 .banner-item {
        aspect-ratio: 264 / 350;
        scroll-snap-align: start;
    }
}

/* "النص على البنر": a band at the bottom of the banner (or the text under it) */
.banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}

.banner-cap-light .banner-caption {
    background-color: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.banner-cap-dark .banner-caption {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.45));
    color: #ffffff;
}

.banner-cap-brand .banner-caption {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Text under the image: the banner keeps its picture height, the text sits below it */
.banner-cap-below .banner-item:has(.banner-caption) {
    overflow: visible;
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
}

.banner-cap-below .banner-item:has(.banner-caption) picture {
    overflow: hidden;
    border-radius: inherit;
    aspect-ratio: 264 / 350;
}

.banner-cap-below .banner-grid.cols-1 .banner-item:has(.banner-caption) picture { aspect-ratio: 1400 / 350; }
.banner-cap-below .banner-grid.cols-2 .banner-item:has(.banner-caption) picture { aspect-ratio: 690 / 350; }
.banner-cap-below .banner-grid.cols-3 .banner-item:has(.banner-caption) picture { aspect-ratio: 453 / 350; }
.banner-cap-below .banner-grid.cols-4 .banner-item:has(.banner-caption) picture { aspect-ratio: 335 / 350; }

.banner-cap-below .banner-caption {
    position: static;
    padding: 10px 6px 0;
    color: #0f172a;
}

@media (max-width: 767px) {
    .banner-caption {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Logo sections in grid / carousel / plain logos (العلامات التجارية / الشركاء > شكل العرض)
   ========================================================================== */
.logos-section {
    padding: 60px 0;
    background-color: #f1f3f6; /* Light grey so the white logo cards stand out (setting "خلفية القسم" overrides it) */
}

.logos-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logos-header {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.logos-header .section-title {
    margin-bottom: 8px;
}

/* Title on the start side with a coloured line under it (like the reference) */
.logos-align-start .logos-header,
.logos-align-start .brands-header,
.logos-align-start .partners-header {
    text-align: start;
}

.logos-align-start .logos-header .section-title,
.logos-align-start .brands-header .section-title,
.logos-align-start .partners-header .section-title {
    display: inline-block;
    padding-bottom: 10px;
    font-size: 24px;
    border-bottom: 3px solid var(--color-primary);
}

.logos-align-start .section-title::after,
.logos-align-start .section-title::before {
    display: none !important;
}

/* Lists */
.logos-list {
    display: grid;
    grid-template-columns: repeat(var(--logo-cols, 6), minmax(0, 1fr));
    gap: var(--logo-gap, 24px);
}

.logos-layout-carousel .logos-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--logo-cols, 6) - 1) * var(--logo-gap, 24px)) / var(--logo-cols, 6));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 0 14px;
}

.logos-layout-carousel .logos-list::-webkit-scrollbar {
    display: none;
}

.logos-layout-carousel .logo-card {
    scroll-snap-align: start;
}

/* Card */
.logo-card {
    --d: 0ms;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--logo-card-h, 146px);
    padding: 16px;
    overflow: hidden;
    border-radius: var(--logo-radius, 0);
    background-color: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.logos-card-border .logo-card { border: 1px solid #e2e8f0; }
.logos-card-shadow .logo-card { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }
.logos-card-none .logo-card,
.logos-layout-logos .logo-card {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--logo-h, 70px);
}

.logo-img img,
.logo-img svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.45s ease;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.logo-name {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

/* Colours */
.logos-color-gray .logo-img img,
.logos-color-gray .logo-img svg,
.logos-color-gray_hover .logo-img img,
.logos-color-gray_hover .logo-img svg {
    filter: grayscale(1);
    opacity: 0.75;
}

.logos-color-gray_hover .logo-card:hover .logo-img img,
.logos-color-gray_hover .logo-card:hover .logo-img svg {
    filter: none;
    opacity: 1;
}

@media (hover: none) {
    .logos-color-gray_hover .logo-img img,
    .logos-color-gray_hover .logo-img svg {
        filter: none;
        opacity: 1;
    }
}

/* Hover */
.logos-hover-lift .logo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.logos-hover-zoom .logo-card:hover .logo-img img,
.logos-hover-zoom .logo-card:hover .logo-img svg {
    transform: scale(1.1);
}

.logos-hover-shine .logo-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.logos-hover-shine .logo-card:hover::after {
    animation: logos-shine 0.9s ease;
}

@keyframes logos-shine {
    to { left: 130%; }
}

.logos-hover-glow .logo-card:hover {
    box-shadow: 0 0 0 2px var(--color-primary), 0 10px 24px rgba(var(--color-primary-rgb), 0.18);
}

.logos-hover-tilt .logo-card:hover .logo-img img,
.logos-hover-tilt .logo-card:hover .logo-img svg {
    transform: scale(1.08) rotate(-3deg);
}

/* Carousel arrows */
.logos-nav {
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    display: flex;
    gap: 8px;
    transform: translateY(-50%);
}

.logos-align-center .logos-nav {
    position: static;
    justify-content: center;
    margin-top: 14px;
    transform: none;
}

.logos-nav button {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.logos-nav button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Entrance animation: main.js adds .logos-ready, then .logos-visible when the section is on screen */
.logos-section.logos-ready .logo-card {
    opacity: 0;
}

.logos-section.logos-ready.logos-visible .logo-card {
    opacity: 1;
    animation: var(--logos-anim, logos-fade-up) 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d) backwards;
}

.logos-anim-fade { --logos-anim: logos-fade; }
.logos-anim-fade_up { --logos-anim: logos-fade-up; }
.logos-anim-zoom_in { --logos-anim: logos-zoom-in; }
.logos-anim-flip { --logos-anim: logos-flip; }

@keyframes logos-fade { from { opacity: 0; } }
@keyframes logos-fade-up { from { opacity: 0; transform: translateY(30px); } }
@keyframes logos-zoom-in { from { opacity: 0; transform: scale(0.85); } }
@keyframes logos-flip { from { opacity: 0; transform: perspective(600px) rotateY(60deg); } }

@media (prefers-reduced-motion: reduce) {
    .logos-section.logos-ready .logo-card {
        opacity: 1;
        animation: none !important;
    }
}

@media (max-width: 767px) {
    .logos-section {
        padding: 40px 0;
    }

    .logos-wrap {
        padding: 0 14px;
    }

    .logos-list {
        grid-template-columns: repeat(var(--logo-cols-m, 2), minmax(0, 1fr));
        gap: 12px;
    }

    .logos-layout-carousel .logos-list {
        grid-template-columns: none;
        grid-auto-columns: calc((100% - (var(--logo-cols-m, 2) - 1) * 12px) / var(--logo-cols-m, 2));
    }

    .logo-card {
        height: calc(var(--logo-card-h, 146px) * 0.75);
    }

    .logo-img {
        height: calc(var(--logo-h, 70px) * 0.75);
    }

    .logos-nav {
        position: static;
        justify-content: flex-end;
        margin-top: 10px;
        transform: none;
    }
}
/* Brand cards that link to the brand's products page */
a.brand-card,
a.partner-card {
    color: inherit;
    text-decoration: none;
}
/* Logo inside its card (setting "اللوجو جوه الكارت" + "تكبير اللوجو") */
.logos-fit-fill .logo-card {
    padding: 0;
}

.logos-fit-fill .logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.logos-fit-fill .logo-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.logos-fit-fill.logos-show-name .logo-img {
    bottom: 30px;
}

.logos-fit-fill .logo-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
}

.logo-img img,
.logo-img svg {
    scale: var(--logo-scale, 1);
}

/* ==========================================================================
   Header dropdowns: styles + animations (لوحة الإدارة > الهيدر والمنيو > القوائم المنسدلة)
   Desktop only; the mobile drawer keeps its own look.
   ========================================================================== */
@media (min-width: 992px) {
    /* Open with an animation instead of display:none (so it can animate and stays open while moving the mouse) */
    body[class*="rc-dd-"] .main-navigation ul ul {
        display: flex !important;
        flex-direction: column;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transform-origin: top center;
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.25s;
        margin-top: 0;
    }

    body[class*="rc-dd-"] .main-navigation li:hover > ul,
    body[class*="rc-dd-"] .main-navigation li:focus-within > ul {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    /* Invisible bridge so the menu does not close in the small gap under the item */
    body[class*="rc-dd-"] .main-navigation ul ul::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }

    .rc-dd-anim-fade .main-navigation ul ul { transform: none; }
    .rc-dd-anim-scale .main-navigation ul ul { transform: scale(0.94); }
    .rc-dd-anim-drop .main-navigation ul ul { transform: perspective(700px) rotateX(-14deg); }
    .rc-dd-anim-none .main-navigation ul ul { transform: none; transition: none; }

    /* Second level opens beside the first (to the left in RTL), not under it */
    body[class*="rc-dd-"]:not(.rc-dd-mega) .main-navigation ul ul ul {
        top: -10px;
        right: 100%;
        left: auto;
        margin-right: 10px;
        transform: translateX(10px);
    }

    body[class*="rc-dd-"]:not(.rc-dd-mega) .main-navigation ul ul ul::before {
        top: 0;
        bottom: 0;
        left: auto;
        right: -12px;
        width: 12px;
        height: auto;
    }

    body[class*="rc-dd-"]:not(.rc-dd-mega) .main-navigation ul ul li:hover > ul {
        transform: none;
    }

    /* Carets */
    .rc-dd-caret .main-navigation > ul > li.menu-item-has-children > a,
    .rc-dd-caret .main-navigation #primary-menu-list > li.menu-item-has-children > a {
        padding-inline-end: 16px;
    }

    .rc-dd-caret .main-navigation li.menu-item-has-children > a::before {
        content: "";
        position: absolute;
        top: 50%;
        inset-inline-end: 2px;
        width: 6px;
        height: 6px;
        margin-top: -5px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.7;
        transition: transform 0.25s ease;
    }

    .rc-dd-caret .main-navigation > ul > li.menu-item-has-children:hover > a::before,
    .rc-dd-caret .main-navigation #primary-menu-list > li.menu-item-has-children:hover > a::before {
        transform: rotate(225deg);
        margin-top: -1px;
    }

    /* Inside a dropdown the caret points to the side the submenu opens */
    .rc-dd-caret:not(.rc-dd-mega) .main-navigation ul ul li.menu-item-has-children > a::before {
        inset-inline-end: 12px;
        margin-top: -3px;
        transform: rotate(135deg);
    }

    .rc-dd-caret:not(.rc-dd-mega) .main-navigation ul ul li.menu-item-has-children > a {
        padding-inline-end: 28px !important;
    }

    /* ---- Style: brand (orange, the original look, with fixed nesting) ---- */
    .rc-dd-brand .main-navigation ul ul a {
        transition: background-color 0.2s ease, padding 0.2s ease !important;
    }

    .rc-dd-brand .main-navigation ul ul a:hover {
        padding-inline-start: 16px !important;
    }

    /* ---- Style: card (white) ---- */
    body.rc-dd-card .main-navigation ul ul {
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12) !important;
        padding: 8px !important;
        gap: 2px !important;
        min-width: 230px;
        width: max-content !important;
    }

    body.rc-dd-card .main-navigation ul ul a {
        position: relative;
        color: #0f172a !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease !important;
    }

    body.rc-dd-card .main-navigation ul ul a:hover {
        background-color: rgba(var(--color-primary-rgb), 0.09) !important;
        color: var(--color-primary) !important;
        padding-inline-start: 20px !important;
    }

    body.rc-dd-card .main-navigation ul ul a:hover::after {
        content: "";
        display: block !important;
        position: absolute;
        top: 50%;
        inset-inline-start: 8px;
        right: auto;
        bottom: auto;
        width: 4px;
        height: 4px;
        margin-top: -2px;
        border-radius: 50%;
        background-color: var(--color-primary);
    }

    /* ---- Style: dark ---- */
    body.rc-dd-dark .main-navigation ul ul {
        background: #0f172a !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 16px !important;
        box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35) !important;
        padding: 8px !important;
        gap: 2px !important;
        min-width: 230px;
        width: max-content !important;
    }

    body.rc-dd-dark .main-navigation ul ul a {
        color: #e2e8f0 !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        font-size: 14px;
        white-space: nowrap;
        transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease !important;
    }

    body.rc-dd-dark .main-navigation ul ul a:hover {
        background-color: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        padding-inline-start: 20px !important;
    }

    /* ---- Style: mega menu (wide panel, children as columns) ---- */
    body.rc-dd-mega .header-main-flex {
        position: relative;
    }

    body.rc-dd-mega .main-navigation,
    body.rc-dd-mega .main-navigation #primary-menu-list > li,
    body.rc-dd-mega .header-nav-wrapper {
        position: static;
    }

    body.rc-dd-mega .main-navigation #primary-menu-list > li > ul {
        top: 100%;
        left: 20px;
        right: 20px;
        width: auto !important;
        min-width: 0;
        display: grid !important;
        grid-template-columns: repeat(var(--dd-cols, 4), minmax(0, 1fr));
        gap: 6px 24px !important;
        padding: 26px 28px !important;
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12) !important;
    }

    /* Column heading = first-level child */
    body.rc-dd-mega .main-navigation #primary-menu-list > li > ul > li > a {
        color: #0f172a !important;
        font-size: 15px;
        font-weight: 800;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        white-space: normal;
    }

    body.rc-dd-mega .main-navigation #primary-menu-list > li > ul > li > a:hover {
        background-color: rgba(var(--color-primary-rgb), 0.08) !important;
        color: var(--color-primary) !important;
    }

    /* Grandchildren listed under their column, always visible */
    body.rc-dd-mega .main-navigation ul ul ul {
        position: static !important;
        visibility: inherit !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        display: flex !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 2px 0 10px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        gap: 0 !important;
    }

    body.rc-dd-mega .main-navigation ul ul ul::before {
        display: none;
    }

    body.rc-dd-mega .main-navigation ul ul ul a {
        color: #64748b !important;
        font-size: 14px;
        font-weight: 600;
        padding: 5px 10px !important;
        border-radius: 8px !important;
        transition: color 0.2s ease, padding 0.2s ease !important;
    }

    body.rc-dd-mega .main-navigation ul ul ul a:hover {
        background: transparent !important;
        color: var(--color-primary) !important;
        padding-inline-start: 16px !important;
    }

    /* Mega with category images: the first-level children become image cards */
    body.rc-dd-mega_img .main-navigation #primary-menu-list > li > ul > li > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 12px !important;
        text-align: center;
        border: 1px solid #eef2f6;
        border-radius: 16px !important;
        transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
    }

    body.rc-dd-mega_img .main-navigation #primary-menu-list > li > ul > li > a:hover {
        background: #ffffff !important;
        border-color: rgba(var(--color-primary-rgb), 0.4);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        transform: translateY(-3px);
    }

    .rc-menu-thumb {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 12px;
        background-color: #f1f5f9;
    }

    .rc-menu-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.4s ease;
    }

    body.rc-dd-mega_img .main-navigation #primary-menu-list > li > ul > li > a:hover .rc-menu-thumb img {
        transform: scale(1.06);
    }

    /* Mega panels slide down from the header */
    body.rc-dd-mega.rc-dd-anim-fade_up .main-navigation #primary-menu-list > li > ul { transform: translateY(12px); }
    body.rc-dd-mega.rc-dd-anim-fade_up .main-navigation #primary-menu-list > li:hover > ul { transform: none; }
}

/* Not enough room on the left: the second level opens to the right instead (main.js adds .rc-dd-flip) */
@media (min-width: 992px) {
    body[class*="rc-dd-"]:not(.rc-dd-mega) .main-navigation ul ul li.rc-dd-flip > ul {
        right: auto;
        left: 100%;
        margin-right: 0;
        margin-left: 10px;
        transform: translateX(-10px);
    }

    body[class*="rc-dd-"]:not(.rc-dd-mega) .main-navigation ul ul li.rc-dd-flip:hover > ul {
        transform: none;
    }

    body[class*="rc-dd-"]:not(.rc-dd-mega) .main-navigation ul ul li.rc-dd-flip > ul::before {
        right: auto;
        left: -12px;
    }

    .rc-dd-caret:not(.rc-dd-mega) .main-navigation ul ul li.rc-dd-flip > a::before {
        transform: rotate(-45deg);
    }

    /* Mega menu: no carets inside the panel */
    .rc-dd-mega .main-navigation ul ul a::before {
        display: none !important;
    }
}

/* Mobile drawer: no category images */
@media (max-width: 991px) {
    .rc-menu-thumb {
        display: none;
    }
}

/* ==========================================================================
   Full-screen slider: image fit, height, text position and colours
   (لوحة الإدارة > السلايدر > شكل "الشاشة الكاملة": الصورة والكلام)
   ========================================================================== */

/* Image: whole picture inside the slider, on the chosen background */
.hero-premium-slider.fs-fit-contain .slide-image-wrapper {
    background-color: var(--fs-bg, #11323a);
}

.hero-premium-slider.fs-fit-contain .slide-img {
    object-fit: contain !important;
}

.hero-premium-slider.fs-fit-contain .hero-slide.active .slide-img {
    transform: none; /* No zoom: the whole picture stays visible */
}

/* Height */
.hero-premium-slider.fs-height-80 { height: 80vh; min-height: 520px; }
.hero-premium-slider.fs-height-60 { height: 60vh; min-height: 440px; }

/* "على مقاس الصورة": starts under the header, the height follows the image ratio, nothing is cropped */
.hero-premium-slider.fs-height-ratio {
    height: auto;
    aspect-ratio: var(--hero-ratio, 21 / 9);
    margin-top: var(--rc-header-h, 205px);
}

.hero-premium-slider.fs-height-ratio .slide-content-wrapper {
    padding: 40px 6%;
}

.hero-premium-slider.fs-height-ratio .slide-img {
    object-fit: contain !important;
}

.hero-premium-slider.fs-height-ratio .hero-slide.active .slide-img {
    transform: none;
}

/* Text position */
.hero-premium-slider .slide-content-inner {
    max-width: var(--fs-width, 800px);
}

.hero-premium-slider.fs-h-right .slide-content-wrapper { justify-content: flex-start; }
.hero-premium-slider.fs-h-left .slide-content-wrapper { justify-content: flex-end; }
.hero-premium-slider.fs-v-top .slide-content-wrapper { align-items: flex-start; }
.hero-premium-slider.fs-v-bottom .slide-content-wrapper { align-items: flex-end; padding-bottom: 110px; }

.hero-premium-slider.fs-h-right .slide-content-inner,
.hero-premium-slider.fs-h-left .slide-content-inner {
    text-align: start;
}

.hero-premium-slider.fs-h-right .slide-script-wrapper,
.hero-premium-slider.fs-h-left .slide-script-wrapper {
    justify-content: flex-start;
}

.hero-premium-slider.fs-h-right .slide-desc,
.hero-premium-slider.fs-h-left .slide-desc {
    margin-left: 0;
    margin-right: 0;
}

/* Desktop: keep the text clear of the screen edges */
@media (min-width: 992px) {
    .hero-premium-slider.fs-h-right .slide-content-wrapper,
    .hero-premium-slider.fs-h-left .slide-content-wrapper {
        padding-left: 7%;
        padding-right: 7%;
    }
}

/* Colours (empty = the original look) */
.hero-premium-slider .slide-script-wrapper,
.hero-premium-slider .slide-wavy-line {
    color: var(--fs-script, var(--color-primary));
}

.hero-premium-slider .slide-title {
    color: var(--fs-title, #ffffff);
}

.hero-premium-slider .slide-title .highlight-orange {
    color: var(--fs-hl, var(--color-secondary));
}

.hero-premium-slider .slide-desc {
    color: var(--fs-desc, #f1f5f9);
}

.hero-premium-slider .btn-slide-cta {
    background-color: var(--fs-btn-bg, var(--color-secondary));
    color: var(--fs-btn-text, #ffffff);
}

.hero-premium-slider .btn-slide-cta:hover {
    background-color: var(--fs-btn-bg, #d97416);
    color: var(--fs-btn-text, #ffffff);
    filter: brightness(0.93);
}

@media (max-width: 767px) {
    .hero-premium-slider.fs-height-ratio {
        aspect-ratio: auto;
        min-height: 420px;
    }

    .hero-premium-slider.fs-v-bottom .slide-content-wrapper {
        padding-bottom: 80px;
    }
}

/* Moving product sections: spacing from "إعدادات أقسام المنتجات المتحركة", header shrinks to what is filled */
section.product-section {
    padding-top: var(--ps-pt, 80px);
    padding-bottom: var(--ps-pb, 80px);
}

.product-section .section-title-wrapper {
    margin-bottom: var(--ps-head-gap, 60px);
}

.product-section .section-title-wrapper > :last-child {
    margin-bottom: 0;
}

.product-section .section-description {
    margin: 0;
}

.product-section .section-hl {
    color: var(--ps-hl, var(--color-secondary));
}

@media (max-width: 767px) {
    section.product-section {
        padding-top: min(var(--ps-pt, 80px), 40px);
        padding-bottom: min(var(--ps-pb, 80px), 40px);
    }

    .product-section .section-title-wrapper {
        margin-bottom: min(var(--ps-head-gap, 60px), 28px);
    }
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    margin-top: 40px;
    padding: 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.comments-title,
.comment-reply-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
}
.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children {
    margin-inline-start: 32px;
    padding-inline-start: 16px;
    border-inline-start: 2px solid rgba(var(--color-primary-rgb), 0.15);
}
.comment-list .comment-body {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(var(--color-primary-rgb), 0.04);
}
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 8px;
    font-size: 13px;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.comment-author .fn {
    font-style: normal;
    font-weight: 700;
}
.comment-author .says {
    display: none;
}
.comment-metadata a {
    color: #64748b;
}
.comment-content p {
    margin: 0 0 8px;
}
.comment-awaiting-moderation {
    display: block;
    color: #b45309;
    font-size: 13px;
}
.comment-body .reply a {
    font-size: 13px;
    font-weight: 600;
}
.comment-respond {
    margin-top: 24px;
}
.comment-reply-title small {
    margin-inline-start: 10px;
    font-size: 13px;
}
.comment-form p {
    margin: 0 0 14px;
}
.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}
.comment-form-cookies-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.comment-form-cookies-consent label {
    font-weight: 400;
    margin: 0;
}
.comment-notes,
.logged-in-as,
.must-log-in,
.no-comments {
    color: #64748b;
    font-size: 14px;
}
.comment-form .required {
    color: #dc2626;
}
.comments-area .nav-links {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px;
}
@media (max-width: 600px) {
    .comments-area {
        padding: 20px 16px;
    }
    .comment-list .children {
        margin-inline-start: 12px;
        padding-inline-start: 10px;
    }
}
