/* -------------------------------------------------------------------------- */
/*                                GLOBAL STYLES                               */
/* -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --primary-color: #0D1B3F;      /* Darkest Blue - لون رئيسي عميق */
    --secondary-color: #005A9C;    /* Medium Blue - لون ثانوي للتأكيد */
    --accent-color: #00AEEF;       /* Bright Cyan/Light Blue - لون مميز مشرق */
    --accent-color-darker: #008fc4;/* Darker Accent for hovers */

    --text-color: #343a40;         /* Dark Grey for text */
    --light-text-color: #6c757d;   /* Lighter Grey for secondary text */
    --heading-color: var(--primary-color);

    --background-color: #F8F9FA;   /* Very Light Grey - almost white */
    --white-color: #ffffff;
    --light-bg-section: #E9ECEF;   /* Light Grey for alternating sections */
    --dark-bg-section: var(--primary-color);

    --border-color: #ced4da;       /* Standard border color */
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;      /* Larger border radius for modern cards */

    --font-family-base: 'Tajawal', sans-serif;
    --box-shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-strong: 0 12px 35px rgba(0, 0, 0, 0.12);

    --transition-speed: 0.3s;
    --transition-speed-fast: 0.2s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-family-base);
    line-height: 1.75; /* Increased for better readability */
    color: var(--text-color);
    background-color: var(--background-color);
    direction: rtl;
    overflow-x: hidden; /* محاولة لمنع التمرير الأفقي العام */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale;  /* Smoother fonts on Firefox */
}

.container {
    width: 90%;
    max-width: 1200px; /* Wider container for modern feel */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 0.8em;
    font-weight: 800; /* Bolder headings by default */
    line-height: 1.3;
}

h1 { font-size: clamp(2.5em, 5vw, 3.8em); font-weight: 900; } /* Responsive H1 */
h2.section-title { font-size: clamp(2em, 4vw, 2.8em); font-weight: 800; }
h3 { font-size: clamp(1.4em, 3vw, 1.8em); }

p {
    margin-bottom: 1.2em;
    color: var(--light-text-color);
}
p.lead-text { /* For introductory paragraphs */
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-color); /* Slightly darker for lead text */
}

a {
    text-decoration: none;
    color: var(--accent-color); /* Accent color for links */
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--accent-color-darker);
}

ul, ol {
    list-style: none;
}

img.img-fluid { /* Helper class for responsive images */
    max-width: 100%;
    height: auto;
    display: block;
}
img.rounded-img { border-radius: var(--border-radius-md); }
img.shadow-img { box-shadow: var(--box-shadow-medium); }


.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}
.section-padding-top { padding-top: 80px; }
.section-padding-bottom { padding-bottom: 80px; }


.section-subtitle { /* For subtitles within sections */
    font-size: clamp(1.6em, 3.5vw, 2.2em);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}
.section-inner-title { /* For H3 titles within content blocks */
    font-size: clamp(1.3em, 2.5vw, 1.6em);
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}


.title-divider {
    width: 70px; /* Slightly shorter */
    height: 5px; /* Slightly thicker */
    background-color: var(--accent-color); /* Default to accent color */
    margin: 0 auto 60px auto; /* Increased bottom margin */
    border-radius: 3px;
}
.title-divider.dark-divider { /* For use on light backgrounds if accent is too bright */
    background-color: var(--secondary-color);
}
.title-divider.accent-divider { /* Already defined in Home Page for Why Us */
    background-color: var(--accent-color);
}


.light-bg { background-color: var(--light-bg-section); }
.dark-bg {
    background-color: var(--dark-bg-section);
    color: var(--white-color);
}
.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg p, .dark-bg .section-title, .dark-bg .section-subtitle {
    color: var(--white-color);
}
.dark-bg .title-divider { background-color: var(--accent-color); } /* Accent divider on dark bg */
.dark-bg .btn-outline-light { /* Special button for dark backgrounds */
    color: var(--white-color);
    border-color: rgba(255, 255, 255, 0.7);
}
.dark-bg .btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}


