.teacher-list-wrap {
    width: 100%;
}

.teacher-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.teacher-item {
    width: 33.3333%;
    padding: 15px;
    box-sizing: border-box;
}

.teacher-card {
    height: 100%;
    border-radius: 25px;
    background-color: #f5f5f5;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.teacher-item:hover .teacher-card {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.teacher-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.teacher-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    opacity: 1;
    transform: none;
}

.teacher-actions a {
    flex: 1;
    white-space: nowrap;
}



.teacher-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-find {
    background: #ed3521;
    color: #fff;
}

.btn-find:hover {
    background: #00044a;
    color: #fff;

}

.btn-profile {
    border: 1px solid #ed3521;
    color: #ed3521;
    background: transparent;
}

.btn-profile:hover {
    background: #00044a;
    border: 1px solid #00044a;

    color: #fff;
}


/* ======================
   TEACHER CARD CORE
====================== */

.teacher-card {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background-color: #f5f5f5;
    overflow: hidden;
    position: relative;
    transition: all .3s ease;
}

/* Hover card */
.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* ======================
   IMAGE AREA
====================== */

.image-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    row-gap: 5px;
}

/* Background đỏ phía trên */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ed3521;
    left: 0;
    top: 0;
    border-radius: 25px 25px 0 25px;
    z-index: 1;
}

/* Góc bo đặc trưng */
.overlay::before,
.overlay::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    right: 0;
    bottom: -40px;
    background-color: #ed3521;
}

.overlay::after {
    border-radius: 0 25px 0 0;
    background-color: #f5f5f5;
}

/* ======================
   AVATAR
====================== */

.card-image {
    position: relative;
    z-index: 2;
    height: 200px;
    width: 200px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
}

.card-image .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ed3521;
}

/* ======================
   INFO
====================== */

.teacher-info {
    padding: 16px;
    position: relative;
    z-index: 2;
}

.teacher-name {
    font-size: 18px;
    margin-bottom: 10px;
}

.teacher-desc {
    padding-left: 18px;
    margin: 0;
}

.teacher-desc li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}


@media (max-width: 1024px) {
    .teacher-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .teacher-item {
        width: 100%;
    }
}
