/* ---------------------------------- */
/* 0. الأساسيات، المتغيرات الجذرية، والخطوط */
/* ---------------------------------- */
:root {
    --color-primary-blu: #28a745;
    --color-secondary-gray: #deddddfd;
    --color-secondary-nav-gray: #5e5e5e;
    --color-white: #ffffff;
    --color-deep-blue: #111b21;
    --navbar-height: 80px;
    --container-width: 1200px;
    --mobile-menu-width: 250px;
    --color-card-icon: #111b21;
    --color-btn-background: #fdc83d;
}

/* 0.2. تحميل خط Cairo محلياً (تم التأكد من الأوزان المطلوبة) */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* 0.3. تنسيق الجسم (Body) */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-light-gray);
    /* color: #deddddfd; */
    overflow-x: hidden;
}





/* ---------------------------------- */
/* 7. Media Query للتجاوب (للشاشات الصغيرة) */
/* ---------------------------------- */
@media (max-width: 900px) {

    /* Hero Section */
    .hero-section .inner-hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
        /* وضع المحتوى أسفل الصورة في الموبايل */
        padding-top: 30px;
    }

    .hero-content .hero-heading {
        font-size: 2.5em;
    }

    .hero-image {
        max-width: 80%;
        /* تصغير حجم الصورة قليلاً */
        text-align: center;
        order: 1;
        /* وضع الصورة أعلى المحتوى في الموبايل */
    }

}

/* ---------------------------------- */
/* الحل النهائي لتجاوز أخطاء Transition-Delay */
/* ---------------------------------- */

/* استهداف العناصر المتحركة فقط (للتأكد من الأولوية) */

/* 50ms */
[data-aos].aos-animate[data-aos-delay="50"],
body[data-aos-delay="50"] [data-aos].aos-animate {
    -webkit-transition-delay: 50ms !important;
    transition-delay: 50ms !important;
}

/* 100ms */
[data-aos].aos-animate[data-aos-delay="100"],
body[data-aos-delay="100"] [data-aos].aos-animate {
    -webkit-transition-delay: 100ms !important;
    transition-delay: 100ms !important;
}

/* 150ms */
[data-aos].aos-animate[data-aos-delay="150"],
body[data-aos-delay="150"] [data-aos].aos-animate {
    -webkit-transition-delay: 150ms !important;
    transition-delay: 150ms !important;
}

/* 200ms */
[data-aos].aos-animate[data-aos-delay="200"],
body[data-aos-delay="200"] [data-aos].aos-animate {
    -webkit-transition-delay: 200ms !important;
    transition-delay: 200ms !important;
}

/* 300ms */
[data-aos].aos-animate[data-aos-delay="300"],
body[data-aos-delay="300"] [data-aos].aos-animate {
    -webkit-transition-delay: 300ms !important;
    transition-delay: 300ms !important;
}

/* 400ms */
[data-aos].aos-animate[data-aos-delay="400"],
body[data-aos-delay="400"] [data-aos].aos-animate {
    -webkit-transition-delay: 400ms !important;
    transition-delay: 400ms !important;
}

/* 500ms */
[data-aos].aos-animate[data-aos-delay="500"],
body[data-aos-delay="500"] [data-aos].aos-animate {
    -webkit-transition-delay: 500ms !important;
    transition-delay: 500ms !important;
}

/* أكمل بنفس النمط لكل القيم التي تستخدمها في data-aos-delay */
/* مثال: 1000ms */
[data-aos].aos-animate[data-aos-delay="1000"],
body[data-aos-delay="1000"] [data-aos].aos-animate {
    -webkit-transition-delay: 1000ms !important;
    transition-delay: 1000ms !important;
}







/* ================================================= */
/* 1. قسم خطط الأسعار (Pricing Plans) - Paln-Pricing */
/* ================================================= */

.pricing-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f7f7f7;
}

.header-container,
.plans-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1em;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

/* ------------------------------------------------ */
/* 🥇 الإعداد والتأثير الموحد لجميع البطاقات (خطط/دعم) */
/* ------------------------------------------------ */

/* الإعداد الأساسي للبطاقة: تفعيل الانتقال السريع */
.plan-card,
.department-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* **الترانزيشن السريع:** 0.15s لحركة حادة (تأثير الاهتزاز) */
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
    cursor: pointer;
}

