/* ملف: public_html/css/style.css */

/* ------------------------------------ */
/* 1. أساسيات عامة وإعادة ضبط (Reset & General Basics) */
/* ------------------------------------ */
:root {
    /* ألوان أساسية بنية */
    --primary-color: #5A3E38; /* بني غامق دافئ (Deep Warm Brown) - للعلامة التجارية، الأزرار الأساسية، العناوين الرئيسية */
    --secondary-color: #8C6A5A; /* بني متوسط (Medium Brown) - للخلفيات الداكنة قليلاً، العناصر الثانوية، الأقسام المميزة */
    --accent-color: #C09B60; /* بني ذهبي/عسلي (Golden Brown/Honey) - للتمييز، الروابط النشطة، الأيقونات، الخطوط البارزة */

    /* ألوان محايدة (بنية/كريمية) */
    --dark-neutral: #3D2B26; /* بني غامق جداً (Very Dark Brown) - للنصوص الداكنة جداً، الخلفيات التي تحتاج عمقاً */
    --medium-neutral: #A68D50; /* بني محايد/بيج داكن (Neutral Brown/Dark Beige) - للخطوط الفاصلة، بعض ألوان النص الثانوية (كانت dark-blue) */
    --light-neutral: #F5F1ED; /* بيج فاتح/كريمي (Light Beige/Cream) - للخلفيات الفاتحة، البطاقات، العناصر البيضاء تقريباً */
    --extra-light-neutral: #F8F5F2; /* بيج فاتح جداً (Extra Light Beige) - لخلفية الجسم الرئيسية، المناطق التي تحتاج للتهدئة */

    /* ألوان النص */
    --text-color: #333333; /* لون نص أساسي (Charcoal Grey) - للنصوص العادية على الخلفيات الفاتحة */
    --light-text-color: #FFFFFF; /* لون نص فاتح (Pure White) - للنصوص على الخلفيات الداكنة */

    /* ألوان حالات خاصة */
    --success-color: #8C6A5A; /* بني متوسط (Medium Brown) - للرسائل الإيجابية، يمكن تمييزه بنفس الثانوي */
    --error-color: #D32F2F; /* أحمر داكن (Dark Red) - للتحذيرات والأخطاء */
    --info-color: #1976D2; /* أزرق متوسط (Medium Blue) - للمعلومات */

    /* ظلال */
    --shadow-light: rgba(0, 0, 0, 0.05); /* ظل فاتح جداً */
    --shadow-medium: rgba(0, 0, 0, 0.1); /* ظل متوسط */
    --shadow-dark: rgba(0, 0, 0, 0.2); /* ظل داكن */
}

body {
    font-family: 'Almarai', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    background-color: var(--extra-light-neutral); /* استخدام اللون البيج الفاتح جداً */
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

/* ------------------------------------ */
/* 2. أنماط العناوين (Headings) */
/* ------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: bold;
    color: var(--primary-color); /* بني غامق للعناوين */
    line-height: 1.3;
}

