/* ===================================================
   ملف CSS الموحّد والنهائي لموقع العاصفة الخضراء
   تم تنظيف وتنظيم كل الأكواد - النسخة النهائية
   =================================================== */

   /* لجعل كل الصور في الموقع متجاوبة */
img {
    max-width: 100%;
    height: auto;
    display: block; /* يزيل أي مسافات إضافية تحت الصورة */
}
/*
لحل مشكلة انحصار الموقع في عمود ضيق على الموبايل
*/
body, html {
    width: 100%;
    overflow-x: hidden; /* يمنع السكرول الأفقي المزعج */
}

/* --- 1. الإعدادات العامة والخطوط --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;900&display=swap');

:root {
    --background: #121212;
    --header-bg: #1e1e1e;
    --card-bg: #242424;
    --text-light: #e0e0e0;
    --text-dark: #cccccc;
    --accent-green: #00ff99;
    --border-color: #333333;
    --primary-dark: #181818; /* For compatibility with other pages */
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    
}

/* --- 2. الأنماط المشتركة للأقسام --- */
section { 
    padding: 100px 7%; 
}

.section-title { 
    text-align: center; 
    font-size: 38px; 
    color: white; 
    margin-top: 0; 
    margin-bottom: 50px; 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background-color: var(--accent-green); 
    margin: 10px auto 0; 
    border-radius: 2px; 
}

.section-cta-button {
    text-align: center;
    margin-top: 50px;
}

/* --- 3. التحسينات العامة (مؤشر الماوس، التحميل) --- */
/* شاشة التحميل */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pulse-glow 2s infinite ease-in-out;
}
.loader-image {
    width: clamp(150px, 25vw, 300px);
    margin-bottom: 20px;
}
.loader-logo {
    font-size: clamp(30px, 7vw, 50px);
    font-weight: bold;
    color: var(--accent-green);
}
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 7px rgba(0, 255, 153, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(0, 255, 153, 0.8));
    }
}

/* مؤشر الماوس المخصص */


/* --- 4. الهيدر والقائمة العلوية --- */
.main-header { 
    background-color: rgba(30, 30, 30, 0.7); 
    backdrop-filter: blur(10px); 
    padding: 15px 7%; 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* الشعار */
.logo {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    text-decoration: none;
}
.logo img {
    height: 45px;
    transition: transform 0.3s ease-in-out;
}
.logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.logo:hover img {
    transform: scale(1.1);
}
.logo:hover span {
    color: var(--accent-green);
}

/* روابط القائمة */
.nav-links { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
    gap: 35px; 
}
.nav-links a { 
    text-decoration: none; 
    color: var(--text-light); 
    font-weight: 500; 
    font-size: 16px; 
    transition: color 0.3s ease; 
}
.nav-links a:hover,
.nav-links a.active-link { 
    color: var(--accent-green); 
}

/* زر تواصل معنا */
.contact-btn { 
    text-decoration: none; 
    color: white; /* Changed */
    background-color: var(--accent-green); 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    border: 2px solid var(--accent-green); 
}
.contact-btn:hover { 
    background-color: transparent; 
    color: var(--accent-green); 
}

/* أيقونة البحث */
.search-input {
    width: 0;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 15px;
    outline: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}
.search-input.active {
    width: 220px;
    opacity: 1;
    transform: translateX(0);
    margin-left: -25px;
    padding-left: 35px;
    pointer-events: auto;
}
.search-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}
#searchIcon {
    color: var(--text-dark);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px;
    z-index: 5;
}
#searchIcon:hover {
    color: var(--accent-green);
}

/* قائمة الموبايل */
.hamburger-menu { 
    display: none; 
}
.hamburger-menu .line { 
    width: 25px; 
    height: 3px; 
    background-color: var(--text-light); 
    border-radius: 3px; 
}

/* --- 5. قسم الواجهة الرئيسية (Hero) --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 10vh 7% 0;
    box-sizing: border-box;
}
.hero-title { 
    font-size: clamp(42px, 5vw, 64px); 
    font-weight: 900; 
    color: white; 
    margin-bottom: 20px; 
}
.highlight { 
    color: var(--accent-green); 
}
.hero-subtitle { 
    font-size: clamp(18px, 2vw, 20px); 
    color: var(--text-dark); 
    line-height: 1.7; 
    margin-bottom: 30px; 
    max-width: 650px; 
    margin-inline: auto; 
}
.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.btn { 
    text-decoration: none; 
    padding: 12px 28px; 
    border-radius: 5px; 
    font-weight: bold; 
    font-size: 16px; 
    transition: all 0.3s ease; 
    border: 2px solid var(--accent-green); 
}
.btn-primary { 
    background-color: var(--accent-green); 
    color: white; /* Changed for better contrast */
}
.btn-primary:hover { 
    background-color: transparent; 
    color: var(--accent-green); 
}
.btn-secondary { 
    background-color: transparent; 
    color: var(--accent-green); 
}
.btn-secondary:hover { 
    background-color: var(--accent-green); 
    color: var(--primary-dark); 
}