/* 💥 تأثير التمرير (Hover Effect) الموحد: الرفع القوي السريع */
.plan-card:hover,
.department-card:hover {
    /* **الرفع القوي:** -8px ليظهر الاهتزاز بوضوح */
    transform: translateY(-8px);
    /* **الظل الموحد:** ظل واضح ومتناسق */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
    /* إبراز الحدود بلون مميز */
}

/* ------------------------------------------------ */

.plan-card {
    padding: 30px;
}

/* --- تنسيق رأس الخطة (Header) لإضافة فاصل --- */
.plan-header {
    margin-bottom: 20px;
    /* مسافة كافية قبل الخط */
    padding-bottom: 20px;
    /* مسافة بعد الخط وقبل السعر */
    /* إضافة الخط الخفيف */
    border-bottom: 1px solid #d6d6d6;
    /* لون رمادي فاتح جداً */
}

/* تعديل المسافة السفلية لاسم الخطة لتناسب الفاصل الجديد */
.plan-header .plan-name {
    margin-bottom: 0;
    /* لأننا أضفنا المسافة إلى .plan-header */
}

/* نكرر الفئة لضمان أعلى أولوية (Specificity) */
.plan-card.plan-card {
    /* التأكيد على سرعة الانتقال */
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}

/* تطبيق الرفع القوي (-8px) على البطاقة العادية */
.plan-card.plan-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: #007bff !important;
}

/* تطبيق الرفع القوي (-8px) على البطاقة المميزة */
.plan-card.featured.plan-card.featured:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25) !important;
}