h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color); /* لون تمييزي للخط تحت العناوين */
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-color); /* نص عادي */
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------ */
/* 3. أنماط رأس الصفحة (Header) والتنقل (Navigation) */
/* ------------------------------------ */
.top-bar {
    background-color: var(--dark-neutral); /* بني غامق جداً للشريط العلوي */
    color: var(--light-text-color);
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-left span,
.top-bar-right a {
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-left span i,
.top-bar-right a i {
    margin-left: 8px;
    color: var(--accent-color); /* لون تمييزي للأيقونات في الشريط العلوي */
    font-size: 1.1em;
}

.top-bar-right a:hover {
    color: var(--accent-color); /* لون تمييزي عند التحويم */
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-right: 15px;
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px;
}

.social-icons a:hover {
    color: var(--accent-color); /* لون تمييزي عند التحويم */
    transform: translateY(-3px);
}

.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-right: 30px;
}

.main-nav ul li:last-child {
    margin-right: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color); /* بني غامق للروابط الرئيسية */
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent-color); /* لون تمييزي عند التحويم أو نشط */
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color); /* لون تمييزي لخط التحويم */
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.8em;
    color: var(--primary-color); /* بني غامق لأيقونة قائمة الجوال */
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-icon:hover {
    color: var(--accent-color); /* لون تمييزي عند التحويم */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    max-width: 80%;
    height: 100%;
    background-color: var(--dark-neutral); /* بني غامق جداً لقائمة الجوال */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    padding: 70px 25px 30px;
    transition: right 0.4s ease-out;
    z-index: 1060;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-nav {
    right: 0;
}

.mobile-menu-close-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2em;
    color: var(--light-text-color); /* أبيض لأيقونة الإغلاق */
    cursor: pointer;
    z-index: 1070;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-close-icon:hover {
    color: var(--accent-color); /* لون تمييزي عند التحويم */
    transform: rotate(90deg);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
}

.mobile-nav ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    color: var(--light-text-color); /* أبيض لروابط قائمة الجوال */
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: var(--accent-color); /* لون تمييزي عند التحويم أو نشط */
}

.mobile-contact-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--light-text-color);
}

.mobile-contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-contact-info p i {
    color: var(--accent-color); /* لون تمييزي لأيقونات الاتصال */
    margin-left: 10px;
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-social-icons a {
    color: #fff;
    font-size: 1.5em;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-social-icons a:hover {
    background-color: var(--accent-color); /* لون تمييزي عند التحويم */
    color: #fff;
}

/* ------------------------------------ */
/* 4. أنماط الأزرار العامة (General Buttons) */
/* ------------------------------------ */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); /* تدرج بني غامق إلى لون تمييزي */
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); /* تدرج بني متوسط إلى بني غامق */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); /* تدرج بني غامق إلى لون تمييزي */
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.5s ease;
    z-index: -1;
}

.btn-primary-hero:hover::before {
    width: 100%;
}

.btn-secondary-hero {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 40px;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background-color: #fff;
    color: var(--primary-color); /* بني غامق */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color); /* بني غامق */
    border-color: var(--primary-color); /* بني غامق */
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-read-more {
    background-color: transparent;
    color: var(--primary-color); /* بني غامق */
    padding: 0;
    font-weight: bold;
    font-size: 1em;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-read-more:hover {
    color: var(--secondary-color); /* بني متوسط */
}

.btn-read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.btn-read-more:hover i {
    margin-left: 10px;
}

/* ------------------------------------ */
/* 5. أنماط الأقسام الرئيسية (Main Sections) */
/* ------------------------------------ */
section:nth-of-type(odd) {
    background-color: #fff;
}

section.grey-bg {
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً للخلفية */
}

section.dark-blue-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* تدرج من بني غامق إلى بني متوسط */
    color: #fff;
}

section.dark-bg {
    background-color: var(--dark-neutral); /* بني غامق جداً */
    color: #fff;
}

/* 5.1. Hero Section */
.hero-section {
    position: relative;
    padding: 150px 0;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;

}

.hero-logo {
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 1s ease;
}

.hero-logo img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #eee;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: var(--accent-color); /* لون تمييزي للفقرة في قسم الهيرو */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* 5.2. شريط الخدمات الأيقوني */
.services-icons-bar {
    padding: 60px 0;
    background-color: #fff;
}

.services-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: right;
}

.service-icon-item {
    padding: 25px;
    background-color: var(--light-neutral); /* بيج فاتح */
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.service-icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.service-icon-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)); /* تدرج لون تمييزي إلى بني متوسط */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-icon-item:hover::after {
    transform: scaleX(1);
}

.service-icon-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.service-icon-item:hover img {
    transform: scale(1.1);
}

