/*==================================================
  File : find-tutor.css
  Description : Find Tutor Page Styling
  Author : TutorMatch
==================================================*/

/*==================================================
  1. PAGE HEADER & VIDEO BACKGROUND
==================================================*/

.tm-page-header{
    position: relative;
    padding: 64px 0 52px;
    background: var(--color-background);
    border-bottom: 1px solid rgba(15,23,42,.06);
    overflow: hidden;
    z-index: 1;
}

.tm-header-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* --- 1. Video aur Overlay ki opacity theek karein --- */
.tm-header-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85; /* Video ko zyada saaf dikhane ke liye opacity badhai hai */
    filter: grayscale(10%);
}

.tm-header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* White tint ko halka kiya hai taki background video clearly dikhe */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.tm-header-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Subtle transparent video overlay */
    filter: grayscale(10%);
}

.tm-header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* White overlay ko halka karne ke liye opacity/alpha value kam karein */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.15) 100%);
}
/*----------------------------------
Title & Subtitle
-----------------------------------*/

.tm-page-title{
    max-width: 720px;
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--color-text-primary);
}

.tm-page-title span{
    color: var(--color-primary);
}

.tm-page-subtitle{
    max-width: 620px;
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/*==================================================
  2. FIND TUTOR SEARCH BAR
==================================================*/

.tm-findtutor-search{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    background: var(--color-surface, #ffffff);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    padding: 8px;
    gap: 8px;
}

.tm-search-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-right: 1px solid var(--color-border, #E2E8F0);
}

.tm-search-item:last-of-type{
    border-right: none;
}

.tm-search-item i{
    font-size: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.tm-search-item select,
.tm-search-item input{
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.tm-search-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-md, 8px);
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.tm-search-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37,99,235,.28);
}

/*==================================================
  3. MAIN LAYOUT : HORIZONTAL FILTERS & RESULTS
==================================================*/

.tm-findtutor-main{
    padding: 40px 0 80px;
    background: #ffffff;
}

.tm-findtutor-layout{
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/*==================================================
  4. HORIZONTAL FILTER SIDEBAR
==================================================*/

.tm-filter-sidebar{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    background: var(--color-background, #F8FAFC);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius-lg, 12px);
}

.tm-filter-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #E2E8F0);
}

.tm-filter-header h3{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-primary);
}

.tm-filter-clear{
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
}

.tm-filter-options-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tm-filter-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-filter-group h4{
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

.tm-filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

/* Checkbox & Radio styling */

.tm-checkbox, .tm-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.tm-checkbox input, .tm-radio input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--color-border-hover, #CBD5E1);
    background: #ffffff;
    cursor: pointer;
    transition: all .2s ease;
}

.tm-checkbox input { border-radius: 4px; }
.tm-radio input { border-radius: 50%; }

.tm-checkbox input:checked, .tm-radio input:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.tm-filter-apply {
    align-self: flex-end;
    height: 40px;
    padding: 0 20px;
    font-size: 13px;
}

/*==================================================
  5. RESULTS TOOLBAR
==================================================*/

.tm-results-toolbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.tm-results-count{
    font-size: 14px;
    color: var(--color-text-secondary);
}

.tm-results-count strong{
    color: var(--color-text-primary);
    font-weight: 800;
}

.tm-results-sort{
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-results-sort label{
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.tm-results-sort select{
    padding: 8px 12px;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--radius-sm, 6px);
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/*==================================================
  6. COMPACT TUTOR CARDS & GRID
==================================================*/

.tm-tutor-grid {
    display: grid;
    gap: 20px;
}

.tm-tutor-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Tutor Card Size Adjustments */

.tm-tutor-card {
    background: #ffffff;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--radius-md, 10px);
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.tm-tutor-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.tm-tutor-name {
    font-size: 16px;
    font-weight: 700;
}

.tm-tutor-subject {
    font-size: 13px;
}

/*==================================================
  7. PAGINATION
==================================================*/

.tm-pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.tm-page-btn{
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--radius-pill, 999px);
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tm-page-number{
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 50%;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.tm-page-number.active{
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/*==================================================
  8. RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE)
==================================================*/

/* Laptop (Max 1200px) */
@media (max-width: 1200px) {
    .tm-tutor-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tm-filter-options-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (Max 992px) */
@media (max-width: 992px) {
    .tm-page-title {
        font-size: 32px;
    }

    .tm-findtutor-search {
        grid-template-columns: 1fr 1fr;
    }

    .tm-search-btn {
        grid-column: 1 / -1;
    }

    .tm-tutor-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-filter-options-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    .tm-page-header {
        padding: 40px 0;
    }

    .tm-page-title {
        font-size: 26px;
    }

    .tm-findtutor-search {
        grid-template-columns: 1fr;
    }

    .tm-search-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border, #E2E8F0);
    }

    .tm-filter-options-wrapper {
        grid-template-columns: 1fr;
    }

    .tm-tutor-grid-3 {
        grid-template-columns: 1fr;
    }

    .tm-results-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .tm-page-title {
        font-size: 22px;
    }

    .tm-pagination {
        flex-wrap: wrap;
    }
}