/* ====================================================
   BROKER MODE - Custom Styling for Finance Broker
   ==================================================== */

/* تغيير الألوان الأساسية */
:root {
    --broker-primary: #2c6e49;    /* أخضر زيتي أنيق */
    --broker-secondary: #1b4f72;   /* أزرق هادئ */
    --broker-dark: #1a2a3a;        /* داكن ناعم */
    --broker-light: #f4f7f9;       /* خلفية فاتحة جداً */
    --broker-gray: #5a6e8a;         /* رمادي ناعم */
    --broker-border: #e2e8f0;       /* حدود فاتحة */
}

/* تغيير لون الأزرار الرئيسية */
.btn-primary {
    background-color: var(--broker-primary) !important;
    border-color: var(--broker-primary) !important;
    border-radius: 30px !important;
    padding: 10px 28px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background-color: #1e5636 !important;
    border-color: #1e5636 !important;
    transform: translateY(-2px);
}

/* تغيير شكل البطاقات (services, projects) */
.ts-service-box,
.project-img-container {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ts-service-box:hover,
.project-img-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* تغيير زوايا الصور داخل البطاقات */
.ts-service-image-wrapper img,
.project-img-container img {
    border-radius: 16px 16px 0 0;
}

/* تغيير خلفية الأقسام البديلة */
.solid-bg {
    background: var(--broker-light) !important;
}

/* تغيير لون الروابط في القائمة */
.navbar-light .navbar-nav .nav-link {
    color: var(--broker-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--broker-primary);
}

/* تغيير شكل زر القائمة منسدلة */
.dropdown-menu {
    border-radius: 12px !important;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-menu a {
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--broker-primary);
    color: white !important;
    border-radius: 8px;
    margin: 0 5px;
}

/* تغيير شكل السلايدر */
.banner-carousel-item {
    position: relative;
}

.banner-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,42,58,0.7) 0%, rgba(26,42,58,0.4) 100%);
}

.box-slider-text {
    background: rgba(26,42,58,0.85) !important;
    backdrop-filter: blur(4px);
    border: none !important;
}

/* تغيير زوايا الفوتر */
.footer {
    border-radius: 30px 30px 0 0;
    margin-top: 50px;
}

/* تغيير شكل البطاقات في قسم الاحصائيات */
.ts-facts {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ts-facts:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

/* تغيير ألوان الإحصائيات */
.ts-facts-num {
    color: var(--broker-primary) !important;
}

/* تغيير شكل أزرار "Learn more" */
.learn-more {
    color: var(--broker-primary) !important;
    font-weight: 500;
}

.learn-more:hover {
    color: #1e5636 !important;
}

/* تغيير التباعد في الأقسام */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--broker-primary);
    border-radius: 2px;
}

/* تغيير شكل حقول النموذج */
.form-control {
    border-radius: 12px !important;
    border: 1px solid var(--broker-border);
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--broker-primary);
    box-shadow: 0 0 0 3px rgba(44,110,73,0.1);
}
/* ============================================
   تحسينات إضافية لوسيط التمويل
   ============================================ */

/* 1. تحسين شكل البطاقات (ظل وحركة أعمق) */
.ts-service-box,
.project-img-container,
.quote-item {
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.ts-service-box:hover,
.project-img-container:hover,
.quote-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
}

/* 2. تحسين شكل الأزرار (إضافة تأثير ناعم) */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* 3. خلفية الأقسام تبادلية (ناعمة) */
.ts-features,
.content,
.news {
    background: linear-gradient(135deg, #ffffff 0%, #fafcfd 100%);
}

.ts-service-area {
    background: linear-gradient(135deg, #f4f9f6 0%, #ffffff 100%);
}

/* 4. تحسين شكل الإحصائيات (سوداء شفافة مع توهج) */
.facts-area {
    background: linear-gradient(145deg, #0f1f2a 0%, #0a1520 100%);
    position: relative;
}

.facts-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c6e49, #1b4f72, #2c6e49);
}

/* 5. تحسين شكل الفوتر (تدرج أنيق) */
.footer {
    background: linear-gradient(145deg, #0d1c26 0%, #0a1520 100%) !important;
    margin-top: 60px;
}

/* 6. تحسين شريط الروابط السريعة */
.footer .container > div:first-of-type {
    background: rgba(44,110,73,0.15);
    border-bottom: 1px solid rgba(44,110,73,0.3);
}

/* 7. تحسين ظهور النموذج في صفحة الاتصال */
#generalForm,
#financeForm {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 8. تحسين أزرار التصفية (shuffle) */
.shuffle-btn-group label {
    background: var(--broker-light);
    border-radius: 30px;
    padding: 6px 18px;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.shuffle-btn-group label.active,
.shuffle-btn-group label:hover {
    background: var(--broker-primary);
    color: white;
}

/* 9. تحسين ظهور أزرار pagination */
.pagination .page-link {
    border-radius: 50% !important;
    margin: 0 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--broker-primary);
    color: white;
    transform: scale(1.05);
}

/* 10. تحسين ظهور القائمة المنسدلة على الجوال */
@media (max-width: 992px) {
    .dropdown-menu {
        background: var(--broker-dark);
    }
    .dropdown-menu a {
        color: #cbd5e1 !important;
        padding: 10px 20px;
    }
    .dropdown-menu a:hover {
        background: var(--broker-primary);
    }
}
/* إصلاح القائمة المنسدلة - خلفية داكنة ونصوص بيضاء */
.dropdown-menu {
    background-color: #0a1520 !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

.dropdown-menu a {
    color: #f0f0f0 !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
}

.dropdown-menu a:hover {
    background-color: #2c6e49 !important;
    color: white !important;
    border-radius: 8px !important;
}

.dropdown-menu a i {
    margin-right: 8px;
    color: #2c6e49;
}

.dropdown-menu a:hover i {
    color: white;
}