.service-icon-item h3 {
    font-size: 1.4em;
    color: var(--primary-color); /* بني غامق للعناوين الفرعية */
    margin-bottom: 10px;
}

.service-icon-item p {
    font-size: 0.95em;
    color: var(--text-color); /* نص عادي */
    line-height: 1.5;
}

/* 5.3. قسم الإحصائيات */
.stats-section {
    background-color: var(--primary-color); /* بني غامق للخلفية */
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.stat-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--accent-color); /* لون تمييزي للأرقام */
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.2em;
    color: var(--light-text-color); /* أبيض للتسميات (على خلفية اللون الأساسي) */
    font-weight: bold;
}

/* 5.4. قسم عملائنا الكرام */
.clients-section {
    padding: 60px 0;
    background-color: var(--light-neutral); /* بيج فاتح */
    text-align: center;
}

.clients-section h2 {
    margin-bottom: 40px;
}

.clients-logos-slider {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    animation: slideClients 30s linear infinite;
    padding: 20px 0;
}

.client-logo-item {
    flex-shrink: 0;
    width: 150px;
    margin: 0 20px;
    display: inline-block;
    vertical-align: middle;
}

.client-logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

.client-logo-item img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes slideClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 5.5. قسم معرض أعمالنا */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً لخلفية قسم المعرض */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--primary-color), rgba(26, 44, 78, 0)); /* تراكب بني غامق */
    color: #fff;
    padding: 25px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #fff;
}

.overlay-link {
    color: var(--accent-color); /* لون تمييزي */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.overlay-link:hover {
    color: #fff;
}

.overlay-link i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.overlay-link:hover i {
    margin-left: 12px;
}

/* 5.6. قسم نبذة عن المؤسسة */
.about-us-detailed-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* تدرج من بني غامق إلى بني متوسط */
    color: #fff;
}

.about-detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-detailed-text h2 {
    text-align: right;
    margin-bottom: 30px;
    color: #fff;
}

.about-detailed-text h2::after {
    background-color: var(--accent-color); /* لون تمييزي */
    margin-right: 0;
}

.about-detailed-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.about-detailed-image {
    position: relative;
}

.about-detailed-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    transition: transform 0.3s ease;
}

.about-detailed-image img:hover {
    transform: scale(1.02);
}

/* 5.7. قسم التقدم والإنجازات مع الرؤية */
.progress-vision-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-neutral), var(--secondary-color)); /* تدرج من بني غامق جداً إلى بني متوسط */
    color: #fff;
}

.progress-vision-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.vision-text h2 {
    text-align: right;
    margin-bottom: 30px;
    color: #fff;
}

.vision-text h2::after {
    background-color: var(--accent-color); /* لون تمييزي */
    margin-right: 0;
}

.vision-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    background-color: transparent;
    border: none;
    color: #ccc;
    font-size: 1.2em;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: bold;
}

.tab-button.active {
    color: var(--accent-color); /* لون تمييزي عند النشاط */
    border-color: var(--accent-color); /* لون تمييزي عند النشاط */
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-button:hover:not(.active) {
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--light-text-color);
}

.progress-bars {
    padding-top: 20px;
}

.progress-item {
    margin-bottom: 30px;
}

.progress-label {
    display: block;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 10px;
}

.progress-bar-container {
    background-color: rgba(255, 255, 255, 0.1);
    height: 15px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color)); /* تدرج لون تمييزي إلى بني غامق */
    border-radius: 5px;
    transition: width 1s ease-out;
}

.progress-value {
    display: block;
    font-size: 1em;
    color: var(--accent-color); /* لون تمييزي */
    font-weight: bold;
    text-align: left;
    margin-top: 5px;
}

/* 5.8. قسم التقييم والفيديو و QR Code */
.testimonials-video-qr-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
}

.testimonials-video-qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.testimonial-content {
    background-color: var(--dark-neutral); /* بني غامق جداً */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center;
    position: relative;
}

