/* =========================================
   GOOGLE FONT
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   GLOBAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f7fb;
    color: #111827;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================================
   NAVBAR
========================================= */
.custom-navbar {
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.navbar-brand {
    font-size: 38px;
    font-weight: 800;
    color: #111;
}

.navbar-brand img {
    width: 150px;
}

.navbar-brand span {
    color: #6c4df6;
}

.nav-link {
    color: #111 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: .3s;
}

.nav-link:hover {
    color: #6c4df6 !important;
}

/* Search */
.search-box {
    position: relative;
    width: 420px;
}

.search-box input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #ececec;
    background: #f8f8fb;
    padding: 0 20px 0 50px;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* User */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================
   PROFILE SECTION
========================================= */
.profile-section {
    padding: 40px 0 70px;
}

.back-link {
    color: #6b7280;
    font-weight: 500;
}

.back-link:hover {
    color: #6c4df6;
}

/* =========================================
   LEFT PROFILE CARD
========================================= */
.profile-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ededed;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
}

.profile-cover {
    height: 150px;
    background: linear-gradient(177deg, #a4caff, #6c4df6);
}

.profile-image-wrapper {
    text-align: center;
    margin-top: -70px;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid #fff;
    object-fit: cover;
}

.profile-content {
    padding: 20px 28px 30px;
}

/* Online */
.online-badge {
    background: #e9fff1;
    color: #18a957;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
}

.online-badge span {
    width: 8px;
    height: 8px;
    background: #18a957;
    border-radius: 50%;
}

/* Name */
.teacher-name {
    font-size: 32px;
    font-weight: 700;
    margin-top: 20px;
}

.verified {
    color: #6c4df6;
    font-size: 22px;
}

.teacher-role {
    color: #6b7280;
    margin-top: 10px;
}

/* Stats */
.top-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.top-stats span {
    color: #6b7280;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d1d5db;
}

/* Location */
.location-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: #6b7280;
    font-size: 14px;
}

/* Tags */
.profile-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.profile-tags span {
    background: #f5f3ff;
    color: #6c4df6;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Bio */
.teacher-bio {
    color: #6b7280;
    line-height: 1.8;
    margin-top: 24px;
}

/* Languages */
.languages-box {
    text-align: left;
    margin-top: 30px;
}

.languages-box h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

.language-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.language-tags span {
    border: 1px solid #ececec;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 14px;
}

/* Bottom Stats */
.bottom-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.bottom-stats h5 {
    font-weight: 700;
}

.bottom-stats p {
    color: #6b7280;
    font-size: 14px;
}

/* Buttons */
.profile-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-book {
    flex: 1;
    background: #6c4df6;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
}

.btn-book:hover {
    background: #5a3ef0;
    color: #fff;
}

.btn-message {
    flex: 1;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
    color: #111;
}

.btn-message:hover {
    background: #f7f7f7;
}

/* =========================================
   RIGHT CONTENT
========================================= */
.content-card {
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ededed;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
}

/* Tabs */
.profile-tabs {
    border-bottom: 1px solid #f1f1f1;
    padding: 0 30px;
}

.profile-tabs .nav-link {
    border: none;
    color: #6b7280 !important;
    font-weight: 600;
    padding: 22px 18px;
    background: none;
}

.profile-tabs .nav-link.active {
    color: #6c4df6 !important;
    border-bottom: 2px solid #6c4df6;
    background: none;
}

/* Content */
.content-body {
    padding: 35px;
}

.content-body h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
}

.content-body p {
    color: #6b7280;
    line-height: 1.9;
}

