/* Hero overrides */

.hero-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 40%, #f0f9ff 100%) !important;
    color: var(--text-primary) !important;
    padding: 4.5rem 2rem 5rem !important;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

/* Hero background orbs */
.hero-section::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: hero-orb-left 18s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 55%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.06) 45%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: hero-orb-right 22s ease-in-out infinite;
}

@keyframes hero-orb-left {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    33% { transform: translate(8%, 12%) scale(1.05); opacity: 0.9; }
    66% { transform: translate(-5%, -8%) scale(0.98); opacity: 1; }
}

@keyframes hero-orb-right {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    40% { transform: translate(-10%, -15%) scale(1.08); opacity: 0.85; }
    75% { transform: translate(6%, 10%) scale(0.95); opacity: 1; }
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em;
    color: #0f172a !important;
}

.hero-subtitle {
    font-size: 1.125rem !important;
    color: #475569 !important;
    margin-bottom: 2.25rem !important;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.hero-search {
    max-width: 820px;
    margin: 0 auto 2.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 0 1rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.search-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.search-field {
    flex: 1;
    min-width: 180px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-field-category {
    min-width: 160px;
}

.search-field svg {
    position: absolute;
    left: 1rem;
    pointer-events: none;
    color: #94a3b8;
}

.search-input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem 0.75rem 2.75rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff !important;
    height: 48px;
    color: #0f172a !important;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

.hero-category-select {
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    cursor: pointer;
    appearance: auto;
}

.hero-category-select:focus {
    outline: none !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}

.hero-category-select:focus-visible {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

.hero-category-select option:first-of-type {
    font-weight: 500;
    color: var(--text-secondary, #475569);
}

.hero-category-select:not(:focus):not(:focus-visible):hover {
    border-color: #cbd5e1;
}

.search-button {
    padding: 0.75rem 1.75rem !important;
    white-space: nowrap;
    font-weight: 600 !important;
    height: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    min-width: 140px;
    grid-column: 2;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.8125rem !important;
    color: #64748b !important;
    font-weight: 500;
}

/* Latest jobs section */
.latest-jobs-section {
    padding: 4rem 2rem;
    background: #f8fafc !important;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.latest-jobs-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
    letter-spacing: -0.02em;
    text-align: center;
    list-style: none;
    padding-left: 0;
}

.latest-jobs-section .section-title::before {
    display: none !important;
}

.latest-jobs-section .section-title::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin: 0.75rem auto 0;
    background: #6366f1;
    border-radius: 2px;
}

.latest-jobs-section .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
    .search-form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .search-button {
        grid-column: auto;
        width: 100%;
    }
    .search-inputs {
        flex-direction: column;
    }
    .hero-stats {
        gap: 2rem;
    }
    .latest-jobs-section {
        padding: 3rem 1.5rem;
    }
    .latest-jobs-section .card-grid {
        grid-template-columns: 1fr;
    }
}
