/* ==============================================
1. Hero Section
==============================================
*/
/* ==============================================
1. Hero Section
==============================================
*/
.hero-section {
    background-color: var(--color-bg-light); 
    padding: 80px 0;
    
    /* (--- هنا التعديل ---) */
    overflow: hidden; /* (مهم جداً) لإخفاء الجزء الزائد من الكيرف */
    position: relative; /* (مهم جداً) لتموضع العنصر الوهمي */
    
    /* (تم حذف border-radius من هنا) */
}

/* (--- هذا كود جديد بالكامل ---) */
/* إضافة الانحناء المقعر (للداخل) */
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px; /* (يمثل عمق الكيرف) - يمكنك تعديله */
    
    /* (هام جداً) يجب أن يكون نفس لون السكشن الذي يليه (غالباً أبيض) */
    background-color: var(--color-white); 
    
    /* 1. عمل انحناء للجزء العلوي من العنصر */
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    
    /* 2. دفعه للأسفل ليظهر نصفه فقط (يخلق شكل مقعر) */
    transform: translateY(50%);
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    
    /* (هام) رفع الكونتينر ليكون فوق طبقة الكيرف */
    position: relative;
    z-index: 1;
}
.hero-image-stage .hero-branch {
  transition: transform 0.4s ease;
}

/* في الاتجاه LTR اعمل flip للصورة */
html[dir="ltr"] .hero-image-stage .hero-branch {
  transform: scaleX(-1);
}

/* في الاتجاه RTL خليك طبيعي */
html[dir="rtl"] .hero-image-stage .hero-branch {
  transform: scaleX(1);
}

/* (باقي الكود كما هو) */
.hero-image-stage {
    flex-basis: 50%;
    max-width: 50%;
    position: relative;
    min-height: 400px; 
}

.hero-content {
    flex-basis: 50%;
    max-width: 50%;
}

/* ... باقي ملف الـ CSS ... */


.hero-headline {
    font-size: 2.8rem;
    color: var(--color-text-dark);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text-description);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-btn.btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.hero-btn.btn-primary:hover {
    background-color: #335d1b; /* لون أغمق */
}

.hero-small-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-main);
    font-weight: 600;
    margin-bottom: 15px;
}
.hero-small-title img {
    width: 24px;
}

/* ==============================================
2. RTL Support
==============================================
*/
html[dir="rtl"] .hero-section .container {
    /* (--- هنا التعديل ---) */
    /* تم إلغاء 'flex-direction: row-reverse;' 
       لأن التصميم ثابت (صور يسار، محتوى يمين) */
}

/* ==============================================
3. Responsive (Mobile)
==============================================
*/
@media (max-width: 768px) {
    .hero-section .container {
        /* (--- هنا التعديل ---) */
        /* المحتوى يظهر أولاً (فوق) ثم الصور */
        flex-direction: column; 
    }

    .hero-content,
    .hero-image-stage {
        max-width: 100%;
        text-align: center; /* توسيط كل شيء في الموبايل */
    }
    
    .hero-image-stage {
        margin-top: 30px; /* إضافة مسافة بين الصورة والمحتوى */
        min-height: 300px;
    }

    .hero-small-title {
        justify-content: center;
    }

    .hero-headline {
        font-size: 2.2rem;
    }
}


/* ==============================================
4. Hero Animation
==============================================
*/
/* (هذا الكود كما هو من المرة السابقة) */

/* 4.1 ترتيب الطبقات (Layers) */
.hero-teacup,
.hero-branch,
.hero-leaf {
    position: absolute;
}

.hero-teacup {
    width: 80%;
    max-width: 400px;
    bottom: -80px; /* ← نزلناه 50 بكسل تحت */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; 
}

.hero-branch {
    width: 90%;
    max-width: 450px;
    top: -80px;
    left:90%;
    z-index: 3;
    transform-origin: top center; /* نقطة التدوير */
    animation: rotateBranch 4s ease-in-out infinite; /* أنيميشن التدوير */
}

/* أنيميشن التدوير */
@keyframes rotateBranch {
    0% {
        transform: translateX(-50%) rotate(25deg);
    }
    50% {
        transform: translateX(-50%) rotate(5deg);
    }
    100% {
        transform: translateX(-50%) rotate(25deg);
    }
}