/* =========================================
   INFO BOX
========================================= */
.info-box {
    border: 1px solid #ededed;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}

.info-box i {
    width: 52px;
    height: 52px;
    background: #f4f1ff;
    color: #6c4df6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.info-box small {
    color: #6b7280;
}

.info-box h6 {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 700;
}

/* =========================================
   TEACH SECTION
========================================= */
.teach-section {
    margin-top: 50px;
}

.teach-card {
    border: 1px solid #ededed;
    border-radius: 18px;
    padding: 22px;
    font-weight: 600;
    transition: .3s;
}

.teach-card:hover {
    border-color: #6c4df6;
    transform: translateY(-2px);
}

/* =========================================
   PRICING
========================================= */
.pricing-section {
    margin-top: 55px;
}

.price-card {
    border: 1px solid #ededed;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    height: 100%;
    transition: .3s;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card p {
    margin: 10px 0;
    color: #6b7280;
}

.price-card h2 {
    font-size: 40px;
    font-weight: 700;
}

.price-card h2 sub {
    font-size: 15px;
    color: #6b7280;
}

.price-card.active {
    border: 2px solid #6c4df6;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    background: #6c4df6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================
   RESPONSIVE
========================================= */
@media(max-width:992px) {

    .search-box {
        width: 100%;
    }

    .profile-buttons {
        flex-direction: column;
    }

    .bottom-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media(max-width:768px) {

    .teacher-name {
        font-size: 26px;
    }

    .content-body {
        padding: 25px;
    }

    .content-body h3 {
        font-size: 24px;
    }

    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    #lessons-tab {
        width: 180px !important;
    }

    #reviews-tab {
        width: 150px !important;
    }

}


/* =========================================
   HERO SECTION
========================================= */

.hero-box {
    padding: 70px;
    overflow: hidden;
    position: relative;
}

/* Mini Badge */
.mini-badge {
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    margin-bottom: 28px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-left: -10px;
    object-fit: cover;
}

/* Hero Text */
.hero-title {
    font-size: 60px;
    line-height: 1.05;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
}

.hero-title span {
    color: #6f42ff;
    font-size: 40px;
}

.hero-text {
    font-size: 22px;
    line-height: 1.8;
    color: #5f5f5f;
    margin-bottom: 40px;
    max-width: 620px;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 45px;
}

.feature-item {
    background: #fff;
    padding: 5px 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
}

.feature-item i {
    width: 30px;
    height: 30px;
    background: #f1ebff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6f42ff;
    font-size: 18px;
}

/* Hero Buttons */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.primary-btn {
    background: #6f42ff;
    color: #fff;
    padding: 5px 34px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.primary-btn:hover {
    background: #5d35e6;
    color: #fff;
}

.secondary-btn {
    color: #111;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
}

.secondary-btn i {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
}

/* Hero Image */
.hero-image-area {
    position: relative;
    text-align: right;
}


.hero-image {
    width: 100%;
    max-width: 700px;
}

/* =========================================
   LANGUAGE SECTION
========================================= */

.languages-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
}

.language-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.language-card:hover {
    transform: translateY(-8px);
}

.language-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.language-card h5 {
    font-weight: 700;
}

.language-card p {
    color: #777;
    margin: 0;
}

/* =========================================
   TUTORS SECTION
========================================= */

.tutors-section {
    padding: 30px 0;
}

.tutor-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.tutor-image-wrapper {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.tutor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00d26a;
    border-radius: 50%;
}

.tutor-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 4px;
    line-height: 1.1;
}

.rating {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 5px;
}

.flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
}

.subject {
    font-size: 15px;
    color: #666;
    margin-top: 2px;
    margin-bottom: 4px;
}

.experience {
    font-size: 15px;
    color: #666;
}

.price {
    font-size: 10px;
    color: #666;
    margin-bottom: 14px;
}

.price strong {
    font-size: 20px;
    color: #111;
    font-weight: 700;
}

.trial-btn {
    width: 100%;
    border: none;
    background: #efe8ff;
    color: #6f42ff;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    transition: .2s;
    font-size: 15px;
}

.trial-btn:hover {
    background: #e5d9ff;
}

/* =========================================
   HOW IT WORKS
========================================= */

.how-section {
    padding: 80px 0;
}

.how-box {
    background: #fff;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .04);
}

.how-card {
    text-align: center;
}

.how-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    margin-bottom: 24px;
    background: #f1ebff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #6f42ff;
}

.how-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
}

