/*
Theme Name: Sooryamsu Tutors (Premium Redesign)
Version: 5.0.0
Description: Modern, compact, above-the-fold SaaS marketplace layout matching the approved mockup.
*/

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    --accent: #f59e0b;
    --accent-soft: #fef3c7;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    --hover-shadow: 0 15px 35px rgba(99, 102, 241, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- Top Navigation Bar (Balanced Sleek & Comfortable) --- */
.top-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 36px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 2.5px solid #3730a3;
    border-bottom: 2.5px solid #3730a3;
    box-shadow: 0 4px 20px rgba(55, 48, 163, 0.12);
}

.top-tier .logo a {
    text-decoration: none;
    color: #3730a3 !important;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.top-tier .logo a span {
    color: #3730a3;
}
.top-tier .logo a span span,
.top-tier .logo a span[style*="var(--primary)"],
.top-tier .logo a > span[style*="var(--primary)"],
.top-tier .logo .accent-star,
.top-tier .logo span.accent-star {
    color: #f59e0b !important;
    text-shadow: none;
}
.top-tier .logo .subtitle {
    font-size: 8.5px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-weight: 800;
    margin-top: 1px;
}

.top-tier .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Nav links - Unified 38px pill items (Centralized) */
.top-tier .nav-link-item,
.top-tier .main-nav > a:not(.nav-pill-btn):not(.btn-premium) {
    text-decoration: none;
    color: #334155 !important;
    font-weight: 700;
    font-size: 0.84rem;
    height: 38px;
    padding: 0 14px !important;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    border: 1.5px solid transparent;
    line-height: 1;
    box-sizing: border-box;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.top-tier .nav-link-item:hover, 
.top-tier .main-nav > a:not(.nav-pill-btn):not(.btn-premium):hover {
    color: #3730a3 !important;
    background: #ffffff !important;
    border: 1px solid #3730a3 !important;
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.18) !important;
    transform: translateY(-1px);
}
.top-tier .nav-link-item.active,
.top-tier .main-nav > a.active {
    color: #3730a3 !important;
    background: #ffffff !important;
    border: 1px solid #3730a3 !important;
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.18) !important;
    font-weight: 800 !important;
}

/* Unified Pill Buttons - All exactly 38px height (Centralized) */
.nav-pill-btn {
    text-decoration: none;
    font-weight: 800;
    font-size: 0.83rem;
    height: 38px;
    padding: 0 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    transition: var(--transition);
    border: 1.5px solid transparent;
    line-height: 1;
    box-sizing: border-box;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Guard: Strictly HIDE admin and private profile items by default for all visitors */
#adminHeaderBtn,
.top-tier .nav-pill-admin,
.top-tier [style*="display: none"],
.top-tier [style*="display:none"],
#myProfileBtn,
#logoutBtn {
    display: none !important;
}

/* Reveal ONLY when explicitly verified and authorized */
body.is-admin #adminHeaderBtn,
#adminHeaderBtn.admin-active {
    display: inline-flex !important;
}

body.is-logged-in #myProfileBtn,
body.is-logged-in #logoutBtn,
#myProfileBtn.user-active,
#logoutBtn.user-active {
    display: inline-flex !important;
}

/* Main Website Link Button - Removed as requested */
.top-tier .nav-pill-white {
    display: none !important;
}

/* Admin Panel Button (When Active) */
.top-tier .nav-pill-admin.admin-active,
body.is-admin .top-tier .nav-pill-admin {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 1.5px solid #dc2626 !important;
    height: 38px;
    padding: 0 14px !important;
    font-size: 0.80rem !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}
.top-tier .nav-pill-admin:hover {
    background: #dc2626 !important;
    transform: translateY(-1px);
}

.top-tier .nav-pill-primary {
    background: #3730a3 !important;
    color: #ffffff !important;
    border: 1.5px solid #3730a3 !important;
    height: 38px;
    padding: 0 14px !important;
    font-size: 0.80rem !important;
}
.top-tier .nav-pill-primary:hover {
    background: #312e81 !important;
    transform: translateY(-1px);
}

