.tutors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.tutor-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    width: 240px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

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

.tutor-photo-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.tutor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 14px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tutor-photo-wrapper:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 12px 0;
}

.badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: #e0e0e0;
}

.badge-subject {
    background-color: #689f38;
    color: #fff;
}

.badge-role {
    background-color: #fdd835;
    color: #000;
}

.tutor-info {
    text-align: center;
    padding: 12px;
}

.tutor-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.tutor-meta {
    font-size: 0.85rem;
    color: #444;
    margin-top: 8px;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease forwards;
}


@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal-content {
    background: #000;
    border-radius: 12px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.button-group button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: #404a21;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button-group button:hover {
    background-color: #36401c;
}

.online-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    background-color: #28c76f; /* Green */
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #28c76f55;
    z-index: 2;
}
.tutor-photo-wrapper {
    position: relative;
}
