/*******************************/
/********* General CSS *********/
/*******************************/
body {
    color: #666666;
    background: #dddddd;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

h1,
h2, 
h3, 
h4,
h5, 
h6 {
    color: #030f27;
}

a {
    color: #666666;
    transition: .3s;
}

a:hover,
a:active,
a:focus {
    color: #fdbe33;
    outline: none;
    text-decoration: none;
}

.btn:focus {
    box-shadow: none;
}

.wrapper {
    position: relative;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    background: #ffffff;
}

.back-to-top {
    position: fixed;
    display: none;
    background: #fdbe33;
    color: #121518;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 22px;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 9;
}

.back-to-top:hover {
    color: #fdbe33;
    background: #121518;
}

.back-to-top i {
    padding-top: 10px;
}

.btn {
    transition: .3s;
}


/**********************************/
/********** Top Bar CSS ***********/
/**********************************/
/**********************************/
/*********** Nav Bar CSS **********/
/**********************************/


/* الأنماط الأساسية لشريط التنقل - الحالة الشفافة */
.nav-bar {
    position: absolute; /* ليظهر فوق صورة الـ Hero */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: transparent !important; /* شفاف تماماً في البداية */
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* عندما يبدأ المستخدم بالنزول (Sticky Mode) */
.nav-bar.nav-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1C1C1C !important; /* يتحول للأسود الفحمي */
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    padding: 5px 0; /* تصغير الارتفاع قليلاً عند التمرير */
}

/* لضمان أن الـ Navbar الداخلية شفافة أيضاً */
.nav-bar .navbar {
    background: transparent !important;
    padding: 15px 20px;
    transition: all .4s ease;
}

/* عند التثبيت، نغير خلفية الـ Navbar الداخلية أيضاً */
.nav-bar.nav-sticky .navbar {
    background: #1C1C1C !important;
    padding: 10px 20px;
}

/* روابط التنقل - وضوح عالي فوق الشفافية */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* لضمان القراءة فوق أي صورة خلفية */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #C8A25F !important;
    border-bottom: 2px solid #C8A25F;
}


/* تغيير خلفية العنصر المختار (النشط) من الأزرق إلى الرمادي */
.nav-bar .dropdown-menu .dropdown-item.active, 
.nav-bar .dropdown-menu .dropdown-item:active {
    background-color: #808080 !important; /* لون رمادي متوسط */
    color: #ffffff !important; /* لون نص أبيض لضمان الوضوح */
}

/* تحسين شكل العنصر عند تمرير الماوس فقط (Hover) */
.nav-bar .dropdown-menu .dropdown-item:hover {
    background-color: #d3d3d3 !important; /* لون رمادي فاتح جداً عند التمرير */
    color: #1C1C1C !important;
}

/* إذا كنت تستخدم التحديد بواسطة التركيز (Focus) */
.nav-bar .dropdown-menu .dropdown-item:focus {
    background-color: #a9a9a9 !important; /* رمادي غامق قليلاً عند التركيز */
    outline: none;
}
/* تحسين القائمة المنسدلة */
.nav-bar .dropdown-menu {
    background: #f0ebeb;
    border-top: 3px solid #C8A25F; /* لمسة ذهبية في الأعلى */
}


/* تحسين الزر ليتناسب مع النمطين */
.nav-bar .btn {
    border: 2px solid #C8A25F;
    color: #ffffff;
    font-weight: 600;
}

.nav-bar .btn:hover {
    background: #C8A25F;
    color: #1C1C1C;
}

/* ************************************** */
/* أنماط شاشات العرض الكبيرة (Desktop) */
/* ************************************** */
@media (min-width: 992px) {
    .nav-bar {
        padding: 0 75px;
    }
    
    .nav-bar.nav-sticky {
        padding: 0;
    }
    
    /* تمت إزالة البادينج من هنا ونقلت إلى .nav-bar .navbar */
    /* .nav-bar .navbar { padding: 20px; } */ 
    
    .nav-bar .navbar-brand {
        display: none;
    }
    
    .nav-bar a.nav-link {
        padding: 15px 15px; /* زيادة ارتفاع الروابط قليلاً */
        font-size: 15px;
        text-transform: uppercase;
    }
    
    /* ضبط مكان القائمة المنسدلة لتجنب التحرك */
    .nav-bar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* ضمان عدم وجود فجوة */
    }
}

/* ************************************** */
/* أنماط شاشات العرض الصغيرة (Mobile) */
/* ************************************** */
@media (max-width: 991.98px) {
    .nav-bar .navbar {
        padding: 15px;
        
    }
     .nav-bar .navbar-brand {
       color:#e8dada;
      
    }
    
    .nav-bar a.nav-link {
        padding: 8px 15px; /* مسافة داخلية أكبر قليلاً في الموبايل */
        color: #C8A25F !important; /* لون ذهبي للروابط في قائمة الهاتف */
    }
    
    .nav-bar .dropdown-menu {
        box-shadow: none !important; /* إزالة الظل تماماً لتبسيط المظهر في الهاتف */
        background: #f3f0f0; /* خلفية أغمق للقائمة المنسدلة في الهاتف */
    }
    
    .nav-bar .dropdown-menu .dropdown-item {
        color: #4d4c4c !important; /* نص أبيض في القائمة المنسدلة */
        padding-left: 30px; /* مسافة لإبعاد النص عن الحافة */
    }
    
    .nav-bar .btn {
        display: none;
    }
}


/**********************************/
/*********** Nav Bar CSS **********/
/**********************************/



/*******************************/
/******** Carousel CSS *********/
/*******************************/
.carousel {
    position: relative;
    width: 100%;
    height: 100vh; /* جعل الارتفاع كامل الشاشة تماماً لشكل أكثر فخامة */
    min-height: 400px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

/* تأثير زووم سينمائي للصور عند الانتقال */
.carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate; /* حركة مستمرة هادئة */
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* تحسين الطبقة الشفافة بتدرج لوني يعطي عمقاً */
.carousel .carousel-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(3, 15, 39, .6)); /* تدرج كحلي فخم */
    z-index: 1;
}

.carousel .carousel-caption {
    position: absolute;
    top: 50%; /* التوسيط الدقيق */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    z-index: 2;
}

/* حركة النصوص: الظهور من الأسفل مع تلاشي */
.carousel .carousel-item.active .carousel-caption p {
    animation: fadeInUp 1s both;
    animation-delay: 0.3s;
    color: #fdbe33; /* تغيير لون النص الصغير للذهبي */
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
}

.carousel .carousel-item.active .carousel-caption h1 {
    animation: fadeInUp 1s both;
    animation-delay: 0.6s;
    color: #ffffff;
    font-size: 70px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3); /* ظل للنص لزيادة الوضوح */
}

.carousel .carousel-item.active .carousel-caption .btn {
    animation: fadeInUp 1s both;
    animation-delay: 0.9s;
    border-radius: 50px; /* زر بيضاوي عصري */
    padding: 15px 45px;
    border: 2px solid #fdbe33;
}

/* حركات الأنيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين أزرار التنقل (السابق والتالي) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(253, 190, 51, 0.5);
    border-radius: 50%;
    background-size: 50%;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #fdbe33;
}

/* تحسينات الشاشات الصغيرة */
@media (max-width: 768px) {
    .carousel .carousel-caption h1 { font-size: 38px; }
    .carousel .carousel-caption p { font-size: 18px; }
    .carousel { height: 70vh; }
}
/* حاوية الفيديو */