/* Standout Primary Action: Request a Tutor Button (Theme Royal Blue, Solid & Elevated) */
.top-tier button[onclick*="openRequestTutorModal"],
.top-tier .nav-request-btn {
    background: linear-gradient(135deg, #3730a3 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.28) !important;
    border: 1px solid #3730a3 !important;
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 0.83rem !important;
    font-weight: 800 !important;
    gap: 7px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    transition: var(--transition);
}
.top-tier button[onclick*="openRequestTutorModal"]:hover,
.top-tier .nav-request-btn:hover {
    background: linear-gradient(135deg, #312e81 0%, #3730a3 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(55, 48, 163, 0.40) !important;
    color: #ffffff !important;
}
.top-tier .nav-request-btn i {
    color: #c7d2fe !important;
    transition: var(--transition);
}
.top-tier .nav-request-btn:hover i {
    color: #ffffff !important;
}

/* Secondary Action: Join as Teacher Button - Plain text when idle, border & projection when hovered/selected */
.top-tier #registerHeaderBtn,
.top-tier .btn-unified-search {
    background: transparent !important;
    color: #334155 !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box;
    transition: var(--transition);
    cursor: pointer !important;
    pointer-events: auto !important;
}
.top-tier #registerHeaderBtn:hover,
.top-tier #registerHeaderBtn.active,
.top-tier .btn-unified-search:hover,
.top-tier .btn-unified-search.active {
    background: #ffffff !important;
    border: 1px solid #3730a3 !important;
    color: #3730a3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.18) !important;
    font-weight: 800 !important;
}

/* Join as Student Button - Plain text when idle, border & projection when hovered/selected */
.top-tier .auth-group a[href*="student-auth"] {
    background: transparent !important;
    color: #334155 !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box;
    transition: var(--transition);
    cursor: pointer !important;
    pointer-events: auto !important;
}
.top-tier .auth-group a[href*="student-auth"]:hover,
.top-tier .auth-group a[href*="student-auth"].active {
    background: #ffffff !important;
    border: 1px solid #3730a3 !important;
    color: #3730a3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.18) !important;
    font-weight: 800 !important;
}

/* Login Button - Plain text when idle, border & projection when hovered/selected */
.top-tier .login-trigger,
.top-tier #loginHeaderBtn {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.83rem !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 50px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box;
    transition: var(--transition);
    cursor: pointer !important;
    pointer-events: auto !important;
}
.top-tier .login-trigger:hover,
.top-tier .login-trigger.active,
.top-tier #loginHeaderBtn:hover,
.top-tier #loginHeaderBtn.active {
    background: #ffffff !important;
    border: 1px solid #3730a3 !important;
    color: #3730a3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.18) !important;
    font-weight: 800 !important;
}

.top-tier #logoutBtn {
    color: #64748b !important;
    font-size: 0.82rem !important;
    height: 38px;
    display: inline-flex;
    align-items: center;
}
.top-tier #logoutBtn:hover {
    color: #ef4444 !important;
}

/* Currency Picker - Plain text when idle, border & projection when hovered/focused */
.top-tier .currency-picker-wrap {
    display: inline-flex;
    align-items: center;
}
.top-tier .currency-picker-wrap select {
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 50px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-align-last: center !important;
    box-sizing: border-box !important;
    transition: var(--transition) !important;
}
.top-tier .currency-picker-wrap select:hover,
.top-tier .currency-picker-wrap select:focus {
    background: #ffffff !important;
    border: 1px solid #3730a3 !important;
    color: #3730a3 !important;
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.18) !important;
    transform: translateY(-1px);
    font-weight: 800 !important;
}
.top-tier .currency-picker-wrap select option {
    background: #ffffff;
    color: #1e293b;
}

/* Dashboard Elements in Top Navbar */
.top-tier #messagesHeaderBtn {
    color: #3730a3 !important;
    font-size: 1.15rem !important;
    height: 38px;
    width: 38px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}
.top-tier #messagesHeaderBtn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}
.top-tier #viewPubProfileBtn,
.top-tier #myProfileBtn {
    background: #f8fafc !important;
    color: #3730a3 !important;
    border: 1.5px solid #c7d2fe !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.83rem !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
}
.top-tier #viewPubProfileBtn:hover,
.top-tier #myProfileBtn:hover {
    background: #e0e7ff !important;
    color: #312e81 !important;
}

