/* ===== RESET AND BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #18181B;
    background-color: #F8F9FA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: #18181B;
}

p {
    margin: 0;
    line-height: 1.6;
}

a {
    color: #0057B7;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #00428A;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.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;
}

/* ===== COLORS ===== */
:root {
    /* Primary Colors */
    --primary-500: #0057B7;
    --primary-700: #00428A;
    --primary-100: #E6F0F8;
    
    /* Neutral Colors */
    --neutral-900: #18181B;
    --neutral-600: #52525B;
    --neutral-300: #D4D4D8;
    --neutral-200: #E4E4E7;
    
    /* Background Colors */
    --bg-page: #F8F9FA;
    --bg-surface: #FFFFFF;
    
    /* Semantic Colors */
    --success: #16A34A;
    --warning: #FBBF24;
    --error: #DC2626;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    height: 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.btn-primary {
    background-color: var(--primary-500);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 87, 183, 0.25);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-900);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background-color: var(--primary-100);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.btn-sm {
    padding: 8px 16px;
    height: 36px;
    font-size: 14px;
    min-width: 80px;
}

.btn-lg {
    padding: 16px 32px;
    height: 56px;
    font-size: 18px;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--bg-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-500);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}

.logo-icon {
    color: var(--primary-500);
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--neutral-900);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-500);
}

.nav-link.active {
    color: var(--primary-500);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-500);
    border-radius: 1px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--neutral-900);
    cursor: pointer;
    padding: 8px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--bg-page) 0%, #F0F4F8 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--neutral-600);
    margin-bottom: 48px;
    line-height: 1.4;
}

/* ===== SEARCH BAR ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background-color: var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 87, 183, 0.08);
    padding: 8px;
    margin-bottom: 32px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--neutral-600);
    z-index: 1;
}

.search-input {
    width: 100%;
    height: 48px;
    border: none;
    outline: none;
    padding: 12px 16px 12px 48px;
    font-size: 16px;
    background: transparent;
    color: var(--neutral-900);
}

.search-input::placeholder {
    color: var(--neutral-600);
}

.search-btn {
    background-color: var(--primary-500);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 120px;
}

.search-btn:hover {
    background-color: var(--primary-700);
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-filters-label {
    color: var(--neutral-600);
    font-weight: 500;
    white-space: nowrap;
}

.filter-tag {
    background-color: var(--bg-surface);
    color: var(--neutral-600);
    border: 1px solid var(--neutral-300);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tag:hover {
    background-color: var(--primary-100);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

/* ===== SECTIONS ===== */
.featured-workshops,
.how-it-works,
.popular-districts {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STEPS ===== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-100);
    color: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 16px;
}

.step-description {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* ===== DISTRICTS ===== */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.district-card {
    background-color: var(--bg-surface);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-300);
}

.district-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 87, 183, 0.12);
    border-color: var(--primary-500);
}

.district-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.district-count {
    color: var(--neutral-600);
    font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--neutral-900);
    color: #FFFFFF;
    padding: 64px 0 32px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-description {
    color: #D4D4D8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #262626;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social-link:hover {
    background-color: var(--primary-500);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #D4D4D8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.contact-info p {
    color: #D4D4D8;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #262626;
    color: #D4D4D8;
}