/* ===================================================================
   الملف النهائي لـ style.css (نسخة محدثة ومنظمة)
   يحتوي على: التصميم الأساسي، قائمة الهامبرغر، الوضع الداكن، تصميم النماذج
=================================================================== */

/* --- 1. تصميم أساسي وعام --- */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* --- 2. الهيدر وشريط التنقل --- */
header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo { font-size: 1.5rem; font-weight: bold; }
.nav-buttons { display: flex; align-items: center; gap: 15px; }

/* --- 3. قائمة الهامبرغر والتنقل المنسدل --- */
.hamburger-menu {
    display: flex; flex-direction: column; justify-content: space-around;
    width: 30px; height: 25px; background: transparent; border: none;
    cursor: pointer; padding: 0; z-index: 1001;
}
.hamburger-menu span {
    width: 100%; height: 3px; background-color: #333;
    border-radius: 5px; transition: all 0.3s ease-in-out;
}
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* القائمة المنسدلة نفسها */
.nav-links { /* تم تغيير الاسم من nav ul إلى .nav-links */
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 400px;
    height: 100vh; background-color: #ffffff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px; margin: 0;
    padding: 0; list-style: none; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out; z-index: 1000;
}
.nav-links.active { right: 0; } /* إظهار القائمة */
.nav-links li a { text-decoration: none; color: #333; font-weight: bold; font-size: 1.2rem; transition: color 0.3s; }
.nav-links li a:hover { color: #007bff; }

/* --- 4. تصميم المحتوى الرئيسي والخدمات --- */
main { width: 90%; margin: 2rem auto; }
section { padding: 40px 20px; margin-bottom: 20px; background: #fff; border-radius: 8px; transition: background-color 0.3s; }
h1, h2 { color: #333; text-align: center; margin-bottom: 20px; }
#hero { text-align: center; background: #007bff; color: #fff; border-radius: 8px; }
#hero h1 { color: #fff; font-size: 2.5rem; }
.cta-button {
    display: inline-block; background: #fff; color: #007bff; padding: 10px 20px;
    text-decoration: none; border-radius: 5px; margin-top: 20px; font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.service-card {
    background: #f9f9f9; border: 1px solid #eee; padding: 20px; border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.3s;
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-5px); }
/* --- هذا هو الكود الجديد لتصميم أيقونة الخدمة --- */
.service-icon {
    width: 60px;       /* عرض الأيقونة */
    height: 60px;      /* ارتفاع الأيقونة */
    margin: 0 auto 20px; /* لتوسيط الأيقونة أفقياً وترك مسافة 20 بكسل تحتها */
}
.service-card h3 { margin-top: 0; color: #007bff; }
.service-card p { flex-grow: 1; }
footer { text-align: center; padding: 20px; background: #333; color: #fff; transition: background-color 0.3s; }

/* --- 5. تصميم صفحات ونماذج الطلبات --- */
.form-page-container {
    max-width: 700px; margin: 2rem auto; padding: 2rem;
    background-color: #fff; border-radius: 8px;
}
.form-page-container h1 { margin-bottom: 10px; }
.form-page-container p { margin-bottom: 30px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input,
.form-group input::file-selector-button,
.form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px;
    font-size: 1rem; box-sizing: border-box; transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.form-submit-button {
    display: block; width: 100%; padding: 15px; background-color: #007bff;
    color: #fff; border: none; border-radius: 5px; font-size: 1.2rem;
    font-weight: bold; cursor: pointer; transition: background-color 0.3s;
}
.form-submit-button:hover { background-color: #0056b3; }
.service-card-link {
    text-decoration: none; color: inherit; display: flex;
    width: calc(50% - 20px);
    min-width: 300px;
}
.service-card .order-now {
    display: inline-block; margin-top: auto; padding-top: 15px; font-weight: bold; color: #007bff;
}

/* --- 6. ميزة الوضع الداكن (Dark Mode) --- */
body.dark-mode { background-color: #121212; color: #e0e0e0; }
body.dark-mode header { background-color: #1e1e1e; border-bottom-color: #333; }
body.dark-mode .logo, body.dark-mode h1, body.dark-mode h2 { color: #ffffff; }
body.dark-mode .hamburger-menu span { background-color: #fff; }
body.dark-mode .nav-links { background-color: #1e1e1e; }
body.dark-mode .nav-links li a { color: #e0e0e0; }
body.dark-mode .nav-links li a:hover, body.dark-mode .service-card .order-now { color: #4dabf7; }
body.dark-mode section, body.dark-mode .form-page-container { background-color: #1e1e1e; }
body.dark-mode .service-card { background: #2a2a2a; border-color: #333; }
body.dark-mode .service-card h3 { color: #4dabf7; }
body.dark-mode footer { background-color: #1e1e1e; }
body.dark-mode .form-group input,
body.dark-mode .form-group input::file-selector-button,
body.dark-mode .form-group textarea {
    background-color: #333; border-color: #555; color: #fff;
}
.dark-mode-button {
    background: none; border: 1px solid #ddd; border-radius: 20px; padding: 5px 10px;
    cursor: pointer; font-size: 1.2rem; transition: background-color 0.3s, border-color 0.3s;
}
body.dark-mode .dark-mode-button { border-color: #555; color: #fff; }

/* --- تصميم قسم تواصل معي المحدّث --- */
#contact {
    text-align: center;
}

.contact-button {
    display: inline-block;
    padding: 12px 28px;
    margin: 20px 0;
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px; /* حواف دائرية جداً */
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* المسافة بين الأيقونات */
}

.social-links a img {
    width: 40px; /* حجم الأيقونة */
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2); /* تكبير الأيقونة عند مرور الفأرة */
}

/* --- تصميم قسم تواصل معي في الوضع الداكن --- */
body.dark-mode .contact-button {
    border-color: #4dabf7;
    color: #4dabf7;
}

body.dark-mode .contact-button:hover {
    background-color: #4dabf7;
    color: #121212;
}

/* جعل الأيقونات البيضاء تظهر بشكل أفضل في الوضع الداكن */
body.dark-mode .social-links a img {
    filter: invert(90%) sepia(10%) saturate(1500%) hue-rotate(180deg) brightness(100%) contrast(90%);
}

/* --- تصميم زر رفع الملفات المخصص --- */
.form-group input[type="file"] {
    display: none; /* إخفاء الزر الافتراضي القبيح */
}

.file-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background-color: #6c757d; /* لون رمادي مميز */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.file-upload-label:hover {
    background-color: #5a6268;
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

body.dark-mode .file-upload-label {
    background-color: #555;
}
body.dark-mode .file-upload-label:hover {
    background-color: #777;
}
body.dark-mode .file-name {
    color: #aaa;
}

/* --- تصميم فاصل "أو" وزر واتساب --- */
.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0;
    color: #aaa;
}
.or-separator .line {
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
}
.or-separator .text {
    padding: 0 15px;
    font-weight: bold;
}
body.dark-mode .or-separator .line {
    background-color: #444;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #25D366; /* لون واتساب الرسمي */
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.whatsapp-button:hover {
    background-color: #1DAE55;
}
.whatsapp-button img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* لجعل الأيقونة بيضاء */
}

/* --- تصميم القائمة السفلية الثابتة --- */
.bottom-nav {
    display: flex;
    justify-content: space-around; /* توزيع الأيقونات بالتساوي */
    align-items: center;
    position: fixed; /* تثبيت القائمة في الشاشة */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px; /* ارتفاع القائمة */
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* ظل جميل في الأعلى */
    z-index: 1000; /* للتأكد من أنها فوق كل شيء */
}

.bottom-nav-link {
    display: flex;
    flex-direction: column; /* لوضع الأيقونة فوق النص */
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* لجعل كل رابط يأخذ نفس المساحة */
    text-decoration: none;
    color: #888; /* لون الأيقونات غير النشطة */
    transition: color 0.3s;
}

.bottom-nav-link:hover {
    color: #007bff; /* تغيير اللون عند مرور الفأرة */
}

/* تصميم الأيقونة النشطة */
.bottom-nav-link.active {
    color: #007bff; /* اللون الأزرق للأيقونة النشطة */
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.bottom-nav-text {
    font-size: 0.7rem; /* حجم خط صغير للنص */
}

/* لإضافة مساحة فارغة أسفل المحتوى حتى لا تغطيه القائمة */
body {
    padding-bottom: 70px;
}

/* --- تصميم القائمة السفلية في الوضع الداكن --- */
body.dark-mode .bottom-nav {
    background-color: #1e1e1e;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bottom-nav-link {
    color: #777;
}

body.dark-mode .bottom-nav-link:hover {
    color: #4dabf7;
}

body.dark-mode .bottom-nav-link.active {
    color: #4dabf7;
}

/* --- تصميم الأيقونات في القائمة العلوية --- */
.nav-links li a {
    display: flex; /* لجعل الأيقونة والنص بجانب بعضهما */
    align-items: center; /* لمحاذاة الأيقونة والنص عمودياً */
    gap: 10px; /* مسافة بين الأيقونة والنص */
}

.nav-link-icon {
    width: 22px; /* حجم الأيقونة */
    height: 22px;
}

/* --- تصميم صفحة الفيديوهات --- */
.page-container {
    padding: 40px 0;
}

.page-container h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-container p {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: #666;
}

body.dark-mode .page-container p {
    color: #aaa;
}

.video-gallery-grid {
    display: grid;
    /* إنشاء أعمدة متجاوبة، كل عمود عرضه 350px على الأقل */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* المسافة بين الفيديوهات */
}

.video-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* لإخفاء أي زوائد من الفيديو */
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.video-card h3 {
    font-size: 1.2rem;
    padding: 15px 20px;
    margin: 0;
}

body.dark-mode .video-card {
    background-color: #1e1e1e;
}

/* --- لجعل فيديو يوتيوب متجاوب مع الشاشة --- */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبة العرض إلى الارتفاع 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- لجعل فيديو mp4 متجاوب --- */
.video-player {
    width: 100%;
    height: auto;
    display: block;
}

/* --- تصميم قسم معرض الأعمال (Portfolio) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-card {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.portfolio-title {
    padding: 20px;
    text-align: center;
}
.portfolio-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}
/* الوضع الداكن */
body.dark-mode .portfolio-card {
    background-color: #2a2a2a;
    border: 1px solid #333;
}
body.dark-mode .portfolio-title h3 {
    color: #e0e0e0;
}

/* --- تصميم قسم فريق العمل --- */
.team-grid {
    display: grid;
    /* إنشاء أعمدة متجاوبة، كل عمود عرضه 250px على الأقل */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* المسافة بين بطاقات الموظفين */
    margin-top: 50px;
}

.team-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.team-photo {
    width: 140px;  /* عرض الصورة */
    height: 140px; /* ارتفاع الصورة */
    border-radius: 50%; /* لجعل الصورة دائرية تماماً */
    object-fit: cover; /* لضمان عدم تشوه الصورة */
    border: 5px solid #007bff; /* إطار أزرق حول الصورة */
    margin-bottom: 20px;
}

.team-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a img {
    width: 30px; /* حجم أيقونات التواصل الاجتماعي */
    height: 30px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.team-social a:hover img {
    opacity: 1;
    transform: scale(1.15);
}

/* --- تصميم فريق العمل في الوضع الداكن --- */
body.dark-mode .team-card {
    background-color: #2a2a2a;
    border: 1px solid #333;
}

body.dark-mode .team-photo {
    border-color: #4dabf7;
}

body.dark-mode .team-card h3 {
    color: #e0e0e0;
}

body.dark-mode .team-social a img {
    /* نفس الفلتر الذي استخدمناه سابقاً لجعل الأيقونات بيضاء */
    filter: invert(90%) sepia(10%) saturate(1500%) hue-rotate(180deg) brightness(100%) contrast(90%);
}

/* --- تصميم تأثير الكتابة الآلية --- */
.typing-text {
    /* يمكن إضافة أي تصميم خاص للنص هنا إذا أردت */
}

.cursor {
    display: inline-block;
    background-color: #333; /* لون المؤشر */
    width: 3px;
    animation: blink 1s infinite; /* تطبيق حركة الوميض */
}

/* جعل المؤشر يتناسب مع حجم الخط */
h1 .cursor {
    margin-right: 5px;
    height: 3rem; /* يجب أن يكون قريباً من حجم خط h1 */
}

body.dark-mode .cursor {
    background-color: #f4f4f4; /* تغيير لون المؤشر في الوضع الداكن */
}

/* تعريف حركة الوميض */
@keyframes blink {
    0% { background-color: #333; }
    49% { background-color: #333; }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100% { background-color: #333; }
}

body.dark-mode @keyframes blink {
    0% { background-color: #f4f4f4; }
    49% { background-color: #f4f4f4; }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100% { background-color: #f4f4f4; }
}

/* --- تصميم سعر الخدمة --- */
.service-price {
    margin-top: auto; /* يدفع السعر للأسفل مع زر الطلب */
    padding-top: 15px;
    margin-bottom: 15px;
    border-top: 1px solid #eee; /* خط فاصل خفيف فوق السعر */
}

.price-amount {
    font-size: 2.5rem; /* حجم كبير لرقم السعر */
    font-weight: bold;
    color: #333;
}

.price-currency {
    font-size: 1.2rem;
    color: #777;
    margin-right: 5px; /* مسافة صغيرة بجانب الرقم */
}

/* --- تصميم السعر في الوضع الداكن --- */
body.dark-mode .service-price {
    border-top-color: #333;
}

body.dark-mode .price-amount {
    color: #e0e0e0;
}

body.dark-mode .price-currency {
    color: #aaa;
}

/* --- تصميم صفحة الخطأ 404 --- */
.error-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh; /* لجعل المحتوى في وسط الشاشة عمودياً */
    padding: 40px 20px;
}

.error-code {
    font-size: 10rem; /* حجم كبير جداً لرقم الخطأ */
    font-weight: 900;
    color: #007bff;
    line-height: 1;
}

.error-page-container h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.error-page-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* --- تصميم صفحة الخطأ في الوضع الداكن --- */
body.dark-mode .error-code {
    color: #4dabf7;
}

body.dark-mode .error-page-container p {
    color: #aaa;
}

/* --- تصميم صورة صفحة الخطأ --- */
.error-image {
    max-width: 250px; /* يمكنك تغيير حجم الصورة من هنا */
    width: 100%;
    height: auto;
    margin-bottom: 30px; /* مسافة بين الصورة ورقم 404 */
}

/* --- تصميم الفوتر الجديد --- */
footer {
    background-color: #2c3e50; /* لون أزرق داكن */
    color: #ecf0f1; /* لون نص فاتح */
    padding: 50px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* شبكة متجاوبة */
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

/* خط صغير تحت كل عنوان عمود */
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #007bff; /* لون أزرق مميز */
}

.footer-column p {
    text-align: right;
    font-size: 0.9rem;
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-right: 5px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a img {
    width: 35px;
    height: 35px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links-footer a:hover img {
    opacity: 1;
}

.footer-bottom {
    background-color: #233140; /* لون أغمق قليلاً */
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: #7f8c8d;
}

/* --- تصميم شريط الموافقة على الكوكيز (النسخة المصححة) --- */

/* القاعدة رقم 1: بشكل افتراضي، الشريط مخفي */
.cookie-banner {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 25px;
    z-index: 2000;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* القاعدة رقم 2: إذا تمت إضافة كلاس .active، قم بإظهار الشريط */
.cookie-banner.active {
    display: flex; 
}

/* باقي التصاميم للنص والزر (هذه لا تؤثر على الإخفاء والإظهار) */
.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    text-align: right;
}

.cookie-banner a {
    color: #4dabf7;
    text-decoration: underline;
}

.cookie-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

body.dark-mode .cookie-banner {
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

/* ====================
   About Us Page Styles
   ==================== */

.about-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Cairo', sans-serif; /* استخدم الخط الذي تفضله */
    line-height: 1.8;
}

.about-hero {
    text-align: center;
    margin-bottom: 50px;
}

.about-hero h1 {
    font-size: 3em;
    color: #333;
    margin-bottom: 10px;
}

.about-hero .subtitle {
    font-size: 1.2em;
    color: #666;
}

.about-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.about-section h2 {
    font-size: 2em;
    color: #444;
    margin-bottom: 20px;
}

.about-section p, .about-section li {
    font-size: 1.1em;
    color: #555;
}

.about-section ul {
    list-style: none;
    padding-right: 20px;
}

.about-section ul li {
    margin-bottom: 10px;
    position: relative;
}

.about-section ul li::before {
    content: '✓'; /* علامة صح */
    position: absolute;
    right: -25px;
    color: #28a745; /* لون أخضر */
    font-weight: bold;
}

/* --- Grid for Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* --- Call to Action (CTA) Section --- */
.about-cta {
    text-align: center;
    background-color: #f0f4f8;
    padding: 40px 20px;
    border-radius: 8px;
}

.about-cta h2 {
    margin-bottom: 15px;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

.cta-button.secondary {
    background-color: #6c757d;
}

.cta-button.secondary:hover {
    background-color: #5a6268;
}

/* =========================
   New "About Us" Section Styles
   ========================= */

.about-section-new {
    padding: 60px 20px;
    background-color: #f9f9f9; /* لون خلفية خفيف لتمييز القسم */
    overflow: hidden; /* لمنع أي تداخلات غير مرغوبة */
}

.about-container-new {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* للسماح للعناصر بالالتفاف على الشاشات الصغيرة */
}

.about-image, .about-content {
    flex: 1; /* يأخذ كل جزء نصف المساحة */
    min-width: 300px; /* أقل عرض ممكن قبل أن يلتف */
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.03); /* تأثير تكبير بسيط عند مرور الماوس */
}

.about-content .section-title {
    font-size: 2.5rem; /* حجم خط كبير للعنوان */
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.about-content .section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #444;
    display: flex;
    align-items: center;
}

.about-features .icon {
    color: #007bff; /* لون الأيقونة */
    font-style: normal;
    margin-left: 10px;
    font-weight: bold;
}

/* إعادة استخدام تصميم الزر من الكود الأصلي وتعديله قليلاً */
.about-content .cta-button {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.about-content .cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px); /* تأثير رفع بسيط عند المرور */
}

/* ---- لجعل التصميم متجاوباً مع الشاشات الصغيرة ---- */
@media (max-width: 768px) {
    .about-container-new {
        flex-direction: column; /* ترتيب العناصر فوق بعضها */
        text-align: center;
    }

    .about-content {
        margin-top: 20px;
    }

    .about-features {
        display: inline-block;
        text-align: right; /* محاذاة النص لليمين داخل القائمة */
    }
}

/* =========================
   Join Us Page Styles
   ========================= */

/* لجعل كلمة (اختياري) بلون مختلف */
.optional-text {
    font-size: 0.9em;
    color: #777;
}

/* تصميم حقل إدخال الملفات */
input[type="file"] {
    border: 1px solid #ccc;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="file"]:hover {
    background-color: #f1f1f1;
}

/* تنسيق عام للحاوية */
.join-us-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.join-us-container p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    color: #666;
}

/* --- تعديل تصميم زر الهيرو --- */
#hero .cta-button {
    background-color: #ffffff; /* خلفية بيضاء */
    color: #007bff; /* نص أزرق */
    border: 2px solid transparent;
}
#hero .cta-button:hover {
    background-color: #f0f0f0;
    color: #0056b3;
    transform: translateY(-2px);
}

/* --- تصميم قسم "من أنا" الجديد --- */
.about-section-new {
    background-color: #ffffff;
    padding: 80px 20px;
}
.about-container-new {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-image {
    flex-basis: 50%;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-content {
    flex-basis: 50%;
    text-align: right;
}
.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: right;
}
.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: right;
    margin-bottom: 30px;
}
.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.about-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.about-features .icon {
    color: #28a745; /* لون أخضر لعلامة الصح */
    font-size: 1.5rem;
    margin-left: 10px;
}

/* --- تصميم الوضع الداكن للقسم الجديد --- */
body.dark-mode .about-section-new {
    background-color: #1e1e1e;
}
body.dark-mode .section-title {
    color: #ffffff;
}
body.dark-mode .section-subtitle {
    color: #bbbbbb;
}
body.dark-mode .about-features li {
    color: #dddddd;
}

/* --- تصميم صفحة الشات --- */
.chat-container { border: 1px solid #ddd; border-radius: 10px; overflow: hidden; }
.chat-window { height: 400px; padding: 20px; overflow-y: auto; background: #f9f9f9; }
.chat-message { max-width: 80%; padding: 10px 15px; border-radius: 15px; margin-bottom: 10px; }
.user-message { background-color: #007bff; color: white; margin-right: auto; border-bottom-right-radius: 0; }
.ai-message { background-color: #e9ecef; color: #333; margin-left: auto; border-bottom-left-radius: 0; }
.chat-form { display: flex; border-top: 1px solid #ddd; }
#chat-input { flex-grow: 1; border: none; padding: 15px; font-size: 1rem; outline: none; }
#send-button { background: #007bff; color: white; border: none; padding: 0 25px; cursor: pointer; }
/* Dark Mode */
body.dark-mode .chat-container, body.dark-mode .chat-form { border-color: #333; }
body.dark-mode .chat-window { background: #1a1a1a; }
body.dark-mode .ai-message { background: #2c2c2c; color: #eee; }
body.dark-mode #chat-input { background: #333; color: #eee; }

/* --- تصميم زر تليجرام المحسّن --- */
.telegram-button {
    display: inline-flex; /* يضمن محاذاة النص والأيقونة بشكل ممتاز */
    align-items: center;
    justify-content: center;
    gap: 12px; /* مسافة بين الأيقونة والنص */
    padding: 12px 24px;
    background-color: #2AABEE; /* لون تليجرام الرسمي */
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(42, 171, 238, 0.3); /* ظل خفيف بلون الزر */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* ظل للنص لجعله أوضح */
    transition: all 0.3s ease;
}

.telegram-button:hover {
    background-color: #1E96C8; /* لون أغمق عند المرور */
    transform: translateY(-2px); /* تأثير رفع بسيط */
    box-shadow: 0 6px 15px rgba(42, 171, 238, 0.4);
}

.telegram-button img {
    width: 28px;
    height: 28px;
}

/* --- 7. تصميم متجاوب للشاشات الصغيرة --- */
@media (max-width: 768px) {
    .service-card-link {
        width: 100%;
        min-width: unset;
    }
}