/* --- 6. تصميم الشبكات والبطاقات العام --- */
/* توحيد تصميم الشبكات */
.services-grid, 
.products-grid, 
.testimonials-grid,
.team-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* بطاقات جلاس مورفيزم */
.service-card, .product-card, .testimonial-card, .about-container, .contact-container, .team-card, .news-card { 
    background-color: rgba(36, 36, 36, 0.25); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; 
    transition: all 0.3s ease; 
}
.service-card, .product-card, .testimonial-card, .team-card { 
    padding: 30px; 
    text-align: center; 
}
.service-card:hover, .product-card:hover, .testimonial-card:hover, .team-card:hover, .news-card:hover { 
    transform: translateY(-10px); 
    border-color: rgba(0, 255, 153, 0.5); 
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.3); 
}

/* محتوى بطاقة الخدمات */
.service-card i { 
    font-size: 48px; 
    color: var(--accent-green); 
    margin-bottom: 20px; 
}
.service-card h3 { 
    font-size: 22px; 
    color: white; 
    margin-bottom: 15px; 
}
.service-card p { 
    font-size: 15px; 
    color: var(--text-dark); 
    line-height: 1.6; 
}

/* محتوى بطاقة المنتجات */
.product-card { 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    text-align: right;
}
.product-card.hide { 
    transform: scale(0.8); opacity: 0; width: 0; padding: 0; margin: 0; overflow: hidden; border: none; 
}
.product-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    margin-bottom: 20px;
}
.product-info { 
    padding: 0 20px 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.product-info h3 { 
    font-size: 22px; 
    color: white; 
    margin-top: 0; 
    margin-bottom: 10px; 
}
.product-info p { 
    font-size: 15px; 
    color: var(--text-dark); 
    line-height: 1.6; 
    flex-grow: 1; 
    margin-bottom: 20px; 
}
.product-price { 
    font-size: 24px; 
    font-weight: bold; 
    color: var(--accent-green); 
    margin-bottom: 20px; 
}
.filter-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 40px; 
}
.filter-btn { 
    background: transparent; 
    color: var(--text-dark); 
    border: 1px solid var(--border-color); 
    padding: 8px 20px; 
    border-radius: 20px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-family: 'Poppins', sans-serif; 
}
.filter-btn.active, .filter-btn:hover { 
    background-color: var(--accent-green); 
    color: var(--primary-dark);
    border-color: var(--accent-green); 
}

/* --- 7. قسم "من نحن" --- */
.about-container { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    padding: 40px; 
}
.about-image { 
    flex: 1; 
}
.about-image img { 
    width: 100%; 
    border-radius: 8px; 
}
.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.about-content .section-title {
    text-align: right;
}
.about-content .section-title::after {
    margin: 10px 0 0;
}
.about-content .btn {
    align-self: flex-end; /* Button on the left in RTL */
}
.about-content p { 
    color: var(--text-dark); 
    line-height: 1.8; 
    margin-bottom: 15px; 
}

/* --- 8. قسم شهادات العملاء --- */
.testimonials-section { 
    background-color: var(--card-bg); 
}
.testimonial-card { 
    background-color: transparent; 
    text-align: right;
}
.testimonial-card p { 
    font-size: 16px; 
    line-height: 1.7; 
    font-style: italic; 
    margin-top: 0; 
    border-right: 3px solid var(--accent-green); 
    padding-right: 15px; 
}
.testimonial-author { 
    margin-top: 20px; 
    text-align: right; 
}
.testimonial-author h4 { 
    margin: 0; 
    color: var(--accent-green); 
}
.testimonial-author span { 
    font-size: 14px; 
    color: var(--text-dark); 
}