.testimonial-content .stars {
    color: #f7b400; /* لون ذهبي للنجوم */
    font-size: 1.3em;
    margin-bottom: 15px;
}

.testimonial-content h3 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.testimonial-content h3 span {
    color: var(--accent-color); /* لون تمييزي */
}

.testimonial-content .quote {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.testimonial-content .customer-name {
    font-weight: bold;
    color: var(--accent-color); /* لون تمييزي */
    margin-bottom: 5px;
}

.testimonial-content .customer-title {
    color: #ccc;
    font-size: 0.9em;
}

.testimonial-dots {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
    background-color: var(--accent-color); /* لون تمييزي */
}

.qr-code-content {
    background-color: var(--dark-neutral); /* بني غامق جداً */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.qr-image {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.qr-label {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-color); /* لون تمييزي */
    margin-bottom: 10px;
}

.qr-text {
    font-size: 1em;
    color: var(--light-text-color);
}

.video-content {
    background-color: var(--secondary-color); /* بني متوسط */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
}

.video-thumbnail {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail .play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content h3 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.social-share-video {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: auto;
}

.social-share-video a {
    color: #fff;
    font-size: 1.6em;
    background-color: rgba(0, 0, 0, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-share-video a:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* 5.9. قسم آخر ما كتبنا (المدونة) */
.latest-articles-section {
    padding: 80px 0;
    background-color: var(--light-neutral); /* بيج فاتح */
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.article-card .article-content {
    padding: 20px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color); /* بني غامق */
}

.article-card h3 a {
    color: var(--primary-color); /* بني غامق */
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: var(--accent-color); /* لون تمييزي */
}

.article-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta span i {
    margin-left: 8px;
    color: var(--accent-color); /* لون تمييزي */
}

.article-card p {
    font-size: 1em;
    color: var(--text-color); /* نص عادي */
    margin-bottom: 25px;
    flex-grow: 1;
}

.article-card .btn-read-more {
    align-self: flex-start;
    margin-top: auto;
}

/* 6. أيقونة الواتساب العائمة */
@keyframes pulse-img {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: pulse-img 2s infinite;
}

.whatsapp-floating-btn:hover .whatsapp-icon-img {
    animation: none;
    transform: scale(1.1);
}

/* 7. التجاوبية (لا تتغير الألوان هنا بشكل مباشر، فقط هياكل CSS) */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .testimonials-video-qr-grid {
        grid-template-columns: 1fr;
    }

    .progress-vision-grid,
    .about-detailed-grid {
        grid-template-columns: 1fr;
    }

    .about-detailed-text h2,
    .vision-text h2 {
        text-align: center;
    }

    .about-detailed-text h2::after,
    .vision-text h2::after {
        margin: 15px auto 0;
        right: auto;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .services-icons-grid,
    .stats-grid,
    .portfolio-grid,
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .hero-section {
        min-height: 550px;
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .services-icons-grid,
    .stats-grid,
    .portfolio-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .service-item-card,
    .stat-item,
    .portfolio-item,
    .article-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .progress-vision-grid,
    .about-detailed-grid {
        gap: 30px;
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 1.1em;
    }

    .footer .container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1.2em;
    }

    .hero-content p {
        font-size: 0.95em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .testimonial-content,
    .qr-code-content,
    .video-content {
        padding: 20px;
    }

    .qr-image {
        max-width: 150px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
}

/* 8. أنيميشين */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 9. أنماط قسم الخدمات */
.services-list-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.service-item-card {
    background-color: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: right;
}

.service-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color); /* بني غامق للأيقونات */
    margin-bottom: 20px;
    display: block;
    text-align: right;
}

.service-item-card h3 {
    font-size: 1.6em;
    color: var(--primary-color); /* بني غامق للعناوين */
    margin-bottom: 15px;
}

.service-item-card p {
    font-size: 1em;
    color: var(--text-color); /* نص عادي */
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-item-card .btn-read-more {
    margin-top: auto;
    align-self: flex-end;
}

/* ------------------------------------ */
/* 10. أنماط قسم اتصل بنا (Contact Us) */
/* ------------------------------------ */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-neutral), var(--secondary-color)); /* تدرج بني غامق جداً إلى بني متوسط */
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    padding-right: 30px;
}

.contact-info h2 {
    color: #fff;
    text-align: right;
    margin-bottom: 30px;
}

.contact-info h2::after {
    background-color: var(--accent-color); /* لون تمييزي */
    margin-right: 0;
}

.contact-info p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-align: right;
    justify-content: flex-end;
}

.info-item i {
    font-size: 1.8em;
    color: var(--accent-color); /* لون تمييزي */
    margin-left: 15px;
    width: 30px; /* لضمان محاذاة الأيقونات */
    text-align: center;
}

.info-item span {
    font-size: 1.05em;
    color: var(--light-text-color);
}

.social-media-contact {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-media-contact a {
    color: #fff;
    font-size: 1.8em;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-media-contact a:hover {
    background-color: var(--accent-color); /* لون تمييزي */
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: var(--primary-color); /* بني غامق */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-neutral); /* بني غامق جداً */
    text-align: right;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--light-neutral); /* بيج فاتح للخلفية */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color); /* لون تمييزي */
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2); /* استخدم rgba مع متغيرات الألوان */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-container .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 15px;
}

