.teachers {
    padding: 2rem 2rem;
    background: #e4fae5;
    margin: 2rem auto;
    border-radius: 8px;
    text-align: center;
}

.teachers h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #8D493A;
}

.teachers p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0;
}

.teacher-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 2rem 8rem;
    justify-content: center;
}

.teacher-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    min-width: 200px;
    max-width: 250px;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #254336;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.teacher-card h2 {
    margin: 10px 0 5px;
    font-size: 1.5em;
    color: #333333;
}

.teacher-card p {
    margin: 5px 0;
    color: #666666;
    font-size: 0.9em;
}

.teacher-card .subject {
    font-style: italic;
    color: #888888;
}

#viewAllTeachersBtn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 0;
    background-color: #8D493A;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

#viewAllTeachersBtn:hover {
    background-color: #fa927a;
    transform: scale(1.05);
}


/* Responsive Styles */
/* @media (max-width: 768px) {
    .teacher-section {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .teacher-card {
        min-width: 150px;
        max-width: 200px;
    }
} */