/* -------------------------------------------------------------------------- */
/*                                   BUTTONS                                  */
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; /* For aligning icon with text */
    align-items: center;
    justify-content: center;
    padding: 14px 32px; /* Modern padding */
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1em;
    transition: all var(--transition-speed) ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: none;
    line-height: 1.5;
}
.btn i {
    margin-right: 8px;
}
[dir="ltr"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-medium);
}
.btn-lg {
    padding: 16px 40px;
    font-size: 1.1em;
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9em;
}
.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--light-bg-section);
    color: var(--primary-color);
    border-color: var(--light-bg-section);
}
.btn-secondary:hover {
    background-color: #d4dae0;
    border-color: #d4dae0;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
}
.btn-accent:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--white-color);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed; /* Changed to fixed for sticky effect */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding var(--transition-speed) ease, background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.site-header.sticky-header.scrolled { /* This class is added by JS */
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.97); /* Slight transparency */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 2em;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
}

.main-navigation ul li { margin-left: 38px; }
[dir="rtl"] .main-navigation ul li { margin-left: 0; margin-right: 38px; }
[dir="rtl"] .main-navigation ul li:first-child { margin-right: 0; }


.nav-link {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.05em;
    padding: 10px 0;
    position: relative;
    display: inline-block;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    right: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
[dir="ltr"] .nav-link::after { right: auto; left: 0; }
.nav-link:hover, .nav-link.active { color: var(--accent-color); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions .language-switcher {
    color: var(--primary-color);
    font-weight: 700;
    padding: 9px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    margin-left: 18px;
    transition: all var(--transition-speed-fast) ease;
}
[dir="rtl"] .header-actions .language-switcher { margin-left: 0; margin-right: 18px; }
.header-actions .language-switcher:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.header-actions .header-cta {
    font-weight: 700;
    padding: 9px 20px !important; /* Ensure padding is applied */
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.9em; /* Increased size for better tap target */
    cursor: pointer;
    padding: 0; /* Remove default padding */
    line-height: 1; /* Ensure icon is centered if it has line-height */
}
/* ... (الأنماط السابقة) ... */

/* -------------------------------------------------------------------------- */
/*                            LANGUAGE SWITCHER NEW                           */
/* -------------------------------------------------------------------------- */
.language-selector-container {
    position: relative; /* لتحديد موضع القائمة المنسدلة */
    margin-left: 20px; /* مسافة من زر CTA المجاور */
}
[dir="rtl"] .language-selector-container {
    margin-left: 0;
    margin-right: 20px;
}

.language-toggle-btn {
    background-color: transparent;
    border: 1px solid var(--border-color); /* أو var(--primary-color) */
    color: var(--primary-color); /* لون الأيقونة والنص */
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-family-base);
    font-weight: 500;
    transition: background-color var(--transition-speed-fast), color var(--transition-speed-fast);
}
.language-toggle-btn:hover,
.language-toggle-btn:focus {
    background-color: var(--light-bg-section); /* أو var(--primary-color) */
    /* color: var(--white-color); (إذا كانت الخلفية داكنة عند الـ hover) */
    outline: none;
}

.language-toggle-btn .fa-globe {
    font-size: 1.2em; /* حجم أيقونة الكرة الأرضية */
    margin-left: 8px; /* مسافة بعد الأيقونة في RTL */
}
[dir="ltr"] .language-toggle-btn .fa-globe {
    margin-left: 0;
    margin-right: 8px;
}
.language-toggle-btn .current-lang-text {
    font-size: 0.9em;
    text-transform: uppercase;
    margin-left: 5px;
}
[dir="ltr"] .language-toggle-btn .current-lang-text {
    margin-left: 0;
    margin-right: 5px;
}


.language-toggle-btn .dropdown-arrow {
    font-size: 0.8em;
    margin-right: 5px; /* مسافة قبل السهم في RTL */
    transition: transform 0.3s ease;
}
[dir="ltr"] .language-toggle-btn .dropdown-arrow {
    margin-right: 0;
    margin-left: 5px;
}
.language-toggle-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg); /* تدوير السهم عند فتح القائمة */
}

