/*
Theme Name: serafyshabwa
Theme URI: https://serafshabwa.com
Author: محمد عوض
Author URI: https://syrafishabwa.com
Description: قالب مخصص لموقع صيرفي شبوة
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serafyshabwa
*/

/* إعدادات عامة وألوان */
:root {
    --primary-color: #3a9adb;
    --secondary-color: #bce21a;
    --text-color: #2c3e50;
    --background-color: #ffffff;
    --white-color: #ffffff;
    --transition-speed: 0.3s;
}

/* إعادة تعيين الأنماط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-speed) ease;
}

/* Add touch-friendly swipe handling */
body {
    touch-action: pan-y; /* Allow vertical scrolling */
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%; /* Full width on mobile */
        max-width: 350px; /* Limit max width */
    }
}

/* تنسيق الجسم والخط */
body {
    font-family: 'Tajawal', 'Arial', sans-serif;
    background-color: var(--background-color);  /* استخدام لون الخلفية الأبيض */    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;    
}

/* الحاوية الرئيسية */
.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
}

/* القائمة العلوية */
.top-navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    width: 500px; /* يمكنك تعديل هذه القيمة للحجم المطلوب */
}

/* لجعل الشعار على الجهة اليمنى للشريط العلوي مع إزالة المسافة الزائدة من اليمين */
.navbar-container {
    /* الحفاظ على العرض الأقصى والتوسيط */
    max-width: 1200px;
    margin: 0 auto;
    /* إزالة الهامش الأيمن (للشعار) والحفاظ على الهامش الأيسر للقائمة */
    padding: 10px 20px; /* تم تعديل هذا السطر لتجنب الهامش الزائد */
    /* الشعار على اليمين والقائمة على اليسار بشكل افتراضي */
    justify-content: space-between; /* هذا سيجعل الشعار على اليمين والقائمة على اليسار */
    align-items: center;
    display: flex; /* تأكد أن display: flex موجود هنا */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu > li > a:hover {
    background-color: rgba(210, 116, 116, 0.2);
}


/* القائمة العلوية والشريط الجانبي */
.top-navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.nav-logo {
    width: 200px;
    padding: 0%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-menu > li > a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}


/* زر القائمة المنبثقة */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
    position: absolute; /* تغيير الموضع */
    left: 40px; /* وضع الزر بجانب الشعار على اليمين */
    top: 50%; /* توسيط الزر رأسياً */
    transform: translateY(-50%); /* توسيط الزر رأسياً */
    width: 60px; /* زيادة العرض قليلاً */
    height: 55px; /* زيادة الارتفاع قليلاً */
    transition: transform 0.3s ease;
}

.hamburger-menu div {
    width: 35px; /* زيادة عرض الشريط */
    height: 4px; /* زيادة ارتفاع الشريط */
    background-color: white; /* تغيير اللون إلى الأبيض */
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* تأثيرات تفاعلية للشرائط */
.hamburger-menu.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--secondary-color);
}

.hamburger-menu.active div:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--secondary-color);
}

/* الشريط الجانبي */
.sidebar {
    position: fixed;
    top: 0;
    left: 100%;
    width: 350px;
    height: 100%;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color)); /* تدرج لوني متناسق */
    transition: 0.5s;
    z-index: 1200;
    padding-top: 60px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%); /* Add transform for smoother transition */
}

.sidebar.active {
    transform: translateX(-100%); /* Slide in from the right */
}

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

