  /*
 * GHADI ELITE GLOBAL - Final Stylesheet (v2.1)
 * ----------------------------------------------------------------------
 * Includes: Global Variables, Base Styles, Hero Section, RTL Support, 
 * Responsive Design, and Professional UX Enhancements.
 * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.5px;
}

 */

/* --- Global Reset & Variables --- */
:root {
    --primary-color: #004aad; /* Royal Blue - Accent Color */
    --secondary-color: #f7f9fc; /* Light Gray for background */
    --text-color: #333;
    --heading-color: #111;
    --font-family: 'Arial', sans-serif;
}

/* --- PROFESSIONAL UX ENHANCEMENT: Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    /* اللغة الافتراضية هي LTR (الإنجليزية) كما طلب */
    direction: ltr; 
}

/* Base Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #00377e;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Header & Navigation --- */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 100px; /* تم زيادته إلى 100px في جميع الصفحات */
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

#lang-toggle {
    background: var(--secondary-color);
    border: 1px solid #ddd;
    color: var(--text-color);
    padding: 5px 10px;
    margin-left: 15px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 600;
    transition: background 0.3s;
}
#lang-toggle:hover {
    background: #e9ecef;
}

/* --- 1. Hero Section --- */
.hero-section {
    position: relative;
    height: 85vh; /* 85% of viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
}

.headline {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- 2. About Us Section --- */
.about-section {
    background-color: var(--secondary-color);
}

.about-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image-box {
    flex: 1;
}

.about-image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    padding-left: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* --- 3. Services Section --- */
.services-section {
    background-color: white;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2em;
    margin-bottom: 50px;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- New styles for video/image icons in Service Cards (تم زيادة الحجم) --- */
.service-icon-video, .service-icon-image {
    width: 220px; /* تم زيادتها لجميع الفيديوهات والصور في الخدمات */
    height: 220px; /* تم زيادتها لجميع الفيديوهات والصور في الخدمات */
    object-fit: cover; 
    border-radius: 10px; 
    margin-bottom: 15px; 
    background-color: #fff; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}
/* --------------------------------------------------------- */


.service-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95em;
    color: #555;
}

/* --- 4. Contact Section --- */
.contact-section {
    background-color: #eef1f5;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.info-card i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-card p {
    margin: 5px 0;
    color: #555;
}

/* --- Footer --- */
.footer {
    background-color: var(--heading-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    color: var(--primary-color);
}

/* --- Sticky WhatsApp Button --- */
.whatsapp-sticky {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background-color: #25d366; /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

/* ================================================= */
/* --- 5. Custom Styles for Activities Page --- */
/* ================================================= */
.activities-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.activities-header h1 {
    color: white;
    margin-bottom: 5px;
}
.activities-header p {
    font-size: 1.1em;
    opacity: 0.9;
}
.activities-content .container {
    padding-top: 60px;
    padding-bottom: 60px;
}
.activity-category {
    margin-bottom: 60px;
    padding: 20px;
    border-bottom: 2px solid #eee;
}
.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.category-header .media-container {
    width: 220px; /* تم زيادته إلى 220px لصفحة الأنشطة */
    height: 220px; /* تم زيادته إلى 220px لصفحة الأنشطة */
    margin-right: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
}
.category-header .media-container video,
.category-header .media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-header h2 {
    text-align: left;
    margin: 0;
    font-size: 2em;
}
.activity-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 15px 30px;
}
.activity-list li {
    background: #fcfcfc;
    padding: 10px 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 3px;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ================================================= */
/* --- 6. Custom Styles for Legal Page --- */
/* ================================================= */
.legal-header {
    background-color: #f0f4f7;
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}
.legal-header h1 {
    color: var(--heading-color);
    margin-bottom: 5px;
    font-size: 2.5em;
}
.legal-header p {
    font-size: 1.1em;
    color: #555;
}
.legal-section {
    padding: 60px 0;
}
.legal-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}
/* إضافة نمط الفيديو للصفحة القانونية */
.legal-card-video {
    width: 100%;
    height: 250px; /* ارتفاع ثابت لعرض جيد */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.legal-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.legal-details p {
    margin-bottom: 10px;
    font-size: 1em;
}
.legal-details strong {
    display: inline-block;
    min-width: 180px;
    font-weight: 600;
    color: var(--heading-color);
}

/* ================================================= */
/* --- 7. Logo Pulsating Effect (Heartbeat) --- */
/* ================================================= */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
    100% {
        transform: scale(1);
    }
}

.logo-pulse img {
    animation: pulse 2s infinite ease-in-out;
}


/* ================================================= */
/* --- 8. Responsive Design (Mobile First) --- */
/* ================================================= */
@media (max-width: 900px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        padding-left: 0;
    }
    .about-image-box {
        order: -1; /* Image appears first on mobile */
    }
    .hero-content {
        padding: 20px;
    }
    .headline {
        font-size: 2.5em;
    }
    .tagline {
        font-size: 1.1em;
    }
    
    /* زيادة حجم الأيقونات في الأجهزة الصغيرة */
    .service-icon-video, .service-icon-image {
        width: 100px; /* زيادة لـ 100px للهواتف في الخدمات */
        height: 100px; /* زيادة لـ 100px للهواتف في الخدمات */
    }


    /* Activities Page Mobile */
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    .category-header .media-container {
        margin: 0 auto 20px auto;
        width: 150px; /* زيادة لـ 150px للهواتف في الأنشطة */
        height: 150px; /* زيادة لـ 150px للهواتف في الأنشطة */
    }
    .category-header h2 {
        text-align: center !important;
    }
    .activity-list {
        grid-template-columns: 1fr;
    }
    .activity-list li {
        font-size: 0.9em;
    }

    /* Legal Page Mobile */
    .legal-details strong {
        display: block;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 2em;
    }
    .nav {
        display: none; /* Hide for simplicity on mobile, or implement a hamburger menu */
    }
    .header .container {
        justify-content: center; /* Center logo when nav is hidden */
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .footer-bottom .legal-links {
        margin-top: 10px;
    }
    .contact-info {
        flex-direction: column;
    }
    .info-card {
        min-width: 100%;
    }
}

/* ================================================= */
/* --- 9. RTL (Arabic) Support Styles - Added via JS on toggle --- */
/* ================================================= */
body.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .header .container {
    flex-direction: row-reverse;
}

.rtl .nav a {
    margin-right: 25px;
    margin-left: 0;
}

.rtl .about-grid {
    flex-direction: row-reverse;
}

.rtl .about-text {
    padding-right: 20px;
    padding-left: 0;
}

.rtl .contact-info {
    text-align: right;
}

.rtl .whatsapp-sticky {
    right: auto;
    left: 25px; /* Move sticky button to the left */
}

/* RTL Adjustments for Activities Page */
.rtl .category-header {
    flex-direction: row-reverse;
}
.rtl .category-header .media-container {
    margin-left: 30px;
    margin-right: 0;
}
.rtl .category-header h2 {
    text-align: right;
}
.rtl .activity-list li {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

/* RTL Adjustments for Legal Page */
.rtl .legal-card {
    border-left: none;
    border-right: 5px solid var(--primary-color);
}
.rtl .legal-details strong {
    float: right;
    margin-left: 10px;
    min-width: 150px;
}
@media (max-width: 900px) {
    .rtl .legal-details strong {
        float: none;
    }
}

/* Styling for the Company Name beside the Logo */
.logo {
    display: flex; /* Makes the logo image and text appear side-by-side */
    align-items: center; /* Vertically centers the text with the image */
    gap: 10px; /* Adds a small space between the logo and the text */
    text-decoration: none; /* Removes underline from the link */
    color: #000000; /* Default text color, adjust as needed */
}

.company-name {
    font-size: 1.1rem; /* Adjust font size for company name */
    font-weight: bold; /* Makes the name stand out */
    color: #1a1a1a; /* Dark text color */
    white-space: nowrap; /* Prevents the text from wrapping to the next line */
}

/* Optional: Make the text smaller on smaller screens */
@media (max-width: 900px) {
    .company-name {
        font-size: 0.9rem;
    }
}
/* ==================================== */
/* 8. Mobile Navigation & Hamburger Icon */
/* ==================================== */

/* 8.1 إخفاء الهامبرغر وقائمة الهاتف في الوضع الافتراضي (Desktop) */
.hamburger-toggle, .mobile-nav {
    display: none; 
}

/* 8.2 تصميم أيقونة الهامبرغر (Hamburger) */
.hamburger-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color); 
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

/* 8.3 تصميم تحول الهامبرغر (الحالة 1: is-active) */
.hamburger-toggle.is-active .bar:nth-child(2) {
    opacity: 0; 
}
.hamburger-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg); 
}
.hamburger-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); 
}