.language-dropdown {
    display: none; /* مخفية مبدئيًا */
    position: absolute;
    top: calc(100% + 8px); /* أسفل الزر مع مسافة صغيرة */
    left: 0; /* يبدأ من اليسار (سيُضبط لـ RTL) */
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-soft);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    min-width: 120px; /* عرض أدنى للقائمة */
    z-index: 1010; /* فوق الهيدر */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
[dir="rtl"] .language-dropdown {
    left: auto;
    right: 0; /* يبدأ من اليمين في RTL */
}

.language-dropdown.active { /* كلاس لإظهار القائمة */
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.language-dropdown li a.lang-option {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: background-color var(--transition-speed-fast), color var(--transition-speed-fast);
}
.language-dropdown li a.lang-option:hover,
.language-dropdown li a.lang-option.selected { /* لتمييز اللغة المختارة */
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* ... (الأنماط السابقة) ... */


/* -------------------------------------------------------------------------- */
/*                             PAGE HERO (General)                            */
/* -------------------------------------------------------------------------- */
.page-hero {
    padding: 100px 0; /* Increased padding for better spacing */
    background-size: cover;
    background-position: center center;
    color: var(--white-color);
    text-align: center;
    position: relative; /* For pseudo-elements if needed */
}
.page-hero h1 {
    font-size: clamp(2.8em, 6vw, 4.2em);
    color: var(--white-color);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Added text shadow for readability */
}
.page-hero .page-hero-subtitle {
    font-size: clamp(1.1em, 2.5vw, 1.4em);
    color: rgba(255,255,255,0.9); /* Increased opacity for better readability */
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Added text shadow */
}


/* -------------------------------------------------------------------------- */
/*                         MODERN HERO (Home Page with SLIDER)                */
/* -------------------------------------------------------------------------- */
.hero-slider { /* Renamed from .modern-hero to be more specific */
    min-height: 90vh; /* Full viewport height */
    position: relative; /* For positioning slides and overlay */
    overflow: hidden;
    display: flex; /* To center content */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

.hero-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content and overlay */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0; /* Start hidden */
    transition: opacity 1.5s ease-in-out; /* Smooth transition */
    z-index: 1; /* Default z-index for non-active slides */
}

.hero-slide.active {
    opacity: 1; /* Show active slide */
    z-index: 2; /* Bring active slide above others */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 27, 63, 0.5) 0%, rgba(13, 27, 63, 0.8) 100%); /* Primary color gradient */
    z-index: 3; /* Above slides, below content */
}

/* Keep .modern-hero for content styling within .hero-slider or general hero sections */
.modern-hero .hero-content { /* Ensure this targets content within .hero-slider */
    position: relative;
    z-index: 4; /* Above overlay */
}