.sidebar-menu > li {
    margin: 15px 0;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-menu > li:hover {
    transform: translateX(10px);
}

.sidebar-menu > li > a {
    color: white; /* لون النص أبيض للتباين مع الخلفية */
    text-decoration: none;
    display: block;
    padding: 12px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.sidebar-menu > li > a:hover {
    background-color: rgba(255,255,255,0.2); /* تأثير تحويم خفيف */
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .top-navbar {
        justify-content: space-between;
        padding: 10px 20px;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* أنماط عامة للمحتوى */
.content {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content h1, .content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.content p, .content ul {
    margin-bottom: 1rem;
}

.content ul {
    padding-right: 2rem;
}

.content ul li {
    margin-bottom: 0.5rem;
}


/* تأثيرات إضافية */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-load {
    animation: fadeIn 0.5s ease forwards;
}

/* القائمة السفلية */
/* تنسيق الفوتر بشكل عام */
footer {
 background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
 color: var(--white-color);
 padding: 60px 0; /* زيادة الحشوة العلوية والسفلية لمظهر أفضل */
 margin-top: auto;
}

.footer-sections {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between; /* توزيع الأقسام مع مسافات متساوية */
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
gap: 40px; /* زيادة المسافة بين الأقسام */
}

.footer-section {
 flex: 1 1 calc(30% - 40px); /* تعديل التوزيع ليكون أكثر توازناً */
 min-width: 250px;
 font-size: 0.95rem; /* حجم خط مناسب */
}

.footer-section h4 {
 margin-bottom: 20px; /* زيادة المسافة أسفل العنوان */
 font-size: 1.3rem; /* حجم أكبر للعناوين */
 position: relative;
 padding-bottom: 15px; /* مسافة للخط السفلي */
}

.footer-section h4::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 40px; /* خط سفلي أقصر وأكثر أناقة */
 height: 3px;
 background-color: var(--white-color); /* لون أبيض ليتناسب مع الخلفية */
 border-radius: 1px;
}

/* تنسيق القوائم داخل أقسام الفوتر */
.footer-section ul {
list-style: none;
 padding: 0;
 margin: 0;
}

.footer-section ul li {
 margin-bottom: 12px; /* زيادة المسافة بين الروابط */
}

.footer-section ul li a {
 color: var(--white-color);
 text-decoration: none;
 transition: transform 0.3s ease; /* فقط انتقال للتحويل (transform) */
 display: inline-block; /* لتمكين تحويل (transform) على العنصر */
}

.footer-section ul li a:hover {
 transform: translateY(-4px); /* تأثير رفع العنصر للأعلى */
}
/* تنسيقات قسم وسائل التواصل الاجتماعي وحقوق النشر */
.social-copyright-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 calc(30% - 40px);
    min-width: 250px;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 25px; /* زيادة المسافة */
    flex-wrap: wrap;
    gap: 15px; /* استخدام gap لتحسين المسافات */
}

.social-media a {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%; /* جعل الخلفية دائرية */
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.2em; /* حجم مناسب للأيقونات */
    transition: all 0.3s ease;
}

.social-media a:hover {
    transform: translateY(-8px); /* تأثير رفع الأيقونة */
}

.copyright {
    padding-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* تنسيقات استجابة الفوتر للشاشات الصغيرة */
@media (max-width: 768px) {
    footer {
        padding: 40px 0;
    }
    .footer-sections {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer-section, .social-copyright-section {
        flex: 1 1 100%;
        text-align: center;
    }
    .footer-section h4 {
        margin-bottom: 10px;
        font-size: 1.2rem;
        border-bottom: none; /* إزالة الخط السفلي في الشاشات الصغيرة لتجنب الازدحام */
    }
    
    .footer-section h4::after {
        display: none; /* إخفاء الخط السفلي الزخرفي في الشاشات الصغيرة */
    }

    .footer-links {
        text-align: center;
    }
    .social-media {
        margin-bottom: 20px;
    }
    .social-media a {
        font-size: 1.1em;
        width: 40px;
        height: 40px;
    }
    .copyright {
        font-size: 0.85rem;
    }
}

/* تنسيق قائمة اسعار الصرف والسلع */
.section-main-title {
    color: var(--primary-color);
    margin-top: 80px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}


.rate-card {
    flex: 1;
    /* ✅ تم إزالة الخصائص التي تحدد الحجم الثابت */
    background-color: var(--white-color);
    border-radius: 18px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(58, 154, 219, 0.15);
    overflow: hidden;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.rate-card h3 {
    color: #495057;
    font-size: 1.37rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.rate-card h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
}

/* تنسيقات قسم السلع الاقتصادية (المحدثة) */
.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 5px;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 10px 0;
    transition: background-color 0.3s ease;
    font-weight: 600;
    color: var(--text-color);
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.1s ease;
    margin-right: 10px;
}

.accordion-toggle:checked + .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-in-out;
    padding: 0 20px;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
}

.accordion-toggle:checked + .accordion-header + .accordion-content {
    max-height: 1000px;
    padding: 20px;
    margin-top: -10px;
}

.sub-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-item-row:last-child {
    border-bottom: none;
}

.sub-item-title {
    color: #495057;
    font-weight: 500;
    text-align: right;
    flex-grow: 2;
    padding-right: 10px;
}

.sub-item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
    flex-grow: 1;
}

.sub-item-unit {
    font-size: 1.2rem;
    color: #868e96;
    text-align: left;
    flex-grow: 1;
    padding-left: 10px;
}

.rates-source {
    margin-top: 30px;
    text-align: center;
    font-size: 1rem;
    color: #495057;
    padding: 15px 20px;
    background-color: #f0f8ff;
    border-radius: 10px;
    border: 1px solid rgba(58, 154, 219, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ✅ إضافة انتقال سلس */
}

/* ✅ تأثير عند مرور المؤشر (Hover Effect) */
.rates-source:hover {
    transform: translateY(-5px); /* ✅ رفع العنصر قليلاً */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* ✅ تظليل أكبر */
}

.rates-source p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.rates-source p::before {
    content: '⏰';
    font-size: 1.2rem;
}

.rates-source span {
    font-weight: bold;
    color: var(--primary-color, #3a9adb);
}

/* تصميم حاسبة الريال اليمني */
.yemeni-converter {
    background-color: rgba(58, 154, 219, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.yemeni-calculator {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-description {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calculator-description p {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.calculator-description ol {
    padding-right: 20px;
    color: var(--text-color);
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-section {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.result-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    direction: ltr;
    text-align: center;
    margin-top: 10px;
}

.calculate-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(58, 154, 219, 0.3);
}

.calculate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(58, 154, 219, 0.4);
}


.converter button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(58, 154, 219, 0.4);
}

/* إخفاء النتيجة قبل الحساب */
.hidden {
    display: none;
}

/* تنسيق مدخلات محول العملات */
.converter .input-group {
    margin-bottom: 1.5rem;
}

.converter input, 
.converter select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(58, 154, 219, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    direction: ltr;
    text-align: right;
}

.converter input:focus, 
.converter select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* نمط عرض النتيجة */
#result {
    background-color: rgba(58, 154, 219, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    direction: ltr;
}


/*قائمة حساب العملات*/
.par{
    
     font-size: 2rem; 
    color: var(--text-color);
    font-weight: bold;
    color: var(--primary-color);
    padding: auto;
    margin-top: 150px;
    text-align: center;
}

.converter {
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 45px;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}


/* تأثيرات إضافية */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-load {
    animation: fadeIn 0.5s ease forwards;
    margin-top: 45px;
}
   

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .top-navbar {
        padding: 10px 0;
    }

    .navbar-container {
        flex-direction: column;
        align-items: normal;
    }

    a {
        text-decoration: none;  /* إزالة الخط السفلي */
        color: var(--primary-color);
        position: relative;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    a:hover {
        color: var(--secondary-color);
    }
    
    /* إزالة الخط السفلي بشكل كامل */
    a::after {
        display: none;
    }
    
    /* تأثير تحويل الروابط */
    .nav-menu > li > a, 
    .footer-section a {
        position: relative;
        overflow: hidden;
        display: inline-block;
        padding: 5px 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-menu > li > a::before,
    .footer-section a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: all 0.5s ease;
    }
    
    .nav-menu > li > a:hover::before,
    .footer-section a:hover::before {
        left: 100%;
    }
    
    /* تأثير خفيف للظل عند التحويل */
    .nav-menu > li > a:hover,
    .footer-section a:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    
}

/* تأثيرات إضافية */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-load {
    animation: fadeIn 0.5s ease forwards;
}

/*تنسيق صفحة الاستخدام*/
:root {
    /* الألوان الجديدة المطلوبة */
    --primary-color: #3a9adb; /* أزرق فاتح */
    --secondary-color: #bce21a; /* أخضر ليموني */

    /* ألوان إضافية لتعزيز التصميم (يمكن تعديلها لتناسب الألوان الجديدة بشكل أفضل) */
    --accent-blue-light: #5bc0de; /* أزرق سماوي مقترح يتناسق مع primary-color */
    --accent-blue-dark: #337ab7; /* أزرق أغمق مقترح يتناسق مع primary-color */
    --medium-text: #333;
    --light-text: #555;
    --white-color: #ffffff;
    --light-background: #f8f9fa; /* خلفية عامة فاتحة */
    --card-background: #ffffff;
    --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.07); /* ظل أكثر بروزاً */
    --hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* ظل أكبر عند التمرير */
    --border-color: #e0e0e0; /* لون حدود فاتح */
}
/* تنسيقات عامة للجسم والخطوط */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: var(--light-background);
    margin: 0;
    padding: 0;
    color: var(--medium-text);
    line-height: 1.7;
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي */
}

/* الحاوية العامة للمحتوى */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الشريط العلوي (الناف بار) */
.nav-logo {
    height: 55px; /* حجم أكبر للشعار */
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05); /* تأثير تكبير بسيط عند التمرير */
}

/* رأس الصفحة (العنوان الرئيسي "كيفية الاستخدام") */
.usage-page .page-header {
    text-align: center;
    padding: 90px 20px 70px; /* زيادة المساحة الرأسية */
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color)); /* تدرج أخضر */
    color: var(--white-color);
    margin-bottom: 60px; /* هامش سفلي أكبر */
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 30px; /* حواف دائرية سفلية */
    border-bottom-right-radius: 30px;
    animation: fadeInDown 1s ease-out; /* تأثير دخول جميل */
}

.usage-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo-1.png'); /* افترض وجود نسخة بيضاء من الشعار */
    background-repeat: no-repeat;
    background-position: center 20px; /* تموضع الشعار في الخلفية */
    background-size: 180px; /* حجم الشعار */
    opacity: 0.1; /* شفافية الشعار الخلفي */
    z-index: 0;
}

.usage-page .page-header h1 {
    font-size: 3.5rem; /* خط أكبر */
    margin-bottom: 15px;
    font-weight: 800; /* خط أثقل */
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* ظل للنص */
    position: relative;
    z-index: 1;
}

.usage-page .page-header p {
    font-size: 1.4rem; /* خط أكبر */
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* العناوين الرئيسية للأقسام (مثل "كيف تستخدم الموقع؟", "خدماتنا", "نصائح مهمة") */
.section-title {
    font-size: 2.8rem; /* خط أكبر للعناوين */
    color: var(--dark-text);
    text-align: center;
    margin-top: 80px; /* هامش علوي أكبر */
    margin-bottom: 50px; /* هامش سفلي أكبر */
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out; /* تأثير دخول */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px; /* خط سفلي أطول */
    height: 5px; /* خط سفلي أسمك */
    background: linear-gradient(to right, var(--accent-blue-light), var(--accent-blue-dark)); /* تدرج أزرق للخط السفلي */
    border-radius: 3px;
}

/* الأقسام العامة للبطاقات (مثل steps-section, services-section, tips-section) */
section {
    padding: 40px 0;
}

/* شبكة البطاقات العامة */
.steps-grid, .services-grid, .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* مسافة أكبر بين البطاقات */
}

/* تنسيق بطاقات الخطوات (كيف تستخدم الموقع؟) */
.step-card {
    background-color: var(--card-background);
    border-radius: 20px; /* حواف أكثر دائرية */
    box-shadow: var(--card-shadow);
    padding: 40px 30px; /* مساحة داخلية أكبر */
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color); /* حدود خفيفة */
    animation: zoomIn 0.6s ease-out forwards; /* تأثير دخول للبطاقات */
    opacity: 0; /* يبدأ مخفياً */
}

/* تأخير ظهور البطاقات */
.steps-grid .step-card:nth-child(1) { animation-delay: 0.2s; }
.steps-grid .step-card:nth-child(2) { animation-delay: 0.4s; }
.steps-grid .step-card:nth-child(3) { animation-delay: 0.6s; }


.step-card:hover {
    transform: translateY(-15px) scale(1.02); /* رفع وتكبير بسيط */
    box-shadow: var(--hover-shadow); /* ظل أكبر عند التمرير */
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem; /* رقم أكبر */
    font-weight: 900;
    color: rgba(var(--primary-color-rgb, 46, 125, 50), 0.07); /* لون باهت جداً للشعار */
    z-index: 0;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.05); /* ظل خفيف للرقم */
}

