/* --- التنسيق العام لشركة الأوسمة --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Regular.ttf') format('truetype');
}

:root {
    --primary: #1a2a6c;    /* الكحلي الأساسي */
    --secondary: #b21f1f;  /* الأحمر */
    --accent: #fdbb2d;     /* الذهبي */
    --white: #ffffff;
    --text-dark: #2c3e50;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- نظام تبديل اللغة --- */
[lang="en"] .ar-only { display: none !important; }
[lang="ar"] .en-only { display: none !important; }

/* --- الملاحة (Navigation) الرئيسية --- */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 2000;
    height: 70px;
}
.logo-container {
    display: flex;
    align-items: center; /* محاذاة النص مع وسط الصورة عمودياً */
    text-decoration: none;
    gap: 12px; /* مسافة بين الصورة والنص */
}

.main-logo {
    width: 50px; /* حجم أصغر وأنسب للـ Nav */
    height: auto;
    object-fit: contain;
    /* إضافة فلتر إذا كان اللوجو غامقاً وتريد جعله أبيض أو لامعاً */
    /* filter: drop-shadow(0px 0px 2px rgba(255,215,0,0.5)); */
}

.logo-text {
    display: flex;
    flex-direction: column; /* لجعل النقطة أو النص الفرعي تحته إذا أردت */
}

.logo-text span {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary); /* اللون الذهبي الخاص بشركة الأوسمة */
    letter-spacing: 1px;
}

/* تحسين استجابة اللوجو في الموبايل */
@media (max-width: 480px) {
    .main-logo {
        width: 40px;
    }
    .logo-text span {
        font-size: 1.1rem;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

/* الأزرار في الهيدر */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: var(--primary);
    border: none;
    padding: 6px 15px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--white);
    font-size: 0.8rem;
    transition: 0.3s;
}

.menu-icon {
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}

/* --- نظام القائمة الجانبية (Side Drawer) --- */
.nav-links {
    position: fixed;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff !important; /* خلفية بيضاء صريحة */
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    z-index: 9999 !important; /* أعلى قيمة ممكنة */
    transition: transform 0.3s ease-out;
    margin: 0;
    padding: 20px 0;
    list-style: none;
    display: flex !important;
    flex-direction: column;
}

/* التحكم بالاتجاه واللغة */
[dir="rtl"] .nav-links { right: 0; transform: translateX(105%); }
[dir="ltr"] .nav-links { left: 0; transform: translateX(-105%); }

/* الحالة النشطة (عند الفتح) */
.nav-links.active { transform: translateX(0) !important; }

.nav-links li { width: 100%; }
/* تنسيق الروابط لتبدو كتطبيق احترافي */
.nav-links li a {
    padding: 15px 25px;
    display: block;
    color: #1a2a6c;
    text-decoration: none;
    font-weight: bold;

}
.drawer-title {
    padding: 10px 25px 20px;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

[dir="ltr"] .nav-links a {
    text-align: left; /* للانجليزي */
}

/* الغطاء الشفاف الخلفي */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* تعتيم أغمق قليلاً للوضوح */
    backdrop-filter: blur(5px);
    z-index: 8888 !important; /* قيمة عالية */
    display: none;
}

.overlay.active {
    display: block;
}

/* إخفاء القائمة الجانبية في الشاشات الكبيرة (اختياري) */
/* إخفاء القائمة في وضع الحاسوب إذا كانت الشاشة كبيرة */
@media (min-width: 993px) {
    .nav-links {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        transform: none !important;
        box-shadow: none;
        padding: 0;
        background: transparent !important;
    }
    .overlay { display: none !important; }
}

