.hero-section {
    width: 91%;
    padding: 60px 0px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 1. تصميم البنر والصورة */
.banner-wrapper {
    width: 100%;
    border-radius: 24px;
    /* الانحناء الدائري الملحوظ للحواف */
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.banner-img {
    width: 100%;
    max-height: 471px;
    display: block;
    border-radius: 32px;
    max-width: 100%;
}

/* 2. النصوص (العناوين) */
.content-wrapper {
    text-align: right;
    margin-top: 5px;
}

.main-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

/* الكلمة الملونة بالأزرق المشرق */
.main-title .highlight {
    color: #2b61e2;
}

.sub-title {
    font-size: 20px;
    color: #9A9A9A;
    font-weight: 500;
}

/* 3. شريط البحث والزر */
.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    height: 73px;
    margin-top: 5px;
    background-color: #f7f8fa;
    border-radius: 167px;
}

/* حقل الإدخال بالخلفية الرمادية الفاتحة جداً والانحناء */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    border: none;
    padding: 16px 50px 16px 20px;
    /* مساحة إضافية لليمين عشان الأيقونة */
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    color: #333;
    transition: 0.2s ease;
    background-color: transparent;
}


.search-input::placeholder {
    color: #c0c4cc;
}

.courses-section {
    width: 91%;
    margin: auto;
    padding: 60px 0px !important;
}

/* مكان أيقونة البحث داخل الحقل من جهة اليمين */
.search-icon-course {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a1a1a;
    font-size: 18px;
    pointer-events: none;
}

/* زر البحث الكحلي الداكن */
.search-btn {
    position: absolute;
    left: 23px;
    background-color: #0f2557;
    /* اللون الكحلي المطابق للزر */
    color: #ffffff;
    border: none;
    padding: 12px 44px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 12%;
}

.search-btn:hover {
    background-color: #1d3b7a;
}

.join-section {
    background-image: url('../images/recomendation.png');
    margin-top: 60px;
    position: relative;
    background-size: contain;
}

.join-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 40px;
    height: 326px;
}

/* الأيقونة ثلاثية الأبعاد التوضيحية المجسمة للورقة واليد */
.join-image-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: absolute;
    top: -106px;
    left: -94px;
}

/* محاكاة مجسم المفكرة الطائرة */
.notebook-mockup {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    width: 200px;
    position: relative;
    text-align: center;
}

.notebook-mockup::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #ffb703;
    border-radius: 10px;
}

.notebook-mockup h4 {
    color: #002244;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.notebook-btn {
    background: #7a869a;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-block;
}

/* الجانب النصي */
.join-text-side {
    width: 572px;
    text-align: right;
    color: #ffffff;
    margin-top: 40px;
}

.join-text-side h3 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.join-text-side p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 30px;

}

.btn-join-now {
    background-color: #ffb703;
    color: #FFFFFF;
    border: none;
    padding: 12px 44px;
    border-radius: 65px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-join-now:hover {
    background-color: #e5a600;
}

.btn-join-now i {
    background: #ffffff;
    color: #ffb703;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* حاوية أزرار التنقل */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    /* المسافة بين الأزرار */
}

/* التنسيق المشترك للأزرار */
.page-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    /* انحناء الحواف */
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* تصميم الزر النشط (رقم 1) */
.page-item.active {
    background-color: #230054;
    /* اللون الكحلي الغامق جداً */
    color: #ffffff;
    /* لون الرقم أبيض */
    border: none;
}

/* تصميم الأزرار العادية (2, 3, 13) */
.page-item.number {
    background-color: #ffffff;
    color: #1d4ed8;
    /* لون الرقم أزرق */
    border: 1px solid #e2e8f0;
    /* حدود خفيفة جداً */
}

/* تأثير عند تمرير الماوس فوق الأزرار العادية */
.page-item.number:hover {
    border-color: #1d4ed8;
    background-color: #f0f4ff;
}

/* تنسيق النقاط (...) */
.dots {
    color: #1d4ed8;
    font-weight: bold;
    letter-spacing: 3px;
    /* لتوسيع المسافة بين النقاط */
    font-size: 18px;
    padding: 0 5px;
}

/* التجاوب مع الشاشات الصغيرة (الهواتف) */
@media (max-width:768px) {
    .join-text-side {
        width: 80%;
        margin: 34px auto;
    }
    .join-text-side{
        text-align: center;
    }
    .join-container{
        height: unset;
    }
    .courses-section{
        padding: 0px !important;
    }
    .search-icon-course{
        top: 26%;
    }
    .search-btn{
        position: unset;
    }
    .search-container{
        height: unset;
        padding: 20px;
        border-radius: 40px;
    }
}
@media (max-width: 600px) {
    .main-title {
        font-size: 20px;
    }

    .search-container {
        flex-direction: column-reverse;
        /* ترتيب الزر تحت الحقل في الموبايل */
        align-items: stretch;
        gap: 10px;
    }

    .search-btn {
        width: 100%;
        padding: 14px;
    }
    .join-image-side{
        display: none;
    }
}