/* ------------------------------------ */
/* 11. أنماط قسم الخريطة (Map Section) */
/* ------------------------------------ */
.map-section {
    padding: 0; /* لا يوجد بادينج عمودي للخريطة */
}

.map-container {
    height: 500px; /* ارتفاع ثابت للخريطة */
    width: 100%;
    overflow: hidden;
    border-radius: 0; /* يمكن إزالة border-radius إذا كانت تمتد على كامل العرض */
    box-shadow: 0 0 20px var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------ */
/* 12. أنماط تذييل الصفحة (Footer) */
/* ------------------------------------ */
.footer {
    background-color: var(--dark-neutral); /* بني غامق جداً للتذييل */
    color: var(--light-text-color);
    padding: 60px 0 20px;
    font-size: 0.95em;
    text-align: right;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    padding: 10px;
}

.footer-col h4 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 25px;
    font-weight: bold;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color); /* لون تمييزي */
    margin-top: 10px;
    border-radius: 2px;
    right: 0; /* محاذاة لليمين */
}

.footer-col .logo {
    margin-bottom: 20px;
}

.footer-col .logo img {
    max-height: 60px;
    width: auto;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.footer-social-links {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* محاذاة لليمين */
}

.footer-social-links a {
    color: var(--light-text-color);
    font-size: 1.4em;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social-links a:hover {
    background-color: var(--accent-color); /* لون تمييزي */
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* محاذاة لليمين */
}

.footer-col ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-col ul li a:hover {
    color: var(--accent-color); /* تحديث اللون */
}

.footer-col ul li a i {
    margin-left: 8px;
    color: var(--accent-color); /* تحديث اللون */
}

.footer-col p {
    margin-bottom: 15px;
}

.footer-contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: flex-end;
}

.footer-contact-info .contact-item i {
    color: var(--accent-color); /* تحديث اللون */
    font-size: 1.5em;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

.footer-contact-info .contact-item span {
    font-size: 1.05em;
    color: var(--light-text-color);
}

.footer-contact-info .contact-hours {
    margin-top: 20px;
    font-size: 1.05em;
    color: var(--light-text-color);
}

.footer-contact-info .contact-hours p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: #bbb;
}

.footer-bottom p {
    margin: 0;
}

/* ------------------------------------ */
/* 13. أنماط صفحة الخدمات الداخلية (داخل قسم الخدمات) */
/* ------------------------------------ */
.service-details-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.service-details-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.service-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.service-sidebar h4 {
    font-size: 1.8em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 25px;
    text-align: right;
}

.service-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar ul li {
    margin-bottom: 15px;
}

.service-sidebar ul li a {
    display: block;
    padding: 12px 15px;
    background-color: var(--light-neutral); /* بيج فاتح */
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: right;
}

.service-sidebar ul li a:hover,
.service-sidebar ul li a.active {
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
}

.service-main-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.service-main-content h1 {
    font-size: 2.5em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
    text-align: right;
}

.service-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}

