.teacher-card {
    transition: all 0.3s ease-in-out;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(139, 32, 37, 0.2);
}

.teacher-img-container {
    overflow: hidden;
    position: relative;
}

.teacher-img {
    transition: all 0.5s ease;
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.teacher-card:hover .teacher-img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 1.5rem;
    background-color: #fff;
}

.teacher-name {
    color: #D25C06;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.teacher-position {
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
}

.teacher-line {
    height: 3px;
    width: 50px;
    background-color: #D25C06;
    margin-bottom: 1rem;
}

.teacher-bio {
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.specialty-badge {
    background-color: #f8f9fa;
    color: #D25C06;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.teacher-social {
    display: flex;
    gap: 0.5rem;
}

.teacher-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #D25C06;
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    background-color: #D25C06;
    color: #fff;
}

.view-profile-btn {
    background-color: #D25C06;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.view-profile-btn:hover {
    background-color: #6d181c;
    color: white;
}

.teacher-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #D25C06;
    color: #D25C06;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #D25C06;
    color: white;
}

.teacher-list {
    width: 100%;
    margin: 0 auto;
    max-width: 900px;
}

.teacher-list-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    padding: 1.5rem;
    gap: 1.5rem;
    transition: box-shadow 0.2s;
    border: 1px solid #f0f0f0;

}


.teacher-list-details {
    flex: 1;
    min-width: 0;
}

.teacher-list-header {
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}



.teacher-list-specialization {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 0.2rem;
}

.teacher-list-meta {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.2rem;
}

