/* =========================================================
   TUTORHUB SUBJECT PAGE
   subject1.css
   ========================================================= */


/* =========================================================
   POPULAR SUBJECT SECTION
   ========================================================= */

.popular-subject-section {
    margin-top: 10px;
    margin-bottom: 55px;
}

.popular-subject-title,
.browse-subject-title {
    margin: 0 0 20px;
    color: #172033;
    font-size: 24px;
    font-weight: 800;
}


/* =========================================================
   POPULAR SUBJECT GRID
   ========================================================= */

.popular-subject-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}


/* =========================================================
   SUBJECT CARD
   ========================================================= */

.popular-subject-grid .subject {

    width: 100%;
    min-height: 155px;

    padding: 12px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #ffffff;

    color: #172033;

    font-size: 14px;
    font-weight: 800;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.popular-subject-grid .subject:hover {

    transform: translateY(-5px);

    border-color: #2563eb;

    box-shadow:
        0 14px 30px rgba(37, 99, 235, .14);
}


/* =========================================================
   POPULAR SUBJECT IMAGE
   ========================================================= */

.popular-subject-grid .subject img {

    display: block;

    width: 100%;
    height: 105px;

    object-fit: cover;

    border-radius: 12px;

    margin-bottom: 11px;
}


/* =========================================================
   SUBJECT NAME
   ========================================================= */

.popular-subject-grid .subject div {

    line-height: 1.3;
}


/* =========================================================
   BROWSE ALL SUBJECTS
   ========================================================= */

.browse-subject-section {

    margin-top: 10px;

    padding-bottom: 60px;
}


/* =========================================================
   CATEGORY / SUBJECT FILTER
   ========================================================= */

.subject-filter {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 25px;

    position: relative;

    z-index: 20;
}


/* =========================================================
   SELECT BOX
   ========================================================= */

.subject-select-box {

    position: relative;

    z-index: 21;

    padding: 20px;

    background: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius: 16px;

    box-shadow:
        0 6px 18px rgba(15, 23, 42, .06);
}


/* =========================================================
   LABEL
   ========================================================= */

.subject-select-box label {

    display: block;

    margin-bottom: 9px;

    color: #172033;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   SELECT
   ========================================================= */

.subject-select-box select {

    display: block;

    width: 100%;

    height: 50px;

    padding:
        0 14px;

    border:
        1px solid #d8e0ea;

    border-radius: 11px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    outline: none;

    appearance: auto;

    pointer-events: auto !important;

    position: relative;

    z-index: 30;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.subject-select-box select:hover {

    border-color: #94a3b8;
}


.subject-select-box select:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .10);
}


/* =========================================================
   DISABLED SUBJECT SELECT
   ========================================================= */

.subject-select-box select:disabled {

    background: #f8fafc;

    color: #94a3b8;

    cursor: not-allowed;

    opacity: 1;
}


/* =========================================================
   SELECTED SUBJECT
   ========================================================= */

.selected-subject-display {

    display: flex;

    align-items: flex-start;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 10px;
}


/* =========================================================
   SELECTED SUBJECT CARD
   ========================================================= */

.selected-subject-display .selected-subject-card {

    width: 230px;

    min-height: 65px;

    padding: 18px;

    border:
        1px solid #dbe4ef;

    border-radius: 14px;

    background: #ffffff;

    color: #172033;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, .06);

    transition: .2s ease;
}


.selected-subject-display .selected-subject-card:hover {

    transform: translateY(-3px);

    border-color: #2563eb;

    color: #2563eb;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .12);
}


/* =========================================================
   KEEP ORIGINAL SUBJECT GRID BEHAVIOR
   ========================================================= */

.subject-grid {

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   TUTOR MODAL
   ========================================================= */

.tutor-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 999999;

    background:
        rgba(15, 23, 42, .72);

    backdrop-filter: blur(5px);

    padding: 20px;

    overflow-y: auto;
}


.tutor-modal.active {

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .popular-subject-grid,
    .subject-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .subject-filter {

        grid-template-columns: 1fr;
    }

    .popular-subject-grid,
    .subject-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .popular-subject-grid,
    .subject-grid {

        grid-template-columns: 1fr;
    }

    .subject-select-box {

        padding: 15px;
    }

    .popular-subject-grid .subject {

        min-height: 145px;
    }

}
/* =========================================================
   TUTOR MODAL
   ========================================================= */

.tutor-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.72);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* ACTIVE */