.modern-hero h1 {
    color: var(--white-color);
    font-size: clamp(2.8em, 6vw, 4.5em); /* Responsive font size */
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3); /* Enhanced text shadow */
}
.modern-hero p {
    color: rgba(255,255,255,0.95); /* Slightly more opaque for readability */
    font-size: clamp(1.15em, 3vw, 1.4em); /* Responsive font size */
    max-width: 800px; /* Control line length */
    margin: 0 auto 45px auto; /* Centering and bottom margin */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.modern-hero .hero-buttons .btn { margin: 0 12px; }
.modern-hero .btn-accent { /* Style for primary CTA */
    box-shadow: 0 5px 20px rgba(0, 174, 239, 0.4); /* Accent color shadow */
    font-size: 1.15em; /* Larger for emphasis */
    padding: 18px 45px; /* Generous padding */
}
.modern-hero .btn-outline-light { /* Style for secondary CTA */
    border-width: 2px; /* Thicker border */
    font-size: 1.1em; /* Slightly larger */
    padding: 16px 40px; /* Generous padding */
}

/* -------------------------------------------------------------------------- */
/*                      HOME PAGE SECTIONS (Brief About, etc.)                */
/* -------------------------------------------------------------------------- */

/* --- Brief About Section --- */
.brief-about p.lead-text {
    max-width: 850px; /* Control line length for readability */
    margin-bottom: 35px;
}
.brief-about .btn-secondary { /* Subtle call to action */
    font-weight: 700;
    padding: 14px 30px;
}

/* --- Featured Services Section (Modern Cards) --- */
.featured-services .services-grid.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Increased gap for better separation */
}
.service-card {
    background-color: var(--white-color);
    padding: 45px 35px; /* More internal padding */
    border-radius: var(--border-radius-lg); /* Softer, larger radius */
    box-shadow: var(--box-shadow-soft);
    transition: all var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content by default */
}
.service-card:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: var(--box-shadow-strong); /* Stronger shadow on hover */
}
.service-card-icon {
    width: 75px; /* Larger icon container */
    height: 75px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    display: inline-flex; /* Use flex for centering icon */
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px auto; /* Center icon block */
    font-size: 2.4em; /* Larger icon */
    transition: background-color var(--transition-speed) ease;
}
.service-card:hover .service-card-icon {
    background-color: var(--accent-color-darker);
}
.service-card h3 {
    color: var(--primary-color); /* Use primary color for headings */
    font-size: 1.6em; /* Slightly larger heading */
    margin-bottom: 18px;
    font-weight: 700;
}
.service-card p {
    font-size: 1em; /* Standard paragraph size */
    line-height: 1.7;
    color: var(--light-text-color);
    flex-grow: 1; /* Allow paragraph to take available space */
    margin-bottom: 25px;
}
.service-card-link {
    color: var(--accent-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Push to bottom if card height varies */
}
.service-card-link i {
    margin-right: 8px; /* Space before icon in RTL */
    transition: transform var(--transition-speed-fast) ease;
    font-size: 0.9em;
}
[dir="ltr"] .service-card-link i { margin-right: 0; margin-left: 8px; transform: scaleX(-1);} /* LTR: space after, flip icon */

.service-card-link:hover i {
    transform: translateX(-5px); /* Move arrow on hover */
}
[dir="ltr"] .service-card-link:hover i {
    transform: scaleX(-1) translateX(-5px); /* LTR: flip and move */
}

/* --- Why Us Section (Modern List) --- */
ul.why-us-list { /* Container for list items */
    max-width: 900px;
    margin: 0 auto;
}
ul.why-us-list li {
    background-color: var(--white-color); /* Light background for list items */
    padding: 30px; /* Generous padding */
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    margin-bottom: 30px; /* Space between items */
    display: flex;
    align-items: flex-start; /* Align icon with top of text */
    transition: all var(--transition-speed-fast) ease;
}
ul.why-us-list li:hover {
    transform: translateX(-5px); /* Slight shift on hover (RTL) */
    box-shadow: var(--box-shadow-medium);
}
[dir="ltr"] ul.why-us-list li:hover {
    transform: translateX(5px); /* Slight shift on hover (LTR) */
}
ul.why-us-list li .checkmark {
    color: var(--accent-color);
    font-size: 2em; /* Larger checkmark */
    margin-left: 25px; /* Space after checkmark in RTL */
    padding-top: 3px; /* Fine-tune vertical alignment */
    flex-shrink: 0; /* Prevent icon from shrinking */
}
[dir="ltr"] ul.why-us-list li .checkmark { margin-left:0; margin-right: 25px;}
ul.why-us-list li div strong {
    color: var(--primary-color); /* Darker color for strong text */
    font-size: 1.15em; /* Slightly larger strong text */
    display: block;
    margin-bottom: 5px;
}

/* --- Final CTA Section --- */
.final-cta .cta-title { /* Large, impactful title */
    font-size: clamp(2.4em, 5.5vw, 3.5em); /* Responsive */
    font-weight: 800;
    margin-bottom: 20px;
}
.final-cta .cta-subtitle {
    font-size: clamp(1.15em, 2.8vw, 1.35em); /* Responsive */
    color: rgba(255,255,255,0.85); /* Slightly transparent white */
    margin-bottom: 45px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta .cta-button {
    padding: 18px 50px; /* Large button padding */
    font-size: 1.15em;
}
.final-cta .cta-button i { /* Style for icon in CTA button */
    font-size: 1.2em; /* Larger icon */
    transform: rotate(-45deg); /* Angled icon for dynamism */
    margin-top: -2px; /* Vertical alignment tweak */
}

/* -------------------------------------------------------------------------- */
/*                            ABOUT PAGE SPECIFICS                            */
/* -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 50px;
    align-items: center;
}
/* -------------------------------------------------------------------------- */
/*                            ABOUT PAGE SPECIFICS                            */
/* -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* افتراضي للشاشات الصغيرة (عمود واحد) */
    gap: 40px; /* تقليل المسافة قليلاً بين النص والصورة عند التكديس */
    align-items: center;
}

/* تعديل لـ about-image-column ليكون له بعض الـ padding أو الهامش على الشاشات الصغيرة إذا لزم الأمر */
.about-image-column {
    margin-top: 30px; /* مسافة فوق الصورة عندما تكون أسفل النص على الموبايل */
}


@media (min-width: 992px) { /* Apply two columns for larger screens */
    .about-grid {
        /* الخيار 1: عمودان متساويان تقريبًا، مع إعطاء النص أفضلية طفيفة */
        /* grid-template-columns: 1.2fr 1fr;  */

        /* الخيار 2: جعل عمود الصورة أعرض قليلاً من النص */
        /* grid-template-columns: 1fr 1.2fr; */

        /* الخيار 3: عمودان متساويان تمامًا (الأكثر شيوعًا وتوازنًا) */
        grid-template-columns: 1fr 1fr;
        gap: 60px; /* زيادة المسافة بين العمودين على الشاشات الكبيرة */
    }

    .about-image-column {
        margin-top: 0; /* إزالة الهامش العلوي على الشاشات الكبيرة */
    }

    /* ترتيب العناصر لـ RTL و LTR على الشاشات الكبيرة */
    /* الافتراضي (LTR): النص على اليسار، الصورة على اليمين */
    [dir="ltr"] .about-text-column { order: 1; }
    [dir="ltr"] .about-image-column { order: 2; }

    /* لـ RTL: الصورة على اليمين، النص على اليسار */
    [dir="rtl"] .about-text-column { order: 2; }
    [dir="rtl"] .about-image-column { order: 1; }
}

.about-text-column p {
    font-size: 1.05em;
    margin-bottom: 1.5em;
}
/* ... باقي أنماط .values-section و .cta-banner كما هي ... */
.about-text-column p {
    font-size: 1.05em;
    margin-bottom: 1.5em;
}
.values-section { margin-top: 60px; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.value-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--box-shadow-soft);
    transition: all var(--transition-speed-fast) ease;
}
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}
.value-icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.value-card h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}
.cta-banner { /* For banners inside pages, like About page */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-banner.light-bg h2.cta-title-secondary { /* Title for secondary CTAs */
    color: var(--primary-color);
    font-size: clamp(1.8em, 3.5vw, 2.4em);
    margin-bottom: 15px;
}
.cta-banner.light-bg p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* -------------------------------------------------------------------------- */
/*                          SERVICES PAGE SPECIFICS                           */
/* -------------------------------------------------------------------------- */
.service-detailed-entry {
    display: flex;
    flex-direction: column; /* Stack icon and content on mobile */
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}
.service-detailed-entry:last-child { border-bottom: none; }
.service-detailed-entry.light-bg { /* For alternating background styles */
    background-color: var(--white-color); /* Use white if base is light grey */
    padding: 40px 30px; /* Add padding when background changes */
    margin: 0 -30px; /* Extend to container edges if container has padding */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
}

@media (min-width: 768px) { /* Row layout for larger screens */
    .service-detailed-entry {
        flex-direction: row;
        align-items: flex-start;
    }
    .service-detailed-entry.light-bg {
        margin: 30px 0; /* Adjust margin for non-full-width sections */
    }
}

.service-detailed-icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px; /* Space below icon on mobile */
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 80px; /* Fixed width for icon area */
    text-align: center;
}
@media (min-width: 768px) {
    .service-detailed-icon { margin-bottom: 0; margin-left: 40px; } /* RTL */
    [dir="rtl"] .service-detailed-icon { margin-left:0; margin-right: 40px;} /* LTR */
}