/* عندما تكون الشاشة أكبر من 900 بكسل (وضع الديسكتوب) */
@media (min-width: 900px) {
    
    /* 1. إخفاء زر القائمة ☰ وزر الإغلاق */
    .menu-icon, .drawer-title {
        display: none !important;
    }

    /* 2. تحويل القائمة الجانبية إلى شريط أفقي */
    .nav-links {
        display: flex !important; /* إظهار الروابط دائماً */
        flex-direction: row !important; /* ترتيب أفقي */
        position: static !important; /* إلغاء التثبيت الجانبي */
        width: 40% !important;
        height: auto !important;
        background: transparent !important; /* إزالة خلفية القائمة السوداء */
        box-shadow: none !important;
        padding: 0 !important;
        gap: 30px; /* مسافة بين الروابط */
    }

    /* 3. تنسيق الروابط لتناسب الويب */
    .nav-links li a {
        color: var(--primary); /* أو لونك المعتمد */
        font-size: 1rem;
        padding: 5px 10px;
    }

    .nav-links li a:hover {
        color: #ffd700; /* تأثير عند مرور الماوس */
    }

    /* 4. إخفاء التظليل الخلفي (Overlay) في الديسكتوب دائماً */
    #side-overlay {
        display: none !important;
    }

    /* 5. ضبط حاوية الـ Nav لتوزيع اللوجو والروابط */
    nav {
        justify-content: space-between;
        padding: 10px 8%;
    }
}


/* الحاوية الرئيسية */
.hero-content.split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 60px 5%;
    flex-wrap: wrap; /* للموبايل */
}

/* الجانب الأيمن */
.hero-right {
    flex: 1;
    min-width: 300px;
    text-align: right;
    border-left: 3px solid #fdbb2d; /* خط جمالي يفصل الجانبين */
    padding-left: 20px;
}

.hero-logo {
    width: 100px;
    margin-bottom: 15px;
}

.company-name {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
}

