/* Tata letak carousel */
#teacherCarousel .carousel-inner {
    padding: 20px 0;
}

.teacher-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.teacher-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 10px;
    width: 280px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-img {
    height: auto;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.teacher-img img {
    border-radius: 0;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-img img {
    transform: scale(1.05);
}

.teacher-info {
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 15px 10px;
    text-align: center;
}

.teacher-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.teacher-subject, .teacher-position {
    font-size: 14px;
    margin-bottom: 0;
    color: #6c757d;
}

.teacher-position {
    font-style: italic;
}

/* Navigasi carousel */
.carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 10;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(0,0,0,0.8);
    opacity: 1;
}

.carousel-indicators {
    bottom: -10px;
}

.carousel-indicators [data-bs-target] {
    background-color: #6c757d;
}

/* Responsivitas */
@media (max-width: 768px) {
    .teacher-row {
        gap: 10px;
    }
    .teacher-card {
        width: 200px;
    }
    .teacher-img img {
        height: 250px;
    }
}