.service-detailed-content h2 {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-detailed-content p {
    font-size: 1.05em;
    margin-bottom: 1.5em;
}
.service-detailed-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}
.service-detailed-content ul li {
    position: relative;
    padding-right: 30px; /* Space for icon in RTL */
    margin-bottom: 12px;
    font-size: 1em;
}
[dir="ltr"] .service-detailed-content ul li { padding-right: 0; padding-left: 30px; } /* LTR */
.service-detailed-content ul li i.fas.fa-check-circle {
    position: absolute;
    right: 0; /* Position icon in RTL */
    top: 4px;
    color: var(--accent-color);
    font-size: 1.2em;
}
[dir="ltr"] .service-detailed-content ul li i.fas.fa-check-circle { right:auto; left: 0;} /* LTR */


.process-section .process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.process-step {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    text-align: center;
    position: relative; /* For step number positioning */
}
.process-step .step-number {
    position: absolute;
    top: -15px;
    right: -15px; /* Position in RTL */
    background-color: var(--accent-color);
    color: var(--white-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
[dir="ltr"] .process-step .step-number { right: auto; left: -15px; } /* LTR */
.process-step .step-icon {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.process-step h4 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}


/* -------------------------------------------------------------------------- */
/*                         CONTACT PAGE SPECIFICS                             */
/* -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 50px;
}
@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 3fr 2fr; } /* Form wider than info */
}
.contact-form-column .section-subtitle,
.contact-info-column .section-subtitle {
    margin-bottom: 15px;
    text-align: right; /* RTL default */
}
[dir="ltr"] .contact-form-column .section-subtitle,
[dir="ltr"] .contact-info-column .section-subtitle { text-align: left; } /* LTR */

.modern-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px; /* Horizontal gap between half-width fields */
}
.modern-form .form-group.half-width {
    flex: 1 1 calc(50% - 10px); /* Allows two fields per row, accounts for gap */
    min-width: 250px; /* Ensure fields don't get too narrow */
}

