/* متغيرات الألوان */
:root {
    --primary-color: #004aad;
    --secondary-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gradient-primary: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark) !important;
    background-color: var(--secondary-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

/* تحسين الخطوط العربية */
body, h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, select {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* ضمان وضوح النصوص */
h1, h2, h3, h4, h5, h6 {
/*    color: white !important;
*/    font-weight: bold;
}

p, span, div {
/*    color: var(--text-dark) !important;
*/}

.text-white {
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

/* الحاوي الرئيسي */
.container-fluid {
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الهيدر والنافيجيشن */
.navbar {
    background: var(--gradient-primary) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 74, 173, 0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
}

/* ضمان تثبيت الـ navbar */
.sticky-navbar {
    position: fixed !important;
    top: 0 !important;
    transform: translateY(0) !important;
}

.navbar-brand {
    color: var(--secondary-color) !important;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #f0f8ff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.navbar-toggler {
    border: none;
    color: var(--secondary-color);
}

/* الأزرار */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
    color: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: var(--secondary-color);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--secondary-color);
}

/* الفوكس والتفاعل */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

/* المحتوى الرئيسي */
main {
    margin-top: 0;
    min-height: calc(100vh - 160px);
}

/* الهيرو سيكشن */
.hero-section {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    padding:10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.0rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* فرض لون أبيض داخل الهيرو لتناسق الألوان */
.hero-section,
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section p,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* الكاردات */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    border: none;
    padding: 1.5rem;
    font-weight: bold;
}

.card-body {
    padding: 2rem;
}

/* النماذج */
.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* الفوتر */
.footer {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    padding: 60px 0 30px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.3rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.footer ul li a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* تأثيرات إضافية للفوتر */
.footer .row > div {
    position: relative;
}

.footer .row > div::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer .row > div:last-child::before {
    display: none;
}

/* تحسين النصوص في الفوتر */
.footer .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* تأثير الأيقونات في الفوتر */
.footer i {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.footer a:hover i {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

/* تحسين معلومات الاتصال */
.footer ul.list-unstyled li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer ul.list-unstyled li:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-right: 10px;
}

/* تحسين حقوق النشر */
.footer .row.align-items-center {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.footer .row.align-items-center p,
.footer .row.align-items-center a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

/* ضمان أن جميع النصوص والأيقونات في الفوتر بيضاء */
.footer,
.footer *,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.footer p,
.footer span,
.footer div,
.footer li {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

.footer i,
.footer .fas,
.footer .fab,
.footer .far,
.footer .fal {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

.footer h5 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
}

.footer a:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* تأثيرات متقدمة للفوتر */
.footer {
    box-shadow: 0 -5px 20px rgba(0, 74, 173, 0.3);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.3) 100%);
    z-index: 3;
}

/* تحسين العناوين في الفوتر */
.footer h5 {
    position: relative;
    padding-bottom: 15px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

/* تحسين الأزرار في الفوتر */
.footer .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.footer .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* تحسين قائمة الخدمات */
.footer ul.list-unstyled li a {
    position: relative;
    padding-right: 20px;
}

.footer ul.list-unstyled li a::before {
    content: '▶';
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer ul.list-unstyled li a:hover::before {
    color: #ffffff;
    transform: translateX(-3px);
}

/* تحسين معلومات الاتصال */
.footer ul.list-unstyled li i {
    width: 20px;
    text-align: center;
    margin-left: 10px;
    font-size: 1.1rem;
}

/* تأثير الإضاءة للروابط الاجتماعية */
.social-links {
    margin-top: 20px;
}

.social-links a {
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

/* تصميم قسم عروض السياحة الجديد */
.tourism-offers-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* عنوان القسم */
.section-header {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.section-icon-wrapper {
    display: inline-block;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #004aad 0%, #0066cc 50%, #0080ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.4);
    animation: pulse 2s infinite;
}

.section-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-title {
    color: #004aad !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px !important;
    font-size: 2.5rem !important;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: #666 !important;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

/* فاصل القسم */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 35px 0;
}

.divider-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #004aad 50%, transparent 100%);
    border-radius: 3px;
    animation: shimmer 2s infinite;
}

.divider-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #004aad 0%, #0066cc 50%, #0080ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
    animation: rotate 3s linear infinite;
}

/* إضافة الأنيميشن */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* إشعارات المشاركة */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-toast {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

/* كاردات العروض الحديثة */
.modern-offer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    border: 1px solid rgba(0, 74, 173, 0.1);
}

.modern-offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 74, 173, 0.2);
}

/* صورة العرض */
.offer-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-offer-card:hover .offer-image {
    transform: scale(1.1);
}

.offer-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* تراكب الصورة */
.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.offer-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* محتوى العرض */
.offer-content {
    padding: 25px;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.offer-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    margin-left: 15px;
}

.offer-rating {
    display: flex;
    gap: 2px;
}

.offer-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.offer-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* معلومات العرض */
.offer-info {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-item i {
    width: 16px;
    text-align: center;
}

/* أزرار العمل */
.offer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-modern {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, #004aad 0%, #0066cc 50%, #0080ff 100%);
    border-color: #004aad;
    color: white;
    flex: 1;
    min-height: 45px;
}

.btn-modern.btn-outline-primary {
    border-color: #004aad;
    color: #004aad;
    background: white;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-width: 50px;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.4);
    text-decoration: none;
}

.btn-modern.btn-primary:hover {
    background: linear-gradient(135deg, #003d99 0%, #0059b8 50%, #0073e6 100%);
    color: white;
}

.btn-modern.btn-outline-primary:hover {
    background: #004aad;
    color: white;
    border-color: #004aad;
}

.btn-modern:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

/* إصلاح مشاكل الأزرار */
.btn-modern {
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn-modern:focus {
    outline: 2px solid rgba(0, 74, 173, 0.5);
    outline-offset: 2px;
}

.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* التأكد من عمل الأزرار على الأجهزة المحمولة */
@media (max-width: 768px) {
    .btn-modern {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }

    .btn-modern.btn-outline-primary {
        min-width: 48px;
        min-height: 48px;
    }
}

/* زر عرض المزيد في قسم عروض السياحة */
.btn-more-offers {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(180deg, rgba(0,74,173,0.04), rgba(0,74,173,0.02));
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 20px rgba(0,74,173,0.08);
}

.btn-more-offers i { transition: transform .25s ease; }
.btn-more-offers .fa-th-large { opacity: .9; }

.btn-more-offers:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,74,173,0.25);
}

.btn-more-offers:hover i.fa-arrow-left { transform: translateX(-4px); }

/* حجم أصغر بالموبايل */
@media (max-width: 576px) {
    .btn-more-offers { padding: 12px 22px; font-size: 0.95rem; }
}


/* تأثير الإضاءة للكارد */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 74, 173, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modern-offer-card:hover .card-glow {
    opacity: 1;
}

/* حالة عدم وجود عروض */
.no-offers-container {
    padding: 80px 20px;
}

.no-offers-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.3);
}

.no-offers-title {
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 15px;
}

.no-offers-text {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-offers-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* الخلفية المتحركة */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none; /* allow clicks to pass through */
}

/* ensure content sits above the decorative background */
.tourism-offers-section > .container {
    position: relative;
    z-index: 2;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 74, 173, 0.05);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 40%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .section-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .section-icon {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .offer-image-container {
        height: 200px;
    }

    .offer-content {
        padding: 20px;
    }

    .offer-header {
        flex-direction: column;
        gap: 10px;
    }

    .offer-title {
        margin-left: 0;
    }

    .no-offers-actions {
        flex-direction: column;
        align-items: center;
    }

    .no-offers-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* إشعارات المشاركة */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-toast {
    border: none !important;
    backdrop-filter: blur(10px);
}

/* الرسائل والتنبيهات */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

/* الجداول */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0, 74, 173, 0.05);
}

/* الباجات */
.badge {
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 500;
    right: 50% !important
}

.badge-success {
    background-color: var(--success-color);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

.badge-danger {
    background-color: var(--danger-color);
}

/* البروجرس بار */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

/* الريسبونسيف */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .hero-section {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* الأزرار العائمة */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top button {
    width: 50px;
    height: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

/* الدروب داون */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 74, 173, 0.1);
    color: var(--primary-color);
}

/* الروابط الاجتماعية */
.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary-color);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 5px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* الإحصائيات */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* الأيقونات */
.icon-box {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1);
}