.teacher-list-badges {
    margin: 0.5rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.teacher-badge {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.2rem 0.8rem;
    gap: 0.3rem;
    border: 1px solid #90caf9;
}

.teacher-badge.online {
    background: #d1f7e7;
    color: #1b7f4c;
    border-color: #b2f2d7;
}

.teacher-badge.home {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.teacher-badge.studio {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.teacher-badge.corp {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.teacher-list-rating {
    font-size: 1.1rem;
    color: #FFD700;
    margin-right: 0.5rem;
}

.teacher-list-cert {
    display: inline-block;
    background: #e6ffe6;
    color: #388e3c;
    border-radius: 15px;
    font-size: 0.9rem;
    padding: 0.2rem 0.7rem;
    margin-left: 0.5rem;
    border: 1px solid #b2f2b2;
    box-shadow: 0 1px 2px rgba(56, 142, 60, 0.06);
}


.teacher-list-price {
    font-size: 1.08rem;
    color: #000000;
    font-weight: 600;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}


.teacher-list-tagline {
    font-size: 0.98rem;
    color: #333;
    margin: 0.5rem 0 0.7rem 0;
    font-style: italic;
}

.teacher-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    gap: 0.7rem;
}


.teacher-list-view-btn {
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(139, 32, 37, 0.07);
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.teacher-list-view-btn:hover {
    background: #6d181c;
    color: #fff;
}

.teacher-list-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.teacher-list-pagination button {
    border: none;
    background: #f8f9fa;
    color: #D25C06;
    border-radius: 4px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.teacher-list-pagination button.active,
.teacher-list-pagination button:hover {
    background: #D25C06;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .teachers-main-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .teachers-sidebar {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        position: static;
        top: unset;
        margin-bottom: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .teachers-content {
        width: 100%;
    }

    .teacher-list-scrollable {
        max-height: unset;
        padding-right: 0;
    }

    .teacher-list {
        max-width: 100%;
        padding: 0 5px;
    }

    .teacher-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .teacher-list-actions {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        min-width: 0;
        gap: 0.7rem;
        margin-top: 1rem;
    }

    .teacher-thumb {
        width: 100%;
        height: 180px;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .teachers-main-container {
        flex-direction: column;
        gap: 1rem;
    }

    .teachers-sidebar {
        padding: 0.7rem 0.2rem;
        margin-bottom: 1rem;
    }

    .teachers-fixed-topbar {
        padding-bottom: 0.2rem;
        padding-top: 0.5rem;
    }

    .teachers-sortbar {
        flex-direction: column;
        gap: 0.3rem;
    }

    .teacher-list {
        padding: 0 2px;
    }

    .teacher-list-item {
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 8px;
    }

    .teacher-list-details {
        padding: 0;
    }

    .teacher-thumb {
        width: 100%;
        height: 120px;
        border-radius: 8px;
    }

    .teacher-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        align-items: center;

    }

    .teacher-list-name {
        font-size: 1.1rem;
    }

    .teacher-list-specialization {
        font-size: 0.95rem;
    }

    .teacher-list-meta {
        padding-top: 10px;
        font-size: 0.85rem;
    }

    .teacher-list-tagline {
        font-size: 0.9rem;
    }

    .teacher-list-badges {
        gap: 0.2rem;
        margin: 8px 0 6px 0;
    }

    .teacher-list-actions {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        min-width: 0;
        gap: 0.4rem;
        margin-top: 0.3rem;
    }


    .teacher-list-pagination {
        gap: 0.3rem;
        margin-top: 1.2rem;
    }

    .teacher-list-pagination button {
        padding: 0.3rem 0.7rem;
        font-size: 0.95rem;
    }

    .teacher-filter-bar {
        display: inline-flex;
        gap: 0.3rem;
        margin-bottom: 1rem;
    }

    .filter-btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    #teacher-search {
        width: 100% !important;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .sidebar-featured-teacher img {
        width: 50px;
        height: 50px;
    }

    .sidebar-featured-teacher .name {
        font-size: 1rem;
    }

    .sidebar-featured-teacher .spec {
        font-size: 0.85rem;
    }

    .sidebar-featured-teacher .tagline {
        font-size: 0.85rem;
    }

    .sidebar-featured-teacher .view-btn {
        font-size: 0.9rem;
        padding: 0.2rem 0.7rem;
    }
}



.teacher-list-item:not(:first-child) {
    animation-delay: 0.1s;
}

.teacher-list-item:not(:first-child):not(:nth-child(2)) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-list-item:hover {
    transform: translateY(-6px) scale(1.01);
    transition: box-shadow 0.3s, transform 0.3s;
}



.teacher-thumb {
    width: 150px;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
    background: #f8f9fa;
}


.teacher-list-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}


.teacher-list-badges {
    margin: 0.7rem 0 0.5rem 0;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.teacher-badge {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.25rem 0.9rem;
    gap: 0.3rem;
    border: 1px solid #90caf9;
    box-shadow: 0 1px 2px rgba(139, 32, 37, 0.04);
    transition: background 0.2s, color 0.2s;
}

.teacher-badge.online {
    background: #d1f7e7;
    color: #1b7f4c;
    border-color: #b2f2d7;
}

.teacher-badge.home {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.teacher-badge.studio {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.teacher-badge.corp {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.teacher-list-rating {
    font-size: 1.15rem;
    color: #FFD700;
    margin-right: 0.5rem;
    letter-spacing: 0.1em;
    vertical-align: middle;
}




.teacher-list-tagline {
    font-size: 1.05rem;
    color: #333;
    margin: 0.7rem 0 1rem 0;
    font-style: italic;
    line-height: 1.5;
}

.teacher-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    gap: 1rem;
    margin-left: 0.5rem;
}





.teacher-list-pagination {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
}

.teacher-list-pagination button {
    border: none;
    background: #f8f9fa;
    color: #D25C06;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(139, 32, 37, 0.04);
}

.teacher-list-pagination button.active,
.teacher-list-pagination button:hover,
.teacher-list-pagination button:focus {
    background: #D25C06;
    color: #fff;
    transform: scale(1.08);
}

.teacher-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0;
}

.filter-btn {
    background-color: transparent;
    border: 1.5px solid #D25C06;
    color: #D25C06;
    padding: 0.6rem 1.7rem;
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 1px 2px rgba(139, 32, 37, 0.04);
}

.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus {
    background-color: #D25C06;
    color: white;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 2px 8px rgba(139, 32, 37, 0.10);
}

#teacher-search {
    border-radius: 30px;
    border: 1.5px solid #D25C06;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(139, 32, 37, 0.04);
    outline: none;
}

#teacher-search:focus {
    border-color: #b23a48;
    box-shadow: 0 2px 8px rgba(139, 32, 37, 0.10);
}



.teachers-section .section-divider {
    margin: 1.5rem auto 2.5rem auto;
    max-width: 120px;
    opacity: 0.7;
    animation: fadeInDivider 1.2s cubic-bezier(.23, 1.02, .32, 1) 0.2s both;
}

@keyframes fadeInDivider {
    from {
        opacity: 0;
        transform: scaleX(0.7);
    }

    to {
        opacity: 0.7;
        transform: scaleX(1);
    }
}

.teachers-section h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
    color: #D25C06;
    animation: fadeInTitle 1s cubic-bezier(.23, 1.02, .32, 1) 0.1s both;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teachers-section p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.5rem;
    animation: fadeInTitle 1s cubic-bezier(.23, 1.02, .32, 1) 0.2s both;
}

/* Layout for teachers main area */
.teachers-main-container {
    display: flex;
    gap: 2rem;
    min-height: 10vh;
}

.teachers-sidebar {
    flex: 0 0 20%;
    max-width: 260px;
    min-width: 180px;
    background: #faf7f7;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(139, 32, 37, 0.06);
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: flex-start;
}

.teachers-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.teacher-list-scrollable {
    overflow-y: auto;
    padding-right: 8px;
}

.teachers-fixed-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: beige;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    box-shadow: 0 2px 10px rgba(139, 32, 37, 0.1);
}

.teachers-fixed-topbar .teacher-filter-bar {
    margin-bottom: 0;
}

.teachers-fixed-topbar .teachers-sortbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.teachers-sortbar select {
    border-radius: 30px;
    border: 1.5px solid #D25C06;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: #D25C06;
    transition: border-color 0.2s;
}

.teachers-sortbar select:focus {
    border-color: #b23a48;
}

/* Sidebar sections */
.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h5 {
    font-weight: 700;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.sidebar-links,
.sidebar-categories,
.sidebar-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li,
.sidebar-categories li,
.sidebar-actions li {
    margin-bottom: 0.7rem;
}

.sidebar-links a,
.sidebar-categories a,
.sidebar-actions a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-links a:hover,
.sidebar-categories a:hover,
.sidebar-actions a:hover {
    color: #D25C06;
    text-decoration: underline;
}

.sidebar-featured-teacher {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(139, 32, 37, 0.07);
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.sidebar-featured-teacher img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid #D25C06;
}

.sidebar-featured-teacher .name {
    font-weight: 600;
    color: #D25C06;
    font-size: 1.1rem;
}

.sidebar-featured-teacher .spec {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.sidebar-featured-teacher .tagline {
    font-size: 0.92rem;
    color: #333;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.sidebar-featured-teacher .view-btn {
    background: #D25C06;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.3rem 1rem;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-featured-teacher .view-btn:hover {
    background: #6d181c;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .teachers-main-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .teachers-sidebar {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        position: static;
        top: unset;
        margin-bottom: 1.5rem;
    }

    .teachers-content {
        width: 100%;
    }

    .teacher-list-scrollable {
        max-height: unset;
    }
}

@media (max-width: 600px) {
    .teachers-main-container {
        flex-direction: column;
        gap: 1rem;
    }

    .teachers-section {
        padding-top: 0.5rem !important;
    }

    .teachers-sidebar {
        padding: 1rem 0.5rem;
    }

    .teachers-fixed-topbar {
        padding-bottom: 0.2rem;
    }

    .teachers-sortbar {
        flex-direction: column;
        gap: 0.3rem;
    }
}

.teacher-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.teacher-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.teacher-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.teacher-badge i {
    margin-right: 6px;
}

.teacher-badge.online {
    background-color: #e3f2fd;
    color: #0277bd;
}

.teacher-badge.home {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.teacher-badge.studio {
    background-color: #fff8e1;
    color: #ff8f00;
}

.teacher-badge.corp {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* CSS for Teacher Description */

.profile-header {
    background-color: beige;
    color: #fff;
    padding: 1rem 0 5rem;
    margin-bottom: -60px;
    position: relative;
}


.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-top: -100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.specialty-badge {
    background: #f8f9fa;
    color: #D25C06;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: all 0.3s;
}

.specialty-badge:hover {
    background: #D25C06;
    color: #fff;
    border-color: #D25C06;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.3rem;
}

.subject-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #90caf9;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.fee-detail {
    font-weight: 500;
    color: #388e3c;
}

.review-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.review-author {
    font-weight: bold;
}

.review-rating {
    color: #FFD700;
}

.action-btns .btn {
    margin: 0.3rem;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}


.certificate-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
}

.certificate-icon {
    background: #f8f9fa;
    color: #D25C06;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.course-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.course-img {
    height: 150px;
    object-fit: cover;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #D25C06;
}

.bio-section {
    line-height: 1.7;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s;
}

.social-share a:hover {
    background: #D25C06;
    color: #fff;
}

.footer {
    background-color: #000;
}

.footer p {
    color: #fff;
    font-family: 'DM Sans', sans-serif;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "";
    font-family: 'Open Sans', sans-serif;
    font-weight: 900;
    margin-right: 10px;
}

.visitor {
    border: 3px dotted rgba(255, 255, 255, 0.733);
}

#teacherName {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
}

#teacherPosition {
    font-size: 1.2rem;
    color: #D25C06;
    font-weight: 600;
}

#teacherRating {
    font-size: 1.2rem;
    color: #FFD700;
    margin-right: 0.5rem;
}

