@import "../components/navbar.css";
@import "../components/footer.css";
@import "../components/card.css";
@import "../components/backtop.css";
@import "../components/testimonial.css";

.single-teacher {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3rem;
    width: 100%;
    margin: 6rem auto 0;
    background: #fff;
    align-items: start;
}

.left-info {
    margin-top: 1rem;
}

.top-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.teacher-img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid darksalmon;
}

.left-info h2 {
    font-size: 28px;
    font-weight: 600;
}

.subject {
    font-size: 15px;
    font-weight: 600;
    color: #0e2147;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    color: #0e2147;
}
.rating i {
    color: #fbbf24;
}

.teacher-meta {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.teacher-meta li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.teacher-meta i {
    color: #01c2be;
}

.desc-2 {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    max-width: 500px;
}

/* =========================
   AVATARS
========================= */
.avatars {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
}

.avatars span {
    margin-left: 10px;
    background: #fde2e2;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 13px;
}

/* =========================
   RIGHT SIDE
========================= */
.Teacher-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* buttons */
.teachers-actions {
    display: block;
    margin-top: 0.2rem;
}

.teachers-actions button {
    width: 100%;
    flex: 1;
    border: none;
    padding: 12px 0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

/* Book */
.book-btn {
    background: darksalmon !important;
    color: #0f172a;
}

/* Follow */
.follow-btn {
    background: #0f172a !important;
    color: darksalmon;
}
.follow-btn:hover {
    color: darksalmon !important;
}

.book-btn,
.follow-btn {
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

/* video */
.video-card {
    width: 100%;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: black;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 220, 220, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.custom-play i {
    width: 65px;
    height: 65px;
    background: rgba(0, 194, 190, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    animation: pulse 1.5s infinite;
}

.video-title {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: #fff;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/*RESPONSIVE */
@media (max-width: 768px) {
    .single-teacher {
        grid-template-columns: 1fr;
        width: 90%;
    }

    .teachers-actions {
        flex-direction: column;
    }

    .video-card {
        height: 220px;
    }
}

@media (max-width: 400px) {
    .teacher-img {
        width: 70px;
        height: 70px;
    }

    .left-info h2 {
        font-size: 18px;
    }

    .subject,
    .rating {
        font-size: 13px;
    }
}
.section-testimonial-page-2 {
    background: #fff;
    padding: 3rem 0;
    position: relative;
}

.section-card-2 {
    margin-bottom: 2rem;

    /* background: #fff !important; */
}