.hero-leaf {
    width: 25px;
    height: 25px;
    z-index: 3; 
    opacity: 0; 
    animation: fallLeaf 3s linear infinite;
}

/* 4.2 تأخير سقوط الأوراق (Delay) */
/* (هذه الأرقام تحتاج تعديل دقيق حسب مكان الغصن) */
.hero-leaf.leaf-1 {
    top: 30%; 
    left: 30%; 
    animation-delay: 0s;
}
.hero-leaf.leaf-2 {
    top: 25%;
    left: 45%;
    animation-delay: 1s; 
}
.hero-leaf.leaf-3 {
    top: 30%;
    left: 60%;
    animation-delay: 2s; 
}


/* ==============================================
5. Keyframes (الأنيميشن)
==============================================
*/
/* (هذا الكود كما هو من المرة السابقة) */

/* حركة الغصن (حركة لأعلى وأسفل) */
@keyframes moveBranchUpDown {
    0% {
        transform: translateY(-10px) translateX(-55%); 
    }
    50% {
        transform: translateY(0) translateX(-55%); 
    }
    100% {
        transform: translateY(-10px) translateX(-55%); 
    }
}

/* حركة سقوط الأوراق (متزامنة مع الغصن) */
@keyframes fallLeaf {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    10% {
        opacity: 1; /* 1. تظهر الورقة */
    }
    50% {
        opacity: 1;
        /* 2. تصل الورقة للكوب (عدل 200px حسب المسافة) */
        transform: translateY(200px) rotate(360deg); 
    }
    50.01%, 100% {
        opacity: 0; /* 3. تختفي الورقة وتنتظر الدورة التالية */
        transform: translateY(200px) rotate(360deg);
    }
}

/* ==============================================
6. تعديلات التجاوب للأنيميشن
==============================================
*/
/* (هذا الكود كما هو من المرة السابقة) */
@media (max-width: 768px) {
    .hero-teacup {
        position: relative; 
        transform: none;
        left: auto;
        bottom: -90px;
    }
    
   /*  .hero-branch,
     .hero-leaf {
         display: none; 
     } */
     
     .hero-branch,
     .hero-leaf {
             left: 75%;

         
     } 
}

/* ==============================================
   7. About Section
==============================================
*/
.about-section {
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    background-color: var(--color-white); /* خلفية السكشن بيضاء */
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* 7.1 جهة الصورة (يسار) */
.about-image-wrapper {
    flex-basis: 50%;
    max-width: 50%;
    position: relative;
    

}

.about-image {
    height: 450px; /* ارتفاع الصورة (يمكن تعديله) */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2; /* الصورة فوق الشكل الديكوري */

    /* (هام) هذا هو كود قص الصورة بشكل مائل */
    /* (Top-left, Top-right, Bottom-right, Bottom-left) */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}


/* 7.2 جهة المحتوى (يمين) */
.about-content {
    flex-basis: 50%;
    max-width: 50%;
}

.about-small-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-main);
    font-weight: 600;
    margin-bottom: 15px;
}
.about-small-title img {
    width: 24px;
}

.about-headline {
    font-size: 2.2rem; /* أصغر من الهيرو */
    color: var(--color-text-dark);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.about-description {
    font-size: 1rem;
    color: var(--color-text); /* استخدام لون النص العادي */
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-btn.btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}
.about-btn.btn-primary:hover {
    background-color: #335d1b; /* لون أغمق */
}


/* 7.3 التجاوب (Mobile) */
@media (max-width: 768px) {
    .about-section .container {
        flex-direction: column; /* المحتوى فوق الصورة */
    }

    .about-content,
    .about-image-wrapper {
        max-width: 100%;
        text-align: center;
    }

    .about-small-title {
        justify-content: center;
    }
    
    .about-image-wrapper {
        margin-top: 30px;
    }

    .about-image-wrapper::before {
        /* إخفاء الشكل الديكوري في الموبايل لتبسيط التصميم */
        display: none;
    }
}

/* 7.4 دعم اللغات (RTL) */
html[dir="rtl"] .about-image-wrapper::before {
    right: -30px; /* الشكل الديكوري يمين الصورة */
    left: auto;
}

/* دعم LTR (في حال كان الموقع إنجليزي) */
html[dir="ltr"] .about-section .container {
    flex-direction: row-reverse; /* عكس الترتيب (محتوى يسار، صورة يمين) */
}

html[dir="ltr"] .about-image-wrapper::before {
    left: -30px; /* الشكل الديكوري يسار الصورة */
    right: auto;
}

/* ==============================================
   8. Brands Section (علامتنا التجارية)
==============================================
*/
.brands-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    
background-position: center center; 
    background-size: cover;         
    background-repeat: no-repeat; 
}

