/*
Theme Name: ADHD Tutor Finder
Theme URI: https://adhdtutorfinder.com
Author: ADHD Tutor Finder
Author URI: https://adhdtutorfinder.com
Description: A modern directory theme for ADHD tutors, coaches, and specialists. Find the perfect ADHD tutor for your needs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adhd-tutor-finder
Tags: directory, education, tutoring, adhd, coaching
*/

/* =========================================
   CSS CUSTOM PROPERTIES (Design System)
   ========================================= */
:root {
    /* Primary Colors - ADHD Orange/Yellow tones */
    --color-primary: #FF7F32;
    --color-primary-hover: #E86B1F;
    --color-primary-light: #FFF4ED;
    --color-secondary: #FFB347;
    --color-accent: #4A90A4;

    /* Neutral Colors */
    --color-dark: #2D3748;
    --color-gray: #718096;
    --color-gray-light: #E2E8F0;
    --color-light: #F7FAFC;
    --color-white: #FFFFFF;

    /* Gradient */
    --gradient-hero: linear-gradient(180deg, #FFF4ED 0%, #FFE8D9 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-primary);

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-4);
}

/* =========================================
   CSS RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--space-16) 0;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background-color: transparent;
    padding: var(--space-4) 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.site-logo:hover {
    color: var(--color-primary-hover);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.header-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark);
}

.header-nav a:hover {
    color: var(--color-primary);
}

/* Header User Menu */
.header-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: var(--color-dark);
    transition: all 0.2s;
}

.header-icon-link:hover {
    background: #E2E8F0;
    color: var(--color-primary);
}

.header-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.header-user-menu {
    position: relative;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1);
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.header-user-trigger:hover {
    background: #F1F5F9;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF6B35 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.header-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: var(--space-4);
}

.dropdown-name {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.dropdown-email {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-gray);
}

.dropdown-divider {
    height: 1px;
    background: #E2E8F0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-dark);
    font-size: var(--text-sm);
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: #F8FAFC;
    color: var(--color-primary);
}

.dropdown-item svg {
    color: var(--color-gray);
}

.dropdown-item:hover svg {
    color: var(--color-primary);
}

.dropdown-item.logout {
    color: #DC2626;
}

.dropdown-item.logout:hover {
    background: #FEE2E2;
}

.dropdown-item.logout svg {
    color: #DC2626;
}

.dropdown-badge {
    margin-left: auto;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: var(--gradient-hero);
    padding: var(--space-16) 0 var(--space-20);
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-8);
    color: var(--color-dark);
}

.hero-title span {
    display: block;
}

/* =========================================
   SEARCH FORM
   ========================================= */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto var(--space-10);
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-form .search-icon {
    padding: 0 var(--space-4);
    color: var(--color-gray);
}

.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    background: transparent;
}

.search-form input::placeholder {
    color: var(--color-gray);
}

.search-form .btn {
    margin: var(--space-1);
}

/* =========================================
   CATEGORY ICONS
   ========================================= */
.categories-bar {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-md);
}

.categories-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-dark);
    min-width: 80px;
}

.category-item:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    transition: all var(--transition-fast);
}

.category-item:hover .category-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.category-name {
    font-size: var(--text-xs);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.categories-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.categories-nav-btn:hover {
    background-color: var(--color-primary-light);
}

/* =========================================
   POPULAR STATES
   ========================================= */
.popular-states {
    padding: var(--space-12) 0;
    text-align: center;
}

.section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
    color: var(--color-dark);
}

.states-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.state-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    background-color: var(--color-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark);
    transition: all var(--transition-fast);
}

.state-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   TUTOR CARDS
   ========================================= */
.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.tutor-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tutor-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-light);
}

.tutor-card-content {
    padding: var(--space-5);
}

.tutor-card-name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.tutor-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.tutor-card-category {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.tutor-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-gray);
}