/*******************************/
/******* Page Header CSS *******/
/*******************************/
/* تنسيق القسم الرئيسي - تحويل اللون الأصفر إلى صورة خلفية عريضة */
/* --- القسم الرئيسي للعنوان (Hero Section) --- */
/* --- القسم الرئيسي للعنوان (Hero Section) --- */
/* --- 1. التنسيق الأساسي المشترك لجميع الصفحات --- */
/* التنسيق الأساسي - يطبق على جميع الصفحات */
.page-header {
    position: relative;
    width: 100%;
    min-height: 600px; /* يضمن وجود مساحة كافية للصورة */
    margin-bottom: 45px;
    padding: 120px 0;
    text-align: center;
    
    /* الخصائص المسؤولة عن جعل الصورة كاملة */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover !important; /* تجعل الصورة تغطي المساحة بالكامل */
    background-attachment: fixed; /* تأثير البارالاكس */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes zoomBackground {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* تكبير بسيط بنسبة 10% */
    }
}

/* خلفية صفحة الوظائف */
.header-jobs {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/jobs.png');
  
     animation: zoomBackground 20s infinite alternate ease-in-out;
}

/* خلفية صفحة About (أو أي صفحة أخرى) */
.header-about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/ZA.png');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}
.header-contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('../img/contact.jpg');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}

.header-Service {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('../img/road.jpg');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}

.header-team {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('../img/bb.jpg');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}

.header-portfolio {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('../img/dams.jpg');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}


.header-blog {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('../img/bll.jpg');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}
.header-single {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('../img/Single Page.jpg');
    animation: zoomBackground 20s infinite alternate ease-in-out;
}
/* تنسيق العنوان ليكون بارزاً فوق الصو
/* تنسيق العنوان ليكون بارزاً فوق الصورة */
.page-header h2 {
    color: #ffffff;
    font-size: 55px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    z-index: 1; /* لضمان ظهوره فوق التدرج اللوني */
}


 

/* --- تنسيق العنوان الكبير --- */
.page-header h2 {
    position: relative;
    color: #ffffff; 
    font-size: 65px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* ظل للنص لزيادة التباين مع خلفية الصورة */
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8); 
}

/* الخط المميز (اللون الأصفر لهوية شركة رادكو) */
.page-header h2::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 4px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    background: #fdbe33; 
    border-radius: 5px;
}

/* --- تنسيق الروابط (Breadcrumbs) --- */
.page-header a {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-header a:hover {
    color: #fdbe33;
    transform: scale(1.05); /* تكبير بسيط عند التحويم */
}

/* الفاصل بين الروابط */
.page-header a::after {
    position: absolute;
    content: "/";
    right: -5px;
    color: #fdbe33;
    font-weight: bold;
}

.page-header a:last-child {
    color: #fdbe33; /* تمييز الصفحة الحالية باللون الأصفر */
}

.page-header a:last-child::after {
    display: none;
}

/* --- تحسينات الاستجابة (Responsive) --- */

@media (max-width: 991.98px) {
    .page-header {
        padding: 100px 0;
        background-attachment: scroll; /* إلغاء التثبيت للتابلت لتحسين الأداء */
    }
    .page-header h2 { font-size: 45px; }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 80px 0;
    }
    .page-header h2 {
        font-size: 30px;
        letter-spacing: 1px;
    }
    .page-header a { font-size: 16px; }
}


/*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
    position: relative;
    width: 100%;
    margin-bottom: 45px;
}

.section-header p {
    color: #fdbe33;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.section-header h2 {
    margin: 0;
    position: relative;
    font-size: 50px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 30px;
    }
}


/*******************************/
/********* Feature CSS *********/
/*******************************/
.feature {
    position: relative;
    margin-bottom: 45px;
}

.feature .col-md-12 {
    background: #030f27;
}
    
.feature .col-md-12:nth-child(2n) {
    color: #030f27;
    background: #fdbe33;
}

.feature .feature-item {
    min-height: 250px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature .feature-icon {
    position: relative;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature .feature-icon::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    top: -20px;
    left: -10px;
    border: 2px dotted #ffffff;
    border-radius: 60px;
    z-index: 1;
}

.feature .feature-icon::after {
    position: absolute;
    content: "";
    width: 79px;
    height: 79px;
    top: -18px;
    left: -9px;
    background: #030f27;
    border-radius: 60px;
    z-index: 2;
}

.feature .col-md-12:nth-child(2n) .feature-icon::after {
    background: #fdbe33;
}

.feature .feature-icon [class^="flaticon-"]::before {
    position: relative;
    margin: 0;
    color: #fdbe33;
    font-size: 60px;
    line-height: 60px;
    z-index: 3;
}

.feature .feature-text {
    padding-left: 30px;
}

.feature .feature-text h3 {
    margin: 0 0 10px 0;
    color: #fdbe33;
    font-size: 25px;
    font-weight: 600;
}

.feature .feature-text p {
    margin: 0;
    color: #fdbe33;
    font-size: 18px;
    font-weight: 400;
}

.feature .col-md-12:nth-child(2n) [class^="flaticon-"]::before,
.feature .col-md-12:nth-child(2n) h3,
.feature .col-md-12:nth-child(2n) p {
    color: #030f27;
}


/*******************************/
/********** About CSS **********/
/*******************************/
.about {
    position: relative;
    width: 100%;
    padding: 100px 0; /* زيادة المساحة ليعطي راحة للعين */
    background: #ffffff;
}

/* تحسين حاوية الصورة بإضافة إطار خلفي جمالي */
.about .about-img {
    position: relative;
    height: 100%;
    padding: 15px; /* مساحة للإطار */
}

.about .about-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 0;
    left: 0;
    border: 10px solid #fdbe33; /* إطار أصفر خلفي */
    z-index: 1;
    transition: 0.5s;
}

.about .about-img img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 15px 15px 50px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
}

/* حركة عند التحويم على الصورة */
.about .about-item:hover .about-img img {
    transform: scale(1.02);
    box-shadow: 20px 20px 60px rgba(3, 15, 39, 0.2);
}

.about .about-item:hover .about-img::before {
    top: -10px;
    left: -10px; /* تمدد الإطار عند التفاعل */
}

/* تحسين النصوص */
.about .about-text {
    padding-left: 30px;
}

.about .about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #030f27;
}

