/* الحاوية الرئيسية الكبرى */
.sectors-section-container {
    max-width: 95%; /* تم تكبير المساحة الأفقية قليلاً لتناسب الحجم الجديد */
    margin: 60px auto;
    padding: 0 20px;
    direction: rtl;
    font-family: 'cairo', sans-serif;
}

.sectors-main-title {
    text-align: center;
    color: #0f172a;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 50px;
	font-family: 'cairo', sans-serif;
}

/* غلاف شريط التمرير */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* المنطقة المقصوصة */
.carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 10px;
}

/* الشريط المتحرك الحامل للقطاعات السبعة */
.sectors-track {
    display: flex;
    gap: 28px; /* زيادة الفراغ البيني بين الكروت لتظهر بوضوح وفخامة */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    direction: rtl;
}

/* 🌟 تم تكبير حجم المستطيل وتثبيته */
.sector-card {
    flex: 0 0 calc((100% - 56px) / 3); /* توزيع متوازن للعرض بناءً على الـ gap الجديد */
    background: #ffffff;
    border-radius: 30px; /* حواف أكثر انحناءً لتصميم عصري */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    height: 380px; /* 👈 تم التكبير من 320px إلى 380px لمنح مساحة مريحة للنصوص والسهم */
    transition: all 0.4s ease;
}

/* منطقة الصورة */
.sector-image-area {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.sector-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* الطبقة الزرقاء الغامرة */
.sector-info-box {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(59deg,rgba(6, 24, 43, 1) 0%, rgba(15, 96, 182, 1) 58%); /* درجة أزرق مركزة ومحسنة لقراءة أفضل */
    padding: 35px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* عنوان القطاع داخل الطبقة الزرقاء */
.sector-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* الصندوق الحاوي للتعريف والسهم المعجل */
.sector-hidden-desc {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sector-hidden-desc p {
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0; /* مسافة سفلية لفصل النص عن السهم */
}

/* 🌟 تصميم السهم النصي الأبيض التفاعلي */
.sector-link-arrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}

.sector-link-arrow i {
    font-size: 0.85rem;
    transition: transform 0.3s ease; /* انسيابية حركة السهم */
}

/* 🔥 تأثيرات الـ Hover المحدثة */
.sector-card:hover {
    box-shadow: 0 20px 35px rgba(29, 78, 216, 0.25);
    border-color: #1d4ed8;
    cursor: pointer;
}

.sector-card:hover .sector-image-area img {
    transform: scale(1.1);
}

.sector-card:hover .sector-info-box {
    bottom: 0;
}

.sector-card:hover .sector-hidden-desc {
    opacity: 1;
    transform: translateY(0);
}

/* 👈 حركة دفع السهم للأمام (جهة اليسار في الـ RTL) عند وضع الماوس فوق الكارت */
.sector-card:hover .sector-link-arrow i {
    transform: translateX(-5px); 
}

.sector-card:hover .sector-link-arrow {
    border-color: rgba(255, 255, 255, 1); /* يضيء الخط الممتد تحت السهم */
}

/* أزرار التحكم الدائرية الزرقاء الجانبية */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px; /* تم تكبير أزرار التنقل لتناسب ضخامة الكروت الجديدة */
    height: 55px;
    background-color: #1d4ed8;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background-color: #1e40af;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { right: -28px; }
.next-btn { left: -28px; }

/* 📱 هندسة تكيّف الأبعاد المستجيبة (Responsive Grid) */
@media (max-width: 1024px) {
    .sector-card {
        flex: 0 0 calc((100% - 28px) / 2); /* كارتين بالصف على التابلت */
        height: 360px;
    }
}

@media (max-width: 680px) {
    .sector-card {
        flex: 0 0 100%; /* كارت واحد عريض على الهاتف المحمول */
        height: 350px;
    }
    .carousel-nav-btn {
        width: 45px;
        height: 45px;
    }
    .prev-btn { right: -12px; }
    .next-btn { left: -12px; }
}