.top-tier .btn-premium.btn-primary,
.top-tier button.btn-primary {
    background: #3730a3 !important;
    color: #ffffff !important;
    border: 1.5px solid #3730a3 !important;
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.25) !important;
    font-weight: 800 !important;
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 0.83rem !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
.top-tier .btn-premium.btn-primary:hover,
.top-tier button.btn-primary:hover {
    background: #2e2882 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.top-tier #headerPostReqBtn {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
    font-weight: 800 !important;
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 0.83rem !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.top-tier .auth-group {
    display: flex;
    gap: 8px !important;
    align-items: center;
}

/* --- Compact Hero Section (Above the fold) --- */
.hero-compact {
    padding: 28px 0 20px 0;
    background: radial-gradient(ellipse at 78% 40%, #e6ebfe 0%, #eff2fe 45%, #f8faff 100%);
}

.hero-compact-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.hero-text-side {
    flex: 1;
    max-width: 610px;
}

.hero-text-side h1 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
    color: #0f172a;
}
.hero-text-side h1 .gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 20px;
    max-width: 550px;
    line-height: 1.55;
    font-weight: 500;
}

/* Unified Search Capsule */
.hero-unified-search {
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    border: 1.5px solid #e2e8f0;
    max-width: 630px;
    margin-bottom: 18px;
    transition: var(--transition);
}
.hero-unified-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
}

.unified-search-input {
    flex: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.unified-search-input i {
    color: #94a3b8;
    font-size: 1.1rem;
}
.unified-search-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    font-family: inherit;
}
.unified-search-input input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.unified-search-divider {
    width: 1.5px;
    height: 28px;
    background: #e2e8f0;
}

.unified-search-select {
    flex: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.unified-search-select i {
    color: #6366f1;
    font-size: 0.95rem;
}
.unified-search-select select {
    border: none;
    outline: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.btn-unified-search {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-unified-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
}

/* Popular Tag Pills */
.popular-tags-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.popular-tags-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
    margin-right: 2px;
}
.tag-pill {
    text-decoration: none;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.82rem;
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: var(--transition);
    cursor: pointer;
}
.tag-pill:hover, .tag-pill.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Hero Visual Side (Landscape) */
.hero-visual-side {
    flex: 1.15;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}
.hero-image-wrap {
    position: relative;
    max-width: 580px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-main-img {
    width: 100%;
    height: auto;
    max-height: 275px;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(99, 102, 241, 0.08));
}

/* Floating Badges */
.badge-floating-top {
    position: absolute;
    top: 5px;
    right: -15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    font-size: 0.76rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.badge-floating-top span:first-child { color: var(--primary); }

.badge-floating-bottom {
    position: absolute;
    bottom: 5px;
    right: -25px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #6366f1;
    transform: rotate(6deg);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

/* --- Trust Pillars Horizontal Bar --- */
.trust-bar-container {
    max-width: 1400px;
    margin: 16px auto 24px;
    padding: 0 40px;
}
.trust-bar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 13px 26px;
    gap: 20px;
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.trust-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.trust-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.2;
}
.trust-sub {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

/* --- Main Marketplace Layout (Featured Tutors + Right Filter Widget) --- */
.marketplace-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 50px;
}

.featured-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}
.featured-title-wrap h2 {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}
.featured-title-wrap h2 .purple-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.featured-title-wrap p {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 500;
}

.view-all-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.view-all-link:hover {
    gap: 9px;
    color: var(--primary-dark);
}

.marketplace-main-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

/* Tutors Cards Grid Layout */
.teacher-grid-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Home Page Full-Width Featured 8-Tutors Grid */
.home-featured-layout {
    width: 100%;
}
.home-teacher-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}
@media (max-width: 1250px) {
    .home-teacher-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 960px) {
    .home-teacher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 520px) {
    .home-teacher-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* General / Dedicated Tutors Directory Grid (tutors.html) */
.teacher-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
}
@media (min-width: 1400px) {
    .teacher-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1100px) {
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 860px) {
    .marketplace-main-layout {
        flex-direction: column !important;
    }
    .filter-widget-box {
        width: 100% !important;
        position: static !important;
        margin-bottom: 24px !important;
    }
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 520px) {
    .teacher-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* Home Explore All Tutors Button */
.home-explore-more-wrap {
    text-align: center;
    margin-top: 36px;
    padding-bottom: 10px;
}
.btn-explore-all-tutors {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    padding: 13px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-explore-all-tutors:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    color: #ffffff;
}
.home-explore-sub {
    font-size: 0.86rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 10px;
}

/* Dedicated Tutors Directory Hero Banner */
.tutors-hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #3730a3 100%);
    color: #ffffff;
    padding: 44px 20px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tutors-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.tutors-banner-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.tutors-banner-inner .banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fde047;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.tutors-banner-inner h1 {
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.2;
}
.tutors-banner-inner p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
}
.banner-quick-search {
    max-width: 640px;
    margin: 0 auto;
}
.quick-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.quick-search-box i {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 12px;
}
.quick-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: #1e293b;
    font-family: inherit;
    font-weight: 600;
}
.btn-quick-search {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.btn-quick-search:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}
.directory-stats-pill {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
}

