/* Teachers Section Styles */
.teachers {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.teacher-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3);
}

.teacher-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--gradient-1);
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.teacher-info h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.teacher-subject {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-1);
    align-self: flex-start;
}

.teacher-info p {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.teacher-qualification {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .teacher-image {
        height: 180px;
    }
    
    .teacher-info {
        padding: 1.2rem;
    }
    
    .teacher-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }
}