/* --- 9. قسم التواصل ودعوة لاتخاذ إجراء --- */
/* For contact page */
.contact-page-section .contact-container {
    align-items: flex-start;
}
.contact-form .contact-title,
.contact-info-map .contact-title {
    font-size: 24px;
    color: white;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
}
.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.map-container iframe {
    width: 100%;
    height: 300px;
    display: block;
}
/* General CTA Section */
.cta-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cta-section h2 {
    font-size: 32px;
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
}
.cta-section p {
    color: var(--text-dark);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Contact Form */
.contact-form form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 15px; 
    border-radius: 5px; 
    border: 1px solid var(--border-color); 
    background-color: var(--card-bg); 
    color: var(--text-light); 
    font-family: 'Poppins', sans-serif; 
    transition: border-color 0.3s ease; 
}
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--accent-green); 
    outline: none; 
}
.contact-form button { 
    align-self: flex-start; 
}
.contact-info-map p { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 15px; 
    color: var(--text-dark); 
}
.contact-info-map i { 
    color: var(--accent-green); 
    font-size: 20px; 
}

/* إضافة مسافة بعد قسم "هل أنت مستعد" وقبل الفوتر */
.cta-section {
    margin-bottom: 100px;
}

/* --- 10. الفوتر --- */
.main-footer-section {
    background-color: #1a1a1a;
    padding: 3px 7% 15px;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    align-items: baseline;
}
.footer-column {
    flex: 1.5;
    min-width: 220px;
}
.footer-column:first-child {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-column .logo {
    margin-bottom: 15px;
}
.footer-column p {
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 300px;
}
.footer-column h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-green);
    border-radius: 2px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li a {
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s ease, padding-right 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--accent-green);
    padding-right: 8px;
}
.social-icons a {
    color: var(--text-dark);
    font-size: 20px;
    margin-left: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: var(--accent-green);
    transform: translateY(-4px);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 14px;
}
/* لإضافة الخط الأخضر تحت الشعار في الفوتر */
.footer-column:first-child .logo {
    position: relative;
    padding-bottom: 5px; /* لإعطاء مساحة للخط */
    display: inline-flex; /* ليعمل الخط بشكل صحيح */
}

.footer-column:first-child .logo::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-green);
    border-radius: 2px;
}

/* --- 11. الصفحات الداخلية (الأخبار، سياسة الخصوصية، الخ) --- */
/* رأس الصفحة العام */
.page-header-section {
    padding: 150px 7% 80px;
    text-align: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.page-header-section h1 {
    font-size: 52px;
    color: white;
    margin-bottom: 15px;
}
.page-header-section p {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 600px;
    margin-inline: auto;
}


/* صفحات الشبكات (الأخبار، الخ) */
.news-card {
    display: flex;
    flex-direction: column;
}
.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.news-category {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent-green);
    color: #121212;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.read-more {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    margin-top: auto;
}

/* --- 12. التحسينات النهائية وحركات إضافية --- */
#particles-js { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    z-index: -10; 
}
.hidden { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.show { 
    opacity: 1; 
    transform: translateY(0); 
}
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
    transition: all 0.3s ease;
}
#form-status.success {
    background-color: rgba(0, 255, 153, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    display: block;
}

/* --- 13. التصميم المتجاوب (Responsive) --- */
@media (max-width: 992px) {
    .about-container, .contact-container { 
        flex-direction: column; 
    }
}

