/* Home page */

section.hero {
    padding: 56px 24px 48px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 139, 139, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(0, 87, 87, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--card-background) 0%, transparent 100%);
}

body.dark-theme section.hero {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 139, 139, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(0, 87, 87, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #1a1a1a 0%, transparent 100%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    text-align: left;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-image {
    max-width: 100%;
    width: min(420px, 100%);
    height: auto;
    border-radius: 16px;
    box-shadow:
        0 20px 50px rgba(0, 139, 139, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.hero-brand-mark {
    display: block;
    width: min(210px, 62vw);
    height: auto;
    margin-bottom: 16px;
}

.hero-eyebrow {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--text-color);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-secondary, #555);
    margin: 0 0 28px;
    max-width: 540px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.hero-cta-row .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-cta-row .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.hero-cta-row .btn-secondary {
    background: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.hero-cta-row .btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-stat span {
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

.section-heading {
    font-size: 1.75rem;
    margin: 0 0 20px;
    color: var(--text-color);
    text-align: center;
}

.section-heading--left {
    text-align: left;
    margin: 0;
}

section.home-search {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.home-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

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

.home-search-field--narrow {
    flex: 0 1 220px;
    min-width: 160px;
}

.home-field-icon {
    position: absolute;
    left: 14px;
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 1;
}

.home-search-field .form-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    margin: 0;
    border: 1px solid var(--input-border);
    background: var(--input-background);
    border-radius: 999px;
    font-size: 1rem;
}

.home-search-btn {
    align-self: stretch;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

section.featured-events {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.featured-events-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-see-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.featured-see-all:hover {
    text-decoration: underline;
}

.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.featured-event-card {
    display: block;
    width: 100%;
    max-width: none;
    text-decoration: none;
    color: inherit;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.featured-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.featured-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-event-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.featured-event-body {
    padding: 1rem 1.1rem 1.15rem;
    text-align: left;
}

.featured-event-type {
    font-size: 0.82rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.featured-event-body h3 {
    margin: 6px 0 8px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.featured-event-body p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
}

.featured-event-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-color);
}

section.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 48px 24px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: var(--card-background);
    padding: 24px;
    border-radius: 14px;
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.feature-icon {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 12px;
    line-height: 1;
}

.feature h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.feature p {
    margin: 0;
    color: var(--text-secondary, #666);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .featured-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    section.features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        max-width: none;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    section.hero {
        padding: 32px 16px;
    }

    section.home-search,
    section.featured-events {
        padding: 0 16px;
    }

    .home-search-form {
        flex-direction: column;
        padding: 14px;
    }

    .home-search-field,
    .home-search-field--narrow {
        flex: 1 1 auto;
        min-width: unset;
        width: 100%;
    }

    .home-search-btn {
        width: 100%;
    }

    .featured-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .featured-event-card img {
        height: 100px;
    }

    section.features {
        grid-template-columns: 1fr;
        padding: 32px 16px 48px;
        gap: 14px;
    }

    .featured-events-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-around;
    }
}
