.teacher-wrapper{ 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher-wrapper  .teacher-item-image img{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-wrapper  .teacher-item-image {
    aspect-ratio: 251 / 314;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Scale effect on hover */
.teacher-wrapper:hover .teacher-item-image {
    transform: scale(1.02);
}

.mBmtr {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.dXrehQ {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    transform: translate(1px, 2px);
}

.gQqrxF {
    margin-block: 0px;
    margin-inline: 0px;
    color: rgb(255, 255, 255);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dECdPM {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 12px;
    transition: all 0.3s ease-in-out;
}

.teacher-wrapper:hover .dECdPM {
    transform: translateY(-5px);
}

.kLwqzN {
    display: flex;
    align-items: flex-start;
}

.gSWzxf {
    margin-block: 0px;
    margin-inline: 0px;
    color: rgb(33, 38, 45);
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
}

@media (min-width: 1135px) {
    .gSWzxf {
        font-size: 18px;
        line-height: 24px;
        font-weight: 600;
    }
}
@media (min-width: 768px) {
    .gSWzxf {
        font-size: 18px;
        line-height: 24px;
        font-weight: 600;
    }
}

.cdEGoU {
    margin-block: 0px;
    margin-inline: 0px;
    color: rgb(90, 104, 119);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

@media (min-width: 1135px) {
    .cdEGoU {
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }
}

@media (min-width: 768px) {
    .cdEGoU {
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }
}

@media (min-width: 1135px) {
    .gQqrxF {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
    }
}
@media (min-width: 768px) {
    .gQqrxF {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
    }
}

/* === HOVER SHOW EFFECT === */
.teacher-wrapper:hover .hover-show{
    opacity: 1;
    transform: translateY(0%) translateZ(0px);
}

.hover-show{
    opacity: 0;
    transform: translateY(-100%) translateZ(0px);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: end;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    background: transparent;
    transition: all 0.3s ease-in-out;
}

/* Background gradient với pseudo-element */
.hover-show::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(33, 38, 45, 0.95) 0%, rgba(33, 38, 45, 0.7) 40%, rgba(33, 38, 45, 0.3) 70%, rgba(33, 38, 45, 0) 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    z-index: 1;
}

/* Khi hover, background chạy từ bottom lên top */
.teacher-wrapper:hover .hover-show::before {
    transform: translateY(0%);
}

/* Text content */
.hover-show > * {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out 0.3s; /* Delay 0.3s sau khi background hoàn thành */
}

/* Text xuất hiện sau khi background hoàn thành */
.teacher-wrapper:hover .hover-show > * {
    opacity: 1;
    transform: translateY(0px);
}

/* Stagger animation cho từng item */
.teacher-wrapper:hover .hover-show > *:nth-child(2) {
    transition-delay: 0.4s;
}

.teacher-wrapper:hover .hover-show > *:nth-child(3) {
    transition-delay: 0.5s;
}

.teacher-wrapper:hover .hover-show > *:nth-child(4) {
    transition-delay: 0.6s;
}

/* Slider gradient overlay */
@media(min-width:768px){
.jUGhvO::before, .jUGhvO::after {
    content: "";
    position: absolute;
    top: 0px;
    width: 140px;
    height: 100%;
    z-index: 1;
    transition: 400ms;
    pointer-events: none;
}

.jUGhvO::before {
    left: 0px;
    background: linear-gradient(to right, rgb(255 255 255) 0%, rgba(255, 255, 255, 0) 100%);
}

.jUGhvO::after {
    right: 0px;
    background: linear-gradient(to left, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
}
}