@media (max-width: 768px) {
    /* Header */
    .navbar {
        position: relative;
    }
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { 
        display: flex; 
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
    }
    .navbar .contact-btn { 
        display: none; 
    }
    .hamburger-menu { 
        display: flex; 
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    /* --- تعديل سلوك البحث في الموبايل --- */
.nav-search-container {
    position: static; /* نعيد تحديد الموضع */
}

.search-input.active {
    position: absolute; /* يجعله يطفو فوق المحتوى */
    top: 100%; /* يظهر تحت الهيدر مباشرة */
    left: 0;
    width: 100%; /* يأخذ العرض الكامل */
    margin-left: 0;
    padding-left: 15px;
    background-color: #1a1a1d; /* لون خلفية واضح */
    border-radius: 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
    
    /* General */
    .hero-title { font-size: 42px; }
    .hero-subtitle { font-size: 18px; }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-column:first-child,
    .about-content {
        align-items: center; /* Center content on mobile */
    }
    .about-content .section-title {
        text-align: center;
    }
    .about-content .section-title::after {
        margin: 10px auto 0;
    }
    .about-content .btn {
        align-self: center;
    }
    .footer-column h4::after {
        margin-right: auto;
        margin-left: auto;
    }
    .social-icons {
        justify-content: center;
    }
}
/* =========================================== */
/* ===   15. أنماط صفحة تفاصيل المنتج      === */
/* =========================================== */

.product-detail-section {
    padding: 60px 7% 100px;
}

.product-detail-container {
    display: flex;         /* استخدام Flexbox لتنظيم العناصر */
    align-items: center;   /* محاذاة عمودية في المنتصف */
    gap: 60px;             /* مسافة بين الصورة والتفاصيل */
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;       /* للسماح بالالتفاف على الشاشات الصغيرة */
}

.product-detail-image {
    flex: 1 1 450px;       /* الجزء المخصص للصورة */
}

.product-detail-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.product-detail-info {
    flex: 1 1 450px;       /* الجزء المخصص للتفاصيل */
    text-align: right;
}

.product-detail-description {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.product-detail-price {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent-green);
    margin-bottom: 30px;
    display: block; /* لضمان أخذ مساحة كاملة */
}
/* --- 16. أنماط صفحة نجاح الطلب --- */
.success-page-section {
    text-align: center;
    padding: 120px 7%;
}
.success-icon i {
    font-size: 80px;
    color: var(--accent-green);
    margin-bottom: 30px;
    animation: bounce-in 0.6s ease-out;
}
.success-page-section h1 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}
.success-page-section p {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 550px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}
.success-page-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
@keyframes bounce-in {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
/* --- أنماط صفحة قائمة الخدمات (service_list.html) --- */

/* جعل البطاقة كرابط بدون أي خطوط أو ألوان إضافية */
a.card-link, a.card-link:visited {
    text-decoration: none;
    color: inherit; /* يجعل النص يرث اللون من الأب */
}
a.card-link:focus, .service-card:focus {
    outline: none;
}

/* تعديل على بطاقة الخدمة لدعم الزر في الأسفل */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card p {
    flex-grow: 1;
}

/* تصميم زر "عرض التفاصيل" بدون سهم */
.card-details-button {
    color: var(--accent-green);
    font-weight: bold;
    margin-top: 20px;
    transition: letter-spacing 0.3s ease;
}
a.card-link:hover .card-details-button {
    letter-spacing: 0.5px;
}
/* --- تعديلات على صفحة تفاصيل الخدمة --- */
.service-meta-grid {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.service-meta-item {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex-grow: 1;
}
.service-meta-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-dark);
}
.service-meta-item span {
    font-size: 22px;
    font-weight: bold;
    color: white;
}
/* =========================================== */
/* ===     13. أنماط صفحة "تواصل معنا"      === */
/* =========================================== */

.contact-page-section {
    padding-top: 50px;
    padding-bottom: 100px;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 60px; /* مسافة بين قسم المعلومات والخريطة */
    align-items: flex-start;
}

.contact-form {
    flex: 2 1 500px; /* السماح بالتمدد والانكماش مع تحديد عرض أساسي */
}

.contact-info-map {
    flex: 1 1 300px; /* السماح بالتمدد والانكماش مع تحديد عرض أساسي */
}

.contact-form .contact-title,
.contact-info-map .contact-title {
    font-size: 24px;
    color: white;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* --- تنسيق حقل رفع الملفات --- */
.file-input {
    color: var(--text-dark);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}
.file-input:hover {
    border-color: var(--accent-green);
}
#form-status.error {
    background-color: rgba(255, 87, 87, 0.1);
    border: 1px solid rgb(255, 87, 87);
    color: rgb(255, 87, 87);
    display: block;
}
#form-status.info {
    background-color: rgba(87, 151, 255, 0.1);
    border: 1px solid rgb(87, 151, 255);
    color: rgb(87, 151, 255);
    display: block;
}
/* ======================================= */
/* ===  تصميم جديد لشبكة وبطاقات الأخبار  === */
/* ======================================= */
/* ======================================= */
/* ===   تنسيق رأس الصفحة مع الصورة   === */
/* ======================================= */

.page-header {
    /* ** المسار الصحيح للصورة التي حملتها ** */
    /* يخرج من مجلد css/ ثم يدخل إلى images/ */
    
    /* خصائص لجعل الصورة تملأ القسم بشكل جميل */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* تأثير جميل عند التمرير */
    
    /* أبعاد ومحاذاة */
    padding: 120px 20px; /* زيادة المساحة العمودية لإظهار الصورة */
    text-align: center;
    position: relative; /* ضروري للطبقة المعتمة */
}

/* طبقة معتمة فوق الصورة لإبراز النص */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* طبقة سوداء بشفافية 60% */
    z-index: 1; /* تجعل هذه الطبقة فوق الصورة الخلفية */
}