/* 4. في حالة LTR (الموقع إنجليزي) - استخدم الصورة المقلوبة */
html[dir="ltr"] .brands-section {
    /* (هام) افترضت أنك ستحفظ الصورة المقلوبة باسم bg-ltr.avif */
    background-image: url('../images/Rectangle.svg'); 
    background-position: center left; 
}

/* 5. في حالة RTL (الموقع عربي) - استخدم الصورة الأصلية */
html[dir="rtl"] .brands-section {
    /* (هام) هذه هي صورتك الأصلية */
    background-image: url('../images/bg2.svg'); 
    background-position: center right;
}


.brands-section .container {
    /* رفع المحتوى فوق الكيرف */
    position: relative;
    z-index: 1;
    text-align: center; /* توسيط العنوان والشبكة */
}

.brands-headline {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 40px;
}

.brands-logo-grid {
    display: grid;
    /* 6 أعمدة متساوية على الشاشات الكبيرة */
    grid-template-columns: repeat(6, 1fr); 
    align-items: center;
    gap: 20px;
}

.brand-logo {
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    min-height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-logo:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(63, 127, 3, 0.15); 
}

.brand-logo img {
    width: 100%;
    max-width: 270px;
    height: auto;
    margin: 0 auto;
}

/* اللوجو الخامس (Ultra) في الصورة رمادي */
.brand-logo:nth-child(5) {
    /* تم تطبيق الفلتر على الحاوية نفسها في الصورة */
    filter: grayscale(1);
    opacity: 0.8;
}


/* ==============================================
   9. Brands Section (Responsive)
==============================================
*/
@media (max-width: 992px) {
    .brands-logo-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 أعمدة للتابلت */
    }
}

@media (max-width: 576px) {
    .brands-logo-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين للموبايل */
    }
}

/* ==============================================
   10. Products Section (منتجاتنا)
==============================================
*/
.products-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background-color: var(--color-white); /* خلفية بيضاء */
}

.products-headline {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    /* 4 أعمدة على الشاشات الكبيرة */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-image-link {
    display: block;
    position: relative;
    background-color: #fafafa; /* خلفية للصورة */
    padding: 15px;
}
.product-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* علامة التخفيض */
.product-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}
/* تنسيق LTR للبادج */
html[dir="ltr"] .product-sale-badge {
    left: 10px;
    right: auto;
}
/* تنسيق RTL للبادج */
html[dir="rtl"] .product-sale-badge {
    right: 10px;
    left: auto;
}

.product-card-content {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 0.85rem;
    color: var(--color-text-description);
    display: block;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    /* لضمان أن العنوان لا يزيد عن سطرين */
    min-height: 2.4em; /* ارتفاع سطرين */
}
.product-title a {
    color: var(--color-text-dark);
}
.product-title a:hover {
    color: var(--color-main);
}

/* تنسيق السعر (السعر القديم المشطوب) */
.product-price {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-main); /* لون السعر الحالي */
}
.product-price del {
    font-size: 0.9rem;
    color: var(--color-text-description);
    margin-right: 5px;
}
html[dir="rtl"] .product-price del {
    margin-right: 0;
    margin-left: 5px;
}

/* زر "قراءة المزيد" */
.btn-read-more {
    display: inline-block;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    background-color: transparent;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-read-more:hover {
    background-color: var(--color-main);
    color: var(--color-white);
}

/* زر "عرض المزيد" الرئيسي */
.products-show-all {
    text-align: center;
    margin-top: 40px;
}
.products-show-all .btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
}
.products-show-all .btn-primary:hover {
    background-color: #335d1b;
}


/* ==============================================
   11. Products Section (Responsive)
==============================================
*/
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين للتابلت */
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr; /* عمود واحد للموبايل */
    }
}

/* ==============================================
   12. Gallery Section (Custom 3D Carousel)
==============================================
*/

/* (هذا الكود من تصميمك، مع تعديل الألوان) */