/* الخدمات */
.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--secondary-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-circle i {
    font-size: 3rem;
    line-height: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card h4 {
    color: var(--primary-color) !important;
    margin: 1rem 0;
    font-weight: bold;
}

.service-card p {
    color: var(--text-dark) !important;
}

/* الشهادات */
.testimonial-card {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-card p {
    color: var(--text-dark) !important;
}

.testimonial-card h6 {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 2rem;
}

/* الأسئلة الشائعة */
.faq-item {
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 74, 173, 0.05);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    display: none;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* الأنيميشن */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تحسينات إضافية للريسبونسيف */
@media (max-width: 992px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .back-to-top {
        bottom: 75px;
        left: 15px;
    }

    .stats-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stats-number {
        font-size: 1.8rem;
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===============================
   ANIMATIONS & EFFECTS
   =============================== */

/* Global Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-animated:hover::before {
    left: 100%;
}

.btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Loading Animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Bounce Animation */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* Shake Animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Fade Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Animations */
.slide-in-down {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zoom Animations */
.zoom-in {
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(0, 74, 173, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(0, 74, 173, 0.5);
}

/* Progress Bar Animation */
.progress-bar-animated {
    animation: progressFill 2s ease-in-out;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--progress-width); }
}

/* Card Flip Animation */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

/* Gradient Text Animation */
.gradient-text {
    color: var(--primary-color) !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===============================
   TEXT VISIBILITY FIXES
   =============================== */

/* إصلاح شامل لوضوح النصوص */
* {
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
}

/* ضمان وضوح النصوص في جميع العناصر */
.card-title,
.card-text,
.stats-label,
.btn,
.nav-link,
.navbar-brand,
.alert,
.form-label,
.form-control,
.badge,
.breadcrumb-item,
.dropdown-item {
/*    color: inherit !important;
*/}

/* إصلاح النصوص البيضاء */
.text-white,
.text-white *,
.bg-primary .text-white,
.bg-primary *,
.navbar-dark .navbar-brand,
.navbar-dark .nav-link,
.btn-primary,
.btn-primary *,
.alert-primary,
.alert-primary * {
   /* color: white !important;
    -webkit-text-fill-color: white !important;*/
}

/* إصلاح النصوص الداكنة */
.text-dark,
.text-dark *,
.card-body,
.card-body *,
.service-card,
.service-card *,
.testimonial-card,
.testimonial-card * {
/*    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;*/
}

/* ضبط لون الأيقونات داخل الهيرو لتظهر باللون الأبيض */
.hero-section i,
.hero-section .fas,
.hero-section .fab {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* استثناء صناديق الأيقونات من قاعدة النص الداكن داخل كروت الخدمات */
.service-card .icon-box,
.service-card .icon-box *,
.feature-card .icon-box,
.feature-card .icon-box * {
    color: var(--secondary-color) !important;
    -webkit-text-fill-color: var(--secondary-color) !important;
}


/* ألوان الأزرار في الهيرو والشريط العلوي */
/* زر تسجيل/إنشاء حساب في الشريط العلوي */
.navbar .btn-outline-light,
.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus,
.navbar .btn-outline-light:active {
    color: #000000 !important;
    border-color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* أزرار الهيرو */
.hero-section .btn-light,
.hero-section .btn-light:hover,
.hero-section .btn-light:focus,
.hero-section .btn-light:active {
    color: var(--primary-color) !important; /* نص أزرق على زر أبيض */
    font-weight: 600;
    -webkit-text-fill-color: var(--primary-color) !important;
}

.hero-section .btn-outline-light,
.hero-section .btn-outline-light:hover,
.hero-section .btn-outline-light:focus,
.hero-section .btn-outline-light:active {
    color: #000000 !important; /* نص أبيض على خلفية متدرجة داكنة */
    border-color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* داخل أقسام ذات خلفية bg-primary */
.bg-primary .btn-outline-light,
.bg-primary .btn-outline-light:hover,
.bg-primary .btn-outline-light:focus,
.bg-primary .btn-outline-light:active {
   /* color: #ffffff !important;
    border-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;*/
}

.bg-primary .btn-light,
.bg-primary .btn-light:hover,
.bg-primary .btn-light:focus,
.bg-primary .btn-light:active {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

/* إصلاح شامل لألوان الأزرار في جميع الحالات التفاعلية */
/* الأزرار الأساسية */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* الأزرار الثانوية */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* الأزرار البيضاء */
.btn-light,
.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light.active {
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* الأزرار المحددة */
.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
/*    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;*/
}

.btn-outline-secondary,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
    color: var(--secondary-color) !important;
    -webkit-text-fill-color: var(--secondary-color) !important;
}

/* أزرار النجاح والخطر والتحذير */
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active {
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}
/* إصلاح الروابط والعناصر التفاعلية */
a,
a:hover,
a:focus,
a:active,
a:visited {
    -webkit-text-fill-color: inherit !important;
}

/* إصلاح النصوص داخل الأزرار */
.btn *,
.btn:hover *,
.btn:focus *,
.btn:active *,
.btn.active * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* قاعدة شاملة لجعل الأيقونات بيضاء في جميع الخلفيات الداكنة والزرقاء */
.hero-section i,
.hero-section .fas,
.hero-section .fab,
.hero-section .far,
.navbar i,
.navbar .fas,
.navbar .fab,
.navbar .far,
.bg-primary i,
.bg-primary .fas,
.bg-primary .fab,
.bg-primary .far,
.bg-dark i,
.bg-dark .fas,
.bg-dark .fab,
.bg-dark .far,
.footer i,
.footer .fas,
.footer .fab,
.footer .far,
section.bg-primary i,
section.bg-primary .fas,
section.bg-primary .fab,
section.bg-primary .far,
.text-white i,
.text-white .fas,
.text-white .fab,
.text-white .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* قاعدة شاملة وقوية للأيقونات البيضاء في جميع الخلفيات الزرقاء والداكنة */
[class*="bg-primary"] i,
[class*="bg-primary"] .fas,
[class*="bg-primary"] .fab,
[class*="bg-primary"] .far,
[class*="bg-dark"] i,
[class*="bg-dark"] .fas,
[class*="bg-dark"] .fab,
[class*="bg-dark"] .far,
[class*="text-white"] i,
[class*="text-white"] .fas,
[class*="text-white"] .fab,
[class*="text-white"] .far,
.primary-bg i,
.primary-bg .fas,
.primary-bg .fab,
.primary-bg .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* قاعدة إضافية للتأكد من الأيقونات البيضاء في العناصر ذات الخلفية الزرقاء */
div[style*="background-color: #"] i,
section[style*="background"] i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* قاعدة نهائية قوية جداً - تطبق على جميع الأيقونات في الخلفيات الزرقاء */
.py-5.bg-primary i,
.py-5.bg-primary .fas,
.py-5.bg-primary .fab,
.py-5.bg-primary .far,
section.py-5.bg-primary i,
section.py-5.bg-primary .fas,
section.py-5.bg-primary .fab,
section.py-5.bg-primary .far,
.bg-primary.text-white i,
.bg-primary.text-white .fas,
.bg-primary.text-white .fab,
.bg-primary.text-white .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* إعادة تأكيد للأيقونات في جميع الأقسام ذات الخلفية الزرقاء */
section.bg-primary *:not(.btn) i,
section.bg-primary *:not(.btn) .fas,
section.bg-primary *:not(.btn) .fab,
section.bg-primary *:not(.btn) .far,
.bg-primary *:not(.btn) i,
.bg-primary *:not(.btn) .fas,
.bg-primary *:not(.btn) .fab,
.bg-primary *:not(.btn) .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* تم حذف الأسطر المكسورة - القواعد أعلاه تكفي */
/* القاعدة النهائية الأقوى - تطبق على جميع الأيقونات في أي خلفية زرقاء */
body .bg-primary i,
body .bg-primary .fas,
body .bg-primary .fab,
body .bg-primary .far,
body section.bg-primary i,
body section.bg-primary .fas,
body section.bg-primary .fab,
body section.bg-primary .far,
body div.bg-primary i,
body div.bg-primary .fas,
body div.bg-primary .fab,
body div.bg-primary .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* قاعدة خاصة للنصوص البيضاء */
body .text-white i,
body .text-white .fas,
body .text-white .fab,
body .text-white .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* الأيقونات في المحتوى العادي تكون زرقاء */
i:not(.text-white):not(.bg-primary i):not(.hero-section i):not(.navbar i),
.fas:not(.text-white):not(.bg-primary .fas):not(.hero-section .fas):not(.navbar .fas),
.fab:not(.text-white):not(.bg-primary .fab):not(.hero-section .fab):not(.navbar .fab),
.far:not(.text-white):not(.bg-primary .far):not(.hero-section .far):not(.navbar .far),
.fal:not(.text-white):not(.bg-primary .fal):not(.hero-section .fal):not(.navbar .fal),
.fad:not(.text-white):not(.bg-primary .fad):not(.hero-section .fad):not(.navbar .fad) {
/*    color: var(--primary-color) !important;
*//*    -webkit-text-fill-color: var(--primary-color) !important;
*/}

/* تم حذف القاعدة العامة inherit لتجنب التعارض */
/* قواعد محددة لألوان الأيقونات في الأزرار */
.btn-primary i,
.btn-primary:hover i,
.btn-primary:focus i,
.btn-primary:active i,
.btn-secondary i,
.btn-secondary:hover i,
.btn-secondary:focus i,
.btn-secondary:active i,
.btn-success i,
.btn-success:hover i,
.btn-success:focus i,
.btn-success:active i,
.btn-danger i,
.btn-danger:hover i,
.btn-danger:focus i,
.btn-danger:active i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.btn-light i,
.btn-light:hover i,
.btn-light:focus i,
.btn-light:active i,
.btn-warning i,
.btn-warning:hover i,
.btn-warning:focus i,
.btn-warning:active i {
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

.btn-outline-primary i,
.btn-outline-primary:hover i,
.btn-outline-primary:focus i,
.btn-outline-primary:active i {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

.btn-outline-light i,
.btn-outline-light:hover i,
.btn-outline-light:focus i,
.btn-outline-light:active i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* تم دمج هذه القواعد في القاعدة الأساسية أعلاه */

/* الأيقونات في الكروت والمحتوى الأبيض زرقاء بالفعل من القاعدة الأساسية */
/* تم حذف هذه القاعدة المعقدة - القاعدة الأساسية تكفي */

/* أيقونات النجاح والخطر والتحذير تحتفظ بألوانها */
.text-success i,
.text-success .fas,
.text-danger i,
.text-danger .fas,
.text-warning i,
.text-warning .fas {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* أيقونات داخل صناديق الأيقونات في كروت الخدمات */
.service-card .icon-box i,
.service-card .icon-box .fas,
.feature-card .icon-box i,
.feature-card .icon-box .fas {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* استثناءات إضافية للأيقونات */
/* أيقونات في الجداول والنماذج */
.table i,
.table .fas,
.form-control i,
.form-control .fas,
.input-group i,
.input-group .fas {
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* أيقونات في القوائم المنسدلة */
.dropdown-menu i,
.dropdown-menu .fas,
.dropdown-item i,
.dropdown-item .fas {
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* أيقونات في التنبيهات */
.alert i,
.alert .fas {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* تم حذف هذه القواعد لتجنب التعارض - الألوان محددة أعلاه */


/* إصلاح النصوص الأساسية */
.text-primary,
.text-primary *,
.stats-number {
    /*color: rgba(255, 255, 255, 0.9) !important;*/
/*    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
*/}

/* إصلاح النصوص المكتومة */
.text-muted,
.text-muted * {
    color: var(--text-light) !important;
    -webkit-text-fill-color: var(--text-light) !important;
}
/* تحسينات للهيرو سيكشن الجديد مع الصورة المتحركة */
.hero-section .row {
    min-height: 80vh;
}

.hero-animation {
    position: relative;
    z-index: 2;
}

.hero-animation lottie-player {
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    display: block;
    border-radius: 15px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 991.98px) {
    .hero-section .row {
        min-height: auto;
    }

    .hero-animation {
        margin-bottom: 2rem;
    }

    .hero-animation lottie-player {
        max-width: 350px;
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .hero-animation lottie-player {
        max-width: 280px;
        height: 250px !important;
    }
}

/* تصميم صفحة الخدمات */
/* تنسيق الأيقونات في بوكسات الخدمات */
.icon-box {
    width: 60px !important;
    height: 60px !important;
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
*/    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.icon-box i {
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-size: 1.5rem !important;
}

/* تنسيق العناوين والنصوص في كروت الخدمات */
.card h3 {
    direction: rtl !important;
    text-align: right !important;
/*    color: var(--primary-color) !important;
*//*    -webkit-text-fill-color: var(--primary-color) !important;
*/}

/* تنسيق خاص لقسم الخدمات الرئيسية */
section.py-5 .card .d-flex {
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
}

section.py-5 .card .d-flex .icon-box {
    margin-left: 0 !important;
    margin-right: 1rem !important;
    order: 1 !important;
}

section.py-5 .card .d-flex h3 {
    order: 2 !important;
    flex: 1 !important;
    direction: rtl !important;
    text-align: right !important;
    writing-mode: horizontal-tb !important;
    unicode-bidi: bidi-override !important;
}

/* قواعد إضافية للعناوين في قسم الخدمات */
section.py-5 .card-body h3,
section.py-5 .card h3.text-primary,
section.py-5 .card .mb-0 {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif !important;
    text-direction: rtl !important;
}

/* التأكد من أن النصوص العربية تظهر بشكل صحيح */
section.py-5 .card h3:lang(ar),
section.py-5 .card h3[lang="ar"] {
    direction: rtl !important;
    text-align: right !important;
}

.card p {
    direction: rtl !important;
    text-align: right !important;

}

.card ul {
    direction: rtl !important;
    text-align: right !important;
}

.card h5 {
    direction: rtl !important;
    text-align: right !important;
/*    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;*/
}

/* تنسيق أيقونات التحقق في القوائم */
.card ul li i.fa-check {
    color: #28a745 !important;
    -webkit-text-fill-color: #28a745 !important;
    font-size: 1.1rem !important;
}

/* تنسيق معلومات التسعير */
.pricing-info {
    direction: rtl !important;
    text-align: right !important;
    background: #f8f9fa !important;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* تنسيق الأيقونات في قسم المميزات */
.card-body i.fs-2 {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

/* تأثيرات hover للبطاقات */
.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* تنسيق خاص للأيقونات في صفحة الخدمات */
section .card .icon-box i,
section .card .icon-box .fas,
section .card .icon-box .fab,
section .card .icon-box .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ضمان ظهور جميع الأيقونات في قسم المميزات */
section.bg-light .card-body i,
section.bg-light .card-body .fas,
section.bg-light .card-body .fab,
section.bg-light .card-body .far {
  /*  color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;*/
}

/* إعادة إظهار الأيقونات في جميع الأماكن - خاص بالشريط العلوي */
.navbar i,
.navbar .fas,
.navbar .fab,
.navbar .far,
.navbar .fal,
.navbar .fad,
.navbar-brand i,
.nav-link i,
.navbar-nav i,
.navbar-nav .fas,
.navbar-nav .fab,
.navbar-nav .far {
    color: #49ff00 !important;
    -webkit-text-fill-color: #49ff00 !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* أيقونات الشريط العلوي - قواعد قوية */
.navbar .floating-icon,
.navbar .nav-link .fas,
.navbar-brand .fas,
.navbar-brand i[class*="fa"],
.navbar .nav-link i[class*="fa"],
.navbar i[class^="fa-"],
header .navbar i,
header .navbar .fas,
nav.navbar i,
nav.navbar .fas {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* أيقونات البطاقات */
.card i,
.card .fas,
.card .fab,
.card .far {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* أيقونات الصناديق */
.icon-box i,
.icon-box .fas,
.icon-box .fab,
.icon-box .far {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* أيقونات الأزرار */
.btn i,
.btn .fas,
.btn .fab,
.btn .far {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-right: 5px !important;
}

/* أيقونات عامة - Font Awesome 6 */
i[class*="fa"],
.fas,
.far,
.fab,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* إعادة ضبط أي إخفاء للأيقونات */
.fas,
.far,
.fab,
.fal,
.fad {
    font-size: inherit !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    overflow: visible !important;
}

/* قاعدة شاملة قوية لجميع الأيقونات في الخلفيات الزرقاء والداكنة */
.bg-primary i,
.bg-primary .fas,
.bg-primary .fab,
.bg-primary .far,
.hero-section i,
.hero-section .fas,
.hero-section .fab,
.hero-section .far,
section.py-5.bg-primary i,
section.py-5.bg-primary .fas {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* أيقونات في المحتوى العادي (خلفية بيضاء) تكون زرقاء */
.bg-light i,

.bg-light .fas,
.bg-light .fab,
.bg-light .far,
.bg-white i,
.bg-white .fas,
.bg-white .fab,
.bg-white .far,
.card-body i:not(.icon-box i),
.card-body .fas:not(.icon-box .fas) {
/*    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;*/
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* إزالة الفاصل الأبيض بين الهيدر وقسم الهيرو على الشاشات الصغيرة والكبيرة */
/* نسحب قسم الهيرو للأعلى ليكون تحت الـ navbar مباشرة مع الحفاظ على المساحة الداخلية */
.hero-section {
    margin-top: 0px !important;   /* يزيل الفجوة الظاهرة */
    padding-top: 80px !important;   /* يمنع تداخل المحتوى مع الهيدر */
}

/* في الشاشات الصغيرة قد يزيد ارتفاع الشريط العلوي قليلًا، يمكن زيادة البادينج عند الحاجة */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 90px !important;
    }
}


/* معالجة فراغ أعلى قسم عروض السياحة (tourism-hero) أسفل الهيدر المثبت */
.tourism-hero {
    margin-top: -80px !important;   /* يسحب الهيرو للأعلى ليختفي الشريط الأبيض */
    padding-top: 80px !important;   /* يمنع تداخل المحتوى مع الهيدر */
}
@media (max-width: 576px) {
    .tourism-hero { padding-top: 90px !important; }
}