.about .about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* تطوير زر "المزيد" ليكون تفاعلياً */
.about .about-text a.btn {
    position: relative;
    margin-top: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #030f27;
    background: #fdbe33;
    border: 2px solid #fdbe33;
    border-radius: 5px; /* انحناء بسيط جداً للفخامة */
    overflow: hidden;
    z-index: 1;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.about .about-text a.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #030f27;
    z-index: -1;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.about .about-text a.btn:hover {
    color: #fdbe33;
}

.about .about-text a.btn:hover::before {
    left: 0; /* تأثير المسح السريع للخلفية */
}

@media (max-width: 767.98px) {
    .about {
        padding: 60px 0;
    }
    .about .about-text {
        padding-left: 15px;
        margin-top: 40px;
    }
    .about .about-img::before {
        display: none; /* إخفاء الإطار في الجوال لتقليل الفوضى */
    }
}


/*******************************/
/********** Fact CSS ***********/
/*******************************/
.fact {
    position: relative;
    width: 100%;
    padding: 0; /* أزلنا الـ padding لدمج الألوان تماماً */
    overflow: hidden;
}

.fact .row {
    margin: 0; /* لضمان التصاق القسمين الأيسر والأيمن */
}

/* تحسين القسم الأيسر والأيمن بلمسة انسيابية */
.fact .fact-left,
.fact .fact-right {
    padding: 80px 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* إضافة لمعة خفيفة عند التحويم */
.fact .fact-left:hover,
.fact .fact-right:hover {
    z-index: 2;
    transform: scale(1.02); /* تكبير بسيط جداً للقسم */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.fact .col-6 {
    display: flex;
    align-items: center; /* توسيط عمودي للأيقونة مع النص */
    justify-content: center;
}

/* تحسين الأيقونات وحركتها */
.fact .fact-icon {
    position: relative;
    margin-right: 25px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

/* حركة "النبض" للأيقونة */
.fact .col-6:hover .fact-icon {
    transform: scale(1.2) rotate(10deg);
}

.fact .fact-icon [class^="flaticon-"]::before {
    margin: 0;
    font-size: 65px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 30%, #fdbe33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 4px 6px rgba(238, 229, 229, 0.1));
}

/* تحسين النصوص والأرقام */
.fact .fact-text h2 {
    font-size: 45px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
    /* تأثير ظهور الأرقام */
    display: block;
}

.fact .fact-text p {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* التنسيق اللوني المطور */
.fact .fact-left {
    color: #fdbe33;
    background: #030f27;
}

.fact .fact-right {
    color: #030f27;
    background: #fdbe33;
}

/* إضافة خط فاصل مائل بتصميم عصري */
.fact .fact-left::after {
    content: "";
    position: absolute;
    top: 0;
    right: -25px;
    width: 50px;
    height: 100%;
    background: #030f27;
    transform: skewX(-5deg);
    z-index: -1;
}

@media (max-width: 767.98px) {
    .fact .col-6 {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    .fact .fact-icon {
        margin: 0 0 15px 0;
    }
    .fact .fact-left::after {
        display: none;
    }
}


/*******************************/
/********* Service CSS *********/
/*******************************/
/* تنسيق قسم الخدمات العام */
.service {
    padding: 90px 0;
    background: #fdfdfd;
}

/* بطاقة الخدمة */
.service-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px; /* زوايا دائرية عصرية */
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* حركة البطاقة عند التحويم */
.service-item:hover {
    transform: translateY(-15px); /* رفع البطاقة للأعلى */
    box-shadow: 0 20px 40px rgba(3, 15, 39, 0.15);
}

/* تنسيق الصورة */
.service-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease; /* تنعيم حركة الزووم */
}

/* زووم للصورة عند التحويم */
.service-item:hover .service-img img {
    transform: scale(1.15) rotate(2deg);
}

/* طبقة الأوفرلاي (الغطاء) */
.service-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(3, 15, 39, 0.7); /* لون داكن شفاف */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-overlay p {
    color: #fdbe33; /* لون رادكو الأصفر */
    font-weight: 700;
    font-size: 20px;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.service-item:hover .service-overlay p {
    transform: translateY(0);
}

/* منطقة النصوص أسفل الصورة */
.service-text {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    position: relative;
}

.service-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: #030f27;
    margin-bottom: 15px;
    transition: 0.3s;
}

/* زر الزائد (+) التفاعلي */
.service-text .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdbe33;
    color: #030f27;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.4s ease;
    border: none;
}

.service-item:hover .service-text .btn {
    background: #030f27;
    color: #fdbe33;
    transform: rotate(90deg); /* دوران الزر عند التحويم */
}

/* الخط الأصفر تحت العنوان */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #fdbe33;
    margin: 15px auto;
    border-radius: 5px;
}






/*******************************/
/*********** Team CSS **********/
/*******************************/
.team {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: #f8f9fa;
}

/* حاوية العضو */
.team .team-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 15px; /* حواف دائرية ناعمة */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
}

.team .team-item:hover {
    transform: translateY(-10px); /* رفع البطاقة بالكامل */
    box-shadow: 0 20px 40px rgba(3, 15, 39, 0.15);
}

/* تنسيق الصورة مع تأثير زووم */
.team .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-img img {
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.team .team-item:hover .team-img img {
    transform: scale(1.1); /* تكبير الصورة عند التحويم */
}

/* تنسيق النصوص */
.team .team-text {
    position: relative;
    padding: 30px 15px;
    text-align: center;
    background: #030f27;
    z-index: 2;
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.team .team-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fdbe33;
    margin-bottom: 10px;
    transition: 0.5s;
}

.team .team-text p {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* تغيير الألوان عند التحويم */
.team .team-item:hover .team-text {
    background: #fdbe33;
}

.team .team-item:hover .team-text h2 {
    color: #030f27;
}

.team .team-item:hover .team-text p {
    color: #030f27;
    font-weight: 600;
}

/* تطوير أيقونات التواصل الاجتماعي */
.team .team-social {
    position: absolute;
    width: 50px;
    top: 20px;
    left: -60px; /* مخفية في البداية */
    display: flex;
    flex-direction: column;
    z-index: 3;
    transition: 0.5s;
}

.team .team-item:hover .team-social {
    left: 20px; /* تظهر للداخل عند التحويم */
}

.team .team-social a {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* زوايا دائرية للأيقونات */
    font-size: 18px;
    color: #ffffff;
    transition: all 0.3s ease;
    background: rgba(3, 15, 39, 0.8); /* خلفية داكنة شفافة */
}

/* تأثير الألوان عند التحويم على الأيقونات */
.team .team-social a:hover {
    background: #fdbe33 !important;
    color: #030f27 !important;
    transform: scale(1.2);
}

/* حركة تتابعية لظهور الأيقونات (Staggered Animation) */
.team .team-item:hover .team-social a:nth-child(1) { transition-delay: 0.1s; }
.team .team-item:hover .team-social a:nth-child(2) { transition-delay: 0.2s; }
.team .team-item:hover .team-social a:nth-child(3) { transition-delay: 0.3s; }
.team .team-item:hover .team-social a:nth-child(4) { transition-delay: 0.4s; }


/*******************************/
/*********** FAQs CSS **********/
/*******************************/
/* إزالة أي خطوط افتراضية */
.faqs .row {
    position: relative;
    border: none; /* يضمن إزالة أي حدود */
}

.faqs .section-header .header-line {
    display: block;
    width: 60px;
    height: 3px;
    background: #fdbe33;
    margin: 10px auto 30px;
}

.faqs .card {
    margin-bottom: 20px;
    border: none;
    background: #ffffff;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* ظل ناعم جداً */
    transition: all 0.3s ease;
}

.faqs .card:hover {
    transform: translateY(-5px); /* حركة صعود خفيفة عند التحويم */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.faqs .card-header {
    padding: 0;
    border: none;
    background: transparent;
}

.faqs .card-link {
    display: flex;
    align-items: center;
    padding: 25px;
    color: #030f27;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}

/* لون الأيقونة الأصفر كما في طلبك */
.faqs .card-link i {
    color: #fdbe33;
    font-size: 20px;
    margin-right: 20px;
    transition: 0.3s;
}

/* عندما يتم فتح السؤال */
.faqs .card-link:not(.collapsed) {
    background: #030f27; /* خلفية كحلية احترافية عند الفتح */
    color: #fdbe33;
    border-radius: 12px 12px 0 0;
}

.faqs .card-link:not(.collapsed) i {
    transform: rotate(45deg); /* علامة + تصبح x */
    color: #ffffff;
}

.faqs .card-body {
    padding: 20px 25px 25px 65px; /* إزاحة النص ليتماشى مع بداية السؤال */
    line-height: 1.8;
    color: #555;
    background: #fff;
    border-radius: 0 0 12px 12px;
}


/*******************************/
/******* Testimonial CSS *******/
/*******************************/
.testimonial {
    position: relative;
    margin: 45px 0;
    padding: 90px 0;
    text-align: center;
    background: linear-gradient(rgba(3, 15, 39, .9), rgba(3, 15, 39, .9)), url(../img/carousel-1.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.testimonial .container {
    max-width: 760px;
}

.about-page .testimonial {
    padding-bottom: 90px;
}

.testimonial .testimonial-slider-nav {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.testimonial .testimonial-slider-nav .slick-slide {
    position: relative;
    opacity: 0;
    transition: .5s;
}

.testimonial .testimonial-slider-nav .slick-active {
    opacity: 1;
    transform: scale(1.3);
}

.testimonial .testimonial-slider-nav .slick-center {
    transform: scale(1.8);
    z-index: 1;
}

.testimonial .testimonial-slider-nav .slick-slide img {
    position: relative;
    display: block;
    margin-top: 37px;
    width: 100%;
    height: auto;
    border-radius: 100px;
}

.testimonial .testimonial-slider {
    position: relative;
    margin-top: 15px;
    padding-top: 50px;
}

.testimonial .testimonial-slider::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 50px;
    top: 0;
    left: calc(50% - 30px);
    background: url(../img/quote.png) top center no-repeat;
}

.testimonial .testimonial-slider h3 {
    color: #fdbe33;
    font-size: 22px;
    font-weight: 700;
}

.testimonial .testimonial-slider h4 {
    font-size: 14px;
    font-weight: 300;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial .testimonial-slider p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
}


/*******************************/
/*********** Blog CSS **********/
/*******************************/
/* تنسيق القسم العام */
/* الحاوية الرئيسية */
.blog {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-item {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: 0.5s;
}

.blog-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(3,15,39,0.2);
}

.blog-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

.blog-item:hover .blog-img img {
    transform: scale(1.15);
}

.blog-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #131415;
    position: relative;
    z-index: 100;
}

.blog-title h3 {
    padding: 15px 20px;
    color: #fdbe33;
    font-size: 22px;
}

.blog-title .btn {
    width: 75px;
    height: 75px;
    font-size: 40px;
    border: none;
    background: #fdbe33;
    color: #121313;
    cursor: pointer;
    transition: 0.4s;
}

.blog-item:hover .btn {
    background: #fff;
    color: #fdbe33;
    transform: rotate(180deg);
}

.blog-text {
    padding: 20px;
    color: #555;
}

/* ===== Modal ===== */
#imgModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#imgModal img {
    width: 75%;
    max-width: 100% ;
    max-height: 70vh;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

#closeModal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

#closeModal:hover {
    color: #fdbe33;
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}





/* تنسيق حاوية الترقيم */
.pagination {
    margin-top: 50px;
    gap: 10px; /* إضافة مسافة بين الأرقام */
}

/* التنسيق العام لكل رابط رقمي */
.pagination .page-item .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* شكل دائري عصري */
    border: 2px solid #fdbe33; /* إطار أصفر ذهبي */
    color: #030f27; /* نص كحلي */
    font-weight: 700;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* الصفحة النشطة (الرقم الحالي) */
.pagination .page-item.active .page-link {
    background-color: #030f27 !important; /* خلفية كحلية */
    border-color: #030f27 !important;
    color: #fdbe33 !important; /* نص أصفر */
    transform: scale(1.1); /* تكبير بسيط */
    box-shadow: 0 8px 15px rgba(3, 15, 39, 0.3);
}

/* تأثير عند تمرير الماوس */
.pagination .page-item .page-link:hover {
    background-color: #fdbe33; /* تتحول للأصفر */
    color: #030f27;
    border-color: #fdbe33;
    transform: translateY(-5px); /* حركة للأعلى */
}

/* أزرار السابق والتالي (نصية) */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    width: auto;
    padding: 0 20px;
    border-radius: 25px !important; /* شكل بيضاوي */
}



/*******************************/
/******* Single Post CSS *******/
/*******************************/
.single {
    position: relative;
    padding: 45px 0;
}

.single .single-content {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.single .single-content img {
    margin-bottom: 20px;
    width: 100%;
}

.single .single-tags {
    margin: -5px -5px 41px -5px;
    font-size: 0;
}

.single .single-tags a {
    margin: 5px;
    display: inline-block;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    border: 1px solid #dddddd;
}

.single .single-tags a:hover {
    color: #fdbe33;
    background: #030f27;
}

.single .single-bio {
    margin-bottom: 45px;
    padding: 30px;
    background: #f3f6ff;
    display: flex;
}

.single .single-bio-img {
    width: 100%;
    max-width: 100px;
}

.single .single-bio-img img {
    width: 100%;
}

.single .single-bio-text {
    padding-left: 30px;
}

.single .single-bio-text h3 {
    font-size: 20px;
    font-weight: 700;
}

.single .single-bio-text p {
    margin: 0;
}

.single .single-related {
    margin-bottom: 45px;
}

.single .single-related h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.single .related-slider {
    position: relative;
    margin: 0 -15px;
    width: calc(100% + 30px);
}

.single .related-slider .post-item {
    margin: 0 15px;
}

.single .post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.single .post-item .post-img {
    width: 100%;
    max-width: 80px;
}

.single .post-item .post-img img {
    width: 100%;
}

.single .post-item .post-text {
    padding-left: 15px;
}

.single .post-item .post-text a {
    font-size: 16px;
    font-weight: 400;
}

.single .post-item .post-meta {
    display: flex;
    margin-top: 8px;
}

.single .post-item .post-meta p {
    display: inline-block;
    margin: 0;
    padding: 0 3px;
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
}

.single .post-item .post-meta p a {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 300;
    font-style: normal;
}

.single .related-slider .owl-nav {
    position: absolute;
    width: 90px;
    top: -55px;
    right: 15px;
    display: flex;
}

.single .related-slider .owl-nav .owl-prev,
.single .related-slider .owl-nav .owl-next {
    margin-left: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030f27;
    background: #fdbe33;
    font-size: 16px;
    transition: .3s;
}

.single .related-slider .owl-nav .owl-prev:hover,
.single .related-slider .owl-nav .owl-next:hover {
    color: #fdbe33;
    background: #030f27;
}

.single .single-comment {
    position: relative;
    margin-bottom: 45px;
}

.single .single-comment h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.single .comment-list {
    list-style: none;
    padding: 0;
}

.single .comment-child {
    list-style: none;
}

.single .comment-body {
    display: flex;
    margin-bottom: 30px;
}

.single .comment-img {
    width: 60px;
}

.single .comment-img img {
    width: 100%;
}

.single .comment-text {
    padding-left: 15px;
    width: calc(100% - 60px);
}

.single .comment-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.single .comment-text span {
    display: block;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 5px;
}

.single .comment-text .btn {
    padding: 3px 10px;
    font-size: 14px;
    color: #030f27;
    background: #dddddd;
    border-radius: 0;
}

/* تنسيق الحاوية الرئيسية للتعليق */
.comment-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    max-width: 700px;
    margin: 30px auto;
}

/* العنوان */
.comment-form h2 {
    font-family: 'Almarai', sans-serif;
    color: #272727;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

/* خط صغير تحت العنوان للجمالية */
.comment-form h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0; /* للعربي */
    width: 50px;
    height: 3px;
    background: #272727;
    border-radius: 3px;
}

/* تحسين شكل المدخلات */
.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555550;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.comment-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    background-color: #fcfcfc;
    font-family: 'Almarai', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* تأثير عند الضغط على المربع للمناقشة */
.comment-form .form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #272727;
    box-shadow: 0 0 0 4px rgba(39, 39, 39, 0.05);
}

/* زر إرسال التعليق */
.comment-form .btn {
    background-color: #272727;
    color: #ffffff;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-family: 'Almarai', sans-serif;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: auto;
    display: inline-block;
}

.comment-form .btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.comment-form .btn:active {
    transform: translateY(-1px);
}



/**********************************/
/*********** Sidebar CSS **********/
/**********************************/
.sidebar {
    position: relative;
    width: 100%;
}

@media(max-width: 991.98px) {
    .sidebar {
        margin-top: 45px;
    }
}

.sidebar .sidebar-widget {
    position: relative;
    margin-bottom: 45px;
}

.sidebar .sidebar-widget .widget-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 5px;
    font-size: 30px;
    font-weight: 700;
}

.sidebar .sidebar-widget .widget-title::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #fdbe33;
}

.sidebar .sidebar-widget .search-widget {
    position: relative;
}

.sidebar .search-widget input {
    height: 50px;
    border: 1px solid #dddddd;
    border-radius: 0;
}

.sidebar .search-widget input:focus {
    box-shadow: none;
}

.sidebar .search-widget .btn {
    position: absolute;
    top: 6px;
    right: 15px;
    height: 40px;
    padding: 0;
    font-size: 25px;
    color: #fdbe33;
    background: none;
    border-radius: 0;
    border: none;
    transition: .3s;
}

.sidebar .search-widget .btn:hover {
    color: #030f27;
}

.sidebar .sidebar-widget .recent-post {
    position: relative;
}

.sidebar .sidebar-widget .tab-post {
    position: relative;
}

.sidebar .tab-post .nav.nav-pills .nav-link {
    color: #fdbe33;
    background: #030f27;
    border-radius: 0;
}

.sidebar .tab-post .nav.nav-pills .nav-link:hover,
.sidebar .tab-post .nav.nav-pills .nav-link.active {
    color: #030f27;
    background: #fdbe33;
}

.sidebar .tab-post .tab-content {
    padding: 15px 0 0 0;
    background: transparent;
}

.sidebar .tab-post .tab-content .container {
    padding: 0;
}

.sidebar .sidebar-widget .category-widget {
    position: relative;
}

.sidebar .category-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar .category-widget ul li {
    margin: 0 0 12px 22px; 
}

.sidebar .category-widget ul li:last-child {
    margin-bottom: 0; 
}

.sidebar .category-widget ul li a {
    display: inline-block;
    line-height: 23px;
}

.sidebar .category-widget ul li::before {
    position: absolute;
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fdbe33;
    left: 1px;
}

.sidebar .category-widget ul li span {
    display: inline-block;
    float: right;
}

.sidebar .sidebar-widget .tag-widget {
    position: relative;
    margin: -5px -5px;
}

.single .tag-widget a {
    margin: 5px;
    display: inline-block;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    border: 1px solid #dddddd;
}

.single .tag-widget a:hover {
    color: #fdbe33;
    background: #030f27;
}

.sidebar .image-widget {
    display: block;
    width: 100%;
    overflow: hidden;
}

.sidebar .image-widget img {
    max-width: 100%;
    transition: .3s;
}

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


/*******************************/
/******** Portfolio CSS ********/
/*******************************/
.portfolio {
    position: relative;
    padding: 45px 0;
}

.portfolio #portfolio-flters {
    padding: 0;
    margin: -15px 0 25px 0;
    list-style: none;
    font-size: 0;
    text-align: center;
}

.portfolio #portfolio-flters li,
.portfolio .load-more .btn {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    color: #030f27;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0;
    background: #fdbe33;
    border: none;
    transition: .3s;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    background: #030f27;
    color: #fdbe33;
}

.portfolio .load-more {
    text-align: center;
}

.portfolio .load-more .btn {
    padding: 15px 35px;
    font-size: 16px;
    transition: .3s;
}

.portfolio .load-more .btn:hover {
    color: #fdbe33;
    background: #030f27;
}

.portfolio .portfolio-warp {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.portfolio .portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio .portfolio-img img {
    width: 100%;
    transition: .3s;
}

.portfolio .portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio .portfolio-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 15, 39, .7);
    transition: .5s;
    opacity: 0;
}