.tutor-card-format {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.tutor-card-fee {
    font-weight: 600;
    color: var(--color-dark);
}

/* =========================================
   FEATURED TUTORS SECTION
   ========================================= */
.featured-tutors {
    padding: var(--space-12) 0 var(--space-16);
    background-color: var(--color-light);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand .site-logo {
    color: var(--color-white);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.footer-brand p {
    color: var(--color-gray);
    font-size: var(--text-sm);
}

.footer-nav h4 {
    color: var(--color-white);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.footer-nav ul li {
    margin-bottom: var(--space-2);
}

.footer-nav a {
    color: var(--color-gray);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin: 0;
}

/* =========================================
   ARCHIVE / LISTING PAGE
   ========================================= */
.archive-header {
    background: var(--gradient-hero);
    padding: var(--space-12) 0;
    text-align: center;
}

.archive-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.archive-description {
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.archive-content {
    padding: var(--space-12) 0;
}

/* Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-4);
    background-color: var(--color-light);
    border-radius: var(--radius-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray);
}

.filter-group select {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-sm);
    background-color: var(--color-white);
    cursor: pointer;
}

/* =========================================
   SINGLE TUTOR PAGE
   ========================================= */
.single-tutor-header {
    background: var(--gradient-hero);
    padding: var(--space-12) 0;
}

.tutor-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
    align-items: start;
}

.tutor-avatar {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.tutor-info h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.tutor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tutor-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
}

.tutor-badge.format {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.tutor-badge.fee {
    background-color: var(--color-secondary);
    color: var(--color-dark);
}

.single-tutor-content {
    padding: var(--space-12) 0;
}

.tutor-description {
    max-width: 800px;
}

.tutor-description h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.tutor-contact {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background-color: var(--color-light);

    border-radius: var(--radius-lg);
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.pagination a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.pagination .current {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }

    .hero {
        padding: var(--space-10) 0 var(--space-12);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .search-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--space-3);
    }

    .search-form input[type="search"],
    .search-form input[type="text"] {
        width: 100%;
        text-align: center;
    }

    .search-form .btn {
        width: 100%;
    }

    .categories-list {
        gap: var(--space-3);
    }

    .category-item {
        min-width: 70px;
    }

    .tutor-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tutor-avatar {
        margin: 0 auto;
    }

    .tutor-badges {
        justify-content: center;
    }

    .header-nav {
        gap: var(--space-4);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-2xl);
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .tutors-grid {
        grid-template-columns: 1fr;
    }

    .states-list {
        gap: var(--space-2);
    }

    .state-link {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   MODERN HOMEPAGE STYLES
   ========================================= */

/* Modern Hero Section */
.hero-modern {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8D9 50%, #E8F4FF 100%);
    padding: var(--space-16) 0 var(--space-20);
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 127, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 127, 50, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Search Form */
.hero-search {
    max-width: 550px;
    margin: 0 auto var(--space-10);
}

.search-form-modern {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-full);
    padding: var(--space-2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-form-modern:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(255, 127, 50, 0.15);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
}

.search-input-wrapper .search-icon {
    color: var(--color-gray);
    margin-right: var(--space-3);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    background: transparent;
}

.btn-search {
    background: var(--color-primary);
    color: white;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-search:hover {
    background: var(--color-primary-hover);
    transform: scale(1.02);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-dark);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-header.text-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.section-subtitle {
    color: var(--color-gray);
    font-size: var(--text-base);
    margin: 0;
}

.btn-view-all {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: gap 0.2s;
}

.btn-view-all:hover {
    gap: var(--space-3);
}

/* Modern Category Cards */
.categories-modern {
    padding: var(--space-12) 0;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.category-card {
    position: relative;
    min-height: 260px;
    /* Increased min-height to fit new content */
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card-color, var(--color-primary));
    display: flex;
    flex-direction: column;
    /* Changed to column */
    justify-content: center;
    /* Center vertically */
    padding: var(--space-6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--card-color) 0%, transparent 60%);
    opacity: 0.95;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.category-content {
    position: relative;
    z-index: 1;
    color: white;
    width: 100%;
    /* Ensure full width */
}

.category-content h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
}

.category-count {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Modern Tutor Cards */
.featured-tutors-modern {
    background: #F8FAFC;
    padding: var(--space-16) 0;
}

.tutors-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.tutor-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tutor-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.tutor-card-modern .card-image {
    position: relative;
    height: 200px;
    background: #E2E8F0;
    flex-shrink: 0;
}

.tutor-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
}

.card-image-placeholder span {
    font-size: 4rem;
    font-weight: 700;
    color: #94A3B8;
}

.card-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    gap: var(--space-2);
    z-index: 11;
    /* Ensure badges are above overlay if needed, though position is top now */
}

.badge-featured {
    background: #FCD34D;
    color: #92400E;
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    font-weight: 600;
}

/* Centered Category Cards - Refined */
.category-card.centered-card .category-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 0;
    /* Removing extra padding as parent has it */
}

.category-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.category-card.centered-card h3 {
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.category-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--space-4);
    line-height: 1.4;
    font-weight: 500;
    color: white;
}

/* Overlay Card Styles */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4);
    padding-top: var(--space-8);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    /* Allow clicks to pass through to image link if needed, but links inside need pointer-events: auto */
}

.card-title-overlay {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.card-title-overlay a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title-overlay a:hover {
    color: var(--color-primary-light, #bfdbfe);
}

.card-location-overlay {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-bookmark {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-bookmark:hover {
    background: var(--color-primary);
    color: white;
}

.btn-bookmark svg {
    width: 18px;
    height: 18px;
}

.card-avatar {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: var(--space-5);
    padding-top: var(--space-6);
    /* Increased top padding to push content down */
    display: flex;
    /* Changed from grid to flex for better vertical stacking without title */
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}

.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    /* Increased margin to push formats down */
    height: 24px;
    overflow: hidden;
    align-items: center;
}

.cat-tag {
    font-size: var(--text-xs);
    color: var(--color-primary);
    font-weight: 500;
}

.cat-tag:not(:last-child)::after {
    content: ', ';
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--color-primary);
}

/* Location - separate row below format badges */
.card-location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-gray);
    margin-bottom: var(--space-3);
    min-height: 20px;
}

.card-location-spacer {
    min-height: 20px;
    margin-bottom: var(--space-3);
}

.card-location svg {
    width: 12px;
    height: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Card Footer Wrapper - always at bottom */
.card-footer-wrapper {
    margin-top: auto;
    width: 100%;
}

/* Card Formats - inline with location feel */
.card-formats {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.375rem;
    margin-bottom: var(--space-3);
    min-height: 28px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.card-formats::-webkit-scrollbar {
    display: none;
}

.format-badge {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.format-online {
    background: #EBF5FF;
    color: #3B82F6;
}

.format-in-person {
    background: #F0FDF4;
    color: #16A34A;
}

.format-hybrid {
    background: #FFF7ED;
    color: #EA580C;
}

.format-location {
    background: #F8FAFC;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.format-location svg {
    flex-shrink: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid #E2E8F0;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
}

.card-rating .star {
    color: #10B981;
}

.rating-value {
    font-weight: 600;
    color: #10B981;
}

.rating-count {
    color: var(--color-gray);
}

.card-price {
    font-weight: 600;
    color: var(--color-dark);
}

/* States Section */
.states-modern {
    padding: var(--space-12) 0;
}

.states-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.state-chip {
    padding: var(--space-3) var(--space-6);
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.2s;
}

.state-chip:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Testimonials Section */
.testimonials-modern {
    background: linear-gradient(180deg, #F0FDFA 0%, #ECFDF5 100%);
    padding: var(--space-16) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.quote-icon {
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-size: 4rem;
    font-family: Georgia, serif;
    color: #14B8A6;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-4);
    margin-left: var(--space-8);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-xl);
    color: white;
}

.testimonial-text {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: var(--space-6);
    margin-left: var(--space-8);
}

.testimonial-author {
    margin-left: var(--space-8);
}

.author-name {
    display: block;
    font-weight: 600;
    color: #14B8A6;
    margin-bottom: var(--space-1);
}

.author-role {
    font-size: var(--text-sm);
    color: var(--color-gray);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: #CBD5E1;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #14B8A6;
}

/* CTA Section */
.cta-modern {
    padding: var(--space-12) 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF6B35 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.cta-content h2 {
    color: white;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: var(--text-lg);
}

.btn-cta {
    background: white;
    color: var(--color-primary);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-lg);
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--color-primary-hover);
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tutors-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: var(--space-10) 0 var(--space-12);
    }

    .hero-stats {
        gap: var(--space-6);
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 150px;
    }

    .tutors-carousel {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8) var(--space-6);
    }

    .cta-content h2 {
        font-size: var(--text-2xl);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form-modern {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--space-3);
    }

    .search-input-wrapper {
        width: 100%;
        padding: var(--space-2) var(--space-4);
    }

    .btn-search {
        width: 100%;
        margin-top: var(--space-2);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .states-grid {
        gap: var(--space-2);
    }

    .state-chip {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* Save Button States */
.btn-save.is-saved svg {
    fill: var(--color-primary);
    color: var(--color-primary);
}

.btn-save.processing {
    opacity: 0.7;
    cursor: wait;
}

/* Bookmark Button States */
.btn-bookmark.is-saved {
    background: var(--color-primary);
}

.btn-bookmark.is-saved svg {
    fill: white;
    stroke: white;
}

.btn-bookmark.processing {
    opacity: 0.7;
    cursor: wait;
}


/* =========================================
   BLOG PAGE STYLES (Refined)
   ========================================= */

/* Blog Hero Section */
.blog-hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
    /* Subtle warm gradient background to connect with header */
    background: linear-gradient(180deg, var(--color-primary-light) 0%, rgba(255, 255, 255, 0) 100%);
    margin-bottom: var(--space-8);
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: var(--space-8);
    align-items: stretch;
}

/* Main Featured Card */
.hero-main-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 500px;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Brand accent border */
    border-bottom: 5px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(255, 127, 50, 0.2);
}

.hero-main-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-main-card .hero-image {
    width: 100%;
    height: 100%;
}

.hero-main-card .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.hero-main-link:hover .hero-image img {
    transform: scale(1.03);
    opacity: 1;
}

.hero-main-card .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(45, 55, 72, 0) 30%, rgba(45, 55, 72, 0.9) 90%);
    pointer-events: none;
}

.hero-main-card .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-10);
    z-index: 10;
    color: white;
}