.modern-form .form-group {
    margin-bottom: 25px;
}
.modern-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.95em;
}
.modern-form .form-group label .required { color: var(--accent-color); margin-right: 3px;}
.modern-form .form-group input[type="text"],
.modern-form .form-group input[type="email"],
.modern-form .form-group input[type="tel"],
.modern-form .form-group textarea {
    width: 100%;
    padding: 14px 18px; /* Comfortable padding */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    font-family: var(--font-family-base);
    font-size: 1em;
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}
.modern-form .form-group input:focus,
.modern-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2); /* Accent color focus ring */
}
.modern-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
}
.modern-form .form-message-area { /* For success/error messages */
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    /* display: none; (Controlled by JS adding success/error class) */
}
.modern-form .form-message-area.success {
    background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; display: block;
}
.modern-form .form-message-area.error {
    background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; display: block;
}

.contact-info-column {
    background-color: var(--light-bg-section);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}
ul.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1.05em;
}
ul.contact-details-list li .contact-icon {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-left: 20px; /* RTL */
    width: 30px; /* Consistent icon width */
    flex-shrink: 0;
    margin-top: 3px; /* Align with text */
}
[dir="ltr"] ul.contact-details-list li .contact-icon { margin-left:0; margin-right: 20px; } /* LTR */
ul.contact-details-list li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}
ul.contact-details-list li p { margin-bottom: 0; color: var(--light-text-color);}
ul.contact-details-list li a { color: var(--accent-color); }
ul.contact-details-list li a:hover { color: var(--accent-color-darker); }

.contact-social-links { margin-top: 30px; }
.contact-social-links p { font-weight: 700; color: var(--primary-color); margin-bottom: 10px;}
.contact-social-links a {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-left: 18px; /* RTL */
    transition: color var(--transition-speed-fast) ease;
}
[dir="ltr"] .contact-social-links a { margin-left:0; margin-right: 18px;} /* LTR */
.contact-social-links a:last-child { margin-left:0; }
[dir="ltr"] .contact-social-links a:last-child { margin-right:0; }
.contact-social-links a:hover { color: var(--accent-color); }

