/* Section & Header */
.teachers-section { padding: 100px 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 40px; }

/* Grid Layout - Smaller Cards */
.teachers-slider-wrapper { position: relative; }

.teachers-grid {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
}

/* Compact Card Design */
.teacher-card {
     flex: 0 0 calc(25% - 1.125rem); /* 🔥 EXACTLY 4 cards */
    background: var(--card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}


.teacher-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Image - Professional Crop */
.teacher-image-wrapper {
    position: relative;
    height: 220px; /* Reduced height */
    overflow: hidden;
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Modern subtle desaturation */
    transition: var(--transition);
}

.teacher-card:hover .teacher-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Info Styling */
.teacher-info { padding: 1.2rem; text-align: center; }

.teacher-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.teacher-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.teacher-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Mobile Enhancements (Smooth Swap) */
@media (max-width: 768px) {
    .teachers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0 20px 0;
        gap: 1rem;
    }

    .teachers-grid::-webkit-scrollbar { display: none; }

    .teacher-card {
        min-width: 260px; /* Force visibility of next card to encourage swipe */
        scroll-snap-align: center;
        margin: 0 5px;
    }

    .slider-pagination {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--border);
        transition: 0.3s;
    }

    .dot.active {
        width: 18px;
        background: var(--primary);
        border-radius: 10px;
    }
}