.license-badge {
    background: rgba(253, 187, 45, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fdbb2d;
    margin-top: 15px;
    font-weight: bold;
}

/* الجانب الأيسر */
.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-slogan {
    font-size: 2.2rem;
    color: #fdbb2d;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
}

/* الموبايل */
@media (max-width: 768px) {
    .hero-content.split-layout {
        flex-direction: column;
        text-align: center;
    }
    .hero-right {
        border-left: none;
        border-bottom: 2px solid #fdbb2d;
        padding-bottom: 30px;
        padding-left: 0;
    }
}


/* --- قسم الهيرو (Hero) المطور --- */
/* إعدادات القسم الرئيسي */
.hero {
    /*background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);*/
    background: radial-gradient(circle at center, rgba(26, 26, 26, 0.7) 0%, rgba(13, 13, 13, 0.9) 100%),
                url('Image/background.jpeg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    position: relative;
}

.hero-content.split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

/* الجانب الأيمن (الهوية) */
.hero-right {
    flex: 1;
    text-align: center;
        padding: 20px 0px 0px 100px;
}

.hero-logo {
    width: 140px;
    filter: drop-shadow(0 0 10px rgba(253, 187, 45, 0.3));
    margin-bottom: 20px;
}

.company-name {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.company-name span { color: #fdbb2d; }

.license-badge {
    background: rgba(253, 187, 45, 0.1);
    border: 1px solid rgba(253, 187, 45, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fdbb2d;
    font-size: 0.95rem;
}

/* الجانب الأيسر (الرسالة والخط الفاصل) */
.hero-left {
    flex: 1.2;
   /* border-right: 2px solid rgba(253, 187, 45, 0.4);  خط فاصل لنسخة الـ RTL */
    padding-right: 40px;
}

[lang="en"] .hero-left {
    border-right: none;
    border-left: 2px solid rgba(253, 187, 45, 0.4);
    padding-right: 0;
    padding-left: 40px;
}

.hero-slogan {
    font-size: 2.5rem;
    color: #fdbb2d;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

/* الأزرار */
.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #fdbb2d;
    color: #000;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-secondary {
    border: 2px solid #fdbb2d;
    color: #fdbb2d;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover { background: #fff; transform: translateY(-3px); }

/* أنيميشن الدخول */
.animate-right { animation: slideInRight 1s ease-out; }
.animate-left { animation: slideInLeft 1s ease-out; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* استجابة الموبايل */
@media (max-width: 900px) {
    .hero-content.split-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-left {
        border: none !important;
        padding: 0 !important;
    }
    .hero-btns { justify-content: center; }
}

/* تنسيق علامة اعتماد المصرف المركزي */
.hero-content p[style*="color: #fdbb2d"] {
    background: rgba(253, 187, 45, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(253, 187, 45, 0.3);
    font-size: 0.95rem !important;
}

.hero-content p:last-of-type {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.95;
    line-height: 1.8;
}

/* --- نظام شريط الأسعار (Ticker) --- */
.ticker-wrapper {
    background: #0d0d0d;
    height: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ticker-title {
    background: var(--secondary);
    color: white;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 20;
    font-weight: 900;
    font-size: 0.9rem;
    position: relative;
}

/* إضافة مثلث جمالي بعد كلمة "بث حي" */
.ticker-title::after {
    content: '';
    position: absolute;
    right: -15px;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 15px solid var(--secondary);
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    background: #000;
}

.ticker-text {
    display: flex;
    white-space: nowrap;
    width: max-content;
    padding-right: 50px;
}

/* التحريك المستمر */
[dir="rtl"] .ticker-text { animation: ticker-rtl 60s linear infinite; }
[dir="ltr"] .ticker-text { animation: ticker-ltr 60s linear infinite; }

@keyframes ticker-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes ticker-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 30px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* --- قسم البيانات (Data Section) - نسخة أندرويد المطورة --- */
.status-bar {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 10px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
}

.status-fresh { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-stale { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-updating { background-color: #e2e3e5; color: #383d41; }

.spin-icon { animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.data-section {
    padding: 30px 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* للعرض الواسع */
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* تنسيق البطاقة العام */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
}

.card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: var(--accent);
}

/* تنسيق الجدول الاحترافي */
.rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* يعطي مسافة بين الصفوف كأنها بطاقات */
}

.rates-table th {
    background: transparent;
    padding: 12px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    border-bottom: 2px solid var(--bg-light);
}

.rates-table td {
    padding: 15px;
    background: #fcfdfe;
    text-align: center;
    font-weight: 700;
    transition: var(--transition);
}

.rates-table tr td:first-child { border-radius: 12px 0 0 12px; }
.rates-table tr td:last-child { border-radius: 0 12px 12px 0; }

/* تنسيق الحاسبة */
.input-group label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent);
    background: white;
}

.result-box {
    background: linear-gradient(135deg, var(--primary), #253b8e);
    border-radius: 18px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 10px 20px rgba(26, 42, 108, 0.2);
    text-align: center;
    font-weight: 900;
}

.result-val {
    font-size: 2.2rem;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- نظام التجاوب للموبايل (Mobile Responsive) --- */
@media (max-width: 992px) {
    .data-section {
        grid-template-columns: 1fr; /* جعل الجدول والحاسبة فوق بعضهما */
        padding: 20px 4%;
    }

    .card {
        padding: 20px;
    }

    .rates-table td {
        padding: 12px 8px;
        font-size: 0.95rem;
    }

    .result-val {
        font-size: 1.8rem;
    }
}
/* --- قسم من نحن (About) المطور --- */
.about-section {
    background: var(--primary);
    color: white;
    padding: 60px 5%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px; /* تحديد أقصى عرض للصورة */
    border-radius: 30px; /* زوايا أنعم */
    border: 8px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.stat-item h4 {
    margin-bottom: 5px;
}

/* --- نظام التجاوب للهاتف (Responsive) --- */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr; /* تحويل لصف واحد */
        text-align: center; /* توسيط النص */
        gap: 30px;
    }

    .about-image {
        order: 1; /* الصورة أولاً */
    }

    .about-text {
        order: 2; /* النص ثانياً */
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text div[style*="flex"] {
        justify-content: center; /* توسيط الإحصائيات (100% و 24/7) */
        gap: 20px !important;
    }
}

/* --- قسم الخدمات (Services Section) --- */
.services {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--white);
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
   /* margin-bottom: 40px;
    position: relative;*/
    display: inline-block;
}

/* خط صغير تحت العنوان ليعطي طابع رسمي */
.section-title h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--bg-light);
    padding: 40px 25px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--accent);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--secondary);
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- التجاوب مع الموبايل --- */
@media (max-width: 768px) {
    .services {
        padding: 40px 4%;
    }

    .services-grid {
        grid-template-columns: 1fr; /* كرت واحد في كل صف لشاشة الهاتف */
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* --- قسم المميزات (Features) --- */
.features {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 5%;
}

.features-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start; /* محاذاة العناصر للأعلى */
}

.features-text h2 {
    font-size: 2.3rem;
    font-weight: 900;
}

.features-text h2 span {
    color: var(--accent);
}

/* تنسيق صفوف المميزات */
.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* الأيقونة بجانب النص العريض */
    margin-bottom: 5px;
}

.feature-item i {
    flex-shrink: 0; /* منع انكماش الأيقونة */
    margin-top: 5px;
}

/* بطاقة ساعات العمل الاحترافية */
.working-hours {
    background: rgba(255, 255, 255, 0.07); /* تأثير زجاجي معتم قليلاً */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.working-hours h4 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(253, 187, 45, 0.2);
    padding-bottom: 15px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
}

.hour-row:last-of-type {
    border-bottom: none;
}

.hour-row .day {
    font-weight: bold;
    color: var(--white);
}

.hour-row .time {
    color: var(--accent);
    font-family: 'Montserrat', sans-serif; /* لجمالية الأرقام */
    font-size: 0.9rem;
}

/* --- التجاوب مع شاشة الهاتف --- */
@media (max-width: 768px) {
    .features-wrapper {
        grid-template-columns: 1fr; /* جعل المميزات ثم الساعات */
        gap: 40px;
    }

    .features-text {
        text-align: center;
    }

    .feature-item {
        flex-direction: column; /* الأيقونة فوق النص في الموبايل أو بقاؤها بجانبه حسب الرغبة */
        align-items: center;
        text-align: center;
    }

    .features-text h2 {
        font-size: 1.8rem;
    }

    .working-hours {
        padding: 20px;
    }

    .hour-row {
        flex-direction: column; /* اليوم فوق الوقت في الشاشات الصغيرة جداً */
        gap: 5px;
        align-items: center;
    }
}

/* --- قسم الأسئلة الشائعة (FAQ) --- */
.faq-section {
    padding: 60px 5%;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden; /* لضمان عدم خروج النص عند الإغلاق */
    transition: var(--transition);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--secondary);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0; /* الحالة الافتراضية: مغلق */
    overflow: hidden;
    background: white;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-dark);
    line-height: 1.7;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* حالة الفتح - يتم تفعيلها عبر JavaScript */
.faq-item.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.faq-item.active .faq-question {
    background: white;
    color: var(--secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* السماح للنص بالظهور */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg); /* تحويل + إلى × */
}

/* تحسين العنوان */
.title-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 40px;
    border-radius: 2px;
}

/* --- التذييل والاتصال (Footer Section) --- */
.footer-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 5% 0; /* تقليل البادينج السفلي لوجود بار الحقوق */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 أعمدة للحاسوب */
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
}

/* أيقونات التواصل */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: center;
}

.contact-item i {
    color: var(--accent);
    width: 25px;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

/* نموذج المراسلة */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.btn-send {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* الخريطة */
.map-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
}

/* شريط الحقوق والمطور */
.copyright-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.7);
}

/* --- نظام التجاوب للهاتف --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr; /* عمود واحد فقط */
        text-align: center;
        gap: 50px;
    }

    .contact-item {
        justify-content: center;
    }

    .copyright-bar {
        font-size: 0.8rem;
        line-height: 1.8;
    }
}