.step-card i {
    font-size: 4.5rem; /* أيقونات أكبر */
    margin-bottom: 25px;
    z-index: 1;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color)); /* تدرج أخضر للأيقونات */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease; /* تأثير حركة للأيقونة */
}

.step-card:hover i {
    transform: rotate(5deg) scale(1.1); /* دوران وتكبير خفيف للأيقونة عند التمرير */
}

.step-card p {
    font-size: 1.15rem; /* نص أكبر قليلاً */
    color: var(--dark-text);
    margin-top: 15px;
    font-weight: 600;
    z-index: 1;
}

/* تنسيق بطاقات النصائح (نصائح مهمة) */
.tips-section {
    padding: 60px 0 100px;
}

.tip-card {
    background-color: var(--card-background);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

/* تأخير ظهور بطاقات النصائح */
.tips-grid .tip-card:nth-child(1) { animation-delay: 0.2s; }
.tips-grid .tip-card:nth-child(2) { animation-delay: 0.4s; }
.tips-grid .tip-card:nth-child(3) { animation-delay: 0.6s; }

.tip-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.tip-card i {
    font-size: 4rem; /* أيقونات أكبر */
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--accent-blue-light), var(--accent-blue-dark)); /* تدرج أزرق للأيقونات */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.tip-card:hover i {
    transform: rotateY(15deg) scale(1.1); /* دوران وتكبير خفيف للأيقونة */
}

.tip-card p {
    font-size: 1.15rem; /* نص أكبر قليلاً */
    color: var(--dark-text);
    font-weight: 600;
}

