/* 1. Контейнер */
.teachers-scroll-wrapper { position: relative; }
.teachers-scroll-container {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 1rem 1.5rem;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.teachers-scroll-container::-webkit-scrollbar { display: none; }
.teachers-scroll-container.grabbing { cursor: grabbing; }

/* 2. Обертка карточки */
.teacher-item {
    flex: 0 0 560px;
    min-width: 560px;
    align-self: stretch;
    display: flex;
}

/* 3. Сама карточка */
.teacher-card {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    padding: 1rem;
    width: 100%;
    flex: 1;
}

/* 4. Левая колонка */
.teacher-col-left {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 1rem;
    border-right: 1px solid #eee;
}

/* 5. Правая колонка */
.teacher-col-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.teacher-avatar {
    width: 96px; height: 96px; border-radius: 50% !important; object-fit: cover;
    border: 3px solid var(--main-color-orange, #ff8c00); display: block; margin: 0 auto 0.75rem;
    background: #f0f0f0;
    transition: opacity 0.3s ease;
}
.teacher-avatar.loading { opacity: 0.4; }

.teacher-avatar-placeholder {
    width: 96px; height: 96px; border-radius: 50% !important;
    background: linear-gradient(135deg, var(--main-color-blue, #1a3a7a), #1a3a7a);
    border: 3px solid var(--main-color-orange, #ff8c00);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; font-weight: bold; margin: 0 auto 0.75rem;
}

.teacher-about-quote {
    background: #f8f9fa;
    border-left: 4px solid var(--main-color-orange, #ff8c00);
    padding: 0.6rem 0.8rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.75rem;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
}

.teacher-practice-block strong { font-size: 1rem; }
.teacher-practice-text {
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 0; font-size: 1rem; line-height: 1.3;
}

.teacher-link-btn {
    margin-top: auto;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.teacher-link-btn:hover {
    transform: translateX(3px);
}

/* 6. Кнопка-подсказка прокрутки (уникальный класс) */
.teachers-scroll-hint {
    display: flex;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--main-color-orange, #ff8c00);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 15;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--main-color-orange, #ff8c00);
    font-size: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.1s ease, background-color 0.2s ease, color 0.2s ease;
}

.teachers-scroll-hint.visible {
    opacity: 1;
    pointer-events: auto;
    animation: swipeHintTeachers 1.5s infinite ease-in-out;
}

.teachers-scroll-hint.visible:active,
.teachers-scroll-hint.visible:hover {
    animation: none;
    transform: translateY(-50%) scale(0.9);
    background: var(--main-color-orange, #ff8c00);
    color: #fff;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .teacher-item {
        flex: 0 0 85vw;
        min-width: 280px;
        align-self: stretch;
    }
    .teacher-card {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        flex: 1;
    }
    .teacher-col-left {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        align-items: center;
    }
    .teacher-col-right {
        padding-left: 0;
        text-align: center;
    }
    .teacher-avatar, .teacher-avatar-placeholder { width: 80px; height: 80px; font-size: 1.3rem; }

    .teacher-link-btn {
        align-self: center;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .teacher-about-quote { text-align: left; }
    .teacher-practice-block { text-align: left; }
}

@keyframes swipeHintTeachers {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(8px); }
}

/* Индикатор загрузки */
.teachers-scroll-loader {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.teachers-scroll-loader.visible { opacity: 1; }

.teachers-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(26, 58, 122, 0.2);
    border-radius: 50%;
    border-top-color: var(--main-color-orange, #ff8c00);
    animation: spinTeachers 1s ease-in-out infinite;
}
@keyframes spinTeachers {
    to { transform: rotate(360deg); }
}