/* --- الموبايل (Responsive) --- */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-icon { display: block; }

    .hero-content h1 { font-size: 2.2rem; }
    .hero { height: 60vh; }
}

.whatsapp-final {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;

    /* الإخفاء الافتراضي */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* حركة دخول جميلة من الأسفل */
    transition: all 0.5s ease;

    animation: pulse-green 2s infinite;
}

/* الكلاس الذي سيضيفه الجافا سكريبت */
.whatsapp-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.whatsapp-final:hover {
    transform: scale(1.1); /* يكبر قليلاً عند اللمس */
    color: white;
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;           /* شفاف تماماً */
    visibility: hidden;   /* غير قابل للضغط */
    transition: all 0.5s ease;
    z-index: 999;
}



.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;           /* شفاف تماماً */
    visibility: hidden;   /* غير قابل للضغط */
    transition: all 0.5s ease;
    z-index: 999;
}

/* الكلاس الذي سيضيفه الجافا سكريبت عند النزول */
.whatsapp-visible {
    opacity: 1;
    visibility: visible;
}

/* تعريف حركة النبض لجذب الانتباه */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* إزاحة الزر في الشاشات الصغيرة إذا كان يتداخل مع نصوص الفوتر */
@media (max-width: 768px) {
    .whatsapp-final {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}