
/* ===================================================================
   ONLINE CLASSES PAGE STYLES (FINAL REDESIGN WITH VIDEO)
   =================================================================== */

body.modal-open {
    overflow: hidden;
}

.online-classes-page {
    background-color: #ffffff;
}

/* --- Hero Section --- */
.hero-section-online-classes {
    padding: 100px 40px;
    background-color: #e7f0ff;
}
.hero-container-classes {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.hero-content-classes {
    max-width: 600px;
}
.hero-content-classes h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    color: #1c1d1f;
    margin: 0 0 20px 0;
}
.hero-content-classes p {
    font-size: 18px;
    line-height: 1.6;
    color: #343a40;
    margin-bottom: 30px;
}
.hero-cta-button-classes {
    display: inline-block;
    background-color: #1c1d1f;
    color: #fff;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hero-cta-button-classes:hover {
    background-color: #000;
    transform: translateY(-2px);
}
.hero-image-classes {
    position: relative;
}
.hero-image-classes img {
    max-width: 500px;
    height: auto;
    border-radius: 16px;
}

/* --- Stats Section --- */
.stats-section {
    background-color: #ffffff;
    padding: 40px 20px;
    border-bottom: 1px solid #e9ecef;
}
.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-item strong {
    font-size: 32px;
    font-weight: 800;
    color: #1c1d1f;
}
.stat-item span {
    font-size: 14px;
    color: #6c757d;
}

/* --- Embedded Find a Teacher Section --- */
.find-teacher-embedded-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}
.teacher-page-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- New Filter Bar Styles --- */
.filters-redesign {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}
.filter-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 160px;
    position: relative; 
}
.filter-item label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #343a40;
}
.filter-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    height: 45px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236c757d%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.6-3.6%205.4-7.9%205.4-12.9%200-5-1.8-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 14px top 50%;
    background-size: .65em auto;
}
.filter-item.more-filters-item {
    flex-grow: 0;
    flex-shrink: 0;
}
#more-filters-btn {
    padding: 10px 14px;
    height: 45px;
    font-size: 16px;
    font-weight: 600;
    color: #0d6efd;
    background: none;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
#more-filters-btn:hover,
#more-filters-btn.active {
    background-color: #0d6efd;
    color: #fff;
}
.additional-filters-container {
    display: none;      
    flex-basis: 100%; 
    gap: 16px;
}
.additional-filters-container .filter-item {
    flex: 1 1 200px;
    max-width: 240px;
}

/* =================================== */
/* FINAL Select2 Styles for Preply Look */
/* =================================== */
.select2-language-option {
    display: flex;
    align-items: center;
    font-size: 16px;
}
.language-flag {
    width: 20px;
    height: 15px;
    margin-right: 12px;
    border-radius: 2px;
}
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single {
    height: 45px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529;
    padding-left: 14px !important;
    padding-right: 30px !important;
    /* ADDED: These three lines truncate long text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #888 !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
    right: 5px;
}
.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
}
.select2-results__options {
    padding: 8px;
}
.select2-container--default .select2-results__option {
    padding: 10px 12px;
    border-radius: 6px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f1f3f5;
    color: #1c1d1f;
}
.select2-search--dropdown {
    display: none;
}


/* =================================== */
/* END: Select2 Styles               */
/* =================================== */

#teacher-count-header {
    margin-bottom: 20px;
}
#teacher-count-message {
    font-size: 24px;
    font-weight: 700;
}

/* --- Layout for Results --- */
.results-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}
#teacher-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.initial-loading-message {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