.service-main-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: right;
}

.service-main-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-main-content ul li {
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px;
    text-align: right;
}

.service-main-content ul li::before {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-color); /* لون تمييزي */
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 0.9em;
}

.service-cta {
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.service-cta h3 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

/* ------------------------------------ */
/* 14. أنماط صفحة نبذة عنا الداخلية (داخل قسم من نحن) */
/* ------------------------------------ */
.about-internal-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.about-internal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.about-main-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.about-main-content h1 {
    font-size: 2.5em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
    text-align: right;
}

.about-main-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: right;
}

.about-mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.mission-box, .vision-box {
    background-color: var(--light-neutral); /* بيج فاتح */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: right;
}

.mission-box h3, .vision-box h3 {
    font-size: 1.8em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 15px;
}

.mission-box p, .vision-box p {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
}

.about-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
}

.about-sidebar h4 {
    font-size: 1.8em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 25px;
}

.about-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.about-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-sidebar ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-color);
    text-align: right;
}

.about-sidebar ul li i {
    color: var(--accent-color); /* لون تمييزي */
    margin-left: 8px;
}

/* ------------------------------------ */
/* 15. أنماط صفحة اتصل بنا الداخلية (Contact Page) */
/* ------------------------------------ */
.contact-page-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-page-info {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    height: 100%; /* اجعلها تمتد لارتفاع الحاوية */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-page-info h1 {
    font-size: 2.5em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
    text-align: right;
}

.contact-page-info p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: right;
}

.contact-page-info .info-item {
    margin-bottom: 25px;
}

.contact-page-info .social-media-contact {
    margin-top: auto; /* يدفع الأيقونات للأسفل */
    justify-content: flex-start; /* محاذاة لليسار */
}

.contact-page-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-page-form-container h3 {
    text-align: right;
    margin-bottom: 30px;
    font-size: 2em;
    color: var(--primary-color); /* بني غامق */
}

.contact-page-map {
    margin-top: 40px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-page-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------ */
/* 16. أنماط صفحة معرض الأعمال الداخلية (Portfolio Page) */
/* ------------------------------------ */
.portfolio-page-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.portfolio-page-filters {
    text-align: center;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: var(--light-neutral); /* بيج فاتح */
    color: var(--text-color);
    border: none;
    padding: 10px 25px;
    margin: 0 8px 10px;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
}

.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-page-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-page-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-page-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-page-item:hover img {
    transform: scale(1.08);
}

.portfolio-page-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--primary-color), rgba(26, 44, 78, 0)); /* تراكب بني غامق */
    color: #fff;
    padding: 25px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}

.portfolio-page-item:hover .portfolio-page-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-page-overlay h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #fff;
}

.portfolio-page-overlay p {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
}

.portfolio-page-overlay .overlay-link {
    color: var(--accent-color); /* لون تمييزي */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.portfolio-page-overlay .overlay-link:hover {
    color: #fff;
}

.portfolio-page-overlay .overlay-link i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.portfolio-page-overlay .overlay-link:hover i {
    margin-left: 12px;
}

/* ------------------------------------ */
/* 17. أنماط صفحة تفاصيل المشروع (Project Details) */
/* ------------------------------------ */
.project-details-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.project-details-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: right;
}

.project-details-container h1 {
    font-size: 3em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1em;
    color: #888;
    justify-content: flex-end;
}