.portfolio .portfolio-warp:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio .portfolio-overlay p {
    margin: 0;
    color: #ffffff;
}

.portfolio .portfolio-text {
    display: flex;
    align-items: center;
    height: 60px;
    background: #030f27;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.portfolio .portfolio-text h3 {
    margin: 0;
    padding: 0 15px 0 25px;
    width: calc(100% - 60px);
    font-size: 20px;
    font-weight: 700;
    color: #fdbe33;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.portfolio .portfolio-warp a.btn {
    width: 60px;
    height: 60px;
    padding: 3px 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    line-height: 60px;
    font-weight: 100;
    color: #030f27;
    background: #ffffff;
    border-radius: 0;
    transition: .3s;
}

.portfolio .portfolio-warp:hover a.btn {
    color: #ffffff;
    background: #fdbe33;
}

.portfolio {
    position: relative;
    padding: 60px 0; /* زيادة المسافة لإعطاء فخامة */
    background: #f8f9fa;
}

/* تحسين الفلاتر */
.portfolio #portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    color: #030f27;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px; /* حواف ناعمة بدل الحواف الحادة */
    background: #fdbe33;
    transition: all .4s ease;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    background: #030f27;
    color: #fdbe33;
    transform: translateY(-3px); /* حركة بسيطة للأعلى */
}

