/* ==================== TUTOR DETAILS PAGE STYLING ==================== */
.td-page-section {
    background-color: #f8fafc;
    padding: 30px 20px 80px;
    font-family: inherit;
    box-sizing: border-box;
}

.td-page-section *, .td-page-section *::before, .td-page-section *::after {
    box-sizing: border-box;
}

.td-main-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. Profile Hero Card (1.png) */
.td-profile-hero-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
}

.td-hero-left {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 25px;
}

.td-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #f1f5f9;
    box-shadow: 0 8px 20px rgba(124,58,237,0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.td-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-id-badge-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.td-id-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
}

.td-premium-badge {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.td-tutor-name {
    font-size: 26px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.td-tutor-uni-sub {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 12px;
}

.td-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13.5px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 12px;
}

.td-meta-row i {
    color: #7c3aed;
    margin-right: 4px;
}

.td-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.td-stars {
    color: #cbd5e1;
}

.td-rating-val {
    font-weight: 700;
    color: #0f172a;
}

.td-review-count {
    color: #64748b;
}

/* Stats Grid inside Hero Card */
.td-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-top: 25px;
}

.td-stat-box {
    background: #faf5ff40;
    border: 1px solid #f3e8ff;
    border-radius: 12px;
    padding: 14px 18px;
}

.td-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.td-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: #1e1b4b;
}

/* Mobile Contact Trigger Button (8.png) */
.td-mobile-contact-trigger-wrap {
    display: none;
    margin-bottom: 20px;
}

.td-mobile-contact-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* 2. Sticky Navigation Tabs Bar (2.png) */
.td-sticky-nav-bar {
    position: sticky;
    top: 15px;
    z-index: 100;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.td-nav-scroll-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.td-nav-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.td-nav-tab {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.td-nav-tab i {
    color: #7c3aed;
}

.td-nav-tab:hover {
    background: #f8fafc;
    color: #1e1b4b;
}

.td-nav-tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.td-nav-tab.active i {
    color: #fff;
}

/* 3. Main Layout Grid */
.td-content-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
}

.td-left-sections-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Content Boxes (3, 4, 5, 6.png) */
.td-content-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.td-box-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.td-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fae8ff;
    color: #a21caf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.td-box-title-wrap h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
}

.td-dist-tag {
    margin-left: auto;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Section 1 Specifics */
.td-pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.td-pref-row:last-child {
    border-bottom: none;
}

.td-pref-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-pref-label i {
    color: #7c3aed;
}

.td-pref-val.active-avail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.avail-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
}

.td-pref-val-bold {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.td-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.td-info-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

/* Section 2 Specifics (3.png) */
.td-sub-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.td-sub-header-row h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
}

.td-count-badge {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
}

.td-class-group-card {
    background: #fdf4ff40;
    border: 1px solid #f3e8ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.td-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 10px;
}

.td-sub-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.td-sub-pill {
    background: #fff;
    border: 1px solid #e9d5ff;
    color: #7c3aed;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.td-subject-class-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.td-cls-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.td-all-sub-pill {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
}

/* Section 3 Specifics (4.png) */
.td-area-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.td-area-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
}

/* Section 4 Specifics (5.png) */
.td-timeline-wrap {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e9d5ff;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.td-timeline-item {
    position: relative;
}

.td-dot {
    position: absolute;
    left: -27px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7c3aed;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e9d5ff;
}

.td-edu-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.td-edu-top-row h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e1b4b;
}

.td-edu-year {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.td-inst-name {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.td-edu-det {
    font-size: 13px;
    color: #64748b;
}

/* Section 5 Specifics (6.png) */
.td-reviews-inner-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.td-reviews-left-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.td-big-stars {
    color: #334155;
    font-size: 15px;
    margin-bottom: 6px;
    display: flex;
    gap: 4px;
}

.td-avg-score {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.td-rating-count-sub {
    font-size: 12.5px;
    color: #64748b;
}

.td-reviews-right-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-bar-row {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.td-progress-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.td-progress-fill {
    height: 100%;
    background: #cbd5e1;
}

.td-no-review-text {
    font-size: 14px;
    color: #64748b;
}

/* Right Sticky Form Area (2.png) */
.td-right-sticky-form-wrap {
    position: sticky;
    top: 80px;
}

.td-contact-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.td-contact-form-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.td-form-sub-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.td-f-group {
    margin-bottom: 14px;
}

.td-f-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    display: block;
    margin-bottom: 6px;
}

.td-req {
    color: #dc2626;
}

.td-f-group input,
.td-f-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}

.td-f-group input:focus,
.td-f-group textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.td-form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    margin-top: 5px;
    transition: opacity 0.2s;
}

.td-form-submit-btn:hover {
    opacity: 0.92;
}

.td-form-footer-note {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.td-form-footer-note i {
    color: #7c3aed;
}

/* Mobile Popup Modal Styling */
.td-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.td-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.td-modal-content-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.td-modal-overlay.active .td-modal-content-box {
    transform: translateY(0);
}

.td-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.td-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
}

.td-modal-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

