/* =====================================================
   Rayhan Teachers Section
   Final Horizontal Teachers Layout
===================================================== */


/* =====================================================
   Reset
===================================================== */

.rayhan-teachers-section *,
.rayhan-teachers-section *::before,
.rayhan-teachers-section *::after {

    box-sizing: border-box;

}


/* =====================================================
   Main Section
===================================================== */

.rayhan-teachers-section {

    width: 100%;
    max-width: 1280px;

    margin: 90px auto;

    padding: 0 20px;

    font-family: Cairo, sans-serif;

    direction: rtl;

}


/* =====================================================
   Header
===================================================== */

.rayhan-section-header {

    width: 100%;

    text-align: center;

    margin-bottom: 60px;

}


.rayhan-badge {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #edf8f0;

    color: #157347;

    padding: 10px 24px;

    border-radius: 40px;

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 25px;

}


.rayhan-section-header h2 {

    margin: 0;

    color: #163a63;

    font-size: 48px;

    line-height: 1.35;

    font-weight: 800;

}


.rayhan-section-header p {

    width: 100%;

    max-width: 760px;

    margin: 22px auto 0;

    color: #666;

    line-height: 2;

    font-size: 18px;

}


/* =====================================================
   Features
===================================================== */

.rayhan-features {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;

    margin: 65px 0;

}


.rayhan-feature {

    min-width: 0;

    background: #fff;

    border-radius: 18px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 18px;

    box-shadow: 0 12px 30px rgba(0,0,0,.06);

    transition: .35s;

}


.rayhan-feature:hover {

    transform: translateY(-6px);

    box-shadow: 0 18px 40px rgba(0,0,0,.10);

}


.feature-icon {

    width: 62px;
    height: 62px;

    border-radius: 18px;

    background: #edf8f0;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 28px;

    flex-shrink: 0;

}


.rayhan-feature h4 {

    margin: 0 0 6px;

    color: #163a63;

    font-size: 18px;

}


.rayhan-feature span {

    color: #777;

    font-size: 14px;

}


/* =====================================================
   Teachers Horizontal Slider Container
===================================================== */

/*
   مهم جدًا:

   هذا ليس Swiper.

   هذه حاوية تمرير أفقي حقيقية.

   لا يتم فيها:
   - نسخ الكروت
   - loop
   - JavaScript
   - إنشاء Slides إضافية

   كل معلمة تظهر مرة واحدة فقط.
*/

.rayhan-teachers-slider {

    width: 100%;

    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 3px 25px;

    margin: 0;

    direction: rtl;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;

}


/*
   منع أي Widget أو Elementor من إجبار
   الحاوية على الالتفاف.
*/

.rayhan-teachers-slider > * {

    max-width: none;

}


/* =====================================================
   Teachers Track
===================================================== */

.rayhan-teachers-track {

    width: max-content;
    min-width: 100%;

    display: flex;

    flex-direction: row;

    flex-wrap: nowrap;

    align-items: stretch;

    gap: 35px;

    direction: rtl;

}


/* =====================================================
   Teacher Card
===================================================== */

/*
   ثلاث معلمات بجوار بعض على الكمبيوتر.

   كل كارت له عرض ثابت نسبيًا،
   ولا يستطيع النزول تحت الكارت الآخر.
*/

.rayhan-teacher-card {

    position: relative;

    flex: 0 0 calc((100vw - 40px - 70px) / 3);

    width: calc((100vw - 40px - 70px) / 3);

    min-width: 0;

    max-width: 390px;

    background: #fff;

    border: 1px solid #dfe7e3;

    border-radius: 24px;

    overflow: hidden;

    box-shadow: 0 12px 35px rgba(0,0,0,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    scroll-snap-align: start;

}


/*
   عند وجود عدد أكبر من 3:

   الكروت لا تنزل لسطر جديد.
   تستمر أفقيًا ويظهر Scroll.
*/

.rayhan-teachers-track .rayhan-teacher-card {

    flex-shrink: 0;

}


.rayhan-teacher-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 22px 50px rgba(0,0,0,.15);

}