.gallery-section {
    padding: 0px 0;
    overflow: hidden;
    position: relative;
    /* استخدام نفس خلفية البراندات */
    background-color: var(--color-bg-light); 
    background-image: url('../images/Rectangle.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.gallery-headline {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gallery-headline img {
    width: 32px;
}

.carousel-container {
    width: 100%;
    max-width: 1400px;
    padding: 0px 20px;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.carousel-item.side {
    transform: scale(0.75) translateY(20px);
    opacity: 0.6;
    filter: blur(1px) brightness(0.85);
    z-index: 1;
}

.carousel-item.center {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0) brightness(1);
    z-index: 3;
}

.carousel-item.hidden {
    transform: scale(0.5) translateY(40px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.item-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 380px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none; /* لإلغاء خط الرابط */
}

.carousel-item.center .item-card {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* (تعديل) cover أفضل من contain */
    transition: transform 0.4s ease;
}

.carousel-item.center .item-image {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    /* (تعديل) استخدام لون الثيم */
    border-color: transparent transparent transparent var(--color-main); 
    margin-right: -4px; /* لليمين في RTL */
}

html[dir="rtl"] .play-button::after {
    margin-right: -4px;
    margin-left: 0;
}
html[dir="ltr"] .play-button::after {
    margin-left: -4px;
    margin-right: 0;
    /* عكس اتجاه المثلث */
    border-width: 15px 26px 15px 0;
    border-color: transparent var(--color-main) transparent transparent;
}


.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.carousel-item.side .play-button {
    width: 60px;
    height: 60px;
}

.carousel-item.side .play-button::after {
    border-width: 12px 0 12px 20px;
}
html[dir="ltr"] .carousel-item.side .play-button::after {
    border-width: 12px 20px 12px 0;
}


.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 5;
}

.nav-button:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* (تعديل) عكس اتجاه الأسهم في RTL */
html[dir="rtl"] .nav-button.prev {
    right: 20px; 
}
html[dir="rtl"] .nav-button.next {
    left: 20px;
}
html[dir="ltr"] .nav-button.prev {
    left: 20px; 
}
html[dir="ltr"] .nav-button.next {
    right: 20px;
}


.nav-button svg {
    width: 24px;
    height: 24px;
    /* (تعديل) استخدام لون الثيم */
    fill: var(--color-main);
}
/* (تعديل) عكس أيقونة السهم في LTR */
html[dir="ltr"] .nav-button.prev svg {
    transform: scaleX(-1);
}
html[dir="ltr"] .nav-button.next svg {
    transform: scaleX(-1);
}

.dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* (تعديل) استخدام لون الثيم */
    background: rgba(63, 127, 3, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    /* (تعديل) استخدام لون الثيم */
    background: var(--color-main);
    transform: scale(1.3);
}

/* ==============================================
   13. Gallery Section (Responsive)
==============================================
*/
@media (max-width: 1024px) {
    .carousel-container {
        padding: 40px 15px;
    }
    .carousel-wrapper {
        height: 450px;
    }
    .item-card {
        width: 340px;
        height: 360px;
    }
    .carousel-track {
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .carousel-container {
        padding: 30px 10px;
    }
    .carousel-wrapper {
        height: 420px;
    }
    .item-card {
        width: 90%;
        max-width: 350px;
        height: 360px;
        padding: 15px;
    }
    .carousel-item.side,
    .carousel-item.hidden {
        display: none !important;
    }
    .carousel-item.center {
        transform: scale(1) translateY(0);
    }
    .nav-button {
        width: 55px;
        height: 55px;
        background: rgba(255, 255, 255, 0.98);
    }
    html[dir="rtl"] .nav-button.prev { right: 15px; }
    html[dir="rtl"] .nav-button.next { left: 15px; }
    html[dir="ltr"] .nav-button.prev { left: 15px; }
    html[dir="ltr"] .nav-button.next { right: 15px; }

    .nav-button svg {
        width: 22px;
        height: 22px;
    }
    .play-button {
        width: 70px;
        height: 70px;
    }
    .play-button::after {
        border-width: 14px 0 14px 22px;
    }
    html[dir="ltr"] .play-button::after {
        border-width: 14px 22px 14px 0;
    }
    .carousel-track {
        gap: 0;
    }
    .dots {
        margin-top: 35px;
        gap: 10px;
    }
    .dot {
        width: 11px;
        height: 11px;
    }
    .dot.active {
        transform: scale(1.4);
    }
}
@media (max-width: 480px) {
    /* ... (باقي كود الموبايل كما هو، لا يحتاج تعديل ألوان) ... */
}

/* ==============================================
   14. Contact Section (اتصل بنا)
==============================================
*/
.contact-section {
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    /* استخدام نفس خلفية السكاشن السابقة */
    background-color: var(--color-white); 
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.contact-headline {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.contact-headline img {
    width: 32px;
}

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

/* 14.1 Info Image */
.contact-info-wrapper {
    text-align: center; /* توسيط الصورة */
}
.contact-info-wrapper img {
    max-width: 100%;
    height: auto;
}


/* 14.2 Contact Form */
.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* تنسيق حقول Contact Form 7 */
.contact-form-wrapper .wpcf7-form-control {
    background-color: var(--color-bg-light) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    color: var(--color-text);
}
.contact-form-wrapper textarea.wpcf7-form-control {
    min-height: 120px;
}

/* تنسيق زر الإرسال */
.contact-form-wrapper .wpcf7-submit {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.contact-form-wrapper .wpcf7-submit:hover {
    background-color: #335d1b; /* لون أغمق */
}

/* تخطيط الحقول (لجعل الاسم الأول والأخير بجانب بعض) */
/* (ملاحظة: هذا الكود سيعمل إذا استخدمت كود الفورم الذي اقترحته سابقاً) */
.contact-form-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ==============================================
   15. Contact Section (Responsive)
==============================================
*/
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* عمود واحد */
        gap: 60px;
    }
    
    /* عكس الترتيب في الموبايل (الفورم أولاً ثم الصورة) */
    .contact-info-wrapper {
        order: 2;
    }
    .contact-form-wrapper {
        order: 1;
    }
}

/* ==============================================
   10. Footer
============================================== */
.site-footer {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    /* 4 أعمدة */
    grid-template-columns: 2fr 1fr 2fr 1fr; 
    gap: 30px;
}

.footer-widget {
    padding: 0 15px;
}

.footer-widget-title {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 25px;
}

/* 10.1 About Widget */
.footer-about .footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}
.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-description);
}