.project-meta span {
    display: flex;
    align-items: center;
}

.project-meta span i {
    margin-left: 8px;
    color: var(--accent-color); /* لون تمييزي */
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-light);
}

.project-details-container p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.project-details-container ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.project-details-container ul li {
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px;
}

.project-details-container ul li::before {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-color); /* لون تمييزي */
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 0.9em;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.project-navigation a {
    color: var(--primary-color); /* بني غامق */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-navigation a:hover {
    color: var(--accent-color); /* لون تمييزي */
}

.project-navigation .prev, .project-navigation .next {
    display: flex;
    align-items: center;
}

.project-navigation .prev i {
    margin-right: 8px;
}

.project-navigation .next i {
    margin-left: 8px;
}

/* ------------------------------------ */
/* 18. أنماط صفحة المدونة (Blog Page) */
/* ------------------------------------ */
.blog-page-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.blog-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.blog-main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.blog-sidebar .search-form {
    margin-bottom: 30px;
    display: flex;
    position: relative;
}

.blog-sidebar .search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--light-neutral); /* بيج فاتح */
    text-align: right;
    direction: rtl;
}

.blog-sidebar .search-form button {
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 8px 8px 0; /* فقط الزاوية اليمنى العليا والسفلى */
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.blog-sidebar .search-form button:hover {
    background-color: var(--accent-color); /* لون تمييزي */
}

.blog-sidebar .widget {
    margin-bottom: 40px;
}

.blog-sidebar .widget h4 {
    font-size: 1.5em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.blog-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget ul li {
    margin-bottom: 10px;
}

.blog-sidebar .widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
    text-align: right;
}

.blog-sidebar .widget ul li a:hover {
    color: var(--accent-color); /* لون تمييزي */
}

.blog-sidebar .tags-cloud a {
    display: inline-block;
    background-color: var(--light-neutral); /* بيج فاتح */
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.blog-sidebar .tags-cloud a:hover {
    background-color: var(--primary-color); /* بني غامق */
    color: #fff;
}

/* ------------------------------------ */
/* 19. أنماط صفحة تفاصيل المقال (Article Details) */
/* ------------------------------------ */
.article-details-section {
    padding: 80px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
}

.article-details-main-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: right;
}

.article-details-main-content h1 {
    font-size: 2.8em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 15px;
}

.article-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.95em;
    color: #888;
    justify-content: flex-end;
}

.article-details-meta span {
    display: flex;
    align-items: center;
}

.article-details-meta span i {
    margin-left: 8px;
    color: var(--accent-color); /* لون تمييزي */
}

.article-details-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}

.article-details-main-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.article-details-main-content blockquote {
    background-color: var(--light-neutral); /* بيج فاتح */
    border-right: 5px solid var(--accent-color); /* لون تمييزي */
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-color);
    font-size: 1.1em;
    text-align: right;
}

.article-details-main-content h2,
.article-details-main-content h3 {
    color: var(--primary-color); /* بني غامق */
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.article-share span {
    font-weight: bold;
    color: var(--primary-color); /* بني غامق */
}

.article-share a {
    color: var(--secondary-color); /* بني متوسط */
    font-size: 1.4em;
    transition: color 0.3s ease;
}

.article-share a:hover {
    color: var(--accent-color); /* لون تمييزي */
}

.comments-section {
    margin-top: 50px;
}

.comments-section h3 {
    font-size: 2em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 30px;
    text-align: right;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    background-color: var(--light-neutral); /* بيج فاتح */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.comment-author i {
    margin-left: 8px;
    color: var(--accent-color); /* لون تمييزي */
}

.comment-date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
    text-align: right;
}

.comment-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
    text-align: right;
}

.comment-reply-form {
    margin-top: 30px;
}

.comment-reply-form h3 {
    font-size: 1.8em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
    text-align: right;
}