.how-card p {
    color: #777;
    line-height: 1.8;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:991px) {

    .hero-box {
        padding: 40px 25px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-image-area {
        margin-top: 60px;
    }

}

@media(max-width:576px) {

    .hero-title {
        font-size: 40px;
    }

    .hero-text {
        font-size: 18px;
    }

    .feature-list {
        flex-direction: column;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatars {
        margin-right: 20px;
    }

}




/* PROFILE DROPDOWN */

.profile-dropdown {
    position: relative;
}

.profile-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #f1f1f1;
    transition: 0.3s;
}

.profile-btn:hover {
    transform: scale(1.05);
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DROPDOWN MENU */

.dropdown-menu-custom {
    position: absolute;
    top: 60px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #ececec;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 999;
}

/* ACTIVE CLASS */

.dropdown-menu-custom.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* USER INFO */

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-info img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
}

.user-info h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.user-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* SHARE BUTTON */

.share-btn {
    width: 100%;
    height: 52px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
    margin-bottom: 20px;
}

.share-btn:hover {
    background: #f8f9ff;
}

/* DIVIDER */

.divider {
    width: 100%;
    height: 1px;
    background: #eeeeee;
    margin: 18px 0;
}

/* MENU ITEMS */

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

.menu-item:hover {
    background: #f5f7ff;
    color: #5b3df5;
}

.menu-item i {
    font-size: 20px;
}

.logout {
    color: #ef4444;
}

.logout:hover {
    background: #fff5f5;
    color: #ef4444;
}











.calendar-wrapper {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow-x: auto;
    background: #fff;

    height: 300px;
    /* fixed height */
    overflow-y: auto;
    /* vertical scroll */
    overflow-x: auto;
    /* horizontal scroll if needed */
}

.calendar-grid {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    min-width: 750px;
}

.time-header {
    text-align: center;
    padding: 5px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.day-header {
    text-align: center;
    padding: 0px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.day-header span {
    display: block;
    font-size: 12px;
    color: #777;
}

.day-header strong {
    font-size: 18px;
}

.day-header.active {
    background: #d8f2e2;
}

.time-cell {
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

.slot {
    height: 20px;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: .2s;
}

.slot:hover {
    background: #f3f3f3;
}

.slot.blocked {
    background:
        repeating-linear-gradient(45deg,
            #d7d7d7,
            #d7d7d7 4px,
            #efefef 4px,
            #efefef 8px);
}

.unavailable {
    background: #f5f5f5;
}

.legend {
    width: 15px;
    height: 15px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.slot.available {
    background: #6c4df6;
}


.slot.unavailable {
    background: #f1f3f5;
}

.legend {
    width: 15px;
    height: 15px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 6px;
}

.legend.available {
    background: #6c4df6;
}

.legend.blocked {
    background:
        repeating-linear-gradient(45deg,
            #d7d7d7,
            #d7d7d7 4px,
            #efefef 4px,
            #efefef 8px);
}

.legend.unavailable {
    background: #f1f3f5;
    border: 1px solid #ccc;
}


.lesson-card {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.lesson-title {
    font-size: 1.25rem;
    color: #0f172a;
}

.lesson-duration {
    margin: 10px 0;
    color: #6b7280;
}

.lesson-price {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.lesson-price-label {
    font-size: 15px;
    color: #6b7280;
}

.info-row {
    border-top: 1px solid #e5e7eb;
    padding: 18px 0;
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0d6efd;
}

.info-label {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 2px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

@media (max-width: 768px) {
    .lesson-title {
        font-size: 32px;
    }

    .lesson-price {
        font-size: 60px;
    }

    .lesson-price-label {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }

    .info-value {
        font-size: 22px;
    }
}



.course-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    position: relative;
}

.error {
    color: rgb(139, 0, 0);
}

.book-cover {
    height: 200px;
    overflow: hidden;
    background: #f1ecff;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.card-content {
    padding: 10px;
}

.course-title {
    font-size: 13px;
    color: #673de6;
    line-height: 1;
}

.course-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-top: 6px;
}

.divider-line {
    height: 14px;
    background: #673de6;
    border-radius: 5px;
    margin: 18px 0;
    font-size: 9px;
    color: white;
    text-align: center;
}

.course-description {
    color: #64748b;
    line-height: 1.8;
    font-size: 15px;
}

.teacher-card {
    margin-top: 2px;
    padding: 2px;
    background: #f8f7ff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.teacher-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #673de6;
}

.teacher-label {
    display: inline-block;
    background: #ece6ff;
    color: #673de6;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    margin-bottom: 5px;
}

.teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.teacher-role {
    font-size: 13px;
    color: #64748b;
}

.stats {
    margin-top: 2px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
}

.stat-box {
    text-align: center;
    padding: 3px;
    border-radius: 5px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

.stat-value {
    color: #673de6;
    font-size: 13px;
    font-weight: 700;
}