.tutor-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   MODAL BOX
   ========================================================= */

.tutor-modal-box {
    position: relative;

    width: 100%;
    max-width: 850px;

    max-height: 85vh;

    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30);

    transform: translateY(25px) scale(0.96);

    transition:
        transform 0.3s ease;
}


.tutor-modal.active .tutor-modal-box {
    transform: translateY(0) scale(1);
}


/* =========================================================
   HEADER
   ========================================================= */

.tutor-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 25px 30px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


.tutor-modal-header h3 {
    margin: 0;

    font-size: 28px;

    font-weight: 800;

    color: #172033;
}


.tutor-modal-header p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.tutor-modal-close {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    color: #172033;

    font-size: 25px;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}


.tutor-modal-close:hover {
    background: #ef4444;

    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.tutor-modal-body {
    padding: 30px;

    max-height: calc(85vh - 100px);

    overflow-y: auto;

    background: #ffffff;
}


/* =========================================================
   LOADING
   ========================================================= */

.modal-loading {
    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;

    color: #64748b;

    font-size: 16px;
}


.spinner {
    width: 42px;
    height: 42px;

    border: 4px solid #e2e8f0;

    border-top-color: #2563eb;

    border-radius: 50%;

    animation: tutorhubSpin 0.8s linear infinite;
}


@keyframes tutorhubSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   EMPTY RESULT
   ========================================================= */

.modal-empty {
    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;
}


.modal-empty-icon {
    font-size: 42px;

    margin-bottom: 12px;
}


.modal-empty h4 {
    margin: 0 0 8px;

    font-size: 24px;

    color: #172033;
}


.modal-empty p {
    margin: 0;

    color: #64748b;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .tutor-modal {
        padding: 12px;
    }


    .tutor-modal-box {
        max-width: 100%;

        max-height: 90vh;

        border-radius: 18px;
    }


    .tutor-modal-header {
        padding: 20px;
    }


    .tutor-modal-header h3 {
        font-size: 22px;
    }


    .tutor-modal-header p {
        font-size: 13px;
    }


    .tutor-modal-body {
        padding: 20px;

        max-height: calc(90vh - 90px);
    }


    .tutor-modal-close {
        width: 38px;
        height: 38px;

        font-size: 22px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .tutor-modal {
        padding: 8px;
    }


    .tutor-modal-box {
        border-radius: 16px;
    }


    .tutor-modal-header {
        padding: 16px;
    }


    .tutor-modal-header h3 {
        font-size: 20px;
    }


    .tutor-modal-body {
        padding: 16px;
    }

}
/* =========================================================
   TUTOR RESULTS INSIDE MODAL
   ========================================================= */

.tutor-modal-body {
    padding: 24px 28px;
    background: #f8fafc;
}


/* =========================================================
   TUTOR CARD
   ========================================================= */

.tutor-modal-body .tutor-card,
.tutor-modal-body .tutor-item,
.tutor-modal-body .tutor-result,
.tutor-modal-body .tutor-profile-card {
    display: flex;
    gap: 22px;

    width: 100%;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    padding: 18px;

    margin-bottom: 16px;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.tutor-modal-body .tutor-card:hover,
.tutor-modal-body .tutor-item:hover,
.tutor-modal-body .tutor-result:hover,
.tutor-modal-body .tutor-profile-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   TUTOR IMAGE
   ========================================================= */

.tutor-modal-body .tutor-card img,
.tutor-modal-body .tutor-item img,
.tutor-modal-body .tutor-result img,
.tutor-modal-body .tutor-profile-card img {

    width: 150px;
    height: 150px;

    min-width: 150px;

    object-fit: cover;

    border-radius: 14px;

    display: block;
}


/* =========================================================
   TUTOR INFORMATION
   ========================================================= */

.tutor-modal-body .tutor-info,
.tutor-modal-body .tutor-details,
.tutor-modal-body .tutor-content {

    flex: 1;

    min-width: 0;
}


.tutor-modal-body h3,
.tutor-modal-body h4 {

    margin: 0 0 6px;

    color: #172033;

    font-weight: 800;
}


.tutor-modal-body h3 {
    font-size: 22px;
}


.tutor-modal-body h4 {
    font-size: 20px;
}


/* =========================================================
   VERIFIED
   ========================================================= */

.tutor-modal-body .verified,
.tutor-modal-body .verified-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #16a34a;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 5px;
}


/* =========================================================
   SUBJECT
   ========================================================= */

.tutor-modal-body .tutor-subject {

    color: #64748b;

    font-size: 15px;

    margin-bottom: 10px;
}


/* =========================================================
   RATING
   ========================================================= */

.tutor-modal-body .rating,
.tutor-modal-body .tutor-rating {

    display: flex;

    align-items: center;

    gap: 7px;

    margin: 8px 0;

    color: #475569;

    font-size: 14px;
}


.tutor-modal-body .stars {

    color: #f59e0b;

    letter-spacing: 1px;
}


/* =========================================================
   RATE
   ========================================================= */

.tutor-modal-body .rate,
.tutor-modal-body .tutor-rate {

    margin-top: 6px;

    color: #475569;

    font-size: 15px;
}


.tutor-modal-body .rate strong,
.tutor-modal-body .tutor-rate strong {

    color: #172033;

    font-size: 18px;
}


/* =========================================================
   VIEW PROFILE BUTTON
   ========================================================= */

.tutor-modal-body a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    margin-top: 12px;

    padding: 10px 18px;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff !important;

    text-decoration: none;

    font-weight: 700;

    font-size: 14px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.tutor-modal-body a:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .tutor-modal-body {

        padding: 18px;
    }


    .tutor-modal-body .tutor-card,
    .tutor-modal-body .tutor-item,
    .tutor-modal-body .tutor-result,
    .tutor-modal-body .tutor-profile-card {

        flex-direction: column;

        padding: 16px;
    }


    .tutor-modal-body .tutor-card img,
    .tutor-modal-body .tutor-item img,
    .tutor-modal-body .tutor-result img,
    .tutor-modal-body .tutor-profile-card img {

        width: 100%;

        height: 220px;

        min-width: 0;

        border-radius: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .tutor-modal-body {

        padding: 12px;
    }


    .tutor-modal-body .tutor-card img,
    .tutor-modal-body .tutor-item img,
    .tutor-modal-body .tutor-result img,
    .tutor-modal-body .tutor-profile-card img {

        height: 190px;
    }


    .tutor-modal-body h3 {

        font-size: 20px;
    }

}
/* =========================================================
   TUTOR LIST INSIDE MODAL
   ========================================================= */

.tutor-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
    background: #f8fafc;
}