/* التأكد من أن النص يظهر فوق الطبقة المعتمة */
.page-header .section-title,
.page-header .hero-subtitle {
    position: relative;
    z-index: 2; /* تجعل النص فوق الطبقة المعتمة */
    color: #ffffff;
}

/* --- تنسيق الشبكة التي تحتوي البطاقات --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px; /* زيادة المسافة بين البطاقات قليلاً */
    padding: 20px;
    max-width: 1400px;
    margin: 40px auto;
}

/* --- تنسيق بطاقة المقال بأسلوب الزجاج (Glassmorphism) --- */
.news-card {
    /* التأثير الزجاجي */
    background-color: rgba(44, 44, 49, 0.6); /* لون خلفية شبه شفاف */
    backdrop-filter: blur(12px); /* أهم خاصية للتأثير الزجاجي */
    
    border: 1px solid rgba(255, 255, 255, 0.1); /* إطار أبيض شبه شفاف */
    border-radius: 20px; /* زيادة دائرية الحواف */
    overflow: hidden;
    text-decoration: none;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* ظل ناعم وأعمق */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* تأثير حركة أكثر سلاسة */
}

/* --- تأثير مرور الماوس الجديد --- */
.news-card:hover {
    transform: translateY(-12px) scale(1.02); /* رفع البطاقة وتكبيرها قليلاً */
    border-color: rgba(5, 223, 149, 0.5); /* تغيير لون الإطار بشكل ناعم */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* ظل أكبر وأوضح */
}

/* --- تنسيق الصورة مع تأثير بسيط --- */
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    /* تأثير خفيف على الصورة ليتناسب مع التصميم */
    filter: saturate(1.1);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.news-card:hover img {
    transform: scale(1.1); /* تكبير الصورة داخل الإطار عند مرور الماوس */
}