/* Tutor Card (Exact Match with Screenshot) */
.tutor-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.tutor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.12);
    border-color: #cbd5e1;
}

.card-thumb-wrap {
    position: relative;
    height: 155px;
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
}
.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}
.tutor-card:hover .card-thumb-img {
    transform: scale(1.04);
}

.card-online-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #059669;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card-online-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.card-subject-chip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #db2777;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}
.card-name-row h3 {
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.fav-heart-btn {
    background: none;
    border: none;
    font-size: 1.15rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-heart-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
}
.fav-heart-btn.active {
    color: #ef4444 !important;
}

.card-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 7px;
}
.card-rating-row .review-count {
    color: #64748b;
    font-weight: 600;
}

.card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
}
.card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-meta-item i {
    color: #94a3b8;
    font-size: 0.85rem;
    width: 14px;
}

.card-price-row {
    font-size: 1.08rem;
    font-weight: 900;
    color: #059669;
    margin-bottom: 12px;
    margin-top: auto;
}
.card-price-row .unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.card-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.btn-card-profile {
    padding: 9px 12px;
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    font-family: inherit;
}
.btn-card-profile:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-card-trial {
    padding: 9px 12px;
    border-radius: 9px;
    border: none;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    font-family: inherit;
}
.btn-card-trial:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* --- Right-Side Filter Widget Box --- */
.filter-widget-box {
    width: 300px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 85px;
}

.filter-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.filter-widget-header h3 {
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.filter-widget-header p {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 1px;
}
.filter-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.filter-widget-fields {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.widget-field {
    position: relative;
    display: flex;
    align-items: center;
}
.widget-field .field-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}
.widget-field .chevron-icon {
    position: absolute;
    right: 12px;
    color: #cbd5e1;
    font-size: 0.75rem;
    pointer-events: none;
}
.widget-field input, .widget-field select {
    width: 100%;
    padding: 9px 28px 9px 34px;
    border-radius: 9px;
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
    appearance: none;
    height: 38px;
    box-sizing: border-box;
}
.widget-field input:focus, .widget-field select:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-widget-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    margin-top: 10px;
    transition: var(--transition);
    height: 40px;
    box-sizing: border-box;
}
.btn-widget-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.btn-widget-clear {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 6px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.btn-widget-clear:focus {
    outline: none;
    border: none;
}
.btn-widget-clear:focus {
    outline: none;
    border: none;
}
.btn-widget-clear:hover {
    color: var(--primary);
}

/* --- Modals --- */
.cbx-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
}
.cbx-modal-content {
    background: #fff;
    margin: 30px auto;
    padding: 35px;
    border-radius: 25px;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    position: relative;
}
.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-muted);
}

/* Mobile Bottom Navigation (Matching Branded Theme) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2.5px solid #3730a3;
    padding: 10px 15px;
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 4px;
    transition: 0.2s;
}
.mobile-nav-item i { font-size: 1.2rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: #3730a3; }

/* --- Mobile & Tablet Offcanvas Drawer Navigation --- */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}
.mobile-header-req {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3730a3, #4338ca);
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(55, 48, 163, 0.25);
    white-space: nowrap;
}
.mobile-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    font-size: 1.15rem;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}
.mobile-hamburger-btn:hover,
.mobile-hamburger-btn:focus {
    background: #eef2ff;
    border-color: #6366f1;
    color: #3730a3;
}

.drawer-backdrop {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.drawer-backdrop.active {
    display: block !important;
    opacity: 1;
}

.mobile-drawer {
    display: none !important;
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 86vw;
    height: 100%;
    background: #ffffff;
    z-index: 10001;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
    transform: translateX(-340px);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1.5px solid #f1f5f9;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.drawer-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.drawer-logo-main {
    font-weight: 900;
    font-size: 1.15rem;
    color: #3730a3;
}
.drawer-logo-sub {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
}
.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.drawer-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.drawer-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.drawer-req-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3730a3, #4338ca);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px 18px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.28);
    transition: 0.2s;
    text-align: center;
}
.drawer-req-btn:hover {
    background: #312e81;
    transform: translateY(-1px);
}

