.teacher-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.teacher-detail-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.teacher-detail-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
}

.teacher-detail-info {
    flex: 1;
}

.teacher-detail-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.teacher-detail-content {
    line-height: 1.6;
    color: #555;
}

.related-title {
    font-size: 1.8em;
    margin: 40px 0 20px;
    color: #333;
}

.teacher-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cột cố định */
    gap: 20px;
}

.teacher-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 0;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
	max-height:300px;
}

.teacher-info {
    padding: 15px;
}

.teacher-name {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: #333;
}

.teacher-quote {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 10px;
}

.teacher-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.teacher-link:hover {
    text-decoration: underline;
}

.animate-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .teacher-list-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên tablet */
    }
}

@media (max-width: 576px) {
    .teacher-list-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }

    .teacher-detail-layout {
        flex-direction: column;
    }

    .teacher-detail-img img {
        max-width: 100%;
    }

    .teacher-detail-title {
        font-size: 2em;
    }

    .related-title {
        font-size: 1.5em;
    }
}