/* تذييل الصفحة */
.site-footer {
    background-color: var(--dark-text); /* لون أزرق داكن جداً للتذييل */
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    margin-top: 60px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* الرسوم المتحركة (Animations) */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* التنسيقات المتجاوبة (Responsive Design) */
@media (max-width: 992px) {
    .usage-page .page-header {
        padding: 70px 15px 50px;
    }
    .usage-page .page-header h1 {
        font-size: 2.8rem;
    }
    .usage-page .page-header p {
        font-size: 1.2rem;
    }
    .usage-page .page-header::before {
        background-size: 150px;
    }
    .section-title {
        font-size: 2.2rem;
        margin-top: 60px;
        margin-bottom: 40px;
    }
    .steps-grid, .services-grid, .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .step-card, .service-card, .tip-card {
        padding: 30px 25px;
    }
    .step-card i, .service-card i, .tip-card i {
        font-size: 3.5rem;
    }
    .service-card i {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    .step-number {
        font-size: 4.5rem;
        top: -15px;
        right: -15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .usage-page .page-header {
        padding: 60px 10px 40px;
        margin-bottom: 40px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .usage-page .page-header h1 {
        font-size: 2.3rem;
    }
    .usage-page .page-header p {
        font-size: 1.1rem;
    }
    .usage-page .page-header::before {
        background-size: 120px;
        background-position: center 15px;
    }
    .section-title {
        font-size: 2rem;
        margin-top: 50px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .section-title::after {
        width: 80px;
        height: 4px;
    }
    .steps-grid, .services-grid, .tips-grid {
        grid-template-columns: 1fr; /* عمود واحد على الشاشات الصغيرة جداً */
        gap: 20px;
    }
    .step-card, .service-card, .tip-card {
        padding: 25px;
    }
    .step-card i, .service-card i, .tip-card i {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    .service-card i {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
    }
    .step-card p, .service-card p, .tip-card p {
        font-size: 1rem;
    }
    .step-number {
        font-size: 3.8rem;
        top: -10px;
        right: -10px;
    }
    .site-footer {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .usage-page .page-header h1 {
        font-size: 1.8rem;
    }
    .usage-page .page-header p {
        font-size: 0.95rem;
    }
    .usage-page .page-header::before {
        background-size: 100px;
        background-position: center 10px;
    }
    .section-title {
        font-size: 1.6rem;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    .step-card i, .service-card i, .tip-card i {
        font-size: 2.5rem;
    }
    .service-card i {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    .step-number {
        font-size: 3rem;
        top: -5px;
        right: -5px;
    }
}


/* تنسيقات خاصة بصفحة "عن الموقع" */
.page-content.about-page-content {
    padding-top: 80px; /* مسافة للنافبار العلوي */
    padding-bottom: 50px;
}

.section-container {
    max-width: 1200px;
    margin: 60px auto; /* مسافة بين الأقسام */
    padding: 0 20px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.7;
}

/* الأزرار العامة المستخدمة في هذه الصفحة */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.primary-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

.secondary-btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Hero Section Styles */
.hero-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 80px 70px;
    text-align: center;
    border-radius: 20px;
    max-width: 800px;
    position: relative;
    opacity: 0; /* يبدأ مخفياً */
    transform: translateY(20px); /* يبدأ من الأسفل قليلاً */
    animation: fadeInSlideUp 1s ease-out forwards; /* تطبيق الرسوم المتحركة */
    animation-delay: 0.4s; /* تأخير بسيط لبدء الرسوم المتحركة بعد تحميل الصفحة */
}

.hero-content {
    max-width: 600px;
    margin-top: -20px;
    margin-bottom: 20px;
}

.hero-section h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-section p {
    color: var(--text-color);
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 600px;
}

/* تعريف الرسوم المتحركة الجديدة */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* تنسيقات البطاقات العامة */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* لجعل التدرج يظهر على الأيقونة */
}

.card h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.7;
}

/* قسم الرؤية والرسالة */
.vision-mission-grid .card {
    padding: 40px;
}

/* قسم الخدمات (الجديد) */
.services-overview-section {
    background-color: var(--light-wahit); /* خلفية مميزة للخدمات */
    padding-top: 80px;
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card-v2 {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card-v2 .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.service-card-v2 .icon-wrapper i {
    font-size: 2.5rem;
    color: var(--white-color);
}

.service-card-v2 h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card-v2 p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.7;
    flex-grow: 1; /* لجعل الفقرة تأخذ المساحة المتاحة قبل القائمة */
    margin-bottom: 20px;
}

.service-details {
    list-style: none;
    padding: 0;
    margin-top: auto; /* لضمان أن القائمة تبدأ من الأسفل */
}

.service-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-details li i {
    color: var(--primary-color); /* لون الأيقونة */
    font-size: 1.1rem;
}

/* قسم لماذا نحن؟ */
.why-us-section {
    background-color: var(--white-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

.feature-card-v2 {
    background-color: var(--light-wahit); /* خلفية خضراء فاتحة للبطاقات */
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.1); /* ظل خفيف بلون رئيسي */
    text-align: center;
}

.feature-card-v2 .card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card-v2 h3 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.feature-card-v2 p {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
}

.section-title{
    margin-top: 50px;
    padding-top: 60px;
}

/* قسم لمن صيرفي شبوة؟ */
.audience-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 70px;
}

.audience-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-8px);
}

.audience-card i {
    font-size: 3.2rem;
    color:  #3a9adb; 
    margin-bottom: 15px;
}

.audience-card h3 {
    font-size: 1.7rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.audience-card p {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
}

/* التنسيقات المتجاوبة (Responsive Design) الخاصة بهذه الأقسام */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    .cards-grid, .services-grid, .why-us-grid, .audience-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-container {
        margin: 40px auto;
        padding: 0 15px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .card, .service-card-v2, .feature-card-v2, .audience-card {
        padding: 25px;
    }
    .card h3, .service-card-v2 h3, .feature-card-v2 h3, .audience-card h3 {
        font-size: 1.5rem;
    }

    .call-to-action-section {
        padding: 50px 15px;
    }
    .call-to-action-section .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .card h3, .service-card-v2 h3, .feature-card-v2 h3, .audience-card h3 {
        font-size: 1.3rem;
    }
}

/* التذييل */
.site-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* تصميم موحد للقوائم مع تأثير الزجاج العصري */
:root {
    --glass-background: rgba(255, 255, 255, 0.1);
    --glass-blur: 15px;
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

/* نمط موحد للقوائم */ 
.bottom-navbar, 
.footer-menu {
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur)); /* دعم المتصفحات القديمة */
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px var(--glass-shadow);
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* تأثير التحويم */ 
.bottom-navbar:hover, 
.footer-menu:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 8px var(--glass-shadow);
}

/* تنسيق العناصر داخل القوائم */
.navbar *, 
.top-navbar *, 
.sidebar *, 
.side-menu *, 
.bottom-navbar *, 
.footer-menu * {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* تأثير الشفافية التدريجية */
.glass-menu {
    background: linear-gradient(
        135deg, 
        var(--glass-background) 0%, 
        var(--glass-background) 100%
    );
    overflow: hidden;
}

/* تنسيق الراعي الرسمي في الصفحة الرئيسية */
.section-header h2 {
    color: #3a9adb;
    font-size: 2.1rem;
    padding-right: 7px;
    padding-top: -20px; /* هذا قد يسبب مشاكل في التخطيط، قد تحتاج لضبطه */
    padding-bottom: 25px;
}

.golden-sponsor-featured {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.golden-sponsor-featured:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* تأثير اللمعان */
.golden-sponsor-featured::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -35%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.322),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.golden-sponsor-featured:hover::before {
    opacity: 1;
    transform: translate(25%, -25%) rotate(45deg);
}

.golden-sponsor-highlight {
    background-color: #fafafa;
    padding: 1.4rem;
    border-radius: 15px;
    text-align: center;
    margin: 25px;
    /* إضافة خصائص flexbox لجعل المحتوى داخله متجاوبًا */
    display: flex;
    flex-direction: column; /* العناصر تكون عمودية بشكل افتراضي */
    align-items: center;
    justify-content: center;
}

.golden-sponsor-details {
    display: flex; /* استخدام العرض المرن */
    align-items: center; /* محاذاة العناصر رأسياً */
    justify-content: center; /* محاذاة العناصر أفقياً */
    gap: 1.9rem; /* مسافة بين العناصر */
    max-width: 800px; /* الحد الأقصى للعرض */
    margin: 0 auto; /* توسيط القسم */
    flex-wrap: wrap; /* السماح للعناصر بالانتقال إلى سطر جديد */
}

.golden-sponsor-logo {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.golden-sponsor-info {
    text-align: right;
    /* السماح للمعلومات بأخذ المساحة المتاحة وتعديل المحاذاة على الجوال */
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
}

.golden-sponsor-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.sponsor-actions {
    margin-top: 0.5rem;
    /* إضافة flexbox للأزرار لتكون أفقية أو عمودية حسب الحاجة */
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap; /* السماح للأزرار بالانتقال إلى سطر جديد */
}

/* ------------------------------------------- */
/* Media Queries للتصميم المتجاوب */
/* ------------------------------------------- */

/* شاشات الجوال الصغيرة (أقل من 768 بكسل عرض) */
@media screen and (max-width: 750px) {
    .section-header h2 {
        font-size: 1.4rem; /* تصغير حجم العنوان على الجوال */
        text-align: center; /* توسيط العنوان */
        padding-right: 0; /* إزالة البادينج اليمين */
        padding-top: 15px; /* ضبط البادينج العلوي */
        padding-bottom: 15px;
    }

    .golden-sponsor-highlight {
        margin: 15px; /* تقليل الهامش على الجوال */
        padding: 1rem; /* تقليل البادينج الداخلي */
    }

    .golden-sponsor-details {
        flex-direction: column; /* جعل الشعار والمعلومات تظهر فوق بعضها البعض */
        gap: 1.4rem; /* تقليل المسافة بين العناصر */
    }

    .golden-sponsor-logo {
        max-width: 140px; /* تصغير حجم الشعار على الجوال */
    }

    .golden-sponsor-info {
        text-align: center; /* توسيط النص على الجوال */
    }

    .golden-sponsor-info h3 {
        font-size: 1rem; /* تصغير حجم عنوان الراعي */
    }

    .sponsor-actions {
        flex-direction: column; /* جعل الأزرار تظهر تحت بعضها البعض */
        gap: 8px; /* تقليل المسافة بين الأزرار */
    }
    
    .sponsor-actions .button-class { /* إذا كان لديك كلاس للأزرار، اضبط عرضها */
        width: 100%; /* اجعل الأزرار تأخذ عرض 100% */
        box-sizing: border-box; /* لضمان عدم تجاوز العرض بسبب البادينج */
    }
}

/* شاشات التابلت (من 768 بكسل إلى 1024 بكسل عرض) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .section-header h2 {
        font-size: 2rem;
        padding-top: 0px;
        padding-bottom: 20px;
    }

    .golden-sponsor-highlight {
        margin: 20px;
        padding: 1.2rem;
    }

    .golden-sponsor-details {
        /* قد تظل أفقية أو تتغير حسب الرغبة */
        flex-direction: row; /* افتراضيًا أفقية */
        justify-content: space-around; /* توزيع المساحة */
    }

    .golden-sponsor-logo {
        max-width: 180px;
    }

    .golden-sponsor-info {
        text-align: right;
    }
}

/* تنسيق صفحة الاتصال */
.contact-title {
    text-align: center;
    color: #51575d;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background: #fcfcfcef;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 10px;
}

.contact-label {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: #0056b3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* عنوان الصفحة */
header h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    /* لا يوجد margin-top هنا لأن الشعار سيتولى المساحة العلوية */
    margin-bottom: 2rem;
    font-weight: bold;
    margin-top: 2.5rem;
}

/* الشريط العلوي - لا تغيير هنا لكي لا يؤثر على باقي الموقع */
.top-navbar {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* هذا قد يكون justify-content: space-between; أو flex-start; حسب تصميم النافبار الأصلي */
    align-items: center;
    padding: 0 1rem;
}

.nav-logo-link {
    /* سيبقى هذا لتحديد الشعار في النافبار إذا كان موجودًا في صفحات أخرى */
    display: inline-block;
}

.nav-logo {
    /* سيبقى هذا للشعار في النافبار إذا كان موجودًا في صفحات أخرى */
    max-width: 150px;
    height: auto;
}

/* تنسيق بطاقة الإعلان */
.ad-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 1.8rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease; /* تغيير الانتقال ليشمل كل الخصائص */
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.ad-card:hover {
    transform: translateY(-5px); /* زيادة تأثير الرفع */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* ظل أعمق عند التمرير */
}

/* تنسيق حاوية الصورة داخل مربع الإعلان */
.ad-image {
    width: 240px; /* تحديد عرض ثابت للحاوية */
    height: 240px; /* تحديد ارتفاع ثابت للحاوية */
    border-radius: 50%; /* لجعل الحاوية دائرية */
    overflow: hidden; /* إخفاء أي جزء من الصورة يخرج عن الحدود الدائرية */
    margin: 0 auto 1.5rem auto; /* توسيط الحاوية وإضافة مسافة سفلية */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    display: flex; /* لتوسيط الصورة بداخلها */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* إضافة انتقال */
}

/* تنسيق الصورة داخل الحاوية */
.ad-image img {
    width: 100%; /* جعل الصورة تملأ عرض الحاوية */
    height: 100%; /* جعل الصورة تملأ ارتفاع الحاوية */
    object-fit: cover; /* لملء الحاوية بالكامل مع الحفاظ على نسبة الأبعاد */
    display: block;
}

/* تأثير التمرير على الحاوية */
.ad-image:hover {
    transform: scale(1.07); /* تكبير الحاوية عند التمرير */
}

.ad-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center; /* توسيط العنوان */
}

.ad-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    text-align: center; /* توسيط الوصف */
}

/* تنسيق معلومات التواصل داخل بطاقة الإعلان */
.ad-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* توسيط الأيقونات */
    gap: 1rem; /* تقليل المسافة بين الأيقونات */
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.ad-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text-color);
    font-weight: 500;
    text-decoration: none; /* إزالة الخط السفلي من الرابط */
}

.ad-contact-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* شكل دائري للأيقونة */
    background-color: #f7f7f7; /* خلفية رمادية فاتحة */
    color: var(--secondary-highlight-color); /* لون الأيقونة الافتراضي */
    font-size: 1rem;
    transition: all 0.3s ease; /* إضافة انتقال سلس */
}