/* =========================================================
   TUTOR CARD
   ========================================================= */

.tutor-card {
    display: flex;
    align-items: center;
    gap: 20px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    padding: 18px;

    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.tutor-card:hover {
    transform: translateY(-3px);

    border-color: #2563eb;

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.14);
}


/* =========================================================
   PROFILE IMAGE
   ========================================================= */

.tutor-card-image {
    width: 110px;
    height: 110px;

    flex: 0 0 110px;

    border-radius: 16px;

    overflow: hidden;

    background: #e2e8f0;

    border: 3px solid #eff6ff;
}

.tutor-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* Placeholder */

.tutor-card-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;

    color: #64748b;
    background: #f1f5f9;
}


/* =========================================================
   TUTOR INFORMATION
   ========================================================= */

.tutor-card-info {
    flex: 1;
    min-width: 0;
}

.tutor-card-info h4 {
    margin: 3px 0 5px;

    font-size: 21px;
    font-weight: 800;

    color: #172033;
}

.tutor-card-subject {
    margin: 0 0 8px;

    font-size: 14px;
    font-weight: 600;

    color: #64748b;
}


/* =========================================================
   VERIFIED BADGE
   ========================================================= */

.tutor-verified {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    font-size: 13px;
    font-weight: 700;

    color: #16a34a;

    margin-bottom: 3px;
}