.drawer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: 0.2s;
}
.drawer-nav-item i {
    width: 20px;
    text-align: center;
    color: #6366f1;
    font-size: 1rem;
}
.drawer-nav-item:hover,
.drawer-nav-item.active {
    background: #ffffff;
    color: #3730a3;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.drawer-currency-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-currency-row label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.drawer-currency-row select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.82rem;
    color: #3730a3;
    outline: none;
    cursor: pointer;
}

.drawer-auth-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.drawer-btn-teacher {
    background: #ffffff;
    border: 1.5px solid #3730a3;
    color: #3730a3 !important;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.90rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.drawer-btn-teacher:hover {
    background: #eef2ff;
}
.drawer-btn-student {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b !important;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.90rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.drawer-btn-student:hover {
    background: #ffffff;
    border-color: #3730a3;
    color: #3730a3 !important;
}
.drawer-btn-login {
    background: transparent;
    color: #475569 !important;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.drawer-btn-login:hover {
    color: #3730a3 !important;
}

.drawer-user-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}
.drawer-admin-item {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
.drawer-admin-item i {
    color: #dc2626 !important;
}
.drawer-logout-item {
    color: #ef4444 !important;
}
.drawer-logout-item i {
    color: #ef4444 !important;
}

/* --- Responsive Breakpoints (Tablet & Mobile Overhaul) --- */
@media (max-width: 1024px) {
    /* Mobile Devices & All Tablets (iPad, Galaxy Tab, Phones up to 1024px) */
    body {
        padding-bottom: 75px !important;
    }

    /* 1. Mobile & Tab Header - Hide desktop 9-button nav, show logo + actions (Request Tutor + Hamburger) */
    .top-tier {
        padding: 10px 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #ffffff !important;
        border-top: 2.5px solid #3730a3 !important;
        border-bottom: 2.5px solid #3730a3 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }
    .top-tier .logo {
        flex-shrink: 0 !important;
    }
    .top-tier .main-nav {
        display: none !important;
    }
    .mobile-header-actions {
        display: inline-flex !important;
    }
    .mobile-hamburger-btn {
        display: inline-flex !important;
    }
    .mobile-header-req {
        display: inline-flex !important;
    }
    .mobile-drawer {
        display: flex !important;
    }

    /* 2. Mobile & Tab Hero Section - 100% width, centered */
    .hero-compact {
        padding: 24px 0 16px !important;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    }
    .hero-compact-inner {
        padding: 0 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-text-side {
        width: 100% !important;
        max-width: 640px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-text-side h1 {
        font-size: clamp(1.75rem, 4vw, 2.2rem) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.6px !important;
        margin-bottom: 10px !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
        max-width: 100% !important;
        color: #475569 !important;
    }
    .hero-visual-side {
        display: none !important;
    }

    /* 3. Mobile Unified Search Capsule - Clean vertical form */
    .hero-unified-search {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 12px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 520px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
        border: 1.5px solid #e2e8f0 !important;
        margin-bottom: 14px !important;
    }
    .unified-search-divider {
        display: none !important;
    }
    .unified-search-input,
    .unified-search-select {
        width: 100% !important;
        background: #f8fafc !important;
        color: #1e293b !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }
    .unified-search-input i,
    .unified-search-select i {
        color: #6366f1 !important;
        font-size: 1rem !important;
    }
    .unified-search-input input {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        color: #0f172a !important;
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        font-family: inherit !important;
    }
    .unified-search-select select {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        color: #0f172a !important;
        font-size: 0.90rem !important;
        font-weight: 600 !important;
        font-family: inherit !important;
        cursor: pointer !important;
    }
    .btn-unified-search {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        border-radius: 14px !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        box-sizing: border-box !important;
    }

    .popular-tags-wrap {
        justify-content: center !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }
    .tag-pill {
        padding: 5px 12px !important;
        font-size: 0.74rem !important;
    }

    /* 4. Mobile & Tab Trust Bar - 2x2 grid */
    .trust-bar-container {
        padding: 0 16px !important;
        margin: 14px auto 20px !important;
        max-width: 680px !important;
    }
    .trust-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }
    .trust-item {
        gap: 8px !important;
    }
    .trust-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
    }
    .trust-title {
        font-size: 0.80rem !important;
    }
    .trust-sub {
        font-size: 0.68rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 5. Mobile & Tab Marketplace & Tutors Grid */
    .marketplace-container {
        padding: 0 16px 30px !important;
    }
    .featured-header-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 14px !important;
    }
    .featured-title-wrap h2 {
        font-size: 1.45rem !important;
    }
    .featured-title-wrap p {
        font-size: 0.82rem !important;
    }
    .view-all-link {
        font-size: 0.80rem !important;
        white-space: nowrap !important;
    }

    .home-teacher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* 6. Sticky Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05) !important;
        z-index: 9999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 4px !important;
    }
}

@media (max-width: 520px) {
    /* Narrow Mobile Phones (<520px) */
    .home-teacher-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .hero-text-side h1 {
        font-size: 1.7rem !important;
    }
    .hero-subtitle {
        font-size: 0.88rem !important;
    }
}
@media (min-width: 1025px) {
    .mobile-drawer,
    .drawer-backdrop,
    .mobile-header-actions,
    .mobile-hamburger-btn {
        display: none !important;
    }
}

/* --- Utilities & Backwards Compatibility --- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 18px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.btn-premium {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    border: none;
}
.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}
.accent-star {
    color: var(--primary);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: 0.2s;
    margin-bottom: 12px;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.booking-msg {
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    font-size: 0.88rem;
}


/* --- How It Works Section --- */
.how-it-works-section {
    padding: 20px 0 25px 0;
}
.how-it-works-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.how-it-works-container {
    background: linear-gradient(135deg, #f0f4ff 0%, #f6f8ff 100%);
    border: 1.5px solid #e0e7ff;
    border-radius: 24px;
    padding: 34px 44px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.04);
    position: relative;
    overflow: hidden;
}

.how-it-works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    position: relative;
}
.how-it-works-title-box h2 {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 5px;
}
.how-it-works-title-box p {
    font-size: 0.94rem;
    color: #64748b;
    font-weight: 500;
}