/* 10.2 Pages Menu */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu-list li {
    margin-bottom: 12px;
}
.footer-menu-list li a {
    text-decoration: none;
    color: var(--color-text-description);
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-menu-list li a:hover {
    color: var(--color-main);
}

/* 10.3 Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-text-description);
    font-weight: 500;
}
.footer-contact-list li a {
    color: var(--color-text-description);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact-list li a:hover {
    color: var(--color-main);
}
/* (إعادة استخدام أيقونات الكونتاكت سكشن) */
.footer-contact-list .info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: var(--color-main);
    margin-top: 2px;
}
.footer-contact-list .address-icon {
    clip-path: polygon(50% 0, 100% 35%, 100% 100%, 0 100%, 0 35%); 
}
.footer-contact-list .email-icon {
    clip-path: polygon(0 20%, 50% 60%, 100% 20%, 100% 80%, 0 80%);
}
.footer-contact-list .phone-icon {
    clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%);
}


/* 10.4 Social Links */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-main);
    transition: all 0.3s ease;
}
.footer-social-links .social-icon:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
    color: var(--color-white);
}
.footer-social-links .social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* 10.5 Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    background-color: #fff; /* خلفية بيضاء لصورة الدفع */
    text-align: center;
}
.payment-methods-img {
    max-width: 100%;
    height: auto;
    max-height: 40px; /* تحديد ارتفاع مناسب */
}

/* 10.6 Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        /* 2 عمود للتابلت */
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        /* عمود واحد للموبايل */
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-widget {
        padding: 0;
        text-align: center; /* توسيط كل شيء في الموبايل */
    }
    .footer-about .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-menu-list {
        text-align: center;
    }
    .footer-contact-list li {
        text-align: right; /* لضبط النص بجانب الأيقونة */
        justify-content: center;
    }
    html[dir="ltr"] .footer-contact-list li {
        text-align: left;
    }
    .footer-social-links {
        justify-content: center;
    }
}

.contact-form-wrapper textarea.wpcf7-form-control {
    height:70px;
}
}