/* Custom @font-face rules for Inter font (Self-hosted) */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2'),
         url('fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Ensures text is visible during font loading */
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.woff2') format('woff2'),
         url('fonts/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2'),
         url('fonts/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2'),
         url('fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي غير المرغوب فيه */
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    /* هذا يجعل اللوجو على اليمين والقائمة على اليسار عندما يكون الاتجاه LTR */
    flex-direction: row-reverse;
    justify-content: space-between; /* للحفاظ على المسافة بين اللوجو والقائمة */
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px; /* المسافة بين عناصر القائمة ستكون لليسار (الاتجاه LTR) */
    margin-right: 0; /* تأكد من إزالة أي مسافة سابقة من اليمين */
}

nav ul li a {
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f7b731; /* لون أصفر ذهبي جذاب */
}

/* Hero Section Styles */
.hero {
    background-color: #f0f4f8; /* لون رمادي فاتح جداً */
    padding: 80px 0;
    display: flex;
    flex-direction: column; /* تم تصحيحه: لجعل المحتوى يترتب عمودياً */
    align-items: center; /* لتركيز العناصر الفرعية أفقياً في منتصف الحاوية */
    justify-content: center; /* لتركيز العناصر الفرعية عمودياً في منتصف الحاوية */
    text-align: center;
}

/* **كود جديد لتحديد سلوك العناصر داخل .hero .container** */
.hero .container {
    display: flex;
    flex-direction: column; /* لترتيب hero-content و hero-image فوق بعض */
    align-items: center;    /* لتركيز hero-content و hero-image أفقياً */
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin-bottom: 60px;
    animation: fadeInRight 1s ease;
    text-align: center; /* **تمت الإضافة: لتركيز النصوص والأزرار داخل هذا العنصر** */
}

.hero-content h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1em;
    color: #333; /* **تم التغيير لتحسين التباين** */
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.primary-button, .secondary-button {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.primary-button {
    background-color: #f7b731; /* اللون الأصفر الذهبي */
    color: #fff;
    border: 2px solid #f7b731; /* اللون الأصفر الذهبي */
}

.primary-button:hover {
    background-color: #e0a52b; /* درجة أغمق قليلاً للأصفر الذهبي عند التمرير */
    border-color: #e0a52b; /* درجة أغمق قليلاً للأصفر الذهبي عند التمرير */
}

.secondary-button {
    background-color: transparent;
    color: #333; /* **تم التغيير لتحسين التباين** */
    border: 2px solid #333; /* **تم التغيير لتحسين التباين** */
}

.secondary-button:hover {
    background-color: #f7b731; /* اللون الأصفر الذهبي */
    color: #fff;
}

/* Hero Image Styles (مرصوصة جنب بعض) */
.hero-image {
    max-width: 100%;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    animation: fadeInLeft 1st ease;
}

.hero-image video { /* تم تعديل لتطبيق الستايل على عناصر الفيديو مباشرة */
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-image video:hover { /* تم تعديل لتطبيق الستايل على عناصر الفيديو مباشرة */
    transform: translateY(-10px);
}

/* About Us Section Styles */
.about-us {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2em;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #f7b731; /* اللون الأصفر الذهبي */
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.about-image {
    max-width: 45%;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    max-width: 45%;
    color: #333; /* **تم التغيير لتحسين التباين** */
    line-height: 1.8;
    text-align: center;
}

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

/* Work Section Styles */
.work-section {
    padding: 80px 0;
    background-color: #0a192f;
    color: #fff;
    text-align: center;
}

.page-section2 {
    padding: 80px 0;
    background-color: #0a192f;
    color: #ac1414;
    text-align: left;
}

.work-section .section-title {
    margin-bottom: 50px;
    /* هذا هو التعديل الرئيسي: تطبيق الـ gradient */
    background-image: radial-gradient(circle, #7391bd, #0a192f); /* تدرج دائري من الأزرق الداكن لأغمق قليلاً */
    padding: 30px 0; /* لضمان ظهور التدرج بشكل جيد حول النص */
    text-align: center; /* لتوسيط المحتوى */
}

/* عدّل لون الـ H2 ليظهر بوضوح على الخلفية الداكنة */
.work-section .section-title h2 {
    font-size: 2em;
    color: #e0e0e0; /* غير اللون للأبيض الفاتح (كان #00d807 أخضر وهذا لن يظهر جيداً على الأزرق الداكن) */
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

/* تأكد من أن الخط الأصفر لا يزال يظهر بوضوح */
.work-section .section-title h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: #f7b731; /* اللون الأصفر الذهبي الخاص بك */
    margin: 5px auto 0 auto;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    position: relative;
}

.work-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-image:hover img {
    transform: scale(1.1);
}

.company-name {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #f7b731; /* اللون الأصفر الذهبي */
    margin-top: 50px;
}

/* Call to Action Section Styles */
.cta-section {
    background-color: #f7b731; /* اللون الأصفر الذهبي */
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .primary-button {
    background-color: #fff;
    color: #f7b731; /* اللون الأصفر الذهبي */
    border-color: #fff;
}

.cta-section .primary-button:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Futuristic Hero Section Styles (New Section) */
.futuristic-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: url('background-hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: 100px 0;
}

.futuristic-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.futuristic-hero .container {
    position: relative;
    z-index: 2;
    padding-right: 0;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.futuristic-company-name {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f7b731; /* **تم تعديل: يفضل استخدام لون ثابت بدلا من التدرج إذا كان يسبب مشاكل تباين** */
    /* background: linear-gradient(to right, #f7b731, #ebedee); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.futuristic-slogan {
    font-size: 1.8em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.futuristic-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.futuristic-button {
    background-color: rgba(0, 0, 0, 0.4); /* **تم التغيير لتحسين التباين على الخلفية الشفافة** */
    border: 1px solid #f7b731; /* **تم التغيير لتحسين التباين** */
    color: #f7b731; /* **تم التغيير لتحسين التباين (يمكن تجربة #fff أيضًا)** */
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.futuristic-button .arrow {
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #f7b731; /* **تم التغيير لتحسين التباين (يمكن تجربة #fff أيضًا)** */
}

.futuristic-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.futuristic-social-links {
    position: static;
    margin-top: 30px;
    font-size: 1.1em;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.futuristic-social-links img {
    height: 25px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    header .container {
        flex-direction: column; /* في الشاشات الصغيرة، يمكن أن تكون العناصر عمودية */
        text-align: left;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }

    .hero {
        padding: 60px 0;
    }
    .hero-content {
        max-width: 90%;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    .primary-button, .secondary-button {
        width: 100%;
        text-align: center;
    }
    .hero-image {
        flex-direction: column; /* لجعل الصور تظهر عمودياً في الشاشات الصغيرة جداً */
        align-items: center; /* لتوسيط الصور في الوضع العمودي */
        gap: 15px; /* مسافة بين الصور العمودية */
    }
    .hero-image img { /* تم تعديل لتطبيق الستايل على عناصر الفيديو مباشرة */
        width: 80%; /* عرض أكبر للصور في الوضع العمودي */
        height: 180px; /* ارتفاع أكبر في الوضع العمودي */
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image, .about-text {
        max-width: 100%;
    }
    .about-text {
        text-align: center; /* حافظ على Justify للنص */
    }

    .work-grid {
        grid-template-columns: 1fr 1fr; /* عمودين في الشاشات المتوسطة */
    }

    .futuristic-hero {
        min-height: 60vh;
        padding: 50px 0;
    }
    .futuristic-company-name {
        font-size: 3em;
    }
    .futuristic-slogan {
        font-size: 1.5em;
    }
    .futuristic-links-grid {
        grid-template-columns: 1fr; /* عمود واحد في الشاشات الأصغر */
        max-width: 400px;
    }
    .futuristic-hero .container {
        padding: 0 5%;
        align-items: center;
        text-align: center;
    }
    .futuristic-button {
        justify-content: center;
    }
    .futuristic-social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .buttons {
        flex-direction: column;
    }
    .primary-button, .secondary-button {
        margin: 5px 0;
        width: 100%;
    }
    .futuristic-company-name {
        font-size: 2.5em;
    }
    .futuristic-slogan {
        font-size: 1.2em;
    }

    .work-grid {
        grid-template-columns: 1fr; /* عمود واحد في الشاشات الصغيرة جداً */
    }
    .cta-section h2 {
        font-size: 2em;
    }
}
/* Footer Styles */
.main-footer {
    background-color: #2c3e50; /* Colore di sfondo scuro per il footer */
    color: #f0f4f8; /* Colore del testo chiaro */
    padding: 40px 0 20px; /* Spaziatura interna */
    font-size: 0.95em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap; /* Permette alle colonne di andare a capo su schermi piccoli */
    justify-content: space-between; /* Distribuisce le colonne con spazio uniforme */
    gap: 30px; /* Spazio tra le colonne */
    /* text-align: center; -- Rimosso للحفاظ على محاذاة أكثر قياسية */
}

.main-footer .footer-column {
    flex: 1; /* Rende le colonne di larghezza uguale */
    min-width: 250px; /* Larghezza minima della colonna prima di andare a capo */
    margin-bottom: 20px; /* Spazio inferiore tra le colonne su schermi piccoli */
}

.main-footer .footer-column h3 {
    color: #f7b731; /* Colore giallo dorato per i sottotitoli */
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #f7b731; /* Linea sotto il titolo */
    padding-bottom: 5px;
    display: inline-block; /* La linea prende solo la larghezza del testo */
}

.main-footer .footer-column p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.main-footer .footer-column a {
    color: #f0f4f8;
    transition: color 0.3s ease;
}

.main-footer .footer-column a:hover {
    color: #f7b731; /* Cambia colore al passaggio del mouse */
}

.main-footer .social-links img {
    height: 28px; /* Dimensione delle icone */
    margin-right: 10px; /* Spazio a destra tra le icone (per LTR) */

    transition: transform 0.3s ease;
}

.main-footer .social-links img:hover {
    transform: translateY(-3px); /* Piccolo effetto al passaggio del mouse */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(240, 244, 248, 0.1); /* Linea divisoria sottile */
    color: #b0c2d3; /* Colore leggermente più chiaro للرمادي في الأسفل */
    font-size: 0.85em;
}

/* Responsive adjustments for Footer */
@media (max-width: 768px) {
    .main-footer .container {
        flex-direction: column; /* Le colonne si impilano verticalmente */
        align-items: center; /* Centra le colonne */
        text-align: center; /* Centra il testo nelle colonne */
    }

    .main-footer .footer-column {
        min-width: 90%; /* Larghezza maggiore per le colonne su schermi piccoli */
    }

    .main-footer .footer-column h3 {
        margin-left: auto;
        margin-right: auto;
    }

    .main-footer .social-links img {
        margin: 0 8px; /* Regola la spaziatura tra le icone sui dispositivi mobili */
    }
}
/* في ملف الـ CSS بتاعك */
.section-title {
  background-image: radial-gradient(circle, #ffffff, #e0e0e0); /* مثال: تدرج أزرق فاتح جداً */
  padding: 30px 0; /* مسافة داخلية علوية وسفلية عشان الـ gradient يكون واضح */
  text-align: center; /* لتوسيط محتوى الـ div بما في ذلك H2 */
}

/* لو الـ H2 نفسه محتاج تنسيق */
.section-title h2 {
  color: #333; /* لون النص عشان يكون واضح على الخلفية */
  font-size: 2.8em; /* حجم أكبر للعنوان */
  margin-bottom: 10px; /* مسافة تحت العنوان */
  position: relative; /* مهم عشان تقدر تحط الخط الأصفر تحته */
  display: inline-block; /* عشان ياخد مساحة بقدر النص بس */
}

/* الخط الأصفر اللي تحت Chi Siamo */
.section-title h2::after {
  content: '';
  display: block;
  width: 60%; /* عرض الخط */
  height: 3px; /* سمك الخط */
  background-color: #ffcc00; /* لون الخط الأصفر */
  margin: 5px auto 0 auto; /* توسيط الخط */
}
/* Styling for the overall section */
.section-container.facts-blocks {
    text-align: center; /* لتوسيط العنوان والنص السفلي */
    padding: 60px 20px; /* مسافة داخلية من كل الجوانب */
    background-color: #f8f8f8; /* لون خلفية خفيف */
    font-family: Arial, sans-serif; /* نوع خط عام */
    color: #333; /* لون نص عام */
    overflow-x: auto; /* السماح بالتمرير الأفقي لو العناصر كتير */
    white-space: nowrap; /* مهم جداً: لمنع العناصر من النزول لسطر جديد */
}

/* Styling for the main title "Highlight" */
.module-title.module-title--text-center h2 {
    font-size: 3em; /* حجم كبير لعنوان Highlight */
    margin-bottom: 50px; /* مسافة تحت العنوان */
    color: #222; /* لون أغمق للعنوان */
    font-weight: bold; /* خط سميك */
}

/* Styling for the flex grid container */
.f-grid {
    display: flex; /* لترتيب العناصر جنب بعض */
    flex-wrap: nowrap; /* تأكيد على عدم السماح بالنزول لسطر جديد */
    justify-content: center; /* لتوسيط العناصر أفقياً داخل مساحة العرض */
    gap: 30px; /* رجعنا الـ gap عشان هو بيعمل مسافة بشكل تلقائي لما نشيل الخطوط */
    max-width: none; /* إلغاء العرض الأقصى عشان يسمح بعرض كبير جداً */
    margin: 0 auto; /* لتوسيط الكونتينر نفسه */
    /* position: relative;  مابقاش ضروري لو مفيش خطوط ::after */
    padding-bottom: 20px; /* مسافة إضافية لو فيه scrollbar */
}

/* Styling for each individual highlight item */
.f-block-item {
    background-color: #fff; /* خلفية بيضاء لكل صندوق */
    padding: 30px 15px; /* مسافة داخلية (عرض أقل) */
    border-radius: 10px; /* حواف دائرية */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    text-align: -webkit-center; /* لتوسيط النص داخل كل صندوق */
    flex-shrink: 0; /* منع العنصر من الانكماش */
    flex-grow: 0; /* منع العنصر من التمدد */
    width: 180px; /* تحديد عرض ثابت صغير لكل عنصر */
    /* height: 200px;  ممكن نلغيها او نعدلها زي ما تحب */
    display: flex; /* استخدام فليكس بوكس داخلياً لترتيب المحتوى */
    flex-direction: column; /* ترتيب العناصر داخل الصندوق بشكل عمودي */
    justify-content: center; /* توسيط المحتوى داخلياً رأسياً */
    align-items: center; /* توسيط العناصر رأسياً */
    /* position: relative;  مابقاش ضروري لو مفيش خطوط ::after */
    margin: 0; /* إلغاء المسافة الخارجية اللي كانت للخطوط */
}

/* Vertical dotted lines between items - تم إزالة هذا الجزء بالكامل */
/* .f-grid .f-block-item:not(:last-child)::after { ... } */
/* .f-grid .f-block-item:last-child::after { ... } */


/* Styling for the icon wrapper */
.f-icon {
    width: 70px; /* حجم الأيقونة */
    height: 70px;
    background-color: #f0f0f0; /* خلفية خفيفة للأيقونة */
    border-radius: 50%; /* عشان تبقى دائرية */
    display: flex; /* لتوسيط الصورة داخل الأيقونة */
    justify-content: center;
    align-items: center;
    position: relative; /* مهم لتوسيط الأيقونة نفسها داخل الدائرة */
    overflow: hidden; /* عشان لو الصورة أكبر ما تطلعش برا الدايرة */
}

.f-icon img {
    max-width: 65%; /* عشان الصورة تبقى أصغر شوية جوه الدايرة */
    height: auto;
    display: block; /* لإزالة المسافات الزائدة تحت الصورة */
    position: absolute; /* مهم جداً لتوسيط الصورة داخل الدائرة */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Styling for the numbers */
.f-title span {
    font-size: 1.8em; /* حجم الرقم */
    margin-top: 15px; /* مسافة علوية لـ h3 عشان تنزل بعد الأيقونة */
    margin-bottom: 8px; /* مسافة تحت الرقم */
    color: #333; /* لون الرقم */
    font-weight: bold; /* خط سميك */
    display: block; /* عشان ياخد سطر لوحده */
    white-space: normal; /* السماح بتقسيم النص لو طويل */
}

/* Styling for the description text */
.f-text p {
    font-size: 0.9em; /* حجم النص الوصفي */
    line-height: 1.3; /* تباعد الأسطر أقل */
    color: #666; /* لون أفتح للنص */
    margin: 0; /* لإزالة أي مسافات افتراضية للفقرة */
    white-space: normal; /* السماح بتقسيم النص لو طويل */
}

/* Styling for the data reference at the bottom */
.text-area.text-area--text-center p {
    font-size: 0.9em;
    color: #888;
    margin-top: 40px; /* مسافة علوية للفقرة دي */
}

/* Media Queries for very small screens (if you still want some adjustments) */
@media (max-width: 768px) {
    .module-title.module-title--text-center h2 {
        font-size: 2.2em;
    }
    .f-title span {
        font-size: 1.6em;
    }
    .f-text p {
        font-size: 0.85em;
    }
    .f-icon {
        width: 60px;
        height: 60px;
    }
    .f-icon img {
        max-width: 60%; /* الأيقونات أصغر شوية على الموبايل */
    }
}
/* Media Page Specific Styles */
.media-intro {
    padding-top: 40px;
    padding-bottom: 40px;
}

.media-intro .module-title h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #333;
}

.media-intro .text-area p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Photo Albums Section */
.photo-albums-section,
.video-gallery-section {
    padding: 60px 20px;
    background-color: #f0f0f0; /* خلفية رمادية فاتحة عشان تميز القسم */
}

.video-gallery-section {
    background-color: #f8f8f8; /* خلفية مختلفة لقسم الفيديوهات */
}

.photo-albums-section .module-title h3,
.video-gallery-section .module-title h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

/* Grid for Albums/Videos */
.albums-grid,
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3-4 أعمدة حسب الشاشة */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.album-card,
.video-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* عشان الصور متطلعش برا الحواف الدائرية */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* تأثيرات عند التحويم */
}

.album-card:hover,
.video-card:hover {
    transform: translateY(-10px); /* يرتفع لأعلى قليلاً */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* ظل أكبر */
}

.album-card img,
.video-card img {
    width: 100%;
    height: 200px; /* ارتفاع ثابت للصور المصغرة */
    object-fit: cover; /* لملء المساحة بدون تشويه */
    display: block;
    border-bottom: 1px solid #eee;
}

.album-card h4,
.video-card h4 {
    font-size: 1.4em;
    color: #333;
    margin: 15px 10px 5px;
    font-weight: bold;
}

.album-card p,
.video-card p {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 15px;
    line-height: 1.4;
}

/* Lightbox hidden images */
.album-card .hidden,
.video-card .hidden {
    display: none; /* لإخفاء لينكات الصور/الفيديوهات الإضافية في الألبوم */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .albums-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* عمودين على الشاشات الأصغر */
        gap: 20px;
    }

    .album-card,
    .video-card {
        margin: 0 10px; /* مسافة بسيطة من الجوانب */
    }

    .media-intro .module-title h2 {
        font-size: 2.2em;
    }
    .photo-albums-section .module-title h3,
    .video-gallery-section .module-title h3 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .albums-grid,
    .videos-grid {
        grid-template-columns: 1fr; /* عمود واحد على الموبايلات الصغيرة جداً */
        gap: 15px;
    }
}

/* Video Gallery Section Styles */
/* ... (احتفظ بنفس الـ CSS القديم للـ .video-gallery-section, .module-title h3, .videos-grid, .video-card) ... */

.video-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-card h4 {
    font-size: 1.4em;
    color: #333;
    margin: 15px 10px 5px;
    font-weight: bold;
}

.video-card p {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 15px;
    line-height: 1.4;
}

/* New Styles for Responsive Video Player (Key to the solution) */
.video-player-wrapper {
    position: relative;
    width: 100%;
    /* ده اللي بيتحكم في نسبة الأبعاد. جرب قيم مختلفة */
    /* 56.25% لـ 16:9 (أفقي قياسي) */
    /* 75% لـ 4:3 (ممكن يناسب بعض الفيديوهات القديمة أو الطولية القصيرة) */
    /* 100% للمربع */
    /* لو عاوز نسبة معينة، اقسم الارتفاع على العرض واضرب في 100 (مثلاً 9/16 * 100 = 56.25%) */
    padding-bottom: 65%; /* ده بيحدد الارتفاع النسبي للـ wrapper بناءً على العرض */
    background-color: #000;
    overflow: hidden;
    /* تأكد إن مفيش ارتفاع ثابت هنا */
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* مهم جداً: بيخلي الفيديو يملأ المساحة مع الحفاظ على الأبعاد */
    display: block; /* لإزالة أي مسافات زائدة */
}

/* Play Button Overlay (Optional, but makes it look professional) */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    z-index: 1; /* عشان يظهر فوق الفيديو */
}

.play-button::before {
    content: '\25B6'; /* يونيكود لسهم التشغيل */
    font-size: 0.8em;
    margin-left: 5px; /* عشان السهم بيكون مايل شوية */
}

.video-card:hover .play-button {
    background-color: rgba(255, 99, 71, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Optional: Hide play button after video starts playing if you want */
.video-player-wrapper video:play ~ .play-button {
    display: none;
}
/* Styles for Video Background Section */
.video-background-section {
    position: relative;
    overflow: hidden;
    /* غيرنا الـ padding عشان الارتفاع يكون بسيط */
    padding: 80px 20px; /* ممكن تقلل أو تزود الـ 80px حسب الارتفاع المطلوب */
    /* قللنا الارتفاع الأدنى عشان يكون شكل الـ banner */
    min-height: 250px; /* ارتفاع أقل بكتير عشان يبقا زي الـ cover photo */
    max-height: 400px; /* ممكن تحط ارتفاع أقصى عشان ميكبرش أوي على الشاشات الكبيرة */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* مهم جداً عشان الفيديو يملأ المساحة كلها ويحافظ على الأبعاد */
    transform: translate(-50%, -50%);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* لون أسود مع شفافية 50% */
    z-index: 0;
}

.content-above-video {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.content-above-video .module-title h2 {
    font-size: 3.5em;
    margin-bottom: 15px; /* قللنا المسافة السفلية للعنوان */
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.content-above-video .text-area p {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-background-section {
        padding: 50px 15px; /* padding أقل على الموبايل */
        min-height: 200px; /* ارتفاع أقل على الموبايل */
        max-height: 300px;
    }
    .content-above-video .module-title h2 {
        font-size: 2.5em;
    }
    .content-above-video .text-area p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .video-background-section {
        padding: 40px 10px; /* padding أقل جداً للموبايلات الأصغر */
        min-height: 180px;
        max-height: 250px;
    }
    .content-above-video .module-title h2 {
        font-size: 2em;
    }
    .content-above-video .text-area p {
        font-size: 0.9em;
    }
}
/* Photo Gallery Section (New Styles) */
.photo-gallery-section {
    padding: 60px 20px;
    background-color: #f0f0f0;
}

.photo-gallery-section .module-title h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

.photo-grid {
    display: grid;
    /* تحديد عدد الأعمدة: 3 أعمدة كحد أدنى على الشاشات الكبيرة، ممكن يوصل لـ 4 أو 5 لو المساحة تسمح */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* المسافة بين الصور */
    max-width: 1200px; /* عرض أقصى للـ grid */
    margin: 0 auto; /* توسيط الـ grid في الصفحة */
}

.photo-grid a {
    display: block; /* عشان اللينك يملأ مساحته بالكامل */
    position: relative; /* لـ hover effects */
    overflow: hidden; /* عشان تأثيرات الـ hover */
    border-radius: 8px; /* حواف دائرية للصور */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid a:hover {
    transform: translateY(-5px); /* ترتفع قليلاً عند التحويم */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* ظل أوضح */
}

.photo-grid img {
    width: 100%;
    /* النسبة الذهبية (تقريباً 1.618) أو 4:3 (75%) أو 1:1 (100%) أو أي نسبة تفضلها */
    /* لو عايز صور مربعة، خلي الـ height: 100%; و object-fit: cover; داخل div له padding-bottom: 100%; */
    /* هنا هنخلي الارتفاع تلقائي مع object-fit: cover عشان يتكيف مع الصورة الأصلية */
    height: 200px; /* ارتفاع ثابت للصور المصغرة في الـ grid */
    object-fit: cover; /* مهم جداً: بيخلي الصورة تملأ المساحة مع الحفاظ على الأبعاد */
    display: block; /* لإزالة أي مسافات زائدة تحت الصورة */
    transition: transform 0.3s ease;
}

.photo-grid a:hover img {
    transform: scale(1.05); /* تكبر الصورة قليلاً داخل الـ div عند التحويم */
}

/* Optional: Overlay effect on hover */
.photo-grid a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* طبقة شفافة عند التحويم */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* عشان يبقى فوق الصورة */
}

.photo-grid a:hover::before {
    opacity: 1;
}

/* Optional: Icon on hover (e.g., plus icon) */
.photo-grid a::after {
    content: '+'; /* أو أيقونة تكبير */
    font-family: Arial, sans-serif; /* استخدم خط يدعم الأيقونات لو عايز */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2; /* عشان يبقى فوق الـ overlay */
}

.photo-grid a:hover::after {
    opacity: 1;
}


/* Responsive adjustments for Photo Grid */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* عمودين على الشاشات الأصغر */
        gap: 15px;
    }
    .photo-grid img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr; /* عمود واحد على الموبايلات الصغيرة جداً */
        gap: 10px;
    }
    .photo-grid img {
        height: 250px; /* ممكن تزود الارتفاع هنا عشان الصورة تبقى أكبر على الموبايل */
    }
}
.video-card:hover .play-button {
    opacity: 0; /* يجعل زر التشغيل يختفي تدريجياً */
    visibility: hidden; /* يجعله غير مرئي وغير قابل للتفاعل بعد الاختفاء */
    transform: translate(-50%, -50%) scale(0.8); /* تأثير تصغير خفيف أثناء الاختفاء */
}

/* تأكد أن الانتقال مطبق على الـ .play-button نفسه */
.play-button {
    /* ... باقي الخصائص ... */
    transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* أضف opacity و visibility للـ transition */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* خط مناسب للعربية */
    overflow-x: hidden; /* يمنع ظهور شريط التمرير الأفقي إذا تجاوز المحتوى */
}

.video-section {
    position: relative; /* ضروري لتحديد الموضع المطلق للفيديو والمحتوى */
    width: 100vw; /* عرض كامل لنافذة العرض */
    height: 20vh; /* ارتفاع صغير، 30% من ارتفاع نافذة العرض. يمكن تعديله حسب الحاجة. */
    overflow: hidden; /* يخفي أجزاء الفيديو التي تتجاوز ارتفاع القسم */
    display: flex;
    align-items: center; /* يوسّط المحتوى عموديًا */
    justify-content: center; /* يوسّط المحتوى أفقيًا */
    color: white; /* لون النص للمحتوى فوق الفيديو */
    text-align: center;
}

.video-section 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; /* يضمن أن الفيديو يغطي القسم بالكامل */
}

.video-section .content {
    position: relative; /* يبقى فوق الفيديو */
    z-index: 1; /* يضمن أن المحتوى فوق الفيديو */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* خلفية شبه شفافة لسهولة القراءة */
    border-radius: 8px;
}

/* اختياري: إضافة بعض المسافة بين الأقسام إذا رغبت */
.video-section + .video-section {
    margin-top: 3px; /* يمكن تعديله حسب الحاجة */
}
.floating-video-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #FF8C00; /* لون برتقالي داكن ليتناسب مع اللوجو */
    color: white; /* يفضل أن يبقى النص أبيض ليكون واضحًا على الخلفية البرتقالية */
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.3s ease;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-weight: bold;
}
}

.floating-video-ad a {
    color: white; /* تأكد أن لون الرابط أيضًا أبيض ليظهر بوضوح */
    text-decoration: none;
    display: block;
}

.floating-video-ad:hover {
    background-color: #FF6F00; /* درجة أغمق قليلاً من البرتقالي عند مرور الماوس لإعطاء تأثير تفاعلي */
    transform: scale(1.05);
}

/* قم بإخفاء الإعلان على الشاشات الصغيرة جدًا إذا لزم الأمر */
@media (max-width: 600px) {
    .floating-video-ad {
        padding: 10px 15px;
        font-size: 14px;
        bottom: 10px;
        right: 10px;
    }
}