.flight-trail-wrap {
    position: relative;
    width: 200px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.flight-trail-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.flight-plane-icon {
    color: #2563eb;
    font-size: 1.9rem;
    transform: rotate(15deg);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.35));
    z-index: 2;
}

.steps-flow-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.step-card-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.step-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4f46e5;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}
.step-icon-card {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: var(--transition);
}
.step-card-item:hover .step-icon-card {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.16);
    border-color: #6366f1;
}

.step-card-item h4 {
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}
.step-card-item p {
    font-size: 0.83rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.45;
    max-width: 220px;
}

.step-flow-arrow {
    color: #818cf8;
    font-size: 1.15rem;
    opacity: 0.75;
    flex-shrink: 0;
    margin-top: 18px;
}

/* --- Popular Subjects Section --- */
.popular-subjects-section {
    padding: 25px 0 65px 0;
}
.popular-subjects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.subjects-browse-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 14px;
}

.subject-browse-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 8px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.subject-browse-card:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.14);
}

.subject-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}
.subject-browse-card:hover .subject-icon-box {
    transform: scale(1.12);
}

.subject-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
}
.subject-browse-card:hover .subject-name {
    color: var(--primary);
}

/* Responsive adjustments for new sections */
@media (max-width: 1100px) {
    .subjects-browse-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 768px) {
    .how-it-works-wrap, .popular-subjects-container {
        padding: 0 18px;
    }
    .how-it-works-container {
        padding: 24px 18px;
    }
    .steps-flow-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .step-flow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    .flight-trail-wrap {
        display: none;
    }
    .subjects-browse-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .subjects-browse-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Testimonials / Student & Parent Reviews Section
   ========================================================================== */
.testimonials-section {
    padding: 75px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 35px;
}
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(99, 102, 241, 0.12);
    border-color: #cbd5e1;
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 0.92rem;
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.testimonial-quote {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}
.testimonial-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}
.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: white;
    flex-shrink: 0;
}
.author-info h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
}
.author-info p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}
.testimonial-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 8px;
    margin-top: 5px;
}

/* ==========================================================================
   Become a Tutor / Educator CTA Section
   ========================================================================== */