/* الحل الجذري لتساوي أحجام الصور */
.portfolio .portfolio-img {
    position: relative;
    width: 100%;
    /* تحديد نسبة أبعاد ثابتة (مثلاً 4:3) لضمان التساوي التام */
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 10px 10px 0 0; /* حواف دائرية علوية */
}

.portfolio .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يضمن ملء الصورة للمساحة دون تمطيط */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio .portfolio-item:hover img {
    transform: scale(1.15); /* زووم أكثر سلاسة */
}

/* تحسين الطبقة الشفافة (Overlay) */
.portfolio .portfolio-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(230, 231, 234, 0.85); /* تعميق اللون قليلاً */
    transition: all 0.5s ease;
    opacity: 0;
    backdrop-filter: blur(3px); /* تأثير ضبابي جمالي */
}

.portfolio .portfolio-warp:hover .portfolio-overlay {
    opacity: 1;
}

/* تحسين منطقة النص السفلي */
.portfolio .portfolio-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px; /* زيادة الارتفاع قليلاً */
    background: #ebedf2;
    border-radius: 0 0 10px 10px; /* حواف دائرية سفلية */
    box-shadow: 0 10px 20px rgba(219, 216, 216, 0.1);
}

.portfolio .portfolio-text h3 {
    margin: 0;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fdbe33;
    text-align: left; /* محاذاة لليسار لترك مساحة لزر الزائد */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* وضع نقاط في حال كان الاسم طويلاً */
}

/* تحسين زر الزائد (+) */
.portfolio .portfolio-warp a.btn {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* تصغير الفونت قليلاً ليكون متناسقاً */
    color: #030f27;
    background: #fdbe33;
    border-radius: 0;
    transition: all 0.3s ease;
}

.portfolio .portfolio-warp:hover a.btn {
    background: #ffffff;
    color: #030f27;
}

/* حركة ظهور البطاقات (Animation) */
.portfolio .portfolio-item {
    transition: transform 0.3s ease;
}

.portfolio .portfolio-item:hover {
    transform: translateY(-10px); /* حركة البطاقة بالكامل للأعلى */
}

/* التعديل الجوهري لزر الزائد (+) ليصبح Button بدلاً من A */
.portfolio .portfolio-warp button.btn-openImg {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; 
    color: #030f27;
    background: #fdbe33;
    border: none; /* إزالة حدود البوتون الافتراضية */
    outline: none;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    padding: 0; /* لضمان توسط علامة + */
}

