/*
 Theme Name:   Makina
 Description:  Child Theme for Astra - Heavy Equipment & Training
 Author:       Your Name
 Template:     astra
 Version:      1.0.0
*/


body{
    direction:rtl;
}
/* تنسيق السلايدر المنقسم */
.hero-split-wrapper {
    display: flex;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-color: #0A1A2F;
}

.hero-text-side {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 40px 5%; /* تقليل التباعد قليلاً لإعطاء مساحة للنص */
    overflow: hidden; /* منع خروج أي عنصر */
}

.hero-title {
    font-size:50px; /* خط مرن يصغر ويكبر حسب الشاشة */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    word-wrap: break-word; /* كسر الكلمات الطويلة إذا لزم الأمر */
    max-width: 90%; /* منع الالتصاق بالحواف */
    text-align:right;
    color:#ffffff;
}


.hero-title span {
    color: #E1402E; /* الأحمر الاحترافي */
}

.hero-description p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}
.content-inner {
    width: 100%;
    max-width: 100%; /* السماح للمحتوى بأخذ المساحة المتاحة */
}
.hero-image-side {
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
}

.btn-main-red {
    background: #E1402E;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* استجابة الجوال */
@media (max-width: 991px) {
    .hero-split-wrapper { flex-direction: column; height: auto; }
    .hero-text-side, .hero-image-side { flex: 0 0 100%; width: 100%; }
    .hero-image-side { height: 350px; }
    .hero-text-side { padding: 50px 20px; }
}




.ast-single-post.ast-page-builder-template .site-main > article, .ast-page-builder-template .post-navigation {
    padding-top: 0em;
    /* padding-left: 20px; */
    /* padding-right: 20px; */
}


/* إزالة أي قيود على العرض من الأب */
.swiper.myHeroSlider {
    width: 100vw; /* عرض الشاشة بالكامل */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}


.hero-text-side {
    flex: 0 0 50%;
    background-color: #0A1A2F;
    display: flex;
    align-items: center;
    padding-left: 10%; /* تباعد النصوص عن الحافة اليسرى */
}

.hero-image-side {
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
}

.ast-page-builder-template .entry-header{
    display:none;
}

/* تأثير ظهور النصوص عند نشاط الشريحة */
.swiper-slide-active .hero-title {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.swiper-slide-active .hero-description {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.swiper-slide-active .hero-actions {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

/* تعريف الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين شكل النقاط السفلى لتكون ناعمة */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px; /* تصبح أعرض عند التنشيط */
    border-radius: 5px;
    background: #E1402E !important;
    opacity: 1;
}


/* إعدادات الحاوية المنقسمة */
.hero-split-wrapper {
    display: flex;
    width: 100%;
    height: 85vh;
    background-color: #0A1A2F;
    overflow: hidden;
}

/* جهة النصوص - تصغير العرض لـ 40% */
.hero-text-side {
    flex: 0 0 40%; 
    display: flex;
    align-items: center;
    padding: 0 5%; /* تقليل التباعد الجانبي لاستيعاب المساحة الأصغر */
    color: #fff;
    background-color: #0A1A2F;
}
/* ضبط العنوان ليتناسب مع المساحة الأضيق */
.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem); /* تصغير الحد الأقصى للخط قليلاً */
    line-height: 1.2;
}

/* تأكد من أن الحاوية الأساسية تمتد بعرض الشاشة بالكامل */
.hero-split-wrapper {
    display: flex;
    width: 100%;
    height: 85vh; /* يمكنك زيادته لـ 90vh لزيادة ضخامة الصورة طولاً أيضاً */
    overflow: hidden;
}
.hero-title span { color: #E1402E; }

/* جهة الصورة - تكبير العرض لـ 60% */
.hero-image-side {
    flex: 0 0 60%; 
    background-size: cover;
    background-position: center;
    position: relative;
}

/* حركات النصوص الناعمة */
.swiper-slide-active .hero-title {
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.swiper-slide-active .hero-description {
    animation: fadeInUp 0.8s ease forwards 0.5s;
    opacity: 0;
}

.swiper-slide-active .hero-image-side {
    transform: scale(1.1); /* تأثير الزووم */
}

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

/* تنسيق النقاط (الترقيم) */
.swiper-pagination-bullet-active {
    background: #E1402E !important;
    width: 25px !important;
    border-radius: 5px !important;
}

/* استجابة الجوال */
@media (max-width: 991px) {
    .hero-split-wrapper { flex-direction: column; height: auto; }
    .hero-text-side, .hero-image-side { flex: 0 0 100%; width: 100%; }
    .hero-image-side { height: 350px; }
}

/* 1. حركة تلاشي الخلفية ونعومة الصورة */
.hero-image-side {
    flex: 0 0 60%; /* زيادة مساحة الصورة */
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-out; /* حركة زووم بطيئة جداً وفخمة */
    transform: scale(1);
}

/* عندما تصبح الشريحة نشطة، تبدأ الصورة بالتحرك ببطء نحو المشاهد */
.swiper-slide-active .hero-image-side {
    transform: scale(1.15);
}

/* 2. حركة النصوص ( fadeInUp ) */
.hero-title, .hero-description, .hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* منحنى حركة ناعم */
}

/* ظهور العناصر بترتيب زمني (Stagger Effect) */
.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.swiper-slide-active .hero-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.swiper-slide-active .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* 3. تأثير الانتقال بين الشرائح (Crossfade) */
.swiper-fade .swiper-slide {
    transition-property: opacity, transform;
}


/* حاوية الأهداف */
.goals-section-wrapper {
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.goals-header { margin-bottom: 40px; }
.goals-header .sub-title { color: #E1402E;text-align:center; font-weight: bold; font-size: 1rem; }
.goals-header .main-title { color: #0A1A2F;text-align:center; font-size: 2.5rem; font-weight: 900; margin-top: 10px; }

.goals-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.goal-card {
    flex: 1;
    height: 450px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* طبقة التعتيم */
.goal-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(10, 26, 47, 0.9), transparent);
    transition: all 0.4s ease;
}

.goal-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
    transition: all 0.4s ease;
}

.goal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* النص المخفي الذي يظهر عند الهوفر */
.goal-hover-text {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
}

.goal-icon {
    width: 40px; height: 40px;
    background: #E1402E;
    color: #fff;
    display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    margin-top: 20px;
    font-size: 1.5rem;
}

/* تأثير مرور الماوس (Hover Effect) */
.goal-card:hover .goal-overlay {
    height: 100%;
    background: rgba(10, 26, 47, 0.85);
}

.goal-card:hover .goal-hover-text {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 10px;
}

.goal-card:hover {
    transform: translateY(-10px);
}

/* استجابة الجوال */
@media (max-width: 768px) {
    .goals-container { flex-direction: column; }
    .goal-card { height: 350px; }
}


/* --- التعديلات للأجهزة اللوحية والموبايل --- */
@media (max-width: 991px) {
    .hero-split-wrapper {
        flex-direction: column; /* تحويل التقسيم من أفقي إلى عمودي */
        height: auto; /* السماح بتمدد الارتفاع */
        min-height: 100vh; /* ملء الشاشة في الموبايل */
    }

    .hero-image-side {
        flex: 0 0 45vh; /* تحديد ارتفاع الصورة بـ 45% من طول الشاشة */
        width: 100%;
        order: 1; /* وضع الصورة في الأعلى */
    }

    .hero-text-side {
        flex: 1; /* النص يأخذ باقي المساحة */
        width: 100%;
        order: 2; /* النص تحت الصورة */
        padding: 0px 0px;
        justify-content: flex-start; /* بدء النص من الأعلى */
        text-align: center; /* توسيط النصوص للموبايل */
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* خط مرن للموبايل */
        margin-bottom: 15px;
    }

    .hero-description p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* تحسين شكل نقاط التنقل (Pagination) في الموبايل */
    .swiper-pagination {
        bottom: 20px !important;
    }
}


/* --- تعديلات الهواتف والأجهزة اللوحية (Responsive) --- */
@media (max-width: 991px) {
    /* تجبر الحاوية على ترتيب العناصر عمودياً */
    .hero-split-wrapper {
        flex-direction: column !important;
        height: auto !important; /* السماح للمحتوى بالنزول للأسفل */
        min-height: 100vh;
        display: flex !important;
    }

    /* الصورة في الأعلى بوضوح */
    .hero-image-side {
        flex: 0 0 40vh !important; /* تأخذ 40% من طول شاشة الموبايل */
        width: 100% !important;
        order: 1 !important; /* تظهر أولاً */
        background-size: cover;
        background-position: center;
    }

    /* النص تحت الصورة مع مساحة كافية */
    .hero-text-side {
        flex: 1 !important;
        width: 100% !important;
        order: 2 !important; /* تظهر ثانياً */
        padding: 0px 0px !important;
        background-color: #0A1A2F;
        text-align: center; /* توسيط النص للموبايل */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ضبط حجم العنوان لكي لا يخرج عن الشاشة */
    .hero-title {
        font-size: 1.8rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        color: #fff !important;
    }

    /* تصغير زر التنقل قليلاً */
    .btn-main-red {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
        margin: 0 auto;
    }
}


.about-slide-container {
    display: flex;
    width: 100%;
    height: 600px;
}

.about-image-side {
    flex: 0 0 45%;
    background-size: cover;
    background-position: center;
}

.about-content-side {
    flex: 0 0 55%;
    background-color: red; /* اللون البرتقالي من الصورة */
    color: #fff;
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.about-inner { max-width: 500px; }

.about-label { font-size: 0.9rem; opacity: 0.8; display: block; margin-bottom: 10px; }

.about-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color:#ffffff;
}

.about-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 40px;
}

.quote-mark {
    position: absolute;
    left:20; top: -10px;
    font-size: 20rem;
    color: rgba(255,255,255,0.3);
    font-family: serif;
}

.about-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-nav div {
    display: inline-block;
    width: 45px; height: 45px;
    background: #fff;
    color: #FF4500;
    text-align: center;
    line-height: 45px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* التوافق مع الموبايل */
@media (max-width: 991px) {
    .about-slide-container { flex-direction: column; height: auto; }
    .about-image-side { height: 300px; flex: 0 0 100%; }
    .about-content-side { flex: 0 0 100%; padding: 40px 20px; }
    .about-title { font-size: 2rem;  color:#ffffff;}
}


/* الإعدادات الافتراضية للكمبيوتر */
.about-slide-container {
    display: flex;
    width: 100%;
    min-height: 500px;
    flex-wrap: nowrap;
}

.about-image-side {
    flex: 0 0 45%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-content-side {
    flex: 0 0 55%;
    background-color: red;
    padding: 50px;
}

/* --- تعديلات الموبايل (أقل من 768 بكسل) --- */
@media (max-width: 768px) {
    .about-slide-container {
        flex-direction: column; /* جعل العناصر فوق بعضها */
        height: auto;
    }

    .about-image-side {
        flex: 0 0 300px; /* تحديد ارتفاع ثابت للصورة في الموبايل لكي لا تختفي */
        width: 100%;
        order: 1; /* الصورة تظهر أولاً في الأعلى */
    }

    .about-content-side {
        flex: 0 0 auto;
        width: 100%;
        order: 2; /* النص يظهر تحت الصورة */
        padding: 30px 20px; /* تقليل الحواف لتناسب الشاشة الصغيرة */
    }

    .about-title {
        font-size: 1.8rem; /* تصغير العنوان ليناسب الموبايل */
        color:#ffffff;
    }
}


@media (max-width: 768px) {
    /* توسيط محتوى التذييل بالكامل (معلومات الكاتب والأزرار) */
    .about-footer {
        flex-direction: column !important; /* ترتيب عمودي */
        gap: 20px; /* مسافة بين النص والأزرار */
        text-align: center; /* توسيط النصوص */
        justify-content: center !important;
        align-items: center !important;
    }

    /* توسيط أزرار التنقل تحديداً */
    .about-nav {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        margin-left: 0 !important; /* إزالة الهامش الجانبي */
    }

    /* ضبط المسافات بين الأزرار في الموبايل */
    .about-nav div {
        margin: 0 5px !important; 
    }
}


/* إعدادات الموبايل (أقل من 768 بكسل) */
@media (max-width: 768px) {
    
.about-content-side {
        box-sizing: border-box;  /* يضمن أن الـ Padding لا يزيد من عرض البوكس */
        padding: 30px 15px !important; 
        max-width: 100vw;        /* يمنع أي تمدد عرضي للشاشة */
        overflow: hidden;        /* قص أي عنصر يحاول الخروج */
    }
    
    .about-inner {
        width: 100% !important;
        margin: 0 !important;
    }

    /* 2. جعل العنوان مرناً لمنع الخروج عن البوكس */
    .about-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem) !important; /* يصغر تلقائياً حسب عرض الشاشة */
        line-height: 1.2 !important;
        word-wrap: break-word !important; /* كسر الكلمات الطويلة */
        margin-bottom: 20px !important;
        width: 100% !important;
        color#ffffff;
    }

    /* 3. ضبط الوصف لمنع التداخل */
    .about-desc {
        padding-left: 0 !important; /* إزالة إزاحة الكوت (Quote) */
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }

    .quote-mark {
        display: none; /* إخفاء علامة الاقتباس الكبيرة في الموبايل لتوفير مساحة */
    }

    /* 4. توسيط معلومات الكاتب والأزرار في المنتصف */
    .about-footer {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .author-info {
        margin-bottom: 10px;
    }

    /* 5. توسيط أزرار التنقل (Next/Prev) تماماً */
    .about-nav {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .about-nav div {
        margin: 0 10px !important; /* مسافة متساوية بين الزرين */
    }
}

/* حاوية الخدمات */
.services-tabs-wrapper {
    background-color: #ffffff; /* لون خلفية ناعم كما في الصورة */
    padding: 60px 0;
}

/* أزرار التبويبات (Navigation) */
.tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 0 5%;
}

.tab-btn {
    background: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.tab-btn .arrow { transition: transform 0.3s; }

.tab-btn.active {
    background: red;
    color: #fff;
}

.tab-btn.active .arrow { transform: rotate(90deg); }

/* محتوى التبويبات مع حركة ظهور */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* شبكة الكروت */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

.service-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.service-info { padding: 30px; position: relative; }

.service-info h3 { font-size: 1.4rem; margin-bottom: 15px; color: red; }

.service-link {
    display: inline-block;
    width: 45px; height: 45px;
    background: #FF4500;
    color: #fff;
    text-align: center;
    line-height: 45px;
    margin-top: 15px;
    text-decoration: none;
    font-size: 1.2rem;
}

/* --- تنسيق الموبايل --- */
@media (max-width: 768px) {
    .tabs-navigation {
        flex-direction: column; /* الأزرار تحت بعضها */
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
        justify-content: space-between;
    }

    .services-grid {
    grid-template-columns: 1fr; /* كارت واحد في العرض */
    }
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 10px);
    right: auto;
    color: red;
}
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after{
    content:'next';
    color:red;
}

/* الحاوية الكبرى */
.industrial-services-section {
    position: relative;
    background-color: #0A1A2F; /* لون داكن جداً */
    background-image: url('رابط_صورة_خلفية_صناعية'); 
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    direction: rtl; /* للتوافق مع العربية */
}

.industrial-services-section .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 26, 47, 0.92); /* طبقة تعتيم */
    z-index: 1;
}

.industrial-services-section .content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الرأس */
.header-area { margin-bottom: 60px; text-align: center; }
.top-tag { color: #E1402E; font-weight: bold; font-size: 14px; text-transform: uppercase; }
.section-title { font-size: 40px; font-weight: 800; margin: 15px 0; }
.section-title span { color: #ffffff; }
.section-desc { color: #ccc; max-width: 500px; line-height: 1.8;text-align:center; }

/* شبكة الـ 8 خدمات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة في الكمبيوتر */
    gap: 50px 30px;
}

.feature-card .icon-box {
    margin-bottom: 20px;
}

.feature-card .icon-box .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #ffffff; /* الأحمر الخاص بالصورة */
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color:#ffffff;
    text-align:center;
}

.feature-card .desc {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
}

/* استجابة الموبايل */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .industrial-services-section { padding: 60px 20px; }
    .features-grid { 
        grid-template-columns: 1fr; /* عمود واحد في الموبايل ليكون منسقاً */
        gap: 40px;
    }
    .header-area { text-align: center; }
    .header-area .section-desc { margin: 0 auto; text-align:center; }
}

/* تنسيق الأيقونات المطور لضمان الظهور في الموبايل */
.feature-card .icon-box {
    margin-bottom: 20px;
    text-align:center;
    display: block; /* ضمان أنها تأخذ مساحة */
}

.feature-card .icon-box .dashicons {
    /* الخصائص الأساسية */
    font-family: 'dashicons' !important;
    display: inline-block !important;
    
    /* تحديد الحجم بدقة لمنع الاختفاء */
    font-size: 45px !important; 
    width: 45px !important;
    height: 45px !important;
    
    /* اللون والظهور */
    color: #ffffff !important; 
    visibility: visible !important;
    opacity: 1 !important;
    
    /* ضبط التمركز */
    line-height: 1 !important;
    text-align: center;
}

/* تنسيق إضافي للموبايل */
@media (max-width: 768px) {
    .feature-card .icon-box {
        text-align: center; /* تمركز الأيقونة في الموبايل */
        width: 100%;
    }
    .feature-card .icon-box .dashicons {
        font-size: 50px !important; /* تكبيرها قليلاً في الموبايل لتكون أوضح */
        width: 50px !important;
        height: 50px !important;
    }
}


.ast-single-post.ast-page-builder-template .site-main > article, .ast-page-builder-template .post-navigation {
    padding-top: 0em;
    padding-left: 0px;
    padding-right: 0px;
}
p.section-desc{
    text-align:center;
    
}

/* تنسيق شبكة المشاريع */
.projects-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.project-card-item {
    position: relative;
    flex: 1 0 25%; /* 4 أعمدة في الكمبيوتر */
    height: 400px;
    overflow: hidden;
}

.project-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* طبقة المعلومات عند اللمس */
.project-overlay-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 26, 47, 0.9); /* اللون الداكن للشركة */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    opacity: 0; /* مخفية */
    transition: all 0.4s ease;
    transform: scale(1.05);
}

.project-info-inner h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.project-tag {
    color: #E1402E; /* اللون الأحمر */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.project-description {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.5;
}

/* تفعيل التأثير عند تمرير الماوس */
.project-card-item:hover .project-overlay-content {
    opacity: 1;
    transform: scale(1);
}

.project-card-item:hover .project-bg-img {
    transform: scale(1.1);
}

/* تنسيق الموبايل - هام جداً */
@media (max-width: 768px) {
    .project-card-item {
        flex: 1 0 100%; /* مشروع واحد في كل صف */
        height: 300px;
    }
    
    /* في الموبايل تظهر المعلومات دائماً أو عند اللمس */
    .project-overlay-content {
        opacity: 0.95;
        transform: scale(1);
    }
}


/* تمرير ناعم عند الضغط على روابط القائمة */
html {
    scroll-behavior: smooth;
}

/* تعويض ارتفاع الهيدر (اختياري) */
/* إذا كان الهيدر يغطي جزءاً من العنوان عند النزول، أضف هذا */
section {
    scroll-margin-top: 100px; /* غيّر الرقم حسب ارتفاع الهيدر لديك */
}


.ast-header-break-point .ast-mobile-header-wrap .ast-flex.stack-on-mobile{
    text-align:center;
}


.main-header-menu > .menu-item > .menu-link, #astra-footer-menu > .menu-item > .menu-link {
    height: 100%;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -js-display: flex;
    display: flex
    text-align:center;
;
}