.become-tutor-section {
    padding: 65px 20px;
    background: #ffffff;
}
.become-tutor-banner {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
    border-radius: 28px;
    padding: 50px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 45px rgba(49, 46, 129, 0.25);
    position: relative;
    overflow: hidden;
}
.become-tutor-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.tutor-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.become-tutor-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #ffffff;
}
.become-tutor-content p {
    font-size: 1rem;
    color: #c7d2fe;
    line-height: 1.6;
    margin-bottom: 24px;
}
.tutor-perks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tutor-perk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
}
.tutor-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
}
.cta-btn-primary {
    width: 100%;
    padding: 16px 28px;
    border-radius: 14px;
    background: #ffffff;
    color: #312e81;
    font-weight: 900;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}
.cta-btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.cta-btn-secondary {
    width: 100%;
    padding: 14px 28px;
    border-radius: 14px;
    background: transparent;
    color: #e0e7ff;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}
.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ==========================================================================
   Frequently Asked Questions (FAQ) Section
   ========================================================================== */
.faq-section {
    padding: 75px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.faq-container {
    max-width: 860px;
    margin: 0 auto;
}
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}
.faq-header h2 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}
.faq-header p {
    color: #64748b;
    font-size: 0.98rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08);
}
.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    font-weight: 800;
    font-size: 1.02rem;
    color: #1e293b;
    transition: color 0.2s ease;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-item.active .faq-question {
    color: var(--primary);
}
.faq-chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    background: var(--primary);
    color: #ffffff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
}
.faq-item.active .faq-answer {
    max-height: 250px;
    padding-bottom: 22px;
}

/* ==========================================================================
   Global Footer Section
   ========================================================================== */
.global-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 20px 30px;
    border-top: 1px solid #1e293b;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
    color: #94a3b8;
}
.footer-social-links {
    display: flex;
    gap: 12px;
}
.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}
.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links li a:hover {
    color: #818cf8;
    transform: translateX(3px);
}
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.footer-contact-item i {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.footer-contact-item a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-item a:hover {
    color: var(--primary-light);
}
.footer-bottom-bar {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-links a:hover {
    color: #94a3b8;
}

/* Responsive queries */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .become-tutor-banner {
        grid-template-columns: 1fr;
        padding: 35px 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .global-footer {
        padding-bottom: 100px; /* Account for mobile nav */
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Tutor Jobs Marketplace Section (jobs.html - TeacherOn Style)
   ========================================================================== */
.jobs-page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    color: #ffffff;
    padding: 60px 20px 75px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jobs-page-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.jobs-hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.jobs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(165, 180, 252, 0.35);
    color: #c7d2fe;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.jobs-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 15px 0;
}
.jobs-hero-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 auto 28px auto;
    max-width: 700px;
}
.jobs-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Jobs Filter Container */
.jobs-filter-container {
    max-width: 1200px;
    margin: -35px auto 35px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.jobs-filter-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.jobs-filter-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr auto;
    gap: 14px;
    align-items: center;
}
.jobs-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.jobs-input-wrap i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 0.95rem;
}
.jobs-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    background: #f8fafc;
    transition: var(--transition);
}
.jobs-input-wrap input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    outline: none;
}
.jobs-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}
.jobs-select:focus {
    background: #ffffff;
    border-color: var(--primary);
}

/* Wallet Banner for Educators */
.educator-wallet-banner {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 18px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1.5px solid #c7d2fe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.wallet-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 900;
    color: #1e1b4b;
    border: 1px solid #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

/* Jobs Grid */
.jobs-main-container {
    max-width: 1200px;
    margin: 0 auto 70px auto;
    padding: 0 20px;
}
.jobs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.jobs-count-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: #0f172a;
}
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 24px;
}

/* Job Card */
.job-item-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.job-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.12);
    border-color: #cbd5e1;
}
.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.job-badges-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.job-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}
.job-tag-online { background: #eff6ff; color: #4338ca; border: 1px solid #dbeafe; }
.job-tag-offline { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.job-tag-flexible { background: #f5f3ff; color: #6d28d9; border: 1px solid #ede9fe; }
.job-tag-location { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.job-subject-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 12px 0;
}
.job-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.job-budget-badge {
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 900;
    border: 1px solid #a7f3d0;
}
.job-desc-text {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Contact Box / Actions */
.job-contact-locked {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
}
.job-contact-unlocked {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.btn-unlock-lead {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}
.btn-unlock-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.btn-unlock-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.btn-unlocked-status {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}
.btn-spots-filled {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .jobs-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .jobs-filter-grid {
        grid-template-columns: 1fr;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