/* =========================================================
   RATING
   ========================================================= */

.tutor-rating {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 7px 0;

    font-size: 14px;

    color: #475569;
}

.tutor-rating-stars {
    color: #f59e0b;

    letter-spacing: 1px;
}

.tutor-rating-count {
    color: #64748b;
}


/* =========================================================
   RATE
   ========================================================= */

.tutor-rate {
    font-size: 15px;

    color: #475569;

    margin-top: 5px;
}

.tutor-rate strong {
    color: #172033;

    font-size: 17px;
}


/* =========================================================
   CARD ACTION
   ========================================================= */

.tutor-card-action {
    flex: 0 0 auto;
}

.tutor-view-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 125px;

    padding: 11px 18px;

    border-radius: 10px;

    background: #2563eb;
    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tutor-view-profile:hover {
    background: #1d4ed8;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.25);
}


/* =========================================================
   NO TUTORS
   ========================================================= */

.modal-empty {
    padding: 55px 25px;

    text-align: center;

    background: #ffffff;
}

.modal-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    font-size: 30px;
}

.modal-empty h4 {
    margin: 0 0 8px;

    font-size: 23px;
    font-weight: 800;

    color: #172033;
}

.modal-empty p {
    margin: 0;

    color: #64748b;
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.tutor-modal-body {
    padding: 0 !important;

    background: #f8fafc;
}


/* =========================================================
   LOADING
   ========================================================= */

.modal-loading {
    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #64748b;

    background: #ffffff;
}

.spinner {
    width: 35px;
    height: 35px;

    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;

    border-radius: 50%;

    animation: tutorSpin 0.8s linear infinite;
}

@keyframes tutorSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .tutor-card {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .tutor-card-info {
        flex: 1 1 calc(100% - 130px);
    }

    .tutor-card-action {
        width: 100%;
        margin-top: 5px;
    }

    .tutor-view-profile {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .tutor-list {
        padding: 15px;
        gap: 14px;
    }

    .tutor-card {
        display: block;

        padding: 15px;

        border-radius: 15px;
    }

    .tutor-card-image {
        width: 90px;
        height: 90px;

        margin-bottom: 12px;
    }

    .tutor-card-info h4 {
        font-size: 19px;
    }

    .tutor-card-subject {
        font-size: 13px;
    }

    .tutor-rating {
        font-size: 13px;
    }

    .tutor-rate {
        font-size: 14px;
    }

    .tutor-rate strong {
        font-size: 16px;
    }

}
/* TUTOR PROFILE IMAGE */
.tutor-card-image {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;

    border-radius: 14px;
    overflow: hidden;

    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.tutor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =========================================================
   TUTOR LIST - AJAX MODAL
   ========================================================= */

.modal-tutor-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 20px;

    background: #f8fafc;
}


/* =========================================================
   TUTOR CARD
   ========================================================= */

.modal-tutor-card {
    width: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.modal-tutor-card:hover {
    transform: translateY(-2px);

    border-color: #2563eb;

    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   TOP SECTION
   ========================================================= */

.modal-tutor-top {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 18px;
}


/* =========================================================
   PHOTO WRAPPER
   ========================================================= */

.modal-tutor-photo-wrap {
    position: relative;

    width: 82px;
    height: 82px;

    min-width: 82px;
    max-width: 82px;

    flex-shrink: 0;
}


/* =========================================================
   TUTOR PHOTO
   ========================================================= */

.modal-tutor-photo {
    width: 82px !important;
    height: 82px !important;

    max-width: 82px !important;
    max-height: 82px !important;

    min-width: 82px;
    min-height: 82px;

    display: block;

    object-fit: cover;

    border-radius: 14px;

    border: 2px solid #e2e8f0;

    background: #f1f5f9;
}


/* =========================================================
   VERIFIED BADGE
   ========================================================= */

.modal-verified {
    position: absolute;

    left: 50%;
    bottom: -9px;

    transform: translateX(-50%);

    white-space: nowrap;

    padding: 3px 8px;

    border-radius: 20px;

    background: #ecfdf5;

    border: 1px solid #bbf7d0;

    color: #15803d;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   TUTOR INFORMATION
   ========================================================= */

.modal-tutor-info {
    flex: 1;

    min-width: 0;
}

.modal-tutor-info h4 {
    margin: 0 0 4px;

    color: #172033;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.25;

    word-break: break-word;
}


/* =========================================================
   SUBJECT
   ========================================================= */

.modal-tutor-subject {
    margin: 0 0 7px;

    color: #64748b;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   RATING
   ========================================================= */

.modal-rating {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    color: #f59e0b;

    font-size: 14px;
    font-weight: 700;
}

.modal-rating span {
    color: #64748b;

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   BOTTOM DETAILS
   ========================================================= */

.modal-tutor-details {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px 18px;

    background: #f8fafc;

    border-top: 1px solid #e2e8f0;
}


/* =========================================================
   RATE
   ========================================================= */

.modal-rate-box {
    display: flex;
    align-items: baseline;

    flex-wrap: wrap;

    gap: 5px;
}

.modal-rate-label {
    color: #64748b;

    font-size: 13px;
}

.modal-rate-box strong {
    color: #172033;

    font-size: 17px;
    font-weight: 800;
}

.modal-rate-box small {
    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   VIEW PROFILE BUTTON
   ========================================================= */

.modal-profile-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 120px;

    padding: 9px 16px;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.modal-profile-btn:hover {
    background: #1d4ed8;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(37, 99, 235, 0.22);
}


/* =========================================================
   EMPTY RESULT
   ========================================================= */

.modal-empty {
    padding: 55px 25px;

    text-align: center;

    background: #ffffff;
}

.modal-empty-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    font-size: 28px;
}

.modal-empty h4 {
    margin: 0 0 8px;

    color: #172033;

    font-size: 22px;
    font-weight: 800;
}

.modal-empty p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .modal-tutor-grid {
        padding: 12px;
        gap: 12px;
    }

    .modal-tutor-top {
        gap: 13px;

        padding: 15px;
    }

    .modal-tutor-photo-wrap {
        width: 65px;
        height: 65px;

        min-width: 65px;
        max-width: 65px;
    }

    .modal-tutor-photo {
        width: 65px !important;
        height: 65px !important;

        max-width: 65px !important;
        max-height: 65px !important;

        min-width: 65px;
        min-height: 65px;

        border-radius: 12px;
    }

    .modal-verified {
        bottom: -8px;

        padding: 2px 6px;

        font-size: 9px;
    }

    .modal-tutor-info h4 {
        font-size: 17px;
    }

    .modal-tutor-subject {
        font-size: 12px;
    }

    .modal-rating {
        font-size: 12px;
    }

    .modal-rating span {
        font-size: 11px;
    }

    .modal-tutor-details {
        align-items: stretch;

        flex-direction: column;

        gap: 10px;

        padding: 12px 15px;
    }

    .modal-rate-box {
        justify-content: flex-start;
    }

    .modal-profile-btn {
        width: 100%;

        padding: 10px;
    }
}