.hero-main-card .category-badge {
    background: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 10px rgba(255, 127, 50, 0.3);
}

.hero-main-card .hero-title {
    color: white;
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: var(--space-3);
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-main-card .hero-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    max-width: 650px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Side Featured List */
.hero-side-list {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 127, 50, 0.1);
    /* Subtle orange tint border */
    display: flex;
    flex-direction: column;
}

.side-list-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--color-primary-light);
    display: inline-block;
    width: fit-content;
}

.side-post-card {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    align-items: center;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
}

.side-post-card:hover {
    background: var(--color-light);
}

.side-post-card:last-child {
    margin-bottom: 0;
}

.side-post-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.side-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-post-content {
    flex: 1;
}

.side-post-title {
    font-size: var(--text-base);
    line-height: 1.4;
    margin: 0;
    color: var(--color-dark);
    font-weight: 600;
    transition: color 0.2s;
}

.side-post-card:hover .side-post-title {
    color: var(--color-primary);
}

/* Blog Grid Section */
.blog-recent {
    padding-top: var(--space-8);
    padding-bottom: var(--space-16);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Post Card */
.post-card {
    border-radius: var(--radius-xl);
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-light);
}

.post-card .post-image {
    height: 240px;
    background: #E2E8F0;
    position: relative;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
}

