/* ============================================ */
/* СТИЛИ СТРАНИЦЫ УЧИТЕЛЯ (teacher.html)        */
/* ============================================ */

/* Используем переменные из корневого файла, но добавляем локальные */
:root {
    --bg-teacher-hero: #F0F3FF; /* Светлый фон для hero */
    --placeholder-bg: #E0E0E0;  /* Серый фон заглушек */
    --placeholder-border: #CCCCCC;
}

/* --- ОБЩИЕ ЗАГЛУШКИ ДЛЯ КАРТИНОК --- */
[class$="-placeholder"] {
    background-color: var(--placeholder-bg);
    border: 2px dashed var(--placeholder-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

[class$="-placeholder"]:hover {
    background-color: #d6d6d6;
    border-color: #999;
}

/* Текст внутри заглушки */
[class$="-placeholder"] span {
    padding: 20px;
}

/* --- 1. HERO SECTION --- */
.teacher-hero {
    padding: 80px 0;
    background-color: var(--bg-teacher-hero);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-image-placeholder {
    flex: 1;
    height: 400px; /* Фиксированная высота для заглушки */
    width: 100%;
}

/* --- 2. STATS BAR --- */
.stats-bar {
    background-color: var(--primary-blue);
    padding: 40px 0;
    color: white;
}

.stats-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background-color: rgba(255,255,255,0.3);
}

/* --- 3. FEATURE SECTIONS (Шахматка) --- */
.feature-section {
    padding: 100px 0;
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Реверс для четных блоков */
.feature-section.reverse .feature-container {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
}

.feature-image-placeholder {
    flex: 1;
    height: 350px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- 4. TESTIMONIALS (Карусель) --- */
.testimonials-section {
    padding: 80px 0;
    background-color: #F8F9FA;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    display: none; /* Скрываем все */
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeEffect 0.5s;
    width: 100%;
}

.testimonial-card.active {
    display: block; /* Показываем активный */
}

@keyframes fadeEffect {
    from {opacity: 0.4;} 
    to {opacity: 1;}
}

.quote-icon {
    font-size: 60px;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 20px;
    font-family: serif;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--placeholder-bg);
    border: 1px dashed var(--placeholder-border);
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-gray);
}

/* Кнопки навигации карусели */
.nav-btn {
    background: white;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Точки индикации */
.dots-indicator {
    margin-top: 30px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* --- 5. FAQ (Аккордеон) --- */
.faq-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.faq-question .plus {
    font-size: 24px;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.faq-question.active .plus {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- 6. CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 768px) {
    .hero-container,
    .feature-container, 
    .stats-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .feature-section.reverse .feature-container {
        flex-direction: column; /* Отключаем реверс на мобилках */
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .stat-divider {
        display: none;
    }
    
    .hero-image-placeholder,
    .feature-image-placeholder {
        height: 250px;
    }
    /* Добавьте в teacher/style.css */

.hero-img {
    flex: 1;              /* Занимает свободное место, как и заглушка */
    height: 400px;        /* Та же высота, что была у заглушки */
    width: 100%;          /* Растягивается на всю ширину блока */
    object-fit: cover;    /* ВАЖНО: Картинка заполнит блок, не искажаясь (обрежется по краям) */
    border-radius: 16px;  /* Скругление углов, как у заглушки */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Красивая тень (опционально) */
}

/* Для картинок в блоках преимуществ (ниже по странице) используйте этот класс: */
.feature-img {
    flex: 1;
    height: 350px;        /* У заглушек преимуществ высота была 350px */
    width: 100%;
    object-fit: cover;
    border-radius: 24px;  /* У этих блоков скругление было больше */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
}