/* ===== TEACHER POPUP STYLES ===== */

.teacher-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    font-family: var(--h2-font-family);
}

.teacher-popup-overlay.active {
    opacity: 1;
}

.teacher-popup {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.teacher-popup-overlay.active .teacher-popup {
    transform: scale(1) translateY(0);
}

.teacher-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A8B3C4;
    transition: all 0.2s ease;
    z-index: 10;
    background-color: transparent;
}

.teacher-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.teacher-popup-content {
    padding: 300px 0 0;
    text-align: center;
    position: relative;
}

.teacher-popup-information {
    position: relative;
    background-image: url(../../assets/images/image-folder.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    width: 100%;
}

.teacher-popup-photo {
    object-fit: cover;
    margin: 0;
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.teacher-popup-name {
    text-align: left;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 16px;
}

.teacher-popup-nationality {
    text-align: left;
    font-size: 16px;
    color: var(--primaryprimary-700);
    font-weight: 600;
    padding: 0 16px;
}

.teacher-popup-details {
    text-align: left;
    margin-top: 16px;
    padding: 16px;
    background-color: #f2f4f7;
}

.teacher-popup-row {
    margin-bottom: 4px;
    padding-bottom: 4px;
}

.teacher-popup-row:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

.teacher-popup-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex: 1;
}

.teacher-popup-value {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
    color: var(--primaryprimary-700);
}

.teacher-popup-rate {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondarysecondary-700);
    margin: 24px 0 32px 0;
}

.teacher-popup-btn {
    padding: 8px 16px;
    background-color: var(--secondarysecondary-700);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--h2-font-family);
}

.teacher-popup-btn:hover {
    background-color: var(--secondarysecondary-600);
}

/* Scrollbar styling */
.teacher-popup::-webkit-scrollbar {
    width: 6px;
}

.teacher-popup::-webkit-scrollbar-track {
    background: transparent;
}

.teacher-popup::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.teacher-popup::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Mobile responsive */
@media (max-width: 768px) {

    .teacher-popup-name {
        font-size: 24px;
    }

    .teacher-popup-rate {
        font-size: 32px;
    }
}