:root {
    --teachers-bg: #f7f9ff;
    --teachers-surface: #ffffff;
    --teachers-surface-2: #f1f5ff;
    --teachers-border: rgba(15, 23, 42, 0.08);
    --teachers-accent: #4f46e5;
    --teachers-accent-2: #7c3aed;
    --teachers-text: #0f172a;
    --teachers-muted: #64748b;
}

body.dark-mode {
    --teachers-bg: #07111f;
    --teachers-surface: #0e1729;
    --teachers-surface-2: #13233c;
    --teachers-border: rgba(255, 255, 255, 0.08);
    --teachers-text: #f8fafc;
    --teachers-muted: #94a3b8;
}

.teachers-page {
    padding: 64px 20px 96px;
    background: linear-gradient(135deg, var(--teachers-bg) 0%, rgba(79, 70, 229, 0.04) 100%);
    min-height: 100vh;
}

.teachers-hero {
    max-width: 1200px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    padding: 32px;
    border-radius: 28px;
    background: var(--teachers-surface);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--teachers-border);
}

.teachers-hero__badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.15));
    color: var(--teachers-accent);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.teachers-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 14px;
    color: var(--teachers-text);
    line-height: 1.5;
}

.teachers-hero p {
    color: var(--teachers-muted);
    font-size: 1rem;
    line-height: 2;
    max-width: 620px;
}

.teachers-hero__stats {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.teachers-hero__stats > div {
    flex: 1;
    min-width: 140px;
    background: var(--teachers-surface-2);
    border: 1px solid var(--teachers-border);
    border-radius: 18px;
    padding: 16px;
}

.teachers-hero__stats strong {
    display: block;
    font-size: 1.3rem;
    color: var(--teachers-text);
}

.teachers-hero__stats span {
    color: var(--teachers-muted);
    font-size: 0.95rem;
}

.teachers-hero__visual {
    display: grid;
    gap: 16px;
    align-content: center;
}

.teachers-hero__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--teachers-border);
}

.teachers-hero__card i {
    font-size: 1.4rem;
    color: var(--teachers-accent);
    background: rgba(255,255,255,0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.teachers-hero__card strong {
    display: block;
    color: var(--teachers-text);
    margin-bottom: 2px;
}

.teachers-hero__card span {
    color: var(--teachers-muted);
    font-size: 0.9rem;
}

.teachers-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.teacher-card {
    background: var(--teachers-surface);
    border: 1px solid var(--teachers-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.teacher-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.teacher-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teachers-accent), var(--teachers-accent-2));
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.3rem;
    overflow: hidden;
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    margin: 0 0 6px;
    color: var(--teachers-text);
    font-size: 1.15rem;
}

.teacher-card p {
    margin: 0;
    color: var(--teachers-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.teacher-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.teacher-card__meta span {
    font-size: 0.9rem;
    color: var(--teachers-muted);
    background: var(--teachers-surface-2);
    padding: 8px 12px;
    border-radius: 999px;
}

.teacher-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--teachers-accent), var(--teachers-accent-2));
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.teacher-card__btn:hover {
    color: white;
    opacity: 0.95;
}

.teachers-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    border-radius: 24px;
    background: var(--teachers-surface);
    border: 1px dashed var(--teachers-border);
    color: var(--teachers-muted);
}

.teachers-empty i {
    font-size: 2rem;
    color: var(--teachers-accent);
    margin-bottom: 12px;
}

@media (max-width: 960px) {
    .teachers-hero {
        grid-template-columns: 1fr;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .teachers-page {
        padding: 32px 14px 70px;
    }

    .teachers-hero {
        padding: 22px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }
}
