.teacher-profile-page {
    background: #fff;
    color: #1a1a2e;
}

.teacher-profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border_color);
}

.teacher-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border_color);
    flex-shrink: 0;
}

.teacher-header-info {
    flex: 1;
    min-width: 200px;
}

.teacher-name {
    font-size: 1.85rem;
    font-weight: 500;
    color: var(--dark_blue);
    margin-bottom: 0.35rem;
}

.teacher-title {
    font-size: 0.95rem;
    color: var(--muted_text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.teacher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted_text);
}

.teacher-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.teacher-meta i {
    color: var(--page_yellow);
    width: 18px;
    text-align: center;
}

.teacher-sidebar {
    position: sticky;
    top: 130px;
}

.teacher-stat-box {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border_color);
    border-radius: var(--border_radius);
    background: #fff;
    margin-bottom: 1rem;
}

.teacher-stat-box i {
    font-size: 1.5rem;
    color: var(--page_yellow);
    margin-bottom: 0.5rem;
}

.teacher-stat-box .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark_blue);
    display: block;
}

.teacher-stat-box .stat-label {
    font-size: 0.8rem;
    color: var(--muted_text);
}

.btn-trial {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, var(--page_yellow), #f0b34a);
    color: var(--dark_blue) !important;
    border: none;
    border-radius: var(--border_radius);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.btn-trial:hover {
    opacity: 0.95;
    color: var(--dark_blue) !important;
}

.btn-contact-teacher {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: #fff;
    color: var(--page_yellow) !important;
    border: 2px solid var(--page_yellow);
    border-radius: var(--border_radius);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-contact-teacher:hover {
    background: rgba(227, 175, 100, 0.1);
    color: var(--dark_blue) !important;
    border-color: var(--dark_blue);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark_blue);
    margin-bottom: 1rem;
    padding-right: 1rem;
    border-right: 4px solid var(--page_yellow);
    display: inline-block;
}

.about-me-text {
    color: var(--muted_text);
    line-height: 1.8;
    margin-bottom: 0;
}

.language-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.language-tag.primary {
    background: var(--page_yellow);
    color: var(--dark_blue);
}

.language-tag.secondary {
    background: #495057;
    color: #fff;
}

.subjects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subjects-list li {
    padding: 0.5rem 0;
    padding-right: 1.25rem;
    position: relative;
    color: var(--muted_text);
    line-height: 1.5;
}

.subjects-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--page_yellow);
}

.teacher-tabs {
    border-bottom: 1px solid var(--border_color);
    margin-bottom: 1rem;
}

.teacher-tabs .nav-link {
    border: none;
    background: none;
    color: var(--muted_text);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    margin-bottom: -1px;
}

.teacher-tabs .nav-link.active {
    color: var(--dark_blue);
    border-bottom: 3px solid var(--page_yellow);
    background: transparent;
}

.teacher-tab-content {
    color: var(--muted_text);
    line-height: 1.7;
    padding-right: 0;
}

.testimonial-card {
    background: #f5f5f5;
    border-radius: var(--border_radius);
    padding: 1.25rem;
    height: 100%;
    border: 1px solid var(--border_color);
}

.testimonial-card .quote {
    font-size: 0.95rem;
    color: var(--dark_blue);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.testimonial-card .author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark_blue);
}

.testimonial-card .author-loc {
    font-size: 0.8rem;
    color: var(--muted_text);
}

@media (max-width: 991px) {
    .teacher-sidebar {
        position: static;
    }

    .teacher-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teacher-header-info {
        text-align: center;
    }

    .teacher-meta {
        justify-content: center;
    }
}