/* Tutors Page Styles */

/* Search/Filter Section */
.tutors-search-area {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.tutors-filter-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.tutors-filter-card h2 {
    color: #002147;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.tutors-filter-card h2 i {
    color: #FFB707;
    margin-right: 10px;
}

.filter-form-group {
    margin-bottom: 20px;
}

.filter-form-group label {
    display: block;
    font-weight: 600;
    color: #002147;
    margin-bottom: 10px;
    font-size: 15px;
}

.filter-form-group label i {
    color: #FFB707;
    margin-right: 8px;
}

.filter-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8eef5;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

.filter-form-group select:focus {
    outline: none;
    border-color: #FFB707;
    box-shadow: 0 0 0 3px rgba(255, 183, 7, 0.1);
}

.filter-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to bottom right, #FFB707, #FBDD95);
    border: none;
    border-radius: 50px;
    color: #002147;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 183, 7, 0.3);
}

.filter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 183, 7, 0.4);
}

.filter-submit-btn i {
    margin-right: 8px;
}

/* Tutors Grid */
.tutors-grid-area {
    padding: 60px 0;
    background: #f8f9fa;
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tutor-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tutor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Subject Badge - компактный лейбл в углу */
.tutor-subject-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.tutor-card:hover .tutor-subject-badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tutor-subject-badge i {
    font-size: 22px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tutor-card .tutor-thumb {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.tutor-card .tutor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tutor-card:hover .tutor-thumb img {
    transform: scale(1.1);
}

.tutor-card .tutor-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutor-card:hover .tutor-social {
    opacity: 1;
}

.tutor-card .tutor-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002147;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tutor-card .tutor-social a:hover {
    background: #FFB707;
    color: #ffffff;
    transform: translateY(-3px);
}

.tutor-card .tutor-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tutor-card .tutor-subject {
    color: #FFB707;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tutor-card .tutor-name {
    color: #002147;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tutor-card .tutor-name a {
    color: #002147;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tutor-card .tutor-name a:hover {
    color: #FFB707;
}

.tutor-card .tutor-view-btn {
    margin-top: auto;
    padding: 12px 30px;
    background: linear-gradient(to bottom right, #002147, #003d7a);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.tutor-card .tutor-view-btn:hover {
    background: linear-gradient(to bottom right, #FFB707, #FBDD95);
    color: #002147;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 183, 7, 0.3);
}

/* Tutor Details Page */
.tutor-details-area {
    padding: 60px 0;
}

.tutor-details-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tutor-details-thumb {
    position: relative;
    background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
    padding: 40px;
}

/* Subject Badge on details page */
.tutor-details-subject-badge {
    position: absolute;
    top: 55px;
    right: 55px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tutor-details-subject-badge i {
    font-size: 22px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tutor-details-thumb img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tutor-details-thumb .tutor-badge {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
}

.tutor-details-thumb .tutor-badge h4 {
    color: #002147;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tutor-details-thumb .tutor-badge p {
    color: #666;
    margin-bottom: 15px;
}

.tutor-details-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tutor-details-social a {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002147;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tutor-details-social a:hover {
    background: #FFB707;
    color: #ffffff;
    transform: translateY(-3px);
}

.tutor-details-content {
    padding: 40px;
}

.tutor-tabs {
    margin-bottom: 40px;
    border-bottom: none;
}

.tutor-tabs .nav-pills {
    display: flex;
    gap: 0;
    border: none;
    border-bottom: 2px solid #e8eef5;
}

.tutor-tabs .nav-pills li {
    flex: 1;
}

.tutor-tabs .nav-pills li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.tutor-tabs .nav-pills li a i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.tutor-tabs .nav-pills li a:hover {
    color: #002147;
    background: rgba(255, 183, 7, 0.05);
}

.tutor-tabs .nav-pills li a:hover i {
    transform: translateY(-2px);
}

.tutor-tabs .nav-pills li.active a {
    color: #002147;
    background: transparent;
    border-bottom-color: #FFB707;
    font-weight: 700;
}

.tutor-tabs .nav-pills li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.tutor-tabs .nav-pills li.active a i {
    color: #FFB707;
}

.tutor-tab-content {
    padding: 30px 0;
}

.tutor-info-text {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.tutor-info-text h3 {
    color: #002147;
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 15px;
}

.tutor-info-text ul {
    list-style: none;
    padding: 0;
}

.tutor-info-text ul li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.tutor-info-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFB707;
    font-weight: bold;
}

/* Lessons Table */
.tutor-lessons-table {
    background: #ffffff;
    border-radius: 15px;
    overflow-x: visible;
    overflow-y: visible;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tutor-lessons-table table {
    margin: 0;
    width: 100%;
    table-layout: auto;
}

.tutor-lessons-table thead {
    background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
}

.tutor-lessons-table thead th {
    color: #ffffff;
    font-weight: 600;
    padding: 15px 10px;
    border: none;
    text-align: center;
}

.tutor-lessons-table tbody tr {
    transition: background 0.3s ease;
}

.tutor-lessons-table tbody tr:hover {
    background: #f8f9fa;
}

.tutor-lessons-table tbody td {
    padding: 15px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e8eef5;
    text-align: center;
}

.tutor-lessons-table .lesson-enroll-btn {
    padding: 8px 20px;
    background: linear-gradient(to bottom right, #FFB707, #FBDD95);
    color: #002147;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tutor-lessons-table .lesson-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 183, 7, 0.3);
}

.tutor-lessons-table .no-seats {
    color: #dc3545;
    font-weight: 600;
}

/* Subject badges in table */
.tutor-lessons-table .subject-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    margin: 2px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.tutor-lessons-table .subject-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.no-lessons-message {
    text-align: center;
    padding: 60px 20px;
}

.no-lessons-message i {
    font-size: 80px;
    color: #e8eef5;
    margin-bottom: 20px;
}

.no-lessons-message h3 {
    color: #002147;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-lessons-message p {
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .tutors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .tutor-card .tutor-thumb {
        height: 300px;
    }
    
    .tutors-filter-card {
        padding: 30px 20px;
    }
    
    .tutor-details-content {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .tutors-grid {
        grid-template-columns: 1fr;
    }
    
    .tutor-card .tutor-thumb {
        height: 400px;
    }
    
    .tutors-search-area {
        padding: 30px 0;
    }
    
    .tutors-filter-card h2 {
        font-size: 22px;
    }
    
    .tutor-tabs .nav-pills {
        flex-direction: column;
    }
    
    .tutor-tabs .nav-pills li a {
        border-radius: 10px;
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .tutor-tabs .nav-pills li.active a {
        border-left-color: #FFB707;
        border-bottom-color: transparent;
    }
    
    .tutor-tabs .nav-pills li.active a::after {
        display: none;
    }
    
    /* Details page badge on mobile */
    .tutor-details-subject-badge {
        top: 50px;
        right: 50px;
        width: 45px;
        height: 45px;
    }
    
    .tutor-details-subject-badge i {
        font-size: 20px;
    }
    
    /* Subject badges in table on mobile */
    .tutor-lessons-table .subject-badge {
        font-size: 10px;
        padding: 4px 8px;
        margin: 1px;
    }
    
    /* Mobile table - enable scroll */
    .tutor-lessons-table {
        font-size: 12px;
        border-radius: 10px;
        margin: 0 -10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tutor-lessons-table table {
        min-width: 700px;
        table-layout: fixed;
    }
    
    .tutor-lessons-table thead th {
        font-size: 11px;
        padding: 10px 5px;
        white-space: nowrap;
    }
    
    .tutor-lessons-table tbody td {
        padding: 8px 5px;
        font-size: 11px;
    }
    
    .tutor-lessons-table .lesson-enroll-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .tutor-lessons-table .lesson-enroll-btn i {
        display: none;
    }
    
    /* Scroll hint */
    .tutor-tab-content {
        position: relative;
    }
    
    .tutor-lessons-table::after {
        content: '← Прокрутите для просмотра →';
        display: block;
        text-align: center;
        padding: 10px;
        background: linear-gradient(to right, rgba(255, 183, 7, 0.1), rgba(255, 183, 7, 0.05), rgba(255, 183, 7, 0.1));
        color: #666;
        font-size: 12px;
        font-weight: 600;
        border-top: 1px solid #FFB707;
    }
}

/* Tablet optimization */
@media (min-width: 768px) and (max-width: 991px) {
    .tutor-lessons-table thead th,
    .tutor-lessons-table tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .tutor-lessons-table .lesson-enroll-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