.quick-info-list {
    list-style: none;
    padding-left: 0;
}

.quick-info-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: flex-start;
}

.quick-info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quick-info-list i {
    color: #D25C06;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    margin-top: 3px;
}

.quick-info-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 5px;
    background-color: #e3f2fd;
    color: #1565c0;
}

.quick-info-yes {
    color: #388e3c;
}

.quick-info-no {
    color: #d32f2f;
}

@media (max-width: 768px) {
    .teachers-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        height: 100vh;
        background: white;
        z-index: 1200;
        overflow-y: auto;
        box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        padding: 15px;
    }

    .teachers-sidebar.active {
        transform: translateX(0);
        display: block;
    }

    .sidebar-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        z-index: 1201;
        color: #333;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
    }

    .teachers-content {
        width: 100%;
    }

    .teachers-fixed-topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-sidebar-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        font-size: 1.2rem;
    }

    .teacher-list-item {
        flex-direction: column;
        /* Stack teacher details and actions */
        align-items: center;
        text-align: center;
    }

    .teacher-list-details {
        margin-bottom: 15px;
    }

    .teacher-thumb {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 50%;
    }

    .teacher-list-actions {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .teacher-filter-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-btn {
        flex: 1 1 auto;
        max-width: 150px;
        padding: 8px 5px;
        font-size: 0.9rem;
    }

    .teacher-search-container {
        position: relative;
    }

    .teacher-search-container .clear-search {
        position: absolute;
        right: 27%;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #999;
        display: none;
    }

    .teacher-sort-container {
        margin-top: 10px;
    }

    .teacher-list-pagination {
        margin-top: 15px;
    }
}

