.hero-section {
    position: relative;
    min-height: 100vh; /* ملء الشاشة */
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    background-color: #ffffff;
    /* تعويض مساحة النافبار الـ Fixed - افترضنا ارتفاعه 100px تقريباً */
    padding-top: 100px;
}

/* ضبط النصوص لليمين (بما أن الصفحة غالباً للعربية) */

.hero-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e6f3fe;
    border-radius: 30px;
    color: var(--main);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-main-title {
    font-size: clamp(2.2rem, 5vw, 4rem); /* خط مرن يصغر في الموبايل */
    font-weight: 800;
    color: var(--main);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--main);
    line-height: 1.8;
    max-width: 519px;

    margin-bottom: 2.5rem;
}

/* الكرات الملونة (Blobs) خلفية */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); /* تأثير التمويه */
    z-index: -1;
    opacity: 0.8;
}

.hero-blob-blue {
    width: 902px;
    height: 653px;
    top: -50px;
    left: -50px;
    background: #e6f3fe;
}

.hero-blob-yellow {
    width: 902px;
    height: 653px;
    background: #fffce5;
    top: -50px;
    right: -50px;
}
@media (max-width: 991px) {
    .hero-blob-blue {
        width: 500px;
        height: 800px;
    }

    .hero-blob-yellow {
        width: 500px;
        height: 800px;
    }
}

/* تنسيق الصورة */
.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    /* إضافة أنيميشن خفيف للصورة لتبدو عصرية */
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* التجاوب (Responsive) */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px; /* زيادة المساحة في الموبايل */
        height: auto; /* السماح بالتمدد إذا كان المحتوى طويلاً */
    }
}
/* numbers */

/* services */

.services-section {
    background-color: #ffffff;
}

.top-label {
    color: var(--sec);
    font-size: 1.125rem;
}

.main-title {
    color: var(--main);
    font-size: 4rem;
    line-height: 1.3;
}

.header-description {
    color: var(--text);
    font-size: 1.5rem;
}

/* Responsiveness */
/* @media (max-width: 48rem) {
    .main-title {
        font-size: 1.8rem;
    }
    .header-description {
        margin-top: 1.5rem;
        max-width: 100%;
    }
} */

/* feat */

/* ---------- Features Section ---------- */
.features-section {
    background: #fff;
    padding: 5rem 0;
}

.top-text {
    color: var(--sec);
    font-size: 0.95rem;
}
.main-title {
    color: var(--main); /* لون أزرق مقارب للصورة */
    font-size: 2rem;
    max-width: 55rem;
    line-height: 1.4;
    margin: 0 auto;
    text-align: center;
}

/* Image */
.center-img-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}
.main-character {
    width: 100%;
    height: auto;
    display: block;
}
.bottom-fade-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    background: linear-gradient(
        179.77deg,
        rgba(255, 255, 255, 0) 0.2%,
        #ffffff 95.64%
    );
    pointer-events: none;
}

/* Base Card Style */
.cards-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    background: #f9e69f; /* لون أصفر فاتح مطابق للصورة */
    border: 1px solid #c1990b;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0px 20px 24px -4px #a1a1a114;
    position: relative;
    max-width: 250px;
}

.feature-card h5 {
    color: var(--main);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--main);
    margin-bottom: 0;
    line-height: 1.5;
}
.icon-top {
    color: var(--main);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Desktop Logic (The Layout in your Image) */
@media (min-width: 992px) {
    /* التنسيق الافتراضي للإنجليزي (أو العام) */
    html:lang(en) .left-cards .feature-card:nth-child(1) {
        transform: translateX(20px);
    }
    html:lang(en) .left-cards .feature-card:nth-child(2) {
        transform: translateX(-10px);
    }
    html:lang(en) .left-cards .feature-card:nth-child(3) {
        transform: translateX(20px);
    }

    html:lang(en) .right-cards .feature-card:nth-child(1) {
        transform: translateX(-20px);
    }
    html:lang(en) .right-cards .feature-card:nth-child(2) {
        transform: translateX(10px);
    }
    html:lang(en) .right-cards .feature-card:nth-child(3) {
        transform: translateX(-20px);
    }

    /* التنسيق الخاص بالعربي - بنعكس الإشارات */
    html:lang(ar) .left-cards .feature-card:nth-child(1) {
        transform: translateX(-20px);
    }
    html:lang(ar) .left-cards .feature-card:nth-child(2) {
        transform: translateX(10px);
    }
    html:lang(ar) .left-cards .feature-card:nth-child(3) {
        transform: translateX(-20px);
    }

    html:lang(ar) .right-cards .feature-card:nth-child(1) {
        transform: translateX(20px);
    }
    html:lang(ar) .right-cards .feature-card:nth-child(2) {
        transform: translateX(-10px);
    }
    html:lang(ar) .right-cards .feature-card:nth-child(3) {
        transform: translateX(20px);
    }

    /* تأثير الهوفر يظل ثابت للغتين */
    .feature-card:hover {
        transform: scale(1.05) !important;
        z-index: 10;
    }
}
/* Tablet Layout (3 Cards per Row under Image) */
@media (max-width: 991px) and (min-width: 768px) {
    .center-img-wrapper {
        max-width: 300px;
        margin-bottom: 2rem;
    }

    .row {
        justify-content: center;
    }

    /* جعل الأعمدة تأخذ عرض كامل لرص الكروت أفقياً */
    .col-md-6 {
        width: 100%;
    }

    .cards-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .feature-card {
        width: calc(33.333% - 1rem); /* 3 كروت جنب بعض */
        min-width: 200px;
    }
}

/* Mobile Layout (1 Card per Row) */
@media (max-width: 767px) {
    .main-title {
        font-size: 1.4rem;
    }
    .center-img-wrapper {
        max-width: 250px;
        margin-bottom: 2rem;
    }
    .feature-card {
        max-width: 100%;
    }
}