/* --- Teacher Card Design --- */
.tutor-card-redesign {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
    gap: 20px;
}
.tutor-card-redesign:hover {
    border-color: #1c1d1f;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.tutor-photo-redesign {
    flex-shrink: 0;
    width: 120px;
}
.tutor-photo-redesign img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}
.tutor-info-redesign {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.info-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.tutor-name-link {
    font-size: 20px;
    font-weight: 700;
    color: #1c1d1f;
    text-decoration: none;
}
.tutor-flag-redesign { width: 20px; }

.verified-badge-redesign {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #34A853;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.1);
}
.verified-badge-redesign svg {
    width: 16px;
    height: 16px;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #1c1d1f;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    z-index: 10;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.1s ease;
}
.verified-badge-redesign:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

.tutor-title-line { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.tutor-title { font-size: 14px; font-weight: 600; color: #343a40; }
.super-tutor-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    background-color: #e6f8f4;
    color: #008060;
}
.tutor-bio-redesign {
    font-size: 15px;
    line-height: 1.5;
    color: #495057;
    margin: 4px 0 16px 0;
}

.tutor-stats-redesign {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    text-align: right;
    border-left: 1px solid #f0f2f5;
    padding-left: 20px;
    min-width: 180px;
    justify-content: flex-start;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.price-line { color: #1c1d1f; white-space: nowrap; }
.price-line strong { font-size: 22px; font-weight: 800; }
.rating-line { color: #6c757d; white-space: nowrap; }
.lessons-line { color: #6c757d; white-space: nowrap; }

.reviews-line {
    color: #6c757d;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.reviews-line:hover {
    color: #0d6efd;
    text-decoration-color: #0d6efd;
}

.tutor-actions-redesign {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.book-trial-redesign, .send-message-redesign {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.book-trial-redesign {
    background: #0d6efd;
    color: #fff;
}
.book-trial-redesign:hover {
    background-color: #0b5ed7;
}
.send-message-redesign {
    background: #fff;
    border-color: #ced4da;
    color: #1c1d1f;
    cursor: pointer;
}
.send-message-redesign:hover {
    border-color: #1c1d1f;
    background-color: #f8f9fa;
}

/* --- Styles for Language Proficiency Levels --- */
.tutor-teaches-line.with-levels {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 8px;
    margin-top: 6px;
    font-size: 15px;
    color: #6c757d;
}
.teaches-label {
    font-weight: 600;
    color: #343a40;
    white-space: nowrap;
}
.languages-more-indicator {
    font-weight: 600;
    color: #495057;
    padding-left: 4px;
    white-space: nowrap;
}
.language-display {
    display: contents;
}
.language-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-name {
    color: #6c757d;
    white-space: nowrap;
}
.lang-level-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    line-height: 1;
}
.lang-level-tag.native {
    background-color: #e7f0ff;
    color: #0d6efd;
}
.lang-level-tag.proficient {
    background-color: #f1f3f5;
    color: #495057;
}

/* --- DYNAMIC VIDEO SIDEBAR CARD --- */
.sidebar-cta-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}
.sidebar-cta-card.with-video {
    padding: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 320px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease, top 0.2s ease-in-out;
    z-index: 10;
}
.sidebar-cta-card.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, visibility 0s 0s, transform 0.3s ease, top 0.2s ease-in-out;
}
.video-hover-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #f8f9fa;
}
.video-placeholder-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-placeholder-content img { max-width: 100px; height: auto; opacity: 0.5; }
.video-placeholder-content span { margin-top: 15px; color: #6c757d; font-weight: 500; }
.video-hover-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.sidebar-cta-card.is-playing .video-placeholder-content {
    opacity: 0;
    visibility: hidden;
}
.sidebar-cta-card.is-playing iframe {
    opacity: 1;
    visibility: visible;
}
.sidebar-cta-content { padding: 24px; text-align: left; }
.sidebar-cta-content h3 { font-size: 20px; margin: 0 0 10px 0; }
.sidebar-stats-list { list-style: none; padding: 0; margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 8px; }
.sidebar-stats-list li { font-size: 15px; color: #495057; display: flex; align-items: center; gap: 8px; }
.sidebar-stats-list strong { color: #1c1d1f; }
.view-schedule-btn-sidebar {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #ced4da;
    color: #1c1d1f;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.view-schedule-btn-sidebar:hover { border-color: #1c1d1f; background-color: #f8f9fa; }

/* --- Pagination Styles --- */
#pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
}
.pagination-list { display: flex; list-style: none; padding: 0; margin: 0; gap: 5px; }
.pagination-list li a, .pagination-list li span { display: block; padding: 10px 15px; min-width: 40px; text-align: center; border: 1px solid #ced4da; border-radius: 8px; text-decoration: none; color: #0d6efd; background-color: #fff; }
.pagination-list li.active span { background-color: #0d6efd; color: #fff; border-color: #0d6efd; }
.pagination-list li.disabled span { color: #ced4da; cursor: not-allowed; }

/* --- MODAL STYLES (SHARED) --- */
.availability-modal-overlay,
.reviews-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(28, 29, 31, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.availability-modal-content,
.reviews-modal-content {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex !important;
    flex-direction: column !important;
    max-height: 85vh !important;
    overflow: hidden !important;
}
.close-modal-btn {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 28px; color: #9ca3af;
    cursor: pointer; z-index: 10;
    transition: color 0.2s ease;
}
.close-modal-btn:hover { color: #6c757d; }

/* --- Availability Calendar Modal --- */
.availability-modal-content { max-width: 980px; }
.calendar-loader { text-align: center; padding: 50px; color: #6c757d; }
#modal-calendar-container { display: flex; flex-direction: column; flex-grow: 1; min-height: 0; padding: 20px; }
.calendar-top-header, .calendar-sub-header, .calendar-footer { flex-shrink: 0; }
.calendar-top-header { display: flex; justify-content: center; align-items: center; padding-bottom: 15px; }
.calendar-nav-btn { background: #0d6efd; border: 1px solid #0d6efd; color: #fff; border-radius: 50%; width: 32px; height: 32px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.calendar-nav-btn:hover { background-color: #0b5ed7; border-color: #0b5ed7; }
.range-label { font-size: 16px; font-weight: 500; color: #1c1d1f; margin: 0 15px; }
.calendar-sub-header { text-align: center; font-size: 12px; color: #64748b; margin-bottom: 15px; }
.calendar-grid-wrapper { flex-grow: 1 !important; overflow-y: auto !important; min-height: 0 !important; }
.today-marker-row { display: grid; grid-template-columns: 80px repeat(7, 1fr); padding: 0; margin-bottom: 5px; }
.today-marker-cell { text-align: center; height: 18px; }
.today-marker-label { display: inline-block; background-color: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.calendar-grid { display: grid; grid-template-columns: 80px repeat(7, 1fr); border-top: 1px solid #e2e8f0; }
.time-column, .day-column { display: flex; flex-direction: column; }
.day-column { border-left: 1px solid #e2e8f0; }
.day-header { text-align: center; padding: 10px 0; font-size: 12px; font-weight: 600; color: #475569; border-bottom: 1px solid #e2e8f0; background-color: #fff; position: sticky; top: 0; z-index: 5; height: 40px; display: flex; flex-direction: column; justify-content: center; }
.day-header.is-today { background-color: #f8f9fa; }
.day-header.is-today span { color: #4338ca; font-weight: 700; }
.time-label { height: 30px; font-size: 12px; color: #94a3b8; text-align: center; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; }
.time-slot { height: 30px; border-bottom: 1px solid #e2e8f0; }
.time-slot.available { background-color: #22c55e; cursor: pointer; transition: background-color 0.2s; }
.time-slot.available:hover { background-color: #16a34a; }
.time-slot.booked { background-color: #fee2e2; background-image: repeating-linear-gradient( -45deg, transparent, transparent 5px, #fecaca 5px, #fecaca 10px ); cursor: not-allowed; }
.calendar-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #e2e8f0; margin-top: -1px; }
.calendar-legend { display: flex; gap: 15px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.1); }
.swatch.available { background-color: #22c55e; }
.swatch.booked { background-color: #fee2e2; }
.swatch.not-working { background-color: #f8f9fa; border-color: #e2e8f0; }
#book-trial-modal-btn { background-color: #0d6efd; color: #fff; border: 1px solid #0d6efd; padding: 8px 16px; font-weight: 600; border-radius: 6px; transition: all 0.2s ease; }
#book-trial-modal-btn:hover:not(:disabled) { background-color: #0b5ed7; border-color: #0b5ed7; }
#book-trial-modal-btn:disabled { background-color: #e2e8f0; color: #9ca3af; cursor: not-allowed; border-color: #e2e8f0; }

/* --- Reviews Modal --- */
.reviews-modal-overlay { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.reviews-modal-overlay.visible { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s 0s; }
.reviews-modal-content { max-width: 600px; height: 550px; }
.reviews-modal-content .close-modal-btn { top: 15px; right: 20px; z-index: 20; }
.reviews-modal-header { padding: 20px 60px 20px 24px; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; }
#reviews-modal-title { margin: 0; font-size: 22px; color: #1c1d1f; }
#reviews-modal-filter { padding: 8px 12px; border-radius: 6px; border: 1px solid #ced4da; font-size: 14px; }
.reviews-modal-body { padding: 24px; overflow-y: auto; min-height: 0; }
.review-card-item { display: flex; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e9ecef; }
.review-card-item:last-child { border-bottom: none; margin-bottom: 0; }
.review-card-avatar { flex-shrink: 0; }
.review-card-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-card-avatar span { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: #e9ecef; font-weight: bold; color: #495057; }
.review-card-main-content { flex-grow: 1; min-width: 0; }
.review-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.review-author { font-weight: 700; color: #1c1d1f; margin-right: 8px; }
.review-date { font-size: 13px; color: #6c757d; text-align: right; flex-shrink: 0; white-space: nowrap; }
.review-rating { display: flex; align-items: center; }
.review-rating .star { color: #ced4da; font-size: 18px; }
.review-rating .star.filled { color: #f59e0b; }
.review-comment { margin: 8px 0; line-height: 1.6; color: #495057; word-wrap: break-word; }
.review-course { font-size: 13px; color: #6c757d; margin-top: 12px; }
.review-course span { font-weight: 600; color: #343a40; }
.no-reviews-message, .reviews-modal-body .initial-loading-message { text-align: center; padding: 40px; color: #6c757d; }

/* ===================================================================
   RESPONSIVE STYLES (ENHANCED FOR MOBILE)
   =================================================================== */

/* --- Desktop Large Screen Layout --- */
@media (min-width: 1200px) {
    .results-layout { grid-template-columns: 1fr 320px; }
    #teacher-cards-container { grid-column: 1 / 2; }
    #pagination-container { grid-column: 1 / 2; }
}

/* --- Hide Video Sidebar on Medium Screens and below --- */
@media (max-width: 1199px) {
    .sidebar-cta-card { display: none; }
}

/* --- Tablet and Smaller Mobile Styles --- */
@media (max-width: 768px) {
    .hero-section-online-classes { padding: 60px 20px; }
    .hero-container-classes { flex-direction: column; text-align: center; gap: 30px; }
    .hero-content-classes h1 { font-size: 48px; }
    .hero-image-classes { max-width: 80%; margin: 0 auto; }

    .stats-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
    .stat-item strong { font-size: 28px; }
    
    .find-teacher-embedded-section { padding: 40px 15px; }

    .tutor-card-redesign { flex-direction: column; gap: 16px; padding: 16px; }
    .tutor-photo-redesign { width: 100px; height: 100px; margin: 0 auto 10px auto; }
    .tutor-photo-redesign img { width: 100px; height: 100px; }
    .tutor-info-redesign { text-align: center; align-items: center; width: 100%; }
    .info-header, .tutor-title-line { justify-content: center; }
    
    .tutor-teaches-line.with-levels {
        flex-wrap: wrap;
        overflow: visible;
        justify-content: center;
    }
    .languages-more-indicator {
        display: none !important;
    }

    .tutor-stats-redesign { flex-direction: column; width: 100%; border-left: none; padding-left: 0; margin-top: 8px; gap: 16px; align-items: center; }
    .stat-row { flex-direction: column; gap: 8px; align-items: center; width: 100%; }
    .tutor-stats-redesign .stat-row { flex-direction: row; justify-content: center; gap: 20px; font-size: 13px; }
    .price-line strong { font-size: 20px; }

    .tutor-actions-redesign { flex-direction: column; align-items: center; width: 100%; margin-top: 0; }
    .book-trial-redesign, .send-message-redesign { width: 100%; max-width: 280px; }

    .availability-modal-content, .reviews-modal-content { width: 95%; max-height: 90vh; }
}

/* --- Small Mobile Specific Styles --- */
@media (max-width: 480px) {
    .hero-section-online-classes { padding: 40px 15px; }
    .hero-content-classes h1 { font-size: 36px; }
    .hero-content-classes p { font-size: 16px; }

    .stats-container { grid-template-columns: 1fr; }
    .stat-item strong { font-size: 24px; }

    #teacher-count-message { font-size: 20px; }
    .tutor-name-link { font-size: 18px; }
    .tutor-bio-redesign { font-size: 14px; }

    .range-label, .calendar-sub-header { font-size: 12px; }
    .time-label, .day-header { font-size: 11px; }

    .reviews-modal-header { flex-direction: column; gap: 10px; padding: 15px; }
    .reviews-modal-content .close-modal-btn { top: 5px; right: 10px; }
    #reviews-modal-title { font-size: 18px; }
    .review-card-item { flex-direction: column; align-items: center; text-align: center; }
    .review-card-header { flex-direction: column; align-items: center; gap: 4px; }
}