/* General improvements (all screen sizes) */
.teachers-main-container {
    position: relative;
}

.teacher-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.teacher-search-container {
    position: relative;
}

.teacher-results-count {
    margin: 10px 0;
    font-style: italic;
    color: #666;
}

.teacher-list-item {
    position: relative;
}

.teacher-actions-dropdown {
    position: absolute;
    top: 10px;
    right: 10px;
}

.teacher-actions-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.teacher-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0;
    list-style: none;
    z-index: 10;
    min-width: 150px;
}

.teacher-actions-menu.show {
    display: block;
}

.teacher-actions-menu li {
    padding: 8px 15px;
}

.teacher-actions-menu li:hover {
    background: #f5f5f5;
}

.teacher-actions-menu li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.teacher-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.teacher-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: #f5f5f5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.teacher-badge i {
    font-size: 0.8rem;
}

.teacher-badge.online {
    background-color: #e7f5e7;
    color: #2e7d32;
}

.teacher-badge.home {
    background-color: #e3f2fd;
    color: #1565c0;
}

.teacher-badge.studio {
    background-color: #fff8e1;
    color: #f57c00;
}

.teacher-badge.corp {
    background-color: #f3e5f5;
    color: #7b1fa2;
}





.quick-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.quick-action {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s;
}

.quick-action:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}