.portfolio .portfolio-warp:hover button.btn-openImg {
    background: #ffffff;
    color: #030f27;
}




/*******************************/
/********* Contact CSS *********/
/*******************************/
/* تحسين القسم بشكل عام */
.contact {
    padding: 80px 0;
    background: #f8f9fa; /* لون خلفية هادئ */
}

/* حركة الكروت عند مرور الماوس */
.contact-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    transform: translateY(-10px); /* يرتفع للأعلى */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #fdbe33; /* لون رادكو الأصفر */
}

/* تلوين الأيقونات وحركتها */
.contact-item i {
    font-size: 35px;
    color: #fdbe33;
    margin-right: 20px;
    transition: transform 0.4s;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg); /* تكبير ودوران بسيط للأيقونة */
}

/* تحسين شكل نموذج الإرسال */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 10px rgba(253, 190, 51, 0.2);
    border-color: #fdbe33;
}

/* زر الإرسال الاحترافي */
.contact-form .btn {
    width: 100%;
    padding: 15px;
    background: #030f27;
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.5s;
    border: none;
    position: relative;
    overflow: hidden;
}

.contact-form .btn a {
    color: #fff;
    text-decoration: none;
}

.contact-form .btn:hover {
    background: #fdbe33;
    letter-spacing: 2px; /* تباعد الحروف عند التحويم */
}


/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
    position: relative;
    margin-top: 45px;
    padding-top: 90px;
    background: #030f27;
    color: #ffffff;
}

.footer .footer-contact,
.footer .footer-link,
.footer .newsletter {
    position: relative;
    margin-bottom: 45px;
}

.footer h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #fdbe33;
}

.footer h2::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #fdbe33;
}

.footer .footer-link a {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    transition: .3s;
}

.footer .footer-link a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .footer-link a:hover {
    color: #fdbe33;
    letter-spacing: 1px;
}

.footer .footer-contact p i {
    width: 25px;
}

.footer .footer-social {
    position: relative;
    margin-top: 20px;
}

.footer .footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 7px 0;
    text-align: center;
    border: 1px solid rgba(256, 256, 256, .3);
    border-radius: 60px;
    transition: .3s;
}

.footer .footer-social a i {
    font-size: 15px;
    color: #ffffff;
}

.footer .footer-social a:hover {
    background: #fdbe33;
    border-color: #fdbe33;
}

.footer .footer-social a:hover i {
    color: #030f27;
}

.footer .newsletter .form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.footer .newsletter input {
    height: 50px;
    border: 2px solid #121518;
    border-radius: 0;
}

.footer .newsletter .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fdbe33;
    background: #121518;
    border-radius: 0;
    border: 2px solid #fdbe33;
    transition: .3s;
}

.footer .newsletter .btn:hover {
    color: #121518;
    background: #fdbe33;
}

.footer .footer-menu .f-menu {
    position: relative;
    padding: 15px 0;
    font-size: 0;
    text-align: center;
    border-top: 1px solid rgba(256, 256, 256, .1);
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.footer .footer-menu .f-menu a {
    color: #ffffff;
    font-size: 16px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu .f-menu a:hover {
    color: #fdbe33;
}

.footer .footer-menu .f-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


.footer .copyright {
    padding: 30px 15px;
}

.footer .copyright p {
    margin: 0;
    color: #ffffff;
}

.footer .copyright .col-md-6:last-child p {
    text-align: right;
}

.footer .copyright p a {
    color: #fdbe33;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer .copyright p a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer .copyright p,
    .footer .copyright .col-md-6:last-child p {
        margin: 5px 0;
        text-align: center;
    }
}


.footer {
    position: relative;
    margin-top: 45px;
    padding-top: 90px;
    /* خلفية متدرجة لعمق أكبر */
    background: linear-gradient(180deg, #030f27 0%, #020a1a 100%);
    color: #ffffff;
    overflow: hidden;
}

/* إضافة عنصر هندسي خلفي ناعم */
.footer::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(253, 190, 51, 0.03);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.footer h2 {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #fdbe33;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* حركة ذكية للخط السفلي عند التحويم */
.footer h2::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    left: 0;
    bottom: 0;
    background: #fdbe33;
    transition: width 0.4s ease;
}

.footer .footer-item:hover h2::after {
    width: 75px;
}

/* روابط التذييل مع تأثير الإزاحة */
.footer .footer-link a {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer .footer-link a::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 12px;
    color: #fdbe33;
    transition: transform 0.3s ease;
}

.footer .footer-link a:hover {
    color: #fdbe33;
    padding-left: 10px; /* إزاحة ناعمة لليمين */
}

.footer .footer-link a:hover::before {
    transform: translateX(3px) scale(1.2);
}

/* أيقونات التواصل الاجتماعي بتصميم عصري */
.footer .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(253, 190, 51, 0.2);
    border-radius: 12px; /* زوايا دائرية ناعمة Squircle */
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}

.footer .footer-social a i {
    font-size: 18px;
    color: #ffffff;
    transition: 0.3s;
}

.footer .footer-social a:hover {
    background: #fdbe33;
    border-color: #fdbe33;
    transform: translateY(-5px); /* تأثير القفز للأعلى */
    box-shadow: 0 10px 15px rgba(253, 190, 51, 0.2);
}

.footer .footer-social a:hover i {
    color: #030f27;
}

/* النشرة البريدية بتصميم مدمج (Capsule) */
.footer .newsletter .form {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
}

.footer .newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding-left: 20px;
    outline: none !important;
}

.footer .newsletter .btn {
    position: static; /* تغيير الوضع ليناسب التصميم المدمج */
    height: 44px;
    border-radius: 40px;
    background: #fdbe33;
    color: #030f27;
    border: none;
    font-weight: 700;
    padding: 0 25px;
    transition: 0.4s;
}

.footer .newsletter .btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}

/* منطقة الحقوق السفلية */
.footer .copyright {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

/*******************************/
/*******/* logo*/ *******/
/*******************************/

/* Hide the "Powered by Google Translate" section */
.goog-logo-link {
    display: none !important;
}
.VIpgJd-ZVi9od-l4eHX-hSRGPd{
    display: none !important;
}
.body.VIpgJd-ZVi9od-ORHb{
display: none !important;
}
.background-image{
display: none !important;
}

/* Optional: Style for the dropdown */
.goog-te-combo {
    font-family: 'Poppins', sans-serif;
   
    font-size: 14;
    padding: 10px;
    color: white;
    background-color:#030f27 ;

}
.goog-te-combo:hover{
    color: #fdbe33;
      background: #121518;

}
.goog-te-combo:focus:active{
    color: #f9ac06;
}


  .VIpgJd-ZVi9od-ORHb-OEVmcd {
        display: none !important;
      
     }

     
  
     /* تصغير حجم صورة الشعار باستخدام ID */
#logo_image {
    width: 100px; /* يمكنك تغيير هذه القيمة إلى الحجم المطلوب */
    height: auto; /* للحفاظ على نسبة العرض إلى الارتفاع */
}

/* إذا لم يعمل الكود أعلاه، قد تحتاج إلى قوة أكبر (استخدم هذا كحل أخير) */
.logo img {
    max-width: 100px !important; 
    height: auto !important; 
}






/* jobs*/
/*******************************/
/*******/* jobs*/ *******/
/*******************************/
:root {
    --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-color: #7c3aed;
    --glow: 0 0 0 rgba(124, 58, 237, 0.4);
}

/* خلفية ناعمة */
body {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    margin: 0;
}

/* شبكة الوظائف */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 40px 0;
    perspective: 1200px;
}