/* --- تنسيق قسم المحتوى النصي --- */
.news-content {
    padding: 20px 25px 30px 25px; /* تعديل الحشو الداخلي */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- تنسيق جديد للتصنيف --- */
.news-category {
    background-color: #a972ff; /* لون بنفسجي صريح */
    color: #ffffff; /* نص أبيض */
    padding: 6px 16px; /* تعديل الحشو */
    border-radius: 50px; /* شكل الحبة (Pill Shape) */
    font-size: 0.8em;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 20px;
    text-transform: uppercase; /* جعل الحروف كبيرة */
    letter-spacing: 0.5px;
}

/* --- تنسيق عنوان المقال --- */
.news-content h3 {
    font-size: 1.6em; /* تكبير العنوان قليلاً */
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* --- تنسيق النص المقتطف --- */
.news-content p {
    font-size: 1em;
    color: #b3b3b3; /* لون أفتح قليلاً من السابق */
    line-height: 1.8; /* زيادة المسافة بين السطور */
    flex-grow: 1;
    margin-bottom: 25px;
}

/* --- تنسيق جديد لزر "اقرأ المزيد" --- */
.read-more {
    color: #05df95;
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
    font-size: 1.1em; /* تكبير حجم الخط */
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.read-more:hover {
    letter-spacing: 1px; /* تأثير تباعد الحروف عند المرور */
}

.read-more i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(-5px);
}
/* ======================================= */
/* ===      تنسيق قسم التعليقات      === */
/* ======================================= */

.comments-section {
    max-width: 900px;
    margin: 60px auto; /* توسيط القسم في الصفحة */
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.5); /* خلفية شفافة قليلاً */
    border: 1px solid #2c2c31;
    border-radius: 16px;
}

.comments-section h3 {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a3e;
    display: flex;
    align-items: center;
}

.comments-section h3 i {
    color: #05df95; /* لون الأيقونة */
    margin-left: 15px; /* مسافة بين الأيقونة والنص */
}

/* --- تنسيق قائمة التعليقات --- */
.comment-list {
    margin-bottom: 40px;
}

.comment {
    padding: 20px 0;
}

/* إزالة الخط الفاصل من آخر تعليق */
.comment-list .comment:last-child {
    border-bottom: none;
}

.comment p {
    margin: 8px 0;
    line-height: 1.8;
    color: #d1d1d1;
    font-size: 1.1em;
}

.comment strong {
    color: #a972ff; /* لون بنفسجي لاسم المستخدم */
    font-size: 1.1em;
}

.comment small {
    color: #888;
    font-size: 0.9em;
    margin-right: 10px;
}

/* --- تنسيق فورم إضافة تعليق --- */
.add-comment h3 {
    font-size: 1.6em;
}

.add-comment form textarea {
    width: 100%;
    min-height: 120px;
    background-color: #1a1a1d;
    border: 1px solid #3a3a3e;
    border-radius: 8px;
    padding: 15px;
    color: #e0e0e0;
    font-family: 'Cairo', sans-serif;
    font-size: 1em;
    resize: vertical; /* السماح للمستخدم بتكبير حقل النص عموديًا فقط */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.add-comment form textarea:focus {
    outline: none;
    border-color: #05df95; /* تغيير لون الإطار عند التركيز */
    box-shadow: 0 0 15px rgba(5, 223, 149, 0.2);
}

/* تنسيق زر الإرسال ليتطابق مع تصميم الموقع */
.add-comment form button {
    background-color: #05df95;
    color: #121212;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-comment form button:hover {
    background-color: #1cffb3;
    transform: translateY(-2px);
}

/* رسالة تسجيل الدخول */
.add-comment p a {
    color: #05df95;
    font-weight: bold;
    text-decoration: none;
}

/* ======================================= */
/* === تنسيق صفحات الشروط والخصوصية === */
/* ======================================= */

.policy-content-section {
    width: 90%;

    /* --- التحكم في العرض الأقصى --- */
    /* هذا الرقم يحدد عرض الحاوية على الشاشات الكبيرة. قم بزيادته كما تشاء */
    max-width: 1100px; /* <--- زد هذا الرقم (كان 900px)، جرب 1200px مثلاً */

    /* --- التحكم في التداخل --- */
    /* هذا الرقم يحدد المسافة من الهيدر. اجعله رقمًا موجبًا لإزالة التداخل */
    margin: 40px auto 60px auto; /* <--- غيرت -80px إلى 40px لإزالة التداخل */

    /* --- باقي التنسيقات --- */
    background-color: #1e1e1d; 
    border: 1px solid #2c2c31;
    border-radius: 16px;
    padding: 40px 50px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    text-align: right; 
}

.policy-content-section ul {
    padding-left: 0;
    padding-right: 20px;
}

/* ... باقي الكود الخاص بالعناوين والنصوص يبقى كما هو ... */
.policy-content-section h2 {
    color: #ffffff;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a3e;
}
.policy-content-section h2:first-of-type {
    margin-top: 0;
}
.policy-content-section p,
.policy-content-section li {
    line-height: 1.9;
    color: #c5c6c7;
    font-size: 1.1em;
}
.policy-content-section a {
    color: #05df95;
    text-decoration: none;
    font-weight: bold;
}
.policy-content-section a:hover {
    text-decoration: underline;
}


/* --- التجاوب مع الشاشات الصغيرة (الموبايل) --- */
@media (max-width: 768px) {
    .policy-content-section {
        margin: 30px auto 40px auto; /* تعديل الهامش للموبايل */
        width: 92%; 
        padding: 25px; 
    }
    .policy-content-section h2 {
        font-size: 1.5em;
    }
    .policy-content-section p,
    .policy-content-section li {
        font-size: 1em;
    }
}
/* ================================================= */
/* ===   إصلاح محاذاة النص في صفحات الخصوصية   === */
/* ================================================= */

/* القاعدة الأولى: لمحاذاة كل النصوص لليمين */
.policy-content-section {
    text-align: right; /* <-- هذا السطر سيجعل كل النصوص تبدأ من اليمين */
}

/* القاعدة الثانية: لترتيب القوائم النقطية بشكل صحيح */
.policy-content-section ul {
    padding-left: 0;      /* <-- إزالة الحشو الافتراضي من اليسار */
    padding-right: 20px;  /* <-- إضافة حشو لليمين (للغة العربية) */
}
/* لجعل زر البحث شفافًا وبدون حدود */
.search-submit-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
/* --- تعديل قسم آراء العملاء --- */
.testimonials-section {
    /* تمييز خلفية القسم بلون مختلف قليلاً */
    background-color: #1a1a1a;
    
    /* إضافة مسافة سفلية لفصله عن القسم التالي */
    margin-bottom: 50px; 
    
    /* إضافة حواف دائرية للقسم */
    border-radius: 16px;
    
    /* تعديل المسافة الداخلية */
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ===================================================
   13. التصميم المتجاوب (Responsive Design)
   =================================================== */

/* --- شاشات التابلت وما أصغر --- */
@media (max-width: 992px) {
    /* تعديل المسافات العامة */
    section { 
        padding: 80px 5%; 
    }
    /* تعديل الأقسام ذات العمودين لتتكدس فوق بعضها */
    .about-container, 
    .contact-container,
    .product-detail-container { 
        flex-direction: column; 
        gap: 40px;
    }
}

/* --- شاشات الموبايل وما أصغر --- */
@media (max-width: 768px) {
    /* تعديل الخطوط والمسافات العامة */
    .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }
    section {
        padding: 60px 5%;
    }

    /* الهيدر والقائمة */
    .navbar {
        position: relative;
    }
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-links.active { 
        display: flex; 
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
    }
    .navbar .contact-btn { 
        display: none; 
    }
    .hamburger-menu { 
        display: flex; 
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .hamburger-menu .line { 
        width: 25px; height: 3px; background-color: var(--text-light); border-radius: 3px; 
    }
    
    /* الواجهة الرئيسية */
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }
    .btn { width: 100%; max-width: 300px; }

    /* الصفحات الداخلية */
    .page-header-section {
        padding: 100px 5% 60px;
    }
    .page-header-section h1 {
        font-size: 38px;
    }
    .policy-content-section {
        margin: -40px 5% 40px 5%;
        width: 90%;
        padding: 30px 20px;
    }
    
    /* الفوتر */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    .footer-column {
        align-items: center;
    }
    .footer-column:first-child,
    .about-content {
        align-items: center;
    }
    .about-content .section-title,
    .footer-column h4 {
        text-align: center;
    }
    .footer-column h4::after {
        margin: 10px auto 0;
    }
    .social-icons {
        justify-content: center;
    }
}
/*
لإجبار النصوص والكلمات الطويلة جدًا على الالتفاف
وعدم الخروج عن حدود الشاشة في الموبايل
*/
p, li, h1, h2, h3, h4, h5, h6, a {
    overflow-wrap: break-word;
    word-wrap: break-word; /* لدعم المتصفحات القديمة */
}

/* تنسيق حاوية الأزرار في صفحة التفاصيل */
.action-buttons-container {
    display: flex;
    gap: 15px; /* مسافة بين الزرين */
    margin-top: 30px;
}

/* تعديل ليأخذ كل زر نصف المساحة */
.product-detail-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* استخدام هذا الكود الأكثر تحديدًا للتأكد من 
   أن كل زر يأخذ 50% من المساحة
*/
/* تنسيق حاوية الأزرار في صفحة التفاصيل (للشاشات الكبيرة) */
.product-detail-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.product-detail-buttons .btn {
    flex: 1; /* يجعل كل زر يأخذ نصف المساحة */
    text-align: center;
}

/* تنسيق حاوية الأزرار (للشاشات الصغيرة) */
@media (max-width: 600px) {
    .product-detail-buttons {
        /* جعل الأزرار تترتب فوق بعضها البعض */
        flex-direction: column;
    }
}
/* Style for the language switcher */
.language-switcher form {
    margin: 0;
}

.language-switcher button {
    background: none;
    border: none;
    color: #ffffff; /* Or your default link color */
    cursor: pointer;
    font-size: 1rem; /* Match your nav links font size */
    padding: 0 10px;
    font-family: inherit; /* Use the same font as the rest of the site */
}

.language-switcher button:hover {
    color: #1abc9c; /* Your hover color, e.g., the green color */
    text-decoration: underline;
}

/* ===================================================
   تعديلات الهيدر للشاشات الصغيرة (الموبايل)
   =================================================== */
@media (max-width: 768px) {
    
    /* --- 1. تعديل الحاوية الرئيسية للهيدر --- */
    .navbar {
        /* نجعل الحاوية مرجعاً للعناصر الأخرى ونعطيها ارتفاعاً بسيطاً */
        position: relative;
        min-height: 50px; 
    }

    /* --- 2. توسيط الشعار واسم الشركة --- */
    .navbar .logo {
        position: absolute; /* يحرر الشعار من مكانه */
        left: 50%;          /* يدفعه 50% من يسار الشاشة */
        top: 50%;           /* يدفعه 50% من أعلى الهيدر */
        transform: translate(-50%, -50%); /* يضبط مكانه ليكون في المنتصف تماماً */
        flex-direction: column; /* يجعل الصورة فوق الاسم */
        gap: 2px; /* يقلل المسافة بين الصورة والاسم */
    }
    
    .navbar .logo img {
        height: 40px; /* تصغير حجم الشعار قليلاً */
    }

    .navbar .logo span {
        font-size: 16px; /* تصغير حجم اسم الشركة */
    }
    
    /* --- 3. تعديل أماكن أيقونة البحث والقائمة --- */
    /* بما أن الشعار أصبح في المنتصف، نضع البحث والقائمة على الأطراف */
    .nav-search-container {
        position: absolute;
        left: 15px; /* أيقونة البحث على اليسار */
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu {
        position: absolute;
        right: 15px; /* أيقونة القائمة على اليمين */
        top: 50%;
        transform: translateY(-50%);
    }

    /* --- 4. إخفاء زر اللغة من الهيدر الرئيسي --- */
    .navbar .language-switcher {
        display: none;
    }

    /* --- 5. تنسيق زر اللغة داخل القائمة المنسدلة --- */
    /* هذا الكود سيعمل بعد نقل زر اللغة إلى داخل القائمة في ملف HTML */
    .nav-links .language-item {
        order: 5; /* يجعله آخر عنصر في القائمة */
        padding: 15px;
        text-align: center;
        width: 100%;
    }
    .nav-links .language-item button {
        color: var(--text-light);
        font-weight: 500;
        font-size: 16px;
        text-decoration: none;
    }
    .nav-links .language-item button:hover {
        color: var(--accent-green);
        text-decoration: none;
    }
}

/* إصلاح نهائي لإظهار زر اللغة في قائمة الموبايل */
@media (max-width: 768px) {
    .nav-links.active {
        height: auto !important;
    }
}
/* ===================================================
   إظهار اللغة داخل القائمة المنسدلة عند فتحها
   =================================================== */
@media (max-width: 768px) {
    .nav-links.active .language-switcher {
        display: block;
    }
}

/* ===================================================
   إعادة تصميم الفوتر للشاشات الصغيرة (الموبايل)
   =================================================== */
@media (max-width: 768px) {

    /* --- 1. تحسين المسافات العامة للفوتر --- */
   .main-footer-section {
        padding-top: 40px;    /* تقليل المسافة العلوية (كانت 60px) */
        padding-bottom: 25px;  /* زيادة المسافة السفلية */
    }

    /* --- 2. إزالة الخطوط الخضراء تحت العناوين --- */
    .footer-column h4::after {
        display: none;
    }

    /* --- 3. إعادة ترتيب الشعار والنص --- */
    .footer-column:first-child .logo {
        flex-direction: column; /* يجعل الشعار والنص فوق بعض */
        gap: 10px;              /* مسافة بين الصورة والنص */
    }
    
    /* إزالة الخط الأخضر تحت شعار الفوتر أيضاً */
    .footer-column:first-child .logo::after {
        display: none;
    }
    
    /* --- 4. تحسين مسافات الروابط وأيقونات التواصل --- */
    .footer-column ul li {
        margin-bottom: 16px; /* زيادة المسافة بين الروابط */
    }

    .footer-column ul li a:hover {
        padding-right: 0; /* إلغاء حركة الهوفر في الموبايل */
    }

    .social-icons {
        gap: 30px; /* استخدام gap لتوسيط المسافة بين الأيقونات */
    }

    .social-icons a {
        margin-left: 0; /* إلغاء الهامش القديم */
    }
}

/* ===================================================
   تلوين أيقونات التواصل الاجتماعي بألوانها الأصلية
   =================================================== */

.social-icons a {
    font-size: 32px; /* يمكنك تكبير حجم الأيقونات قليلاً */
    transition: all 0.3s ease;
}

/* تأثير تكبير عند مرور الماوس */
.social-icons a:hover {
    transform: scale(1.2) translateY(-3px);
}

/* تلوين أيقونة فيسبوك عند مرور الماوس */
.social-icons .facebook-icon:hover {
    color: #1877F2; /* اللون الرسمي الأزرق لفيسبوك */
}

/* تلوين أيقونة انستغرام عند مرور الماوس */
.social-icons .instagram-icon:hover {
    color: #E1306C; /* أحد الألوان المميزة لشعار انستغرام */
}

/* ===================================================
   تصميم أيقونات التواصل الاجتماعي بشكلها الرسمي
   =================================================== */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* مسافة بين الدائرتين */
}

/* تصميم الدائرة المحيطة بالأيقونة */
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;  /* عرض الدائرة */
    height: 44px; /* ارتفاع الدائرة */
    border-radius: 50%; /* لجعلها دائرية تمامًا */
    font-size: 22px;
    color: #ffffff; /* لون الأيقونة (الحرف) بالداخل سيكون أبيض */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* تأثير بسيط عند مرور الماوس */
.social-icons a:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* لون خلفية دائرة فيسبوك */
.social-icons .facebook-icon {
    background-color: #1877F2; 
}

/* لون خلفية دائرة انستغرام */
.social-icons .instagram-icon {
    background-color: #E1306C;
}