/**
 * Physics & Maths Tutor - Premium Design System
 */

:root {
    /* Color Palette - Trustworthy & Premium */
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-light: #1e293b;
    /* Slate 800 */
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-light: #dbeafe;
    --green-600: #16a34a;
    --green-light: #dcfce7;
    --purple-600: #9333ea;
    --purple-light: #f3e8ff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-light: #f1f5f9;

    --border-color: #e2e8f0;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--blue-600);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--blue-700);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.highlight {
    background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--blue-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--blue-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
}

.logo-tpmt {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: white;
    font-weight: 800;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--blue-600);
    transition: width var(--transition-normal);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--blue-light);
    color: var(--blue-700);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-image-placeholder {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
    border-radius: 24px;
    border: 1px solid white;
    box-shadow: var(--shadow-glow);
    animation: fadeIn 1s ease-out 0.8s both;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Used basic shapes in hero image placeholder to look appealing without a real image */
.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 2rem;
    border-radius: 12px;
    border: 2px dashed var(--text-muted);
    opacity: 0.5;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card strong {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.floating-card span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: -3s;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-blue-light {
    background-color: var(--blue-light);
}

.bg-green-light {
    background-color: var(--green-light);
}

.bg-purple-light {
    background-color: var(--purple-light);
}

/* Find Tutor Section */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--primary-color);
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px var(--blue-light);
}

select:disabled {
    background-color: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.search-btn {
    height: 54px;
    /* Matches select height roughly */
}

/* Past Papers Section */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.paper-category-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.paper-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header h3 {
    font-size: 1.75rem;
}

.subject-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.subject-list li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.subject-list li a:hover {
    background-color: var(--blue-600);
    color: white;
    transform: translateX(5px);
}

.subject-list li a::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
}

.subject-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Section */
.footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: white;
}

.footer-social p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--blue-600);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, implement a mobile menu toggle here */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .papers-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

/* Utilities */
.hidden {
    display: none !important;
}

/* --- Results Page Custom Design (Blue Theme) --- */

/* Results Hero Banner */
.results-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    margin-top: 4.5rem;
    /* Navbar offset */
    overflow: hidden;
}

.hero-decorative-curve {
    position: absolute;
    top: -50px;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.4);
    pointer-events: none;
}

.results-hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.results-hero-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Inline Filter Bar - Glassmorphism Style */
.inline-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.inline-filter-bar .filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    border-right: 1px solid var(--border-color);
    padding: 0 0.75rem;
}

.inline-filter-bar .filter-group:last-of-type {
    border-right: none;
}

.inline-filter-bar label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.inline-filter-bar select {
    border: none;
    padding: 0 1.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    width: 100%;
    background: transparent;
}

.inline-filter-bar select:focus {
    box-shadow: none;
    outline: none;
}

.inline-filter-bar .select-icon {
    right: 0;
    color: var(--blue-600);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-text:hover {
    color: var(--blue-600);
}

/* Two Column Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

/* New Tutor Card Styling - Clean modern aesthetic */
.tutors-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tutor-card-v2 {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 110px 1fr 220px;
    gap: 1.5rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.tutor-card-v2:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-light);
    transform: translateY(-2px);
}

/* Card Column 1: Profile */
.tc-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.tc-badge {
    position: absolute;
    top: -10px;
    background: var(--blue-light);
    color: var(--blue-700);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.tc-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.tc-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tc-rating .star {
    color: #f59e0b;
    /* Amber 500 */
}

/* Card Column 2: Info */
.tc-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.tc-university {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.tc-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.tc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tc-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.tc-stat svg {
    color: var(--blue-600);
}

/* Card Column 3: Actions & Tags */
.tc-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.tc-price-box {
    text-align: right;
    margin-bottom: 0.5rem;
}

.tc-price-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.tc-price-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tc-tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.tc-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.tc-tag svg {
    color: var(--green-600);
}

/* Sidebar Widget */
.quick-help-widget {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 6rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.quick-help-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-links a {
    color: var(--blue-600);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.help-links a::before {
    content: '→';
    margin-right: 0.5rem;
    transition: transform var(--transition-fast);
}

.help-links a:hover::before {
    transform: translateX(3px);
}

/* Info Sections */
.info-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.info-section h2,
.faq-section h2,
.reviews-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: left;
}

.selection-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast);
}

.selection-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.selection-icon {
    color: var(--blue-600);
    flex-shrink: 0;
    background: var(--blue-light);
    padding: 0.75rem;
    border-radius: 12px;
    width: 50px;
    height: 50px;
}

.selection-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.selection-item strong {
    color: var(--primary-color);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* FAQ */
.faq-section {
    padding: 5rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-toggle:hover {
    color: var(--blue-600);
}

.faq-toggle::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
}

.faq-item.active .faq-toggle::after {
    content: '-';
    color: var(--blue-600);
}

.faq-content {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-content {
    display: block;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.reviewer-img {
    border-radius: 50%;
    margin-bottom: 0.75rem;
    border: 2px solid var(--blue-light);
}

.review-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.review-card strong {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .inline-filter-bar {
        flex-wrap: wrap;
    }

    .tutor-card-v2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tc-actions {
        align-items: center;
    }

    .tc-price-box {
        text-align: center;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }
}

/* --- New Pages (Become a Tutor, About, Contact) --- */
.bg-dark {
    background-color: var(--blue-900);
}

.text-white {
    color: white;
}

.tutor-hero {
    background: linear-gradient(to right, var(--blue-900), var(--blue-800));
    color: white;
    padding: 6rem 0;
    overflow: hidden;
}

.tutor-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tutor-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tutor-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--blue-100);
}

.tutor-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.split-section {
    padding: 6rem 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-grid.reverse .split-content {
    grid-column: 1;
    grid-row: 1;
}

.split-grid.reverse .split-image {
    grid-column: 2;
    grid-row: 1;
}

.split-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-item {
    display: flex;
    margin-top: 2.5rem;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-600);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.step-text h3 {
    margin: 0 0 0.5rem 0;
}

.step-text p {
    margin: 0;
    color: var(--text-gray);
}

.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card.dark-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature-card.dark-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card.dark-card svg {
    color: var(--blue-400);
    margin-bottom: 1.5rem;
}

.feature-card.dark-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.feature-card.dark-card p {
    color: rgba(255, 255, 255, 0.7);
}

.testimonials-section {
    padding: 6rem 0;
}

.testimonial-large {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-large .stars {
    color: #fbbf24;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.testimonial-large blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-heading);
    margin: 0 0 2rem 0;
}

.author-info strong {
    display: block;
    color: var(--blue-900);
    font-size: 1.125rem;
}

.author-info span {
    color: var(--text-gray);
    font-size: 0.875rem;
}

@media (max-width: 900px) {

    .tutor-hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .split-grid.reverse .split-content {
        grid-column: 1;
        grid-row: 2;
    }

    .split-grid.reverse .split-image {
        grid-column: 1;
        grid-row: 1;
    }

    .tutor-hero-content h1 {
        font-size: 2.5rem;
    }
}