/* ------------------------------------ */
/* 20. أنماط صفحة الأخطاء (404 Page) */
/* ------------------------------------ */
.error-section {
    padding: 100px 0;
    background-color: var(--extra-light-neutral); /* بيج فاتح جداً */
    text-align: center;
}

.error-section h1 {
    font-size: 6em;
    color: var(--primary-color); /* بني غامق */
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.error-section h2 {
    font-size: 2.5em;
    color: var(--secondary-color); /* بني متوسط */
    margin-bottom: 30px;
}

.error-section p {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-section .btn {
    margin-top: 20px;
}
/* Styling for Desktop Dropdown Menu */
.main-nav ul li.dropdown {
    position: relative;
    /* للحفاظ على تدفق النص من اليمين لليسار إذا كانت القائمة بأكملها RTL */
    direction: rtl;
}

.main-nav ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9; /* Choose a suitable background color */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none; /* Remove bullet points */
    padding: 10px 0;
    border-radius: 5px;
    top: 100%; /* Position below the parent link */
    /* تم تغيير "right: 0;" إلى "left: 0;" لمحاذاة القائمة لليسار في RTL */
    left: 0; /* Align to the left for RTL */
    /* وللتأكد من أن العناصر داخل القائمة المنسدلة تتجه من اليمين لليسار */
    direction: rtl;
}

.main-nav ul li.dropdown .dropdown-menu li a {
    color: #333; /* Text color for dropdown items */
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    white-space: nowrap; /* Prevent text wrapping */
    text-align: right; /* محاذاة النص لليمين */
}

.main-nav ul li.dropdown .dropdown-menu li a:hover {
    background-color: #ddd; /* Hover background for dropdown items */
    color: var(--primary-color); /* Assuming you have a primary color variable */
}

.main-nav ul li.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown on hover */
}

.main-nav ul li.dropdown > a .fa-caret-down {
    /* تم تغيير "margin-right: 5px;" إلى "margin-left: 5px;" لتباعد الأيقونة عن النص في RTL */
    margin-left: 5px; /* Space between text and icon */
    transition: transform 0.3s ease;
    float: left; /* لجعل الأيقونة تظهر على يسار النص */
}

.main-nav ul li.dropdown:hover > a .fa-caret-down {
    transform: rotate(180deg); /* Rotate caret on hover */
}


/* Styling for Mobile Submenu */
.mobile-nav ul li.has-submenu .submenu {
    display: none; /* Hidden by default */
    list-style: none;
    /* تم تغيير "padding-left: 20px;" إلى "padding-right: 20px;" للمسافة البادئة في RTL */
    padding-right: 20px; /* Indent submenu items */
    background-color: #f0f0f0; /* Lighter background for submenu */
    /* وللتأكد من أن العناصر داخل القائمة الفرعية تتجه من اليمين لليسار */
    direction: rtl;
}

.mobile-nav ul li.has-submenu.active .submenu {
    display: block; /* Show when active */
}

.mobile-nav ul li.has-submenu .mobile-submenu-toggle {
    cursor: pointer;
    /* تم تغيير "margin-right: 10px;" إلى "margin-left: 10px;" لتباعد الأيقونة عن النص في RTL */
    margin-left: 10px; /* Space between text and toggle icon */
    transition: transform 0.3s ease;
    float: left; /* لجعل الأيقونة تظهر على يسار النص */
}

.mobile-nav ul li.has-submenu.active .mobile-submenu-toggle {
    transform: rotate(45deg); /* Change plus to X or rotate it */
}



/* زر الاتصال العائم الجديد */
.phone-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.phone-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: pulse-img 2s infinite;
    padding: 5px;
    /* تأكد من أن خلفية الصورة نفسها شفافة أو قم بإزالة أي خلفية مسبقة */
    background-color: transparent; /* هذا يضمن عدم وجود خلفية للأيقونة */
}

.phone-floating-btn:hover .phone-icon-img {
    animation: none;
    transform: scale(1.1);
}