/* بطاقة الوظيفة */
.job-item {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

/* شريط متحرك أعلى البطاقة */

.job-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

/* Hover احترافي */
.job-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.job-item:hover::before {
    opacity: 0.03;
}

.job-item * {
    position: relative;
    z-index: 1;
}

.job-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.job-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* زر احترافي مع توهج */
.btn-primary-apply,
.submit-btn-glow {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5);
    opacity: 0.95;
}

.btn-primary-apply:active {
    transform: scale(0.96);
}

/* إخفاء */
.hidden {
    display: none !important;
}

/* دخول أنيق */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* المودال – تأثير زجاجي */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* محتوى المودال */
.modal-content {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
:root {
    --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-color: #7c3aed;
    --glow: 0 0 0 rgba(124, 58, 237, 0.4);
}

/* خلفية ناعمة */
body {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    margin: 0;
}

/* شبكة الوظائف */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 30px 0;
}

/* بطاقة الوظيفة */
.job-item {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

/* شريط متحرك أعلى البطاقة */
.job-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

/* Hover احترافي */
.job-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.job-item:hover::before {
    opacity: 0.03;
}

.job-item * {
    position: relative;
    z-index: 1;
}

.job-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.job-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* زر احترافي مع توهج */
.btn-primary-apply,
.submit-btn-glow {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5);
    opacity: 0.95;
}

.btn-primary-apply:active {
    transform: scale(0.96);
}

/* إخفاء */
.hidden {
    display: none !important;
}

/* دخول أنيق */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* المودال – تأثير زجاجي */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* محتوى المودال */
.modal-content {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.job-item {
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-item:hover {
    transform: translateY(-6px) scale(1.02);
}

.job-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(124,58,237,.18), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}

.job-item:hover .job-glow {
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: all .25s ease;
}

.slide-in {
    animation: slideIn .4s ease;
}

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

.modal-pop {
    animation: modalPop .35s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

button.loading {
    opacity: .85;
    cursor: wait;
}
/* جعل كل محتوى تفاصيل الوظيفة في المنتصف */
#jobDetailsView {
    text-align: center;
}

/* العنوان + الشركة */
.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title-wrapper h1 {
    margin: 0;
    font-size: 2.2rem;
}

.company-badge {
    background: #ede9fe;
    color: #5b21b6;
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* صف المعلومات */
.info-pills-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 25px 0;
    flex-wrap: wrap;
}

/* البانر السفلي */
.action-banner-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* توسيط المحتوى داخله */
.action-banner-modern {
    padding: 20px 30px;
}

.live-stats {
    display: flex;
 
    gap: 10px;
    font-weight: 600;
}

/* زر التقديم */
.btn-primary-apply {
    display: flex;
    align-items: center;
    justify-content: center; /* ← هذا السطر المهم */
    gap: 8px;
    margin: 0 auto;          /* ← يجعل الزر في المنتصف أفقيًا */
}


/* موبايل */
@media (max-width: 768px) {
    .action-banner-modern {
        flex-direction: column;
        text-align: center;
    }
}


/* زر العودة*/
.details-nav {
    display: flex;
    justify-content: flex-start; /* ← أقصى اليسار */
    margin-bottom: 30px;
}


/* الزر العصري */
.back-btn-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(124, 58, 237, 0.08);
    color: #5b21b6;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: 
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
    position: relative;
    overflow: hidden;
}

/* سهم دائري */
.back-btn-modern .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .3s ease;
}

/* Hover */
.back-btn-modern:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

.back-btn-modern:hover .icon {
    transform: translateX(-4px);
}

/* Click */
.back-btn-modern:active {
    transform: scale(0.96);
}

/* Ripple Effect */
.back-btn-modern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(124,58,237,.25) 10%, transparent 11%);
    opacity: 0;
    transition: opacity .4s;
}

.back-btn-modern:hover::after {
    opacity: 1;
}




/* وصف الوظيفة*/

/* الكارد الرئيسي */
.centered-card {
    max-width: 800px;
    margin: 40px auto;              /* توسيط كامل */
    background: #ffffff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    text-align: left;               /* النص مريح للقراءة */
}

/* العنوان */
.desc-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 1.3rem;
    color: #1e293b;
}

/* أيقونة دائرية */
.icon-circle {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(124,58,237,.4);
}

/* النص */
.desc-content-modern {
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .centered-card {
        margin: 30px 16px;
        padding: 24px;
    }

    .desc-title {
        font-size: 1.15rem;
    }
}

















/*MAPS*/
/*******************************/
/******* MAPS *******/
/*******************************/
 /* تنسيق الحاوية الرئيسية */
      /* استيراد خط عربي/إنجليزي حديث لجعل التصميم أجمل */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* متغيرات الألوان لسهولة التعديل لاحقاً */
:root {
    --main-bg: #f8f9fa;      /* خلفية فاتحة جداً للقسم */
    --card-bg: #ffffff;      /* خلفية بيضاء نقية للبطاقات */
    --text-dark: #2c3e50;    /* لون النص الأساسي - ليس أسود تماماً */
    --text-light: #7f8c8d;   /* لون النصوص الثانوية */
    --accent-color: #3498db; /* لون مميز للروابط والعناوين (أزرق) */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08); /* ظل ناعم */
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12); /* ظل عند التحويم */
}

.office-section {
    background-color: var(--main-bg); /* استخدام لون خلفية فاتح */
    color: var(--text-dark);
    padding: 80px 20px; /* زيادة الحشوة لمزيد من المساحة البيضاء */
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* استخدام الخط المستورد */
    text-align: center; /* توسيط العناوين الرئيسية */
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.offices-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* زيادة المسافة بين البطاقات */
    justify-content: center; /* توسيط البطاقات */
    max-width: 1200px;
    margin: 0 auto;
}

/* تحويل العمود إلى تصميم بطاقة احترافي */
.office-column {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    background-color: var(--card-bg); /* خلفية بيضاء للبطاقة */
    padding: 35px; /* حشوة داخلية للبطاقة */
    border-radius: 20px; /* حواف دائرية ناعمة */
    box-shadow: var(--shadow-soft); /* إضافة ظل ناعم */
    text-align: left; /* محاذاة النص داخل البطاقة لليسار (أو اليمين حسب لغة الموقع) */
    transition: all 0.3s ease; /* تنعيم الحركة عند التحويم */
    border: 1px solid rgba(0,0,0,0.05); /* حدود خفيفة جداً */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* تأثير عند مرور الماوس على البطاقة */
.office-column:hover {
    transform: translateY(-10px); /* رفع البطاقة للأعلى قليلاً */
    box-shadow: var(--shadow-hover); /* زيادة الظل */
    border-color: var(--accent-color); /* تغيير لون الحدود للون المميز */
}

.office-name {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--text-dark);
    min-height: auto; /* إزالة الارتفاع الثابت للسماح للنص بأخذ مساحته */
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.05); /* خط فاصل خفيف تحت العنوان */
}

.office-info {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    flex-grow: 1; /* لجعل هذا القسم يملأ المساحة المتاحة */
}

/* إصلاح وتجميل الروابط */
.office-info a {
    color: var(--text-dark); /* لون داكن بدلاً من الأبيض غير المرئي */
    text-decoration: none; /* إزالة الخط التحتي */
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px dotted var(--accent-color); /* إضافة خط منقط ملون */
}

.office-info a:hover {
    color: var(--accent-color); /* تغيير اللون عند التحويم */
}

.office-info p {
    margin-bottom: 18px;
}

.contact-details strong {
    display: block;
    margin-top: 8px;
    color: var(--text-dark); /* جعل أرقام التواصل أغمق */
}