.map-section { margin-top: 50px; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--box-shadow-medium);}
.map-responsive {
    overflow:hidden;
    padding-bottom:45%; /* Aspect ratio for map (e.g., 16:9 or 4:3) */
    position:relative;
    height:0;
    border-radius: var(--border-radius-lg); /* Match parent for consistent rounding */
}
.map-responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
    border:0; /* Ensure no border on iframe */
}


/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: #121A2A; /* Darker blue for footer */
    color: #b0b8c5; /* Light grey text for contrast */
    padding: 70px 0 25px 0;
    font-size: 0.98em; /* Slightly smaller base font for footer */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 45px; /* Good spacing between columns */
    margin-bottom: 50px; /* Space before footer bottom */
}

.footer-column h4 {
    color: var(--white-color);
    font-size: 1.3em; /* Prominent footer headings */
    margin-bottom: 28px; /* Space below heading */
    position: relative;
    padding-bottom: 15px; /* Space for underline */
    font-weight: 700;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL */
    width: 50px; /* Underline width */
    height: 3px;
    background-color: var(--accent-color);
}
[dir="ltr"] .footer-column h4::after {
    right: auto;
    left: 0; /* LTR */
}

.footer-about .footer-logo {
    display: inline-block;
    font-size: 2.1em; /* Large footer logo */
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 20px;
}
.footer-about .footer-logo:hover {
    color: var(--accent-color);
}
.footer-tagline {
    font-size: 1.05em; /* Slightly larger tagline */
    margin-bottom: 28px;
    line-height: 1.7;
}
.footer-social-icons {
    display: flex; /* Align icons in a row */
    justify-content: flex-start; /* Default for RTL */
    flex-wrap: wrap; /* Allow icons to wrap if needed */
    gap: 18px; /* Space between icons */
}
[dir="ltr"] .footer-social-icons {
    justify-content: flex-start; /* Explicitly for LTR */
}
.footer-social-icons a {
    color: #b0b8c5;
    font-size: 1.5em; /* Good size for social icons */
    transition: color var(--transition-speed) ease, transform 0.2s ease-out;
    display: inline-block;
}
.footer-social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.15); /* Slight zoom on hover */
}

.footer-links-group ul li {
    margin-bottom: 14px; /* Space between links */
}
.footer-links-group ul li a {
    color: #b0b8c5; /* Match footer text color */
    transition: color var(--transition-speed) ease, padding-right var(--transition-speed) ease;
}
[dir="ltr"] .footer-links-group ul li a {
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease; /* LTR */
}
.footer-links-group ul li a:hover {
    color: var(--accent-color);
    padding-right: 8px; /* Indent on hover RTL */
}
[dir="ltr"] .footer-links-group ul li a:hover {
    padding-right: 0;
    padding-left: 8px; /* Indent on hover LTR */
}

.footer-contact-info address p {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
}
.footer-contact-info address p i {
    color: var(--accent-color);
    margin-left: 15px; /* RTL */
    font-size: 1.2em; /* Icon size */
    width: 22px; /* Ensure consistent alignment */
    text-align: center;
    margin-top: 2px; /* Fine-tune vertical alignment */
}
[dir="rtl"] .footer-contact-info address p i { margin-left:0; margin-right: 15px;} /* Mistake in original, corrected */
.footer-contact-info address p a {
    color: #b0b8c5;
}
.footer-contact-info address p a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px; /* Space above copyright */
    margin-top: 35px; /* Space after footer grid */
    border-top: 1px solid #343a40; /* Subtle separator */
}
.footer-bottom p {
    margin: 0;
    font-size: 0.93em; /* Slightly smaller copyright text */
    color: #868e96; /* Lighter grey for copyright */
}