.ad-contact-item a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ad-contact-item a:hover {
    color: var(--primary-color);
}

.ad-contact-item:hover i {
    background-color: var(--primary-color); /* تغيير لون الخلفية عند التمرير */
    color: var(--white-color); /* تغيير لون الأيقونة إلى الأبيض */
}




/* الفوتر */
.site-footer {
    background-color: #343a40; /* لون خلفية الفوتر (يمكنك تغييره إذا كان لديك لون فوتر محدد) */
    color: var(--white-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* تنسيقات خاصة بصفحة "شاركنا رأيك" */
.feedback-page-content {
    padding: 60px 20px; /* مسافة علوية وسفلية للمحتوى */
    background-color: #f9f9f9; /* خلفية خفيفة للقسم الرئيسي */
    direction: rtl; /* للتأكد من الاتجاه اليمين لليسار */
}

.feedback-container {
    max-width: 700px; /* عرض أقصى للحاوية */
    margin: 0 auto; /* توسيط الحاوية */
    background-color: var(--white-color);
    border-radius: 15px; /* حواف مستديرة */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* ظل خفيف وجميل */
    padding: 40px;
    text-align: right; /* محاذاة النص لليمين */
}

.feedback-title {
    font-size: 2.5rem; /* حجم الخط أكبر للعنوان الرئيسي */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700; /* خط سميك */
    position: relative;
    padding-bottom: 10px;
}

.feedback-title::after { /* خط زخرفي تحت العنوان */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* عرض الخط */
    height: 4px; /* سماكة الخط */
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.feedback-description {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* تنسيقات النموذج */
.form-group {
    margin-bottom: 25px; /* مسافة بين مجموعات الحقول */
}

.form-group label {
    display: block; /* لجعل العنوان يظهر في سطر خاص به */
    margin-bottom: 10px;
    font-weight: 600; /* خط سميك للتسميات */
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: calc(100% - 24px); /* 100% العرض ناقص البادينج */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* حواف مستديرة لحقول الإدخال */
    font-family: 'Tajawal', sans-serif; /* استخدام نفس الخط */
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none; /* إزالة الإطار الافتراضي عند التركيز */
    border-color: var(--primary-color); /* لون الحدود عند التركيز */
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.2); /* ظل خفيف حول الحقل */
}

.form-group textarea {
    resize: vertical; /* السماح بتغيير حجم مربع النص عموديًا فقط */
}

.submit-btn {
    display: block; /* لجعل الزر يأخذ عرضًا كاملاً */
    width: auto; /* ليتمدد حسب المحتوى بدلاً من 100% */
    min-width: 200px;
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); /* تدرج لوني مطابق للهيدر */
    color: var(--white-color);
    border: none;
    border-radius: 10px; /* حواف مستديرة للزر */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 30px auto 0; /* توسيط الزر أفقياً */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* ظل للزر */
}

.submit-btn:hover {
    transform: translateY(-3px); /* تأثير رفع خفيف عند التحويم */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* ظل أقوى عند التحويم */
}

/* رسالة النجاح */
.success-message {
    text-align: center;
    color: var(--secondary-color); /* لون أخضر للنجاح */
    background-color: #e6ffe6; /* خلفية خضراء فاتحة */
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* مسافة بين الأيقونة والنص */
}

.success-message i {
    font-size: 1.5rem;
}

.copyright {
    text-align: center; /* هذه الخاصية ستقوم بتوسيط النص */
 
}

/* تنسيقات استجابة للشاشات الصغيرة (Responsive Design) */
@media (max-width: 768px) {
    .feedback-container {
        padding: 25px;
        margin: 20px auto;
    }

    .feedback-title {
        font-size: 2rem;
    }

    .feedback-description {
        font-size: 1rem;
    }

    .submit-btn {
        min-width: 150px;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .feedback-page-content {
        padding: 30px 15px;
    }

    .feedback-container {
        padding: 20px;
        border-radius: 10px;
    }

    .feedback-title {
        font-size: 1.8rem;
    }

    .feedback-description {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
}


/* إعدادات عامة وألوان */
:root {
    --primary-color: #3a9adb;
    --secondary-color: #bce21a;
    --text-color: #2c3e50;
    --background-color: #ffffff;
    --white-color: #ffffff;
    --transition-speed: 0.3s;
    --border-color: #e0e0e0; /* أضف هذا السطر أو تأكد من وجوده */
}

/* تنسيق صفحة الرعاة */
/* --- هيكل الصفحة العام والعناوين --- */
.sponsors-page-container {
    max-width: 1200px;
    margin: 40px auto; /* تمت إضافة هامش علوي/سفلي أكبر لتباعد أفضل */
    padding: 2rem;
}

.section-heading {
    text-align: center;
    color: var(--primary-color); /* يستخدم لونك الأزرق الأساسي */
    font-size: 2.2rem; /* أكبر قليلاً لعناوين الأقسام */
    font-weight: 700;
    margin-bottom: 2rem; /* مساحة أكبر أسفل العناوين */
    position: relative;
    padding-bottom: 10px;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* خط سفلي للعناوين */
    height: 4px;
    background-color: var(--secondary-color); /* يستخدم لونك الثانوي الأخضر/الأصفر */
    border-radius: 2px;
}

/* --- تصميم بطاقة الراعي الأساسي --- */
.sponsor-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* تقليل الظل وجعله أنعم */
    padding: 1.5rem; /* زيادة المسافة الداخلية */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* تقليل المسافة بين العناصر لتبدو أكثر إحكامًا */
    transition: all 0.3s ease; /* انتقالات سلسة لتأثيرات التحويم */
    min-height: 350px; /* ضمان ارتفاع ثابت للبطاقة */
}

.sponsor-card:hover {
    transform: translateY(-5px); /* تقليل تأثير الرفع عند التحويم */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* تقليل الظل عند التحويم */
}

.sponsor-card img {
    max-width: 180px; /* شعارات أكبر قليلاً */
    height: auto;
    border-radius: 10px;
    margin-bottom: 0; /* تم إزالة الهامش الإضافي، المسافة الآن يتم التحكم بها بواسطة gap */
    border: 2px solid var(--border-color); /* حدود خفيفة حول الصور */
    padding: 5px; /* مسافة داخلية صغيرة داخل حدود الصورة */
}


.sponsor-card h3 {
    font-size: 1.8rem; /* اسم الراعي أكبر */
    color: #3a9adb;
    margin-bottom: 0.5rem; /* تقليل المسافة أسفل العنوان */
    font-weight: 700;
}

.sponsor-card p {
    font-size: 1rem;
    color: #343a40; /* تم تغيير لون النص الفرعي ليطابق المتغير العام */
    line-height: 1.6;
    margin-bottom: 0; /* تم إزالة الهامش الإضافي، المسافة الآن يتم التحكم بها بواسطة gap */
    flex-grow: 1; /* يسمح للفقرة بأخذ المساحة المتاحة */
}

/* --- تصميم خاص بالراعي الرسمي --- */
.official-sponsor-section {
    margin-bottom: 4rem; /* مسافة أسفل قسم الراعي الرسمي */
}

.official-sponsor-card {
    max-width: 700px; /* بطاقة أوسع للراعي الرسمي */
    background-color: white;/* نص أبيض للتباين */
    margin: 0 auto; /* توسيط بطاقة الراعي الرسمي */
    padding: 3rem;
    position: relative;
    overflow: hidden; /* لتأثير التوهج الخفي */
}

.official-sponsor-card::before {
    content: 'الراعي الرسمي'; /* نص الشارة */
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1;
    transform: rotate(5deg);
}

.official-sponsor-card h3 {
  color: #3a9adb ;
}

.official-sponsor-card p {
    color: #393E46 ; 
}

.official-sponsor-card img {
    border-color: var(--white-color); /* حدود بيضاء للشعار */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* ظل أقوى لشعار الراعي الرسمي */
}

/* تم إزالة هذا الجزء لتوحيد تنسيق روابط التواصل الاجتماعي */
/*
.official-sponsor-card .social-link {
    color: #3a9adb ; 
    border: 1px solid rgba(255, 255, 255, 0.6); 
    background-color: rgba(255, 255, 255, 0); 
}

.official-sponsor-card .social-link:hover {
    background-color: rgba(255, 255, 255, 0.25); 
    background-color: #3a9adb ;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
*/

/* --- شبكة الرعاة المشاركين --- */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* تم تعديل minmax لتخطيط أفضل */
    gap: 2.5rem; /* تم تقليل المسافة لتباعد أفضل في الشبكة */
    margin-top: 2rem; /* مسافة من عنوان القسم */
}

.participating-sponsor-card {
    border: 1px solid var(--border-color); /* حدود أفتح للرعاة المشاركين */
}

/* --- تصميم روابط التواصل الاجتماعي --- */
.sponsor-social-links {
    display: flex;
    flex-wrap: wrap; /* السماح للروابط بالالتفاف على الشاشات الأصغر */
    justify-content: center;
    gap: 0.8rem; /* تباعد أقرب لروابط التواصل الاجتماعي */
    margin-top: auto; /* دفع روابط التواصل الاجتماعي إلى أسفل البطاقة */
    width: 100%; /* ضمان أن الروابط تأخذ عرضًا كاملاً للتوسيط */
    padding-top: 1rem; /* مسافة من الفقرة العلوية */
}

.social-link {
    text-decoration: none;
    color: #3a9adb ; /* يستخدم اللون الأساسي للروابط */
    font-weight: 600;
    padding: 8px 15px; /* زيادة المسافة الداخلية لسهولة النقر */
    border-radius: 8px; /* حواف أكثر دائرية */
    transition: all 0.3s ease;
    background-color: rgba(58, 154, 219, 0.08); /* خلفية فاتحة للروابط */
    display: flex; /* لعرض الأيقونة والنص جنباً إلى جنب */
    align-items: center;
    gap: 0.5rem; /* مسافة بين الأيقونة والنص */
    min-width: 120px; /* لتحديد عرض أدنى لجعل الأزرار متساوية */
    justify-content: center; /* لتوسيط المحتوى داخل الزر */
    border: 1px solid var(--primary-color); /* حدود للروابط */
}

.social-link:hover {
    background-color: #3a9adb ;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color); /* تأكد من تغير لون الحدود عند التحويم */
}

/* --- تعديلات الاستجابة (Responsive) --- */
@media (max-width: 768px) {
    .section-heading {
        font-size: 1.8rem;
    }
    .sponsor-card {
        padding: 1.5rem;
    }
    .official-sponsor-card {
        padding: 2rem;
    }
    .official-sponsor-card::before {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sponsors-page-container {
        padding: 1rem;
    }
    .sponsor-card {
        min-height: auto; /* السماح للارتفاع بالتكيف على الشاشات الصغيرة جدًا */
    }
    .sponsor-card img {
        max-width: 150px;
    }
    .sponsor-card h3 {
        font-size: 1.4rem;
    }
    .sponsor-card p {
        font-size: 0.9rem;
    }
}

/* ✅ تنسيق قسم إعلانات العملاء */
.client-ads-section {
    padding: 30px 0;
    margin-bottom: 40px;
}

/* ✅ تنسيق شبكة الإعلانات - لعرض البطاقات بشكل متجاوب */
.client-ads-grid {
    display: grid;
    /* تحديد الأعمدة: عرض 3 بطاقات على الشاشات الكبيرة، بطاقتين على المتوسطة، وواحدة على الصغيرة */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ✅ تنسيق بطاقة الإعلان الفردية */
.client-ad-card {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* إزالة خط الرابط */
    background-color: var(--white-color, #ffffff);
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(58, 154, 219, 0.15); /* إطار أزرق خفيف */
    overflow: hidden;
    height: 100%; /* لضمان ارتفاع متساوٍ للبطاقات في الشبكة */
}

.client-ad-card:hover {
    transform: translateY(-7px); /* تأثير تفاعلي ملفت */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.client-ad-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color, #3a9adb); /* لون أزرق لعنوان الإعلان */
    margin-top: 0;
    margin-bottom: 8px;
    padding: 0 20px;
}

.ad-image-wrapper {
    overflow: hidden;
    height: 200px; /* ارتفاع ثابت للصورة */
    width: 100%;
    margin-bottom: 15px;
}

.ad-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشوه */
    transition: transform 0.5s ease;
}

.client-ad-card:hover .ad-thumbnail {
    transform: scale(1.05); /* تكبير الصورة قليلاً عند التفاعل */
}

.ad-info {
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* لضمان أن المعلومات تملأ المساحة المتبقية */
}

.ad-description-short {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* ✅ تفاصيل (الموقع، السعر) */
.ad-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.ad-location {
    font-size: 0.9rem;
    color: #6c757d;
}

.ad-location i {
    color: #f00; /* لون أحمر لأيقونة الموقع */
    margin-left: 5px;
}

.ad-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #28a745; /* لون أخضر للسعر لجعله بارزاً */
    background-color: #e2ffed;
    padding: 5px 10px;
    border-radius: 8px;
}

.ad-contact-info-preview {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}


/* ✅ فلاتر التصنيفات وزر النشر */
.ad-categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.category-link {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    background-color: var(--primary-color, #3a9adb);
    color: var(--white-color, #ffffff);
}

/* ==================================== */
/* 1. متغيرات الألوان (مهم لتوحيد التصميم) */
/* ==================================== */


/* ==================================== */
/* 2. تنسيق الصفحة الرئيسية والحاويات */
/* ==================================== */
.ad-publish-page {
    max-width: 900px; 
    margin: 40px auto; 
    padding: 30px;
    background-color: var(--white-color, #ffffff); 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-main-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.4rem;
    border-bottom: 2px solid rgba(85, 197, 122, 0.3);
    padding-bottom: 15px;
}

/* ==================================== */
/* 3. تنسيق النموذج والحقول (Form Styling) */
/* ==================================== */
#ad-submission-form h3 {
    border-right: 5px solid var(--primary-color);
    padding-right: 15px;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.input-group input[type="text"],
.input-group input[type="file"],
.input-group input[type="number"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fcfcfc;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(85, 197, 122, 0.2);
    outline: none;
}

/* التباعد بين الزر والحاسبة (مطلبك) */
.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 50px; /* ✅ مسافة كبيرة للفصل عن الحاسبة */
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
}
.submit-btn:hover {
    background-color: #47a869; /* درجة أغمق عند التفاعل */
}

/* ==================================== */
/* 4. تنسيق حاسبة العمولة والتحذير */
/* ==================================== */

.commission-calculator-card {
    background: linear-gradient(135deg, var(--main-lime-color) 0%, var(--main-green-color) 100%); /* خلفية متدرجة لجذب الانتباه */
    color: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.commission-calculator-card h3 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.commission-calculator-card .input-group input {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.result-section {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 20px;
}

.result-section label {
    font-weight: 700;
    color: white;
}

.result-display {
    font-size: 2rem;
    font-weight: 900;
    color: #007bff; /* لون أزرق بارز للعرض */
    background-color: white;
    padding: 8px 15px;
    border-radius: 8px;
}

.publish-ad-warning.commission-alert {
    /* الخصائص الأساسية */
    background: linear-gradient(135deg, #f0fff0, #e6ffe6); /* خلفية خفيفة جداً مائلة للأخضر */
    border: 2px solid var(--primary-color); /* إطار أخضر لجعله ملفتاً */
    padding: 20px 25px;
    border-radius: 15px;
    margin-top: 10px; /* مسافة بسيطة تحت العنوان */
    margin-bottom: 40px; /* مسافة تفصلها عن النموذج */
    color: #333;
    line-height: 1.6;
    
    /* الانتقال المبهج */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* تأثير عند مرور مؤشر الفأرة (لجعله مبهجاً وجذاباً) */
.publish-ad-warning.commission-alert:hover {
    transform: translateY(-5px) scale(1.01); /* حركة رفع وتكبير طفيفة */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* ظل واضح لإبراز الحركة */
    border-color: var(--main-lime-color); /* تغيير لون الإطار للون الليموني */
}

.commission-alert .bold-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color); /* العنوان باللون الأخضر الأساسي */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.commission-alert .bold-title i {
    margin-left: 10px;
    font-size: 1.3em;
    color: #ff9800; /* لون برتقالي للأيقونة لجذب الانتباه */
}

.commission-alert .commission-text {
    font-size: 1.05rem;
}

.commission-alert .commission-rate {
    font-weight: bold;
    font-size: 1.2em;
    color: #e91e63; /* لون مختلف (أحمر وردي) لإبراز النسبة */
    background-color: #ffe0f0;
    padding: 2px 8px;
    border-radius: 5px;
}


.publish-ad-button {
    display: inline-block; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1.05rem; 
    padding: 12px 25px; 
    border-radius: 30px; 
    background-color: var(--primary-color); 
    color: var(--white-color);
    border: 2px solid var(--primary-color); 
    transition: all 0.2s ease; 
}

.publish-ad-button:hover {
    background-color: var(--main-lime-color); /* ✅ اللون الأخضر الفاتح (الليموني) */
    color: #3a9adb; /* تغيير لون النص للأسود أو الرمادي ليبرز على الخلفية الفاتحة */
    border-color: var(--main-lime-color);
    transform: translateY(-1px); /* رفع خفيف لإعطاء تأثير النقر */
}

/* ==================================== */
/* 1. تنسيق صفحة تفاصيل الإعلان (SINGLE) */
/* ==================================== */
.ad-detail-page {
    padding: 40px 0;
    max-width: 1200px;
}

.ad-header-info {
    text-align: right;
    border-right: 5px solid var(--primary-color);
    padding-right: 20px;
    margin-bottom: 30px;
}

.ad-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
}

.ad-category-display {
    font-size: 1rem;
    color: #888;
}

.ad-category-display span {
    font-weight: bold;
    color: var(--primary-color);
}

/* ==================================== */
/* 2. تخطيط الشبكة المتجاوب (Grid Layout) */
/* ==================================== */
.ad-content-grid {
    display: grid;
    grid-template-columns: 1fr; /* عمود واحد على الشاشات الصغيرة */
    gap: 40px;
}

@media (min-width: 992px) {
    .ad-content-grid {
        /* عمودان: 3/4 للمحتوى الرئيسي و 1/4 للجانبي */
        grid-template-columns: 3fr 1fr; 
    }
}

.ad-featured-image-wrapper {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ad-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================== */
/* 3. تنسيق العمود الجانبي (Meta Data) */
/* ==================================== */
.ad-sidebar-meta {
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 15px;
    height: fit-content; /* ليأخذ فقط الارتفاع اللازم */
}

.meta-card {
    padding: 15px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 15px;
}
.meta-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.meta-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.meta-value-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.price-card .price-value {
    color: #28a745; /* لون أخضر للسعر */
    font-size: 1.5rem;
}

/* ==================================== */
/* 4. تنسيق الوصف والتفاصيل */
/* ==================================== */
.ad-description-box h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--main-lime-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.ad-description-box p {
    line-height: 1.7;
    font-size: 1rem;
    color: #555;
}

/* ==================================== */
/* 5. زر التواصل (WhatsApp) */
/* ==================================== */
.contact-action-area {
    margin-top: 30px;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* لون واتساب */
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-button i {
    margin-left: 10px;
    font-size: 1.3em;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* ==================================== */
/* تنسيق شبكة الإعلانات (GRID) */
/* ==================================== */
.client-ads-grid {
    display: grid;
    /* تخطيط متجاوب: 1 عمود على الجوال، 2 على التابلت، 3 على سطح المكتب */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
}

/* ==================================== */
/* تنسيق بطاقة الإعلان الواحدة */
/* ==================================== */
.client-ad-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.ad-image-wrapper {
    height: 200px; /* ارتفاع ثابت للصورة */
    overflow: hidden;
}

.ad-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشوه */
    transition: transform 0.5s ease;
}

.client-ad-card:hover .ad-thumbnail {
    transform: scale(1.05); /* تكبير طفيف للصورة عند التفاعل */
}

.ad-info {
    padding: 15px;
}

.ad-info h3 {
    font-size: 1.3rem;
    color: var(--text-color, #333);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* إضافة نقاط إذا كان العنوان طويلاً */
}

.ad-description-short {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 15px;
    min-height: 40px;
    overflow: hidden;
}

.ad-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.ad-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #55c57a); /* اللون الأخضر */
}

.ad-location {
    font-size: 0.9rem;
    color: #999;
}
.ad-location i {
    margin-left: 5px;
}

/* تنسيق فلاتر الفئات */
.ad-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    align-items: center;
}

.category-link, .all-categories-link {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover, .all-categories-link:hover {
    background-color: var(--main-lime-color, #a0f03d);
    color: var(--text-color, #333);
}

.publish-ad-button {
    /* للحفاظ على زر النشر في نفس السطر */
    margin-right: auto;
}

/* Client Deals Section Styles */
.client-deals-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.deal-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
}

.deal-categories-filter .category-link,
.publish-deal-button {
    background-color: #f0f0f0;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.deal-categories-filter .category-link:hover,
.publish-deal-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.deal-categories-filter .category-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.client-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.client-deal-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.deal-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.deal-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-deal-card:hover .deal-thumbnail {
    transform: scale(1.05);
}

.deal-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.deal-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.deal-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom */
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.deal-location,
.deal-price {
    font-size: 0.9rem;
    color: #777;
}

.deal-price {
    font-weight: bold;
    color: var(--secondary-color);
}

.deal-location i,
.deal-price i {
    margin-left: 5px;
    color: var(--primary-color);
}

/* Single Deal Page Styles */
.single-deal-page .deal-detail-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.single-deal-page .entry-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-deal-page .entry-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.single-deal-page .deal-category-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.single-deal-page .deal-image-full {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.single-deal-page .deal-image-full img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full image */
}

.single-deal-page .deal-meta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.05);
}

.single-deal-page .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 10px;
}

.single-deal-page .meta-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.single-deal-page .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

/* Publish Deal Page Styles */
.publish-deal-page {
    padding: 40px 20px;
    max-width: 700px;
    margin: 40px auto;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.publish-deal-page .section-main-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.commission-notice {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    border: 1px solid;
}

.commission-calculator-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.commission-calculator-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.commission-calculator-section .calculator-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.commission-calculator-section .input-group label {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.commission-calculator-section .input-group input[type="number"],
.commission-calculator-section .input-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #495057;
    background-color: #e9ecef;
    text-align: right;
}

.publish-deal-form .input-group {
    margin-bottom: 20px;
}

.publish-deal-form label {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.publish-deal-form input[type="text"],
.publish-deal-form input[type="number"],
.publish-deal-form input[type="file"],
.publish-deal-form textarea,
.publish-deal-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
}

.publish-deal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.publish-deal-form input:focus,
.publish-deal-form textarea:focus,
.publish-deal-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 154, 219, 0.25);
    outline: none;
}

.submit-deal-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-deal-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.deal-submission-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.deal-submission-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.deal-submission-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}



/* Archive Deals Page Styles */
.archive-deals-page .section-main-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.archive-deals-page .ad-categories-filter {
    margin-bottom: 40px;
}

.archive-deals-page .client-deals-grid {
    margin-bottom: 40px;
}

.no-deals-message {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    padding: 50px 0;
    grid-column: 1 / -1; /* Center the message in the grid */
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 60px;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    font-weight: bold;
}

.pagination .prev,
.pagination .next {
    background-color: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #e0e0e0;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .client-deals-grid {
        grid-template-columns: 1fr;
    }

    .single-deal-page .entry-title {
        font-size: 1.8rem;
    }

    .single-deal-page .deal-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-deal-page .meta-item {
        margin: 5px 0;
    }

    .publish-deal-page {
        padding: 20px 15px;
    }

    .publish-deal-page .section-main-title {
        font-size: 1.8rem;
    }

    .commission-calculator-section .calculator-inputs {
        grid-template-columns: 1fr;
    }

    .publish-deal-button-header {
        margin-right: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}



/* --- Client Deals Section Styles --- */
.client-ads-section {
    padding: 20px 0;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.client-ads-section .section-main-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2.2em;
    position: relative;
    padding-bottom: 10px;
}

.client-ads-section .section-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-green);
    border-radius: 5px;
}

.ad-categories-filter {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ad-categories-filter .category-link {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--light-gray);
    color: var(--medium-text);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.ad-categories-filter .category-link:hover,
.ad-categories-filter .category-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.client-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.client-deal-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.client-deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.deal-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.deal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-deal-card:hover .deal-image-wrapper img {
    transform: scale(1.05);
}

.deal-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.deal-info h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.deal-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.deal-meta-details span {
    font-size: 0.95em;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.deal-meta-details span i {
    margin-left: 5px;
    color: var(--accent-green);
}

.deal-price {
    font-weight: bold;
    color: var(--accent-green) !important;
    font-size: 1.1em !important;
}

/* Single Deal Page Styles */
.single-client_deal .deal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.single-client_deal .deal-header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.single-client_deal .deal-header .deal-category-link {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.single-client_deal .deal-header .deal-category-link:hover {
    background-color: darken(var(--accent-green), 10%);
}

.deal-content-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.deal-image-gallery {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.deal-image-gallery img {
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.deal-meta-info {
    flex: 1;
    min-width: 280px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.deal-meta-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--medium-text);
    display: flex;
    align-items: center;
}

.deal-meta-info p i {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.deal-meta-info p strong {
    color: var(--primary-color);
    margin-left: 5px;
}

.deal-description-full {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.deal-description-full h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.deal-description-full p {
    line-height: 1.8;
    color: var(--light-text);
    font-size: 1.05em;
}

/* Publish Deal Page Styles */
.publish-deal-page {
    padding: 30px 0;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.publish-deal-page .section-main-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2.5em;
    position: relative;
    padding-bottom: 10px;
}

.publish-deal-page .section-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-green);
    border-radius: 5px;
}

.commission-notice {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    color: #664d03;
    font-size: 1.1em;
}

.commission-notice strong {
    color: #856404;
}

.commission-calculator-section {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.commission-calculator-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.publish-deal-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.publish-deal-form .input-group {
    margin-bottom: 20px;
}

.publish-deal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--medium-text);
    font-size: 1.05em;
}

.publish-deal-form input[type="text"],
.publish-deal-form input[type="number"],
.publish-deal-form input[type="file"],
.publish-deal-form textarea,
.publish-deal-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--medium-text);
    background-color: var(--white-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.publish-deal-form input[type="text"]:focus,
.publish-deal-form input[type="number"]:focus,
.publish-deal-form input[type="file"]:focus,
.publish-deal-form textarea:focus,
.publish-deal-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

.publish-deal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.publish-deal-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%23333\' width=\'18px\' height=\'18px\'%3E%3Cpath d=\'M7 10l5 5 5-5z\'%3E%3C/path%3E%3Cpath d=\'M0 0h24v24H0z\' fill=\'none\'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    padding-left: 35px;
}

.submit-deal-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.submit-deal-button:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.deal-submission-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center;
}

.deal-submission-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.deal-submission-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* New button style for homepage publish deal */
.homepage-publish-deal-button {
    display: block;
    width: fit-content;
    margin: 20px auto 30px auto; /* Center the button and add margin */
    padding: 12px 30px;
    background-color: var(--accent-green); /* Use a prominent color */
    color: var(--white-color);
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2);
}

.homepage-publish-deal-button:hover {
    background-color: darken(var(--accent-green), 10%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 128, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-ads-grid {
        grid-template-columns: 1fr;
    }

    .deal-content-body {
        flex-direction: column;
    }

    .deal-image-gallery img {
        height: 200px;
    }

    .publish-deal-page .section-main-title {
        font-size: 2em;
    }

    .commission-calculator-section h2 {
        font-size: 1.5em;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }
}



/* تحسين تنسيق زر "انشر صفقتك الآن" في الصفحة الرئيسية */
.homepage-publish-deal-button {
    display: inline-block; /* لتمكين الهوامش والتوسيط بشكل أفضل */
    width: auto; /* السماح للعرض بالتكيف مع المحتوى */
    min-width: 200px; /* حد أدنى للعرض */
    margin: 30px auto 50px auto; /* توسيط الزر وإضافة مسافات */
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 50px; /* شكل بيضاوي جذاب */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative; /* لتأثيرات إضافية */
    overflow: hidden; /* لإخفاء أي عناصر تتجاوز حدود الزر */
}

.homepage-publish-deal-button::before {
    content: ">>>"; /* سهم أو أيقونة جذابة */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.homepage-publish-deal-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    padding-left: 45px; /* زيادة الحشوة لليسار لإفساح المجال للسهم */
}

.homepage-publish-deal-button:hover::before {
    opacity: 1;
    left: 10px;
}

/* إزالة أي أنماط قديمة لزر النشر إذا كانت موجودة */
.publish-ad-button {
    display: none; /* إخفاء الزر القديم إذا كان لا يزال موجودًا */
}



_DEAL_GALLERY_STYLES_CONTENT_


/* --- General Deal Listing Styles (archive-client_deal.php & index.php) --- */
.client-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive horizontal display */
    gap: 25px;
    margin-top: 30px;
}

.client-ad-card, .client-deal-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-ad-card:hover, .client-deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.ad-info, .deal-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-info h3, .deal-info h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.ad-meta-details, .deal-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.95em;
    color: var(--medium-text);
}

.ad-meta-details span, .deal-meta-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ad-meta-details i, .deal-meta-details i {
    color: var(--secondary-color);
}

.ad-price, .deal-price {
    font-weight: bold;
    color: var(--accent-green);
    font-size: 1.1em;
}

/* --- Deal Badges Styles --- */
.deal-badge {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: var(--white-color);
    z-index: 10;
}

.featured-badge {
    background-color: #ffc107; /* Yellow for featured */
    left: 10px;
}

.verified-badge {
    background-color: #28a745; /* Green for verified */
    right: 10px;
}

/* Adjustments for ad-image-wrapper to position badges */
.client-ad-card .ad-image-wrapper, .client-deal-card .deal-image-wrapper {
    position: relative; /* Needed for absolute positioning of badges */
}

/* --- Filter/Sort Buttons Styles --- */
.ad-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.ad-categories-filter .category-link {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--white-color);
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.ad-categories-filter .category-link:hover,
.ad-categories-filter .category-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
}

.ad-categories-filter .publish-ad-button {
    margin-left: auto; /* Push publish button to the right */
    background-color: var(--accent-green);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.ad-categories-filter .publish-ad-button:hover {
    background-color: darken(var(--accent-green), 10%);
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .ad-categories-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .ad-categories-filter .category-link {
        flex-shrink: 0;
    }
    .ad-categories-filter .publish-ad-button {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
}

