/* ============================================
   Branches Page Styles - صفحة الفروع
   رحى المكان - تصميم عصري واحترافي
   ============================================ */
   
   /* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    --primary-color: #5D4037;
    --secondary-color: #8D6E63;
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-color: #3E2723;
    --text-light: #795548;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Header / Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 80vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.swiper-slide {
    position: relative;
    /* Create stacking context */
}

.hero-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
    /* Above image, below content */
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Increased shadow opacity for clarity */
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 1;
    /* Removed transparency for better visibility */
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    /* Added shadow to subtitle */
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(216, 67, 21, 0.1);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: transparent;
    color: var(--white);
}

/* Products Section */
.products-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: table;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #D84315, transparent);
    margin: 15px auto 0;
    border-radius: 3px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 450px;
    max-height: 550px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-calories {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-btn {
    margin-top: auto;
    text-align: center;
    padding: 0.8rem;
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Locations Section */
.locations-section {
    background-color: var(--white);
    padding: 5rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.locations-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.locations-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.location-item {
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.location-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 3rem;
    background-color: #25D366;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* زر عرض جميع الفروع */
.all-branches-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
    text-decoration: none;
}

.all-branches-btn:hover {
    background: linear-gradient(135deg, #D84315 0%, #BF360C 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 67, 21, 0.4);
}

.all-branches-btn i {
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 2rem 2rem;
    font-size: 0.9rem;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(216, 67, 21, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 70vh;
    }

    .hero-container {
        height: 60vh;
        /* Slightly smaller on mobile for better fit */
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        color: #FFFFFF;
        /* Force white on mobile too */
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        color: #FFFFFF;
        opacity: 0.95;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding: 0.3rem 0.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 4px;
        margin-top: 10px;
    }

    .products-section {
        padding: 3rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 350px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-desc {
        font-size: 0.95rem;
    }

    .marquee-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .marquee-item {
        width: 220px;
        height: 220px;
    }

    .locations-section {
        padding: 3rem 1.5rem;
    }

    .locations-list {
        gap: 1rem;
    }

    .location-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .whatsapp-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .social-media {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    footer {
        padding: 2rem 1.5rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .marquee-title {
        font-size: 1.5rem;
    }

    .marquee-item {
        width: 180px;
        height: 180px;
    }

    .product-image {
        height: 300px;
    }
}

/* Product Swiper Section */
.marquee-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
    overflow: hidden;
    position: relative;
}



.product-swiper {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.product-slide {
    width: 280px;
    height: 280px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 4px solid var(--white);
    cursor: pointer;
}

.product-slide:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-slide:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomInLightbox 0.3s ease;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}



.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@keyframes zoomInLightbox {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        position: fixed;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ============================================
   Testimonials Section - آراء العملاء - RTL Optimized
   ============================================ */
.testimonials-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(141, 110, 99, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(216, 67, 21, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Swiper Container - RTL Optimized */
.testimonials-swiper {
    padding: 3rem 0 5rem;
    overflow: visible;
}

.testimonials-swiper .swiper-wrapper {
    align-items: center;
}

.testimonials-swiper .swiper-slide {
    width: 380px;
    height: auto;
}

.testimonial-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Added shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    height: 100%;
}

.swiper-slide-active .testimonial-card {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    /* Stronger shadow for active card */
}

.testimonial-image {
    width: 100%;
    height: auto;
    /* Allow height to adjust to content */
    max-height: 600px;
    /* Prevent it from getting too tall */
    object-fit: contain;
    /* Ensure full image is visible */
    display: block;
    transition: transform 0.4s ease;
    border-radius: 20px;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.03);
}

/* Swiper Navigation - RTL */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.testimonials-swiper .swiper-button-next:hover::after,
.testimonials-swiper .swiper-button-prev:hover::after {
    color: var(--white);
}

/* Swiper Pagination */
.testimonials-swiper .swiper-pagination {
    bottom: 10px;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
    width: 28px;
    border-radius: 5px;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-swiper .swiper-slide {
        width: 360px;
    }

    .testimonial-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 1rem;
    }

    .testimonials-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .testimonials-swiper {
        padding: 2rem 0 4rem;
    }

    .testimonials-swiper .swiper-slide {
        width: 320px;
    }

    .testimonial-image {
        height: 450px;
    }

    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .testimonials-swiper .swiper-button-next::after,
    .testimonials-swiper .swiper-button-prev::after {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-swiper .swiper-slide {
        width: 300px;
    }

    .testimonial-image {
        height: 420px;
    }
}

/* ============================================
   Floating WhatsApp Button - زر واتساب ثابت
   ============================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1), 0 0 0 20px rgba(37, 211, 102, 0.05);
    }

    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive للزر الثابت */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }

    .floating-whatsapp i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .marquee-title {
        font-size: 1.5rem;
    }

    .marquee-item {
        width: 180px;
        height: 180px;
    }

    .product-image {
        height: 300px;
    }
}



/* Header Section */
.branches-header {
    position: relative;
    width: 100%;
    min-height: 40vh;
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 50%, #4E342E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.branches-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(216, 67, 21, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.header-text {
    margin-top: 1rem;
}

.brand-icon {
width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    background: url(https://i.ibb.co/MD6z7WkK/image.png) #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #3E2723;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 193, 7, 0.5);
    }
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Main Branches Section */
.branches-main {
    padding: 3rem 1.5rem 4rem;
    background: linear-gradient(180deg, #f5f5f5 0%, #fafafa 100%);
    min-height: 60vh;
}

.branches-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Branch Card */
.branch-card {
    background: #fff;
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(30px);
}

.branch-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.branch-card:nth-child(1) {
    transition-delay: 0.1s;
}

.branch-card:nth-child(2) {
    transition-delay: 0.2s;
}

.branch-card:nth-child(3) {
    transition-delay: 0.3s;
}

.branch-card:nth-child(4) {
    transition-delay: 0.4s;
}

.branch-card:nth-child(5) {
    transition-delay: 0.5s;
}

.branch-card:nth-child(6) {
    transition-delay: 0.6s;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.15);
}

/* Branch Map */
.branch-map {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.branch-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.9);
    transition: filter 0.3s ease;
}

.branch-card:hover .branch-map iframe {
    filter: saturate(1.1);
}

/* Branch Header - with icon and content */
.branch-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
}

.branch-header .branch-icon {
    flex-shrink: 0;
}

.branch-header .branch-content {
    flex: 1;
}

/* Branch Icon */
.branch-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f5f0eb 0%, #ebe4dc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #5D4037;
    transition: all 0.3s ease;
}

.branch-card:hover .branch-icon {
    background: linear-gradient(135deg, #5D4037 0%, #8D6E63 100%);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

/* Branch Content */
.branch-content {
    flex: 1;
}

.branch-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3E2723;
    margin-bottom: 0.5rem;
}

.branch-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #795548;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.branch-description i {
    color: #D84315;
}

/* Branch Features */
.branch-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #f8f5f2 0%, #f0ebe6 100%);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #5D4037;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag i {
    font-size: 0.75rem;
    color: #8D6E63;
}

.branch-card:hover .feature-tag {
    background: linear-gradient(135deg, #5D4037 0%, #6D4C41 100%);
    color: #fff;
}

.branch-card:hover .feature-tag i {
    color: rgba(255, 255, 255, 0.8);
}

/* Branch Button */
.branch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #5D4037 0%, #4E342E 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.branch-btn:hover::before {
    left: 100%;
}

.branch-btn:hover {
    background: linear-gradient(135deg, #D84315 0%, #BF360C 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(216, 67, 21, 0.3);
}

.branch-btn i {
    transition: transform 0.3s ease;
}

.branch-btn:hover i {
    transform: translateX(-5px);
}

/* Contact CTA Section - قسم التواصل */
.contact-cta-section {
    margin-top: 4rem;
    text-align: center;
}

.contact-cta-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.contact-cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-cta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.contact-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-contact {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.instagram-contact {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.instagram-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .branches-header {
        min-height: 35vh;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .brand-icon {
        width: 250px;
        height: 250px;
        font-size: 1.8rem;
    }

    .branches-main {
        padding: 1.5rem 0.75rem 3rem;
    }

    .branches-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .branch-card {
        border-radius: 20px;
    }

    .branch-map {
        height: 180px;
        border-radius: 20px 20px 0 0;
    }

    .branch-header {
        padding: 1.2rem 1.2rem 0;
        gap: 0.8rem;
    }

    .branch-name {
        font-size: 1.2rem;
    }

    .branch-description {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .branch-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .branch-btn {
        margin: 0.8rem 1.2rem 1.2rem;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .map-cta-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem;
    }

    .map-cta-title {
        font-size: 1.4rem;
    }

    .map-cta-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-divider {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .branches-header {
        min-height: 28vh;
    }

    .header-content {
        padding: 1.5rem 1rem;
    }

    .back-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
        margin-bottom: 1.5rem;
    }

    .brand-icon {
        width: 180px;
        height: 180px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .branches-main {
        padding: 1rem 0.5rem 2rem;
    }

    .branches-container {
        gap: 1rem;
    }

    .branch-card {
        border-radius: 16px;
    }

    .branch-map {
        height: 160px;
        border-radius: 16px 16px 0 0;
    }

    .branch-header {
        padding: 1rem 1rem 0;
        gap: 0.7rem;
    }

    .branch-name {
        font-size: 1.1rem;
    }

    .branch-description {
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .branch-description i {
        font-size: 0.85rem;
    }

    .branch-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .branch-btn {
        margin: 0.7rem 1rem 1rem;
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
        gap: 0.5rem;
        border-radius: 10px;
    }

    .branch-btn i {
        font-size: 0.9rem;
    }

    .branch-features {
        gap: 0.4rem;
    }

    .feature-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .branches-header {
        min-height: 25vh;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .branch-map {
        height: 140px;
    }

    .branch-header {
        padding: 0.8rem 0.8rem 0;
    }

    .branch-name {
        font-size: 1rem;
    }

    .branch-btn {
        margin: 0.6rem 0.8rem 0.8rem;
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth Transitions for All Interactive Elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Focus States for Accessibility */
.branch-btn:focus,
.back-link:focus {
    outline: 2px solid #FFC107;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .branches-header {
        min-height: auto;
        padding: 2rem;
        background: #5D4037 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .branch-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .branch-btn {
        background: #5D4037 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}