/* تنسيق الخريطة */
.map-container {
    margin-top: 30px;
    border: none; /* إزالة الحدود القديمة */
    height: 220px;
    width: 100%;
    border-radius: 15px; /* حواف دائرية للخريطة لتناسب البطاقة */
    overflow: hidden; /* لضمان قص الخريطة داخل الحواف الدائرية */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1); /* ظل داخلي خفيف */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* الإبقاء على الفلتر الداكن للخريطة لأنه يعطي تبايناً جميلاً مع البطاقة البيضاء */
    filter: grayscale(40%) invert(92%) contrast(90%); 
    transition: filter 0.3s ease;
}

/* اختيارية: جعل الخريطة ملونة عند التحويم */
.office-column:hover .map-container iframe {
     filter: grayscale(0%) invert(0%); 
}




/*******************************/
/*******  Magazines *******/
/*******************************/

/* تحسين حاوية المجلات */
.post-container {
    padding: 40px 0;
}

/* حركة الطفو الذكية */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animation-float {
    animation: floating 4s ease-in-out infinite;
}

/* تصميم غلاف المجلة */
.img-main {
    position: relative;
    perspective: 1500px; /* يعطي عمق ثلاثي الأبعاد */
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.img-block {
    position: relative;
    width: 220px; /* يمكنك تعديل العرض حسب الرغبة */
    height: 300px;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    transform-style: preserve-3d;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
    border-radius: 5px 15px 15px 5px;
}

/* تأثير فتح الكتاب عند التحويم */
.item:hover .img-block {
    transform: rotateY(-25deg) translateX(10px);
    box-shadow: 20px 20px 40px rgba(3, 15, 39, 0.3);
}

.img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px 15px 15px 5px;
    border-left: 4px solid rgba(0,0,0,0.1); /* محاكاة كعب الكتاب */
}

/* محاكاة صفحات الكتاب من الجانب */
.img-block::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
    background: #eee;
    transform: rotateY(90deg);
    transform-origin: left;
    border: 1px solid #ddd;
}

/* محتوى النص أسفل المجلة */
.book-content {
    text-align: center;
    padding: 15px;
}

.book-content h5 {
    font-size: 20px;
    font-weight: 700;
    color: #030f27;
    margin-bottom: 15px;
    transition: 0.3s;
}

/* زر التحميل التفاعلي */
.book-content a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #030f27;
    color: #fdbe33;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    border: 2px solid #030f27;
}

.book-content a i {
    margin-right: 8px;
}

.book-content a:hover {
    background: #fdbe33;
    color: #030f27;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(253, 190, 51, 0.4);
}

.item:hover h5 {
    color: #fdbe33;
}
   



/**/
.close-mag {
    position: absolute;
    top: -20px; /* رفعه قليلاً ليعطي مساحة تنفس */
    right: -10px;
    background: linear-gradient(135deg, #ff4b2b, #ff416c); /* تدرج لوني حيوي */
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* حركة ارتدادية مرنة */
    z-index: 9999;
    outline: none;
}

/* تأثير النبض المستمر لجذب الانتباه */
.close-mag {
    animation: close-pulse 2s infinite;
}

@keyframes close-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 75, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

/* تأثير عند تمرير الماوس (Hover) */
.close-mag:hover {
    transform: rotate(180deg) scale(1.2); /* دوران كامل مع تكبير */
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 15px 30px rgba(255, 65, 108, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

/* حركة الأيقونة الداخلية (الـ X) */
.close-mag i {
    transition: transform 0.3s ease;
}

.close-mag:hover i {
    transform: scale(0.8); /* تصغير بسيط للأيقونة ليعطي عمق */
}

/* تأثير عند الضغط (Click) */
.close-mag:active {
    transform: scale(0.9) rotate(180deg);
}





/* تنسيق زر View Magazine الجديد */
.view-mag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #fdbe33, #fb8c00); /* ألوان هندسية دافئة */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(253, 190, 51, 0.4);
    outline: none;
}

/* حركة الأيقونة داخل الزر */
.view-mag-btn .btn-icon {
    margin-left: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* تأثير الموجة عند التمرير (Hover Effect) */
.view-mag-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 140, 0, 0.5);
    color: #fff;
}

.view-mag-btn:hover .btn-icon {
    transform: rotate(360deg) scale(1.2);
}

/* تأثير اللمعان المتحرك خلف الزر */
.view-mag-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.view-mag-btn:hover::before {
    left: 100%;
}

/* حاوية المجلة داخل المودال لتحسين الرؤية */
.magazine-wrapper {
    border-radius: 20px;
    overflow: hidden;
    height:80vh;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}






/* الحاوية الكبرى التي أرسلتها أنت سابقاً مع إضافة تحسين */
.magazine-wrapper {
    border-radius: 20px;
    overflow: hidden; /* هذا السطر ضروري جداً للقص */
    height: 80vh;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

/* الطبقة التي تقوم بقص الشعار */
.hide-watermark {
    position: absolute;
    top: -45px; /* رفع المجلة للأعلى لإخفاء الشريط */
    left: 0;
    width: 100%;
    height: calc(100% + 45px); /* تعويض المساحة المرفوعة */
}

/* تنسيق الإطار الداخلي */
.mag-iframe {
    width: 100%;
    height: 100%;
    border: none;
}









/*******************************/
/*******  VIDEO*******/
/*******************************/


/* جعل نافذة الفيديو تشغل مساحة كبيرة من الشاشة */
#videoModal .modal-dialog {
    max-width: 90%; /* سيشغل الفيديو 90% من عرض الشاشة */
    width: 90%;
    margin: 30px auto;
}

/* تحسين شكل حاوية الفيديو */
#videoModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* الإطار الجمالي للفيديو (كما في الصورة ولكن بحجم أكبر) */
.video-wrapper {
    position: relative;
    border-radius: 30px; /* حواف دائرية كبيرة واحترافية */
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8); /* ظل قوي ليفصل الفيديو عن الخلفية */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #000;
    transition: transform 0.4s ease;
}

/* زر الإغلاق (الـ X) ليكون واضحاً فوق الفيديو الكبير */
#videoModal .close {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 40px;
    opacity: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 9999;
}

/* جعل الفيديو متجاوباً داخل الإطار */
.embed-responsive-16by9 {
    padding-top: 40%; /* نسبة 16:9 */
    position: relative;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}








/*******************************/
/********** Video CSS **********/
/*******************************/

.video {
    position: relative;
    margin: 45px 0;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(3, 15, 39, .9), rgba(3, 15, 39, .9)), url(../img/carousel-1.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #fdbe33;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #fdbe33;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play:hover:after {
    background-color: darken(#fdbe33, 10%);
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid #030f27;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
    background-color: #000000;
    
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}


/*video web*/

/* الحاوية الأساسية */
.video-background-container {
    position: relative;
    width: 100%;
    height: 100vh; /* ملء الشاشة بالكامل */
    overflow: hidden;
    background-color: #000;
}

/* تنسيق الفيديو ليعمل كخلفية متجاوبة */
.video-background-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* الأهم: يضمن تغطية الشاشة بدون تشويه */
}

/* طبقة شفافة اختيارية لجعل الفيديو يبدو أفضل ولتوضيح النصوص فوقه */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* تعتيم بسيط */
    z-index: 1;
}

/* تحسينات خاصة للجوال */
@media (max-width: 768px) {
    .video-background-container {
        height: 100vh; /* تأكد أنه يغطي كامل شاشة الجوال طولياً */
    }
    
    .video-background-container video {
        /* لضمان عدم ظهور فراغات في بعض أنواع الشاشات */
        width: 100vw;
        height: 100vh;
    }
}










