/* ---------- Global font baseline ---------- */
.tutors-archive {
    font-family: var(--font-base, inherit);
}

.tutors-archive .breadcrumbs {
    border-bottom: none !important;
}
/* ---------- Breadcrumb (now last) ---------- */
.breadcrumbs { margin-top: 20px; margin-bottom: 4px; }

/* ---------- Line dividers (before/after filter bar) ---------- */
.tfb-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 16px;
}
.tfb-divider--plain {
    margin-top: 20px;
    margin-bottom: 20px;
}
.tfb-divider-line {
    flex: 1;
    border-bottom: 1px solid #E2E2E2;
}
.tfb-divider-label {
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit; 
    color: #FF9933;
    font-weight: 700;
}

/* ---------- Horizontal filter bar ---------- */
.tutor-filter-bar {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #E2E2E2;
    border-radius: 10px;
    background: #fff;
    margin-top: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(22, 35, 63, 0.06);
}
.tfb-item {
    position: relative;
    flex: 1 1 0;
    min-width: 150px;
    border-right: 1px solid #E2E2E2;
}
.tfb-item:last-child { border-right: none; }
.tfb-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.tfb-hit-area {
    display: block;
    padding: 10px 34px 10px 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tfb-label {
    display: block;
    font-size: 12px;
    color: #B5B8BB;
    margin-bottom: 4px;
}
.tfb-value {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #313131;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tfb-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9FA3A7;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.15s ease;
}
.tfb-toggle:checked ~ .tfb-hit-area .tfb-chevron { transform: translateY(-50%) rotate(180deg); }
.tfb-toggle:focus-visible ~ .tfb-hit-area {
    outline: 2px solid #5FC41A;
    outline-offset: -2px;
    border-radius: 8px;
}

.tfb-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tfb-radio-group {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.tfb-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #E2E2E2;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(22, 35, 63, 0.12);
    z-index: 50;
    cursor: default;
}
.tfb-toggle:checked ~ .tfb-panel { display: block; }
.tfb-panel-header { display: none; }
.tfb-options {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.tfb-option {
    padding: 10px 18px;
    font-size: 14px;
    color: #16233F;
    cursor: pointer;
    white-space: nowrap;
}
.tfb-option:hover,
.tfb-option:focus {
    background: #F2FAEB;
    outline: none;
}
.tfb-option.is-selected { color: #5FC41A; font-weight: 700; }
.tfb-option.is-disabled {
    color: #C7CBCF;
    cursor: not-allowed;
}
.tfb-option.is-disabled:hover { background: none; }
.tfb-option em { font-style: normal; color: #C7CBCF; }

@media (max-width: 991px) and (min-width: 768px) {
    .tutor-filter-bar { flex-wrap: wrap; }
    .tfb-item { flex: 1 1 50%; border-bottom: 1px solid #E2E2E2; }
}

.tfb-backdrop { display: none; }

/* ---------- H1 ---------- */
.tutor-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 100px;
    margin-bottom: 20px;
}
.tutor-heading-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.tutor-heading-title h1 {
    font-size: 26px;
    font-weight: 400;
    color: #313131;
    margin: 0;
    text-shadow: 0 1px 2px rgba(22, 35, 63, 0.08);
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {
    .tutor-heading-row { margin-top: 130px; }
    .breadcrumbs { margin-top: -16px; }
    .tutor-filter-bar { margin-top: 16px; }

    .tutor-filter-bar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border: none;
        background: transparent;
        box-shadow: none;
        gap: 10px;
        padding: 4px 6px 14px 6px; 
    }
    .tutor-filter-bar::-webkit-scrollbar { display: none; }
    .tfb-item {
        flex: 0 0 auto;
        min-width: 0;
        border: 1px solid #E2E2E2;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(22, 35, 63, 0.08);
    }
    .tfb-hit-area {
        padding: 8px 30px 0px 14px;
        display: flex;
        flex-direction: column;
    }
    .tfb-label { font-size: 10px; margin-bottom: 1px; }
    .tfb-value { font-size: 13px; max-width: 110px; }
    .tfb-chevron { right: 10px; font-size: 10px; }

    .tfb-panel {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: 0;
        max-height: 75vh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 30px rgba(22, 35, 63, 0.2);
        z-index: 200;
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }
    .tfb-toggle:checked ~ .tfb-panel {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .tfb-panel-header { display: block; }
    .tfb-panel-handle {
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: #E2E2E2;
        margin: 10px auto 6px;
    }
    .tfb-panel-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 18px 12px;
        border-bottom: 1px solid #F0F0F0;
    }
    .tfb-panel-title {
        font-weight: 700;
        font-size: 15px;
        color: #16233F;
    }
    .tfb-panel-close {
        font-size: 22px;
        line-height: 1;
        color: #9FA3A7;
        cursor: pointer;
        padding: 4px 8px;
    }
    .tfb-options { padding: 6px 0 max(6px, env(safe-area-inset-bottom)); }
    .tfb-option {
        padding: 14px 44px 14px 20px;
        font-size: 16px;
        min-height: 24px;
        position: relative;
    }
    .tfb-option.is-selected {
        background: #EFFBE6;
        color: #3E9B0F;
        font-weight: 700;
    }
    .tfb-option.is-selected::after {
        content: '\2713';
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #5FC41A;
        font-weight: 700;
        font-size: 16px;
    }

    .tfb-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(22, 35, 63, 0.45);
        z-index: 150;
    }
    .tfb-toggle:checked ~ .tfb-backdrop { display: block; }

    .tutor-heading-row { 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
        text-align: center; 
    }
    .tutor-heading-title {
        justify-content: center;
        width: 100%;
    }
    .tutor-heading-title h1 { 
        font-size: 20px; 
    }

    .breadcrumbs {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .breadcrumbs::-webkit-scrollbar { display: none; }
}

.about-tutors h3,
.about-tutors h4 {
    color: rgb(102, 102, 102);
}
.about-tutors h4 {
    font-size: 18px;
}
.about-tutors table {
    width: 100%;
}
.about-tutors table th,
.about-tutors table td {
    border: 1px solid rgb(227, 227, 227);
    padding: 15px;
}
.about-tutors table th {
    text-align: center;
}
.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
    color: #fff;
    background-color: #5FC41A;
    border-color: #5FC41A;
}
.pagination>li>a,
.pagination>li>span {
    color: #5fc41a;
}
.about-tutors a {
    color: #337ab7;
    text-decoration: underline;
}
.breadcrumbs *:last-child {
    color: #FF9933;
}
.tutors-no-results {
    margin-top: 100px;
    text-align: center;
}
.tutor-related-heading {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}
.tutor-related-links {
    margin-bottom: 50px;
}
.tutor-related-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px 8px 0;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}