.post-meta-top .category-text {
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.post-meta-top .read-time {
    color: var(--color-gray);
    font-weight: 500;
}

.post-card .post-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-dark);
}

.post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card:hover .post-title a {
    color: var(--color-primary);
}

.post-card .post-excerpt {
    font-size: var(--text-base);
    color: var(--color-gray);
    margin-bottom: var(--space-6);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-light);
    margin-top: auto;
}

.post-author .author-avatar img {
    border-radius: var(--radius-full);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-author .author-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark);
}

/* Placeholder Images */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFEFD5 0%, #FFE4E1 100%);
    /* Warmer placeholder */
}

.placeholder-image.small {
    background: #FFEFD5;
}

/* Responsive Blog */
@media (max-width: 992px) {
    .blog-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main-card {
        height: 450px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding-top: var(--space-6);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-main-card {
        height: 350px;
        min-height: auto;
    }

    .hero-main-card .hero-title {
        font-size: 1.75rem;
    }
}
/* =========================================
   ARCHIVE MODERN STYLES (Ported from Search)
   ========================================= */
.archive-hero-modern {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8D9 50%, #E8F4FF 100%);
    padding: var(--space-12) 0;
    position: relative;
    text-align: left; /* Ensure left align as per request */
}

.archive-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(255, 127, 50, 0.08) 0%, transparent 50%);
}

.archive-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.archive-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--color-dark);
}

.archive-hero-content h1 span {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-hero-content p,
.archive-hero-content .archive-description {
    font-size: var(--text-lg);
    color: var(--color-gray);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

