/* CSS الخاص بصفحة branches (بدون الهيدر والفوتر والأساس المشترك) */

.hero-section-wrapper {
            height: 70vh;
            min-height: 600px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--brand-header-dark);
            z-index: 1;
        }
        .hero-slides-images-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }
        .hero-slide-item-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            transform: scale(1.05);
           
        }
        .hero-slide-item-image.active {
            opacity: 1;
        }
        @keyframes zoomEffect {
            0% { transform: scale(1.02); }
            100% { transform: scale(1.08); }
        }
        .hero-overlay-shadow-shield {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, 
                rgba(var(--rq-rgb-dark), 0.8) 0%, 
                rgba(var(--rq-rgb-primary), 0.4) 40%, 
                rgba(var(--rq-rgb-dark), 0.75) 100%
            );
            z-index: -1;
        }
        .about-us-badge-container {
            position: absolute;
            top: 50%; /* تموضع مثالي في المنتصف الرأسي */
            right: 11%; /* محاذاة متناسقة لليمين */
            transform: translateY(-50%); /* لضمان التوسيط الرأسي الدقيق */
            z-index: 10;
            display: inline-block;
        }
        .about-us-badge-link {
            color: var(--brand-header-white);
            text-decoration: none;
            font-size: 2.2rem; /* حجم خط بارز وأنيق يناسب الواجهة المفتوحة */
            font-weight: 800;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: var(--transition-header-fast);
            display: block; 
        }
        .about-us-reveal-up {
            opacity: 0;
            transform: translateY(60px);
            transition: opacity 1.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                        transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            will-change: transform, opacity;
        }
        .about-us-active {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
        @keyframes about-us-bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }
        .hero-bottom-curve {
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            line-height: 0;
            z-index: 3;
        }
        .hero-bottom-curve svg {
            width: 100%;
            height: 100px;
        }
        @media (max-width: 768px) {
    .about-us-badge-container {
                top: 50%;
                right: 6%;
                transform: translateY(-50%);
            }

    .about-us-badge-link {
                font-size: 1.6rem; /* حجم أصغر متجاوب مع الجوال */
            }
}
         :root {
            
            /* متغيرات قسم الفروع الجديدة */
            --branches-section-font: 'IWAN ZAZA', 'Cairo', sans-serif;
            --branches-section-color-sec-1: var(--brand-header-secondary-1);
            --branches-section-color-sec-2: var(--brand-header-secondary-2);
            --branches-section-color-teal: var(--brand-header-teal-green);
            --branches-section-color-bg: #ffffff;
            --branches-section-color-card-bg: var(--rq-tint-f3faf8, #f3faf8);
            --branches-section-color-white: #ffffff;
            --branches-section-color-text-dark: var(--rq-shade-1f3e35, #1f3e35);
            --branches-section-color-text-muted: #5e7e75;
            --branches-section-card-shadow: 0 12px 35px rgba(var(--rq-rgb-primary), 0.06);
            --branches-section-card-shadow-hover: 0 22px 45px rgba(var(--rq-rgb-primary), 0.14);
        }
        .branches-section-outer {
            padding: clamp(20px, 8vw, 25px) 0;
            background-color: var(--branches-section-color-bg);
            position: relative;
            overflow: hidden;
            direction: rtl;
        }
        .branches-section-bg-waves {
            position: absolute;
            inset: 0;
            /* background-image: radial-gradient(rgba(var(--rq-rgb-primary), 0.04) 1.5px, transparent 1.5px);  */ 
            background-size: 24px 24px;
            pointer-events: none;
            z-index: 1;
        }
        .branches-section-bg-radial {
            position: absolute;
            bottom: -20%;
            right: -10%;
            width: 60%;
            height: 60%;
            background: radial-gradient(circle, rgba(var(--rq-rgb-teal), 0.05) 0%, transparent 80%);
            pointer-events: none;
            z-index: 1;
        }
        .branches-section-container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 clamp(16px, 4vw, 40px);
            position: relative;
            z-index: 2;
        }
        .branches-section-header-box {
            text-align: center;
            margin-bottom: clamp(40px, 6vw, 60px);
        }
        .branches-section-header-subtitle {
            font-family: var(--branches-section-font);
            font-size: clamp(0.95rem, 1.2vw, 1.15rem);
            font-weight: 700;
            color: var(--branches-section-color-teal);
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .branches-section-header-subtitle::before,
        .branches-section-header-subtitle::after {
            content: '';
            width: 30px;
            height: 2px;
            background-color: var(--branches-section-color-teal);
            display: inline-block;
        }
        .branches-section-header-title {
            font-size: clamp(2rem, 3.2vw, 2.4rem);
            font-weight: 800;
            color: var(--branches-section-color-sec-1);
            position: relative;
            display: inline-block;
        }
        .branches-section-main-grid {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: clamp(24px, 4vw, 45px);
            align-items: start;
        }
        @media (max-width: 992px) {
            .branches-section-main-grid {
                grid-template-columns: 1fr; /* تحويل التخطيط لعمودي في الجوال */
                gap: 40px;
            }
        }
        .branches-section-sidebar-filter {
            display: flex;
            flex-direction: column;
            gap: 16px;
            background-color: var(--branches-section-color-card-bg);
            padding: clamp(20px, 3vw, 28px);
            border-radius: 28px;
            border: 1px solid rgba(var(--rq-rgb-teal), 0.08);
            box-shadow: 0 8px 24px rgba(var(--rq-rgb-primary), 0.02);
            position: sticky;
            top: 40px;
        }
        @media (max-width: 992px) {
            .branches-section-sidebar-filter {
                flex-direction: row;
                overflow-x: auto;
                position: relative;
                top: 0;
                padding: 16px;
                gap: 12px;
                background-color: transparent;
                border: none;
                box-shadow: none;
                border-radius: 0;
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch;
            }

            /* إخفاء شريط التمرير الافتراضي */
            .branches-section-sidebar-filter::-webkit-scrollbar {
                display: none;
            }
        }
        .branches-section-filter-item {
            background-color: var(--branches-section-color-white);
            border: 1.5px solid rgba(var(--rq-rgb-teal), 0.15);
            border-radius: 20px;
            padding: 18px 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            font-family: var(--branches-section-font);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--branches-section-color-text-dark);
            -webkit-tap-highlight-color: transparent;
        }
        @media (max-width: 992px) {
            .branches-section-filter-item {
                flex-shrink: 0;
                padding: 14px 22px;
                font-size: 1rem;
                justify-content: center;
                gap: 10px;
            }
        }
        .branches-section-filter-item-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background-color: rgba(var(--rq-rgb-teal), 0.08);
            color: var(--branches-section-color-sec-1);
            font-size: 1.2rem;
            transition: all 0.4s ease;
        }
        .branches-section-filter-item:hover {
            border-color: var(--branches-section-color-sec-2);
            color: var(--branches-section-color-sec-1);
            background-color: rgba(255, 255, 255, 0.8);
            transform: translateX(-5px);
        }
        @media (max-width: 992px) {
            .branches-section-filter-item:hover {
                transform: translateY(-3px);
            }
        }
        .branches-section-filter-item.branches-section-item-active {
            background: linear-gradient(135deg, var(--branches-section-color-sec-1) 0%, var(--branches-section-color-sec-2) 100%);
            border-color: var(--branches-section-color-sec-1);
            color: var(--branches-section-color-white);
            box-shadow: 0 10px 20px rgba(var(--rq-rgb-primary), 0.15);
        }
        .branches-section-filter-item.branches-section-item-active .branches-section-filter-item-icon {
            background-color: rgba(255, 255, 255, 0.18);
            color: var(--branches-section-color-white);
        }
        .branches-section-grid-display {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            transition: all 0.4s ease;
        }
        @media (max-width: 680px) {
            .branches-section-grid-display {
                grid-template-columns: 1fr; /* عرض كرت واحد على الشاشات الصغيرة */
            }
        }
        .branches-section-branch-card {
            background-color: var(--branches-section-color-card-bg);
            border-radius: 28px;
            overflow: hidden;
            border: 1px solid rgb(46 161 138 / 22%);
            box-shadow: var(--branches-section-card-shadow);
            transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex;
            flex-direction: column;
            position: relative;
        }
        .branches-section-branch-card.branches-section-card-hidden {
            display: none !important;
            opacity: 0;
            transform: scale(0.9);
        }
        .branches-section-branch-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--branches-section-card-shadow-hover);
            border-color: rgba(var(--rq-rgb-teal), 0.15);
        }
        .branches-section-card-image-box {
            width: 100%;
            height: 220px;
            overflow: hidden;
            position: relative;
        }
        .branches-section-card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        }
        .branches-section-branch-card:hover .branches-section-card-image {
            transform: scale(1.08);
        }
        .branches-section-card-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: rgba(var(--rq-rgb-primary), 0.9);
            color: var(--branches-section-color-white);
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 700;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        .branches-section-card-content-box {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex-grow: 1;
        }
        .branches-section-card-title {
            font-family: var(--branches-section-font);
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--branches-section-color-sec-1);
        }
        .branches-section-card-info-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--branches-section-color-text-muted);
            font-size: 0.98rem;
            font-weight: 500;
        }
        .branches-section-card-info-item iconify-icon {
            font-size: 1.2rem;
            color: var(--branches-section-color-teal);
            flex-shrink: 0;
        }
        .branches-section-card-buttons-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 15px;
            border-top: 1px solid rgba(var(--rq-rgb-teal), 0.1);
            padding-top: 18px;
        }
        .branches-section-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 4px;
            border-radius: 14px;
            text-decoration: none;
            font-family: var(--branches-section-font);
            font-size: 0.9rem;
            font-weight: 700;
            transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
            text-align: center;
            -webkit-tap-highlight-color: transparent;
        }
        .branches-section-action-btn iconify-icon {
            font-size: 1.05rem;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }
        .branches-section-action-btn:hover iconify-icon {
            transform: scale(1.1);
        }
        .branches-section-btn-book {
            background-color: var(--branches-section-color-sec-1);
            color: var(--branches-section-color-white);
            border: 1.5px solid var(--branches-section-color-sec-1);
        }
        .branches-section-btn-book:hover {
            background-color: var(--branches-section-color-teal);
            border-color: var(--branches-section-color-teal);
            transform: translateY(-2px);
        }
        .branches-section-btn-call {
            background-color: var(--branches-section-color-white);
            color: var(--branches-section-color-sec-1);
            border: 1.5px solid rgba(var(--rq-rgb-primary), 0.15);
        }
        .branches-section-btn-call:hover {
            background-color: rgba(var(--rq-rgb-primary), 0.04);
            border-color: var(--branches-section-color-sec-1);
            transform: translateY(-2px);
        }
        .branches-section-btn-map {
            background-color: rgba(var(--rq-rgb-teal), 0.08);
            color: var(--branches-section-color-sec-2);
            border: 1.5px solid transparent;
        }
        .branches-section-btn-map:hover {
            background-color: rgba(var(--rq-rgb-teal), 0.15);
            color: var(--branches-section-color-sec-1);
            transform: translateY(-2px);
        }
        .branches-section-reveal-up {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 1.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                        transform 1.3s cubic-bezier(0.165, 0.84, 0.44, 1);
            will-change: transform, opacity;
        }
        .branches-section-active {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
        .branches-section-delay-1 { transition-delay: 0.1s; }
        .branches-section-delay-2 { transition-delay: 0.22s; }
        .branches-section-delay-3 { transition-delay: 0.34s; }
        .branches-section-delay-4 { transition-delay: 0.46s; }
