/* Teachers Page Specific Styles */

/* Teacher Cards - Compact Circular Avatar Design */
.teacher-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 100%;
    margin: 0;
}

.teacher-card:hover {
    background: #fef7f7;
}

.teacher-image {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-badge {
    display: none;
}

.teacher-content {
    flex: 1;
    padding: 0;
}

.teacher-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.teacher-title {
    color: #4b5563;
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: none;
}

.teacher-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.teacher-link:hover {
    gap: 10px;
}

.teacher-link-arrow {
    transition: transform 0.2s ease;
}

.teacher-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.teacher-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.specialty-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.teacher-stats {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

/* Qualification Cards */
.qualification-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.qualification-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.qualification-card:hover .qualification-icon {
    transform: scale(1.1) rotate(5deg);
}

.qualification-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.qualification-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.author-info {
    font-size: 14px;
    color: #6b7280;
}

/* Teacher Reviews Carousel */
#teacher-reviews-carousel {
    width: 100%;
    position: relative;
}

.teacher-reviews-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.review-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
}

/* ====== TEACHER OVERLAY - VIEW SCHEDULE ====== */
.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-image:hover .teacher-overlay {
    opacity: 1;
}

.view-schedule-btn {
    background: white;
    color: #1e40af;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.teacher-image:hover .view-schedule-btn {
    transform: translateY(0);
}

/* Teacher Schedule Modal */
#teacher-schedule-modal .border {
    border-color: #e5e7eb;
}

#teacher-schedule-modal .rounded-lg {
    border-radius: 8px;
}

@keyframes teacherModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#teacher-schedule-modal > div {
    animation: teacherModalFadeIn 0.3s ease-out;
}

@media (max-width: 1023px) {
    .review-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .review-slide {
        flex: 0 0 100%;
    }
    
    #teacher-reviews-carousel {
        gap: 8px;
    }
}

/* Teacher Review Cards */
.teacher-review-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.teacher-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.reviewer-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.reviewer-info p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.review-rating .star {
    color: #d1d5db;
    font-size: 16px;
}

.review-rating .star.filled {
    color: #f59e0b;
}

.review-text-area {
    flex: 1;
}

.review-comment {
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
}

/* Carousel Navigation Buttons - Same as Index Page */
.carousel-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.carousel-nav-btn:hover svg {
    stroke: white;
}

.carousel-nav-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: #374151;
    transition: stroke 0.2s ease;
}

@media (max-width: 767px) {
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-nav-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-card,
.qualification-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teacher-card {
        padding: 12px 16px;
        gap: 12px;
    }

    .teacher-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .teacher-name {
        font-size: 15px;
    }

    .teacher-title {
        font-size: 13px;
    }

    .teacher-stats {
        flex-direction: column;
        gap: 8px;
    }

    .qualification-card,
    .testimonial-card {
        padding: 24px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .teacher-card {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .teacher-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .teacher-name {
        font-size: 14px;
    }

    .teacher-title {
        font-size: 12px;
    }

    .teacher-link {
        font-size: 13px;
    }
}