/* =====================================================
   Teacher Image
===================================================== */

.teacher-image {

    position: relative;

    width: 100%;

    text-align: center;

    padding: 35px 25px 20px;

}


.teacher-image img {

    width: 220px;
    height: 220px;

    max-width: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid #f5f5f5;

    background: #fafafa;

    display: inline-block;

}


/* =====================================================
   Rating Badge
===================================================== */

.teacher-rating {

    position: absolute;

    right: 25px;
    top: 25px;

    z-index: 2;

    background: #fff;

    color: #ff9800;

    border-radius: 30px;

    padding: 8px 15px;

    font-weight: bold;

    box-shadow: 0 8px 20px rgba(0,0,0,.08);

}


/* =====================================================
   Availability Badge
===================================================== */

.teacher-status {

    position: absolute;

    left: 25px;
    top: 25px;

    z-index: 2;

    background: #edf8f0;

    color: #198754;

    border-radius: 30px;

    padding: 8px 15px;

    font-size: 14px;

    font-weight: 700;

}


/* =====================================================
   Teacher Body
===================================================== */

.teacher-body {

    padding: 10px 28px 30px;

    text-align: center;

}


/* =====================================================
   Teacher Name
===================================================== */

.teacher-name {

    margin: 0;

    color: #163a63;

    font-size: 28px;

    font-weight: 800;

    line-height: 1.4;

}


/* =====================================================
   Specialization
===================================================== */

.teacher-specialization {

    margin: 12px 0;

    color: #198754;

    font-size: 17px;

    font-weight: 600;

}


/* =====================================================
   Reviews
===================================================== */

.teacher-reviews {

    margin-bottom: 25px;

    color: #777;

    font-size: 15px;

}


/* =====================================================
   Teacher Meta
===================================================== */

.teacher-meta {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 28px;

}


.teacher-meta-item {

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 14px;

    background: #f8f9fb;

    border-radius: 14px;

    font-size: 15px;

    color: #444;

    font-weight: 600;

    text-align: center;

}


.meta-icon {

    font-size: 18px;

    flex-shrink: 0;

}


/* =====================================================
   Profile Button
===================================================== */

.teacher-profile-btn {

    display: block;

    width: 100%;

    padding: 16px;

    border-radius: 14px;

    background: #198754;

    color: #fff;

    text-decoration: none;

    font-size: 17px;

    font-weight: 700;

    transition:
        background .3s ease,
        transform .3s ease;

}


.teacher-profile-btn:hover {

    background: #146c43;

    color: #fff;

    transform: translateY(-1px);

}


/* =====================================================
   WhatsApp / Help Banner
===================================================== */

/*
   مهم جدًا:

   هذا العنصر مستقل عن كروت المعلمات.

   لا يتم إعطاؤه:
   - flex داخل الـ slider
   - swiper-slide
   - عرض كارت
   - أي علاقة بعدد المعلمات

   وهو بعرض القسم بالكامل.
*/

.rayhan-help-banner {

    width: 100%;

    max-width: 100%;

    min-height: 150px;

    margin-top: 70px;

    padding: 40px;

    background:
        linear-gradient(
            135deg,
            #0f5132,
            #198754
        );

    border-radius: 26px;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    color: #fff;

    position: relative;

    clear: both;

}


/* =====================================================
   Help Content
===================================================== */

.rayhan-help-content {

    flex: 1 1 auto;

    min-width: 0;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 20px;

}


.rayhan-help-icon {

    width: 70px;
    height: 70px;

    border-radius: 20px;

    background: rgba(255,255,255,.15);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 34px;

    flex-shrink: 0;

}


.rayhan-help-text {

    min-width: 0;

}


.rayhan-help-text h3 {

    margin: 0 0 10px;

    font-size: 30px;

    line-height: 1.4;

    color: #fff;

}


.rayhan-help-text p {

    margin: 0;

    line-height: 2;

    color: #fff;

    opacity: .95;

}


/* =====================================================
   WhatsApp Button
===================================================== */