/* -------------------------------------------------------------------------- */
/*                                MEDIA QUERIES                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) { /* Tablets and below */
    .site-header { position: sticky; } /* Change to sticky if fixed causes issues on tablet */
    .main-navigation {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        right: 0; /* RTL */
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--box-shadow-strong);
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
        z-index: 999; /* Below header, above content */
    }
    [dir="ltr"] .main-navigation { left: 0; right: auto; } /* LTR */
    .main-navigation.active { display: flex; } /* Show when active */
    .main-navigation ul { flex-direction: column; width: 100%; }
    .main-navigation ul li { margin: 0 !important; text-align: center; }
    .nav-link { display: block; padding: 13px 20px; border-bottom: 1px solid #f0f0f0; }
    .main-navigation ul li:last-child .nav-link { border-bottom: none; }
    .nav-link::after { display: none; } /* Remove underline for mobile nav items */
    .nav-link.active { background-color: var(--light-bg-section); color: var(--primary-color); }

    .header-actions { margin-right: 10px; } /* Adjust spacing for toggle button */
    [dir="rtl"] .header-actions { margin-left: 10px; margin-right: 0;}
    .mobile-nav-toggle { display: block; } /* Show toggle button */

    .modern-hero { min-height: 75vh; padding: 80px 0;}
    .modern-hero h1 { font-size: clamp(2.5em, 5.5vw, 3.8em); }
    .modern-hero p { font-size: clamp(1.1em, 2.8vw, 1.3em); }

    .about-grid, .contact-grid { grid-template-columns: 1fr !important; } /* Force single column */
    .about-image-column, .contact-info-column { margin-top: 40px; }
    /* Reset order for RTL on smaller screens if it was set for larger screens */
    [dir="rtl"] .about-text-column, [dir="rtl"] .about-image-column { order: 0 !important; }
}

@media (max-width: 768px) { /* Mobile devices */
    .site-header { padding: 12px 0; } /* Adjust header padding */
    .site-header.scrolled { padding: 8px 0; } /* Scrolled header padding */
    .site-logo { font-size: 1.7em; } /* Smaller logo */
    .header-actions { display: none; } /* Hide desktop actions, rely on mobile nav */

    .modern-hero { min-height: auto; padding: 60px 0;} /* Adjust hero padding */
    .hero-buttons .btn {
        font-size: 1em; /* Standard button size */
        padding: 12px 25px;
    }
     .hero-buttons .btn.btn-lg { /* Ensure btn-lg still has some effect */
        padding: 14px 30px;
    }

    /* Force single column for these grids */
    .services-grid.modern-services-grid, .values-grid, .process-steps-grid {
        grid-template-columns: 1fr;
    }

    .title-divider { margin-bottom: 40px; }

    .footer-grid {
        grid-template-columns: 1fr; /* Single column footer */
        text-align: center; /* Center footer content */
    }
    .footer-column { margin-bottom: 35px; }
    .footer-column:last-child { margin-bottom: 0; }
    .footer-column h4::after { right: 50%; transform: translateX(50%); } /* Center underline */
    [dir="ltr"] .footer-column h4::after { left: 50%; transform: translateX(-50%); } /* LTR */
    .footer-social-icons { justify-content: center; } /* Center social icons */
    .footer-contact-info address p { justify-content: center; } /* Center contact items */
}

@media (max-width: 480px) { /* Small mobile devices */
    body { font-size: 15px; } /* Adjust base font size */
    h1 { font-size: 1.9em; }
    .section-title { font-size: 1.6em; }
    .modern-hero h1 { font-size: 2em; }
    .modern-hero p { font-size: 1em; }
    .container { width: 95%; } /* Slightly more width for small screens */
    .btn { padding: 10px 20px; }
    .btn-lg { padding: 12px 25px; }

    .footer-social-icons { gap: 12px; } /* Reduce gap for social icons */
    .footer-contact-info address p {
        flex-direction: column; /* Stack icon and text in contact info */
        align-items: center;
    }
    .footer-contact-info address p i {
        margin: 0 0 8px 0 !important; /* Center icon above text */
    }
}

/* Diagnostic CSS: Uncomment to see all element outlines */
/*
* {
    outline: 1px solid red !important;
}
*/