/* التمييز للخطة الأكثر شعبية */
.plan-card.featured {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* 🏆 تأثير التمرير على البطاقة المميزة: نفس الرفع ولكن بظل أقوى */
.plan-card.featured:hover {
    /* الرفع موحد (-8px) */
    transform: translateY(-8px);
    /* ظل أغمق قليلاً للبطاقة المميزة */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}


.plan-card .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 0 12px 0 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.plan-name {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #007bff;
}

/* --- أسعار الخطة --- */
.plan-pricing {
    margin-bottom: 30px;
}

.price-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.original-price {
    font-size: 1.5em;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
}

.price-final {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 10px;
}

.final-price {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.currency,
.per-period {
    color: #666;
    font-size: 1.2em;
    font-weight: normal;
    margin: 0 2px;
}

.renewal-price {
    font-size: 0.95em;
    color: #888;
}

/* --- الميزات --- */
.plan-features {
    text-align: right;
    margin-bottom: 30px;
}

.plan-features h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px dashed #d6d6d6;
    padding-bottom: 5px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 1em;
}

.plan-features .icon-feature {
    color: #007bff;
    margin-left: 10px;
}

/* --- الأزرار --- */
.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-actions .btn {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.plan-actions .btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.plan-actions .btn-primary:hover {
    background-color: #0056b3;
}

.plan-actions .btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.plan-actions .btn-secondary:hover {
    background-color: #f0f8ff;
}

/* ⚙️ تنسيقات زر التبديل (Toggle Switch) */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #007bff;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.price-period {
    display: none;
}

.price-period.active {
    display: block;
}

.billing-toggle span {
    transition: color 0.3s;
}

.billing-toggle input:not(:checked)~span:first-of-type {
    color: #007bff;
}

.billing-toggle input:checked~span:last-of-type {
    color: #007bff;
}

/* ================================================= */
/* 2. تنسيق منطقة الدعم الفني (Support) والبطاقات */
/* ================================================= */

.support-container {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0 60px 0;
}

.department-card {
    display: block;
    text-decoration: none;
    color: var(--color-text, #333);
    /* الاعتماد على التنسيق الموحد في الأعلى */
    padding: 30px 20px;
    text-align: center;
}

.department-card .icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary-blu, #007bff);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.department-card .icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--color-primary-blu, #007bff);
}

.department-card h2 {
    font-size: 1.3rem;
    margin: 10px 0 8px 0;
    color: var(--color-heading, #1a1a1a);
}

.department-card p {
    font-size: 0.95rem;
    color: var(--color-text-light, #666);
    margin-bottom: 20px;
}

.select-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #007bff;
    color: white !important;
    transition: background-color 0.3s;
}

.select-btn:hover {
    background-color: #0056b3;
}

/* ------------------------------------------------ */
/* التجاوب (Media Queries) */
/* ------------------------------------------------ */
@media (max-width: 768px) {

    .plans-grid,
    .department-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------ */
/* سليدر */
/* ------------------------------------------------ */

/* --- 1. ضبط الحاوية الرئيسية للسلايدر --- */
.hero-slider-section {
    position: relative;
    width: 100%;
}

.hero-slider {
    position: relative;
    /* ضروري جداً لالتصاق الشريط بالأسفل */
    width: 100%;
    overflow: hidden;
}

.hero-slider-main {
    width: 100%;
    height: 650px;
    position: relative;
    overflow: hidden;
    direction: ltr;
}

/* --- 2. ضبط السلايد والطبقات --- */
.hero-slider-main .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider-main__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider-main__image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* --- تعديل محاذاة النص على الصورة --- */
.hero-slider-main__text-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* تأكد أنه فوق الصورة */
    display: flex;
    align-items: center;
    /* توسيط النص عمودياً */
    justify-content: flex-start;
    /* بدء المحاذاة من اليسار */
    /* background: linear-gradient(to right, rgba(0,0,0,0.6) 20%, transparent 100%); طبقة تظليل خفيفة من اليسار */
}

.hero-slider-main__text {
    padding-left: 40%;
    color: white;
    text-align: left;
}

.header-image__category {
    color: #C5A059;
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.header-image__headline {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    width: max-content;
}

/* --- 3. ضبط أزرار التنقل --- */
.slider-navigation-wrapper {
    position: absolute;
    bottom: 130px;
    /* مكانها فوق الشريط الشفاف */
    right: 10%;
    display: flex;
    gap: 15px;
    z-index: 50;
}

.custom-nav {
    position: static !important;
    width: 45px !important;
    height: 45px !important;
    background: white !important;
    border-radius: 50%;
    color: black !important;
}

.custom-nav::after {
    font-size: 16px !important;
    font-weight: bold;
}

/* --- 4. شريط المربعات المصلح (Toolbar) --- */
.hero-slider-toolbar {
    position: absolute !important;
    bottom: 0 !important;
    /* إجبار الالتصاق بالحافة السفلية */
    top: auto !important;
    left: 0;
    width: 100%;
    z-index: 60;
    /* فوق كل طبقات السلايدر */
    background: rgba(0, 0, 0, 0.011) !important;
    /* خلفية شفافة */
    backdrop-filter: blur(10px);
    /* تأثير زجاجي */
    border-top: 1px solid rgba(255, 255, 255, 0.038);
    height: 90px;
    /* ارتفاع الشريط */
    display: block !important;
}

.hero-slider-thumbs {
    height: 100%;
    background: transparent !important;
}

.hero-slider-toolbar .container {
    max-width: 100%;
    padding: 0;
    height: 100%;
}

.thumb-item {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 0 30px !important;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    height: 100% !important;
}

.thumb-item.swiper-slide-thumb-active {
    background: rgba(255, 255, 255, 0.204) !important;
}

.thumb-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.thumb-texts span {
    font-size: 11px;
    color: #C5A059;
    text-transform: uppercase;
}

.thumb-texts p {
    margin: 0;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

/* --- 5. شريط التقدم الأخضر السفلي --- */
.swiper-pagination-progressbar {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0;
    width: 100%;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    z-index: 70;
}

.swiper-pagination-progressbar-fill {
    background: #5cb85c !important;
    /* اللون الأخضر الصريح */
}

.header-image__description {
    /* زيادة العرض الأقصى ليأخذ مساحة أكبر (مثلاً 80% أو قيمة بالبكسل) */
    max-width: 800px;

    /* لضمان بقاء النص مرتاحاً من جهة اليسار كما طلبت سابقاً */
    margin-left: 0;
    margin-right: auto;

    /* تحسين القراءة */
    line-height: 1.6;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;

    /* إذا كنت تريد التأكد من عدم انكسار الكلمات الطويلة */
    word-wrap: break-word;
}

/* تعديل الحاوية الأب لضمان أنها تسمح بالعرض الجديد */
.hero-slider-main__text {
    /* padding-left: 10%;  */
    width: 100%;
    /* السماح للنص بالتمدد */
}

/* الإعداد عند تحويل الصفحة للعربية (Arabic/RTL) */
/* يفترض أن نظامك يضيف [dir="rtl"] أو كلاس .rtl للجسم */
[dir="rtl"] .hero-slider-main__text {
    padding-right: 8%;
    /* الإزاحة تصبح من اليمين */
    padding-left: 0;
    /* text-align: right; */
    margin-right: 100px;
}

[dir="rtl"] .hero-slider-main__text-wrapper {
    justify-content: flex-end;
    /* النص يبدأ من اليمين */
}

[dir="rtl"] .header-image__description {
    margin-right: 10px;
    margin-left: auto;
}