.rayhan-whatsapp-btn {

    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 18px 34px;

    min-width: 220px;

    border-radius: 14px;

    background: #fff;

    color: #198754;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .3s ease,
        transform .3s ease;

}


.rayhan-whatsapp-btn:hover {

    background: #f3f3f3;

    color: #198754;

    transform: translateY(-2px);

}


/* =====================================================
   Empty State
===================================================== */

.rayhan-empty {

    width: 100%;

    text-align: center;

    padding: 80px 20px;

    font-size: 22px;

    color: #666;

}


/* =====================================================
   Horizontal Scrollbar
===================================================== */

.rayhan-teachers-slider::-webkit-scrollbar {

    height: 8px;

}


.rayhan-teachers-slider::-webkit-scrollbar-track {

    background: #eef3f0;

    border-radius: 20px;

}


.rayhan-teachers-slider::-webkit-scrollbar-thumb {

    background: #198754;

    border-radius: 20px;

}


.rayhan-teachers-slider::-webkit-scrollbar-thumb:hover {

    background: #146c43;

}


/* =====================================================
   Large Tablet
===================================================== */

@media (max-width: 1100px) {

    .rayhan-features {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }


    .rayhan-teacher-card {

        flex-basis: calc((100vw - 40px - 35px) / 2);

        width: calc((100vw - 40px - 35px) / 2);

    }

}


/* =====================================================
   Tablet / Mobile
===================================================== */

@media (max-width: 768px) {

    .rayhan-teachers-section {

        margin: 60px auto;

        padding: 0 15px;

    }


    .rayhan-section-header {

        margin-bottom: 40px;

    }


    .rayhan-section-header h2 {

        font-size: 34px;

    }


    .rayhan-section-header p {

        font-size: 16px;

    }


    .rayhan-features {

        grid-template-columns: 1fr;

        margin: 45px 0;

    }


    .rayhan-teacher-card {

        flex-basis: calc(100vw - 30px);

        width: calc(100vw - 30px);

        max-width: 390px;

    }


    .teacher-image img {

        width: 180px;

        height: 180px;

    }


    .teacher-name {

        font-size: 24px;

    }


    .teacher-meta {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }


       /* =====================================================
       WhatsApp Banner - Mobile
       ===================================================== */

    .rayhan-help-banner {

        width: 100%;

        min-height: auto;

        margin-top: 55px;

        padding: 28px 20px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 22px;

        text-align: center;

    }


    .rayhan-help-content {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 12px;

    }


    .rayhan-help-icon {

        width: 58px;

        height: 58px;

        flex-shrink: 0;

        border-radius: 16px;

        font-size: 27px;

    }


    .rayhan-help-text {

        width: 100%;

    }


    .rayhan-help-text h3 {

        margin: 0 0 8px;

        font-size: 23px;

        line-height: 1.5;

        color: #fff;

    }


    .rayhan-help-text p {

        margin: 0 auto;

        max-width: 500px;

        font-size: 14px;

        line-height: 1.9;

        color: #fff;

    }


    .rayhan-whatsapp-btn {

        width: 100%;

        max-width: 360px;

        min-width: 0;

        padding: 15px 20px;

        font-size: 15px;

        white-space: nowrap;

    }

}


/* =====================================================
   Small Mobile
===================================================== */

@media (max-width: 480px) {

    .rayhan-section-header h2 {

        font-size: 28px;

    }


    .teacher-meta {

        grid-template-columns: 1fr;

    }


    .rayhan-help-banner {

        padding: 20px 12px;

        gap: 10px;

    }


    .rayhan-help-content {

        gap: 8px;

    }


    .rayhan-help-icon {

        width: 45px;
        height: 45px;

        font-size: 21px;

    }


    .rayhan-help-text h3 {

        font-size: 17px;

    }


    .rayhan-help-text p {

        font-size: 11px;

    }


    .rayhan-whatsapp-btn {

        min-width: 120px;

        padding: 11px 10px;

        font-size: 12px;

    }

}