/* 8.4 تصميم قائمة الهاتف (Mobile Nav) */
.mobile-nav {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: var(--color-background); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0; 
    transition: max-height 0.4s ease-in-out;
    z-index: 999;
}

.mobile-nav.is-open {
    max-height: 500px; 
    padding: 10px 0;
}

.mobile-nav a,
.mobile-nav button {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
    background-color: var(--color-primary-light);
}
/* ==================================== */
/* 9. Media Queries (التحيز الإظهاري) */
/* ==================================== */

/* 9.0 إظهار قائمة سطح المكتب وإخفاء الهامبرغر على الشاشات الأكبر من 1024px */
@media (min-width: 1025px) { 
    .hamburger-toggle, 
    .mobile-nav {
        display: none !important;
    }
    /* فرض ظهور قائمة سطح المكتب - هذا سيعالج أي تضارب مع قواعد إخفاء أخرى */
    .header .nav {
        display: flex !important;
    }
    /* ضمان ظهور زر اللغة الخاص بالديسكتوب */
    #lang-toggle {
        display: block !important;
    }
}

/* 9.1 تطبيق وضع الهاتف (إظهار الهامبرغر وإخفاء قائمة سطح المكتب) على الشاشات الأصغر من 1024px */
@media (max-width: 1024px) { 
    
    /* 9.1 إخفاء قائمة سطح المكتب (الحالية) وروابطها - زيادة الخصوصية والتعزيز */
    .header .nav,
    .header .nav ul, 
    .header .nav a   
    {
        display: none !important; 
    }

    /* 9.2 إظهار الهامبرغر في الشاشات الصغيرة */
    .hamburger-toggle {
        display: flex !important; /* فرض الظهور المطلق */
        align-self: center;
        background-color: transparent !important;
    }
    
    /* 9.3 إخفاء زر اللغة الأصلي (lang-toggle) الذي يظهر بجوار القائمة في وضع سطح المكتب */
    #lang-toggle {
        display: none !important; 
    }
    
    /* تأكيد لون الخطوط للهامبرغر (لتفادي مشكلة اللون الباهت) */
    .hamburger-toggle .bar {
        background: var(--primary-color) !important; 
    }

    /* ضمان عرض الشعار و الهامبرغر بشكل متجاور */
    .header .container {
        justify-content: space-between;
    }
}
    