:root {
    --brand-purple: #423f9e;
    --btn-bg: #14142b;
    --btn-bg-hover: #22224a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
    color: #14142b;
}

a {
    color: inherit;
}

/* =========================
   HEADER (shared pattern)
========================= */
.site-header {
    width: 100%;
    background: #ffffff;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 20px 6vw;
    max-width: 1400px;
    margin: 0 auto;
}

.header-search {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #cfcfe0;
    padding-bottom: 6px;
    max-width: 260px;
    width: 100%;
}

.header-search svg {
    width: 18px;
    height: 18px;
    stroke: #6a6a7a;
    flex-shrink: 0;
}

.header-search input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #4a4a5a;
    width: 100%;
    background: transparent;
}

.brand {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo {
    width: 42px;
    height: 52px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-tag {
    font-size: 0.7rem;
    color: var(--brand-purple);
    font-style: italic;
    margin-bottom: 2px;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-purple);
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.82rem;
    color: #6a6a7a;
}

.header-actions {
    justify-self: end;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2a2a3a;
    font-size: 0.95rem;
    font-weight: 500;
}

.login-link svg {
    width: 24px;
    height: 24px;
    stroke: #2a2a3a;
}

.header-nav {
    background: var(--brand-purple);
    display: flex;
    justify-content: center;
    gap: 38px;
    padding: 16px 6vw;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.header-nav a:hover {
    color: #ffffff;
}

.header-nav a.active {
    color: rgba(255, 255, 255, 0.55);
}

/* =========================
   EVENTS HERO
========================= */
.events-hero {
    background: linear-gradient(135deg, #1c1b3a 0%, #423f9e 100%);
    text-align: center;
    padding: 72px 24px 64px;
    color: #ffffff;
}

.events-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.events-hero p {
    color: #d3d2e6;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* =========================
   FEATURED NEXT EVENT
========================= */
.featured-event {
    background: #14142b;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 6vw;
}

.featured-event__info {
    max-width: 560px;
}

.featured-event__tag {
    display: inline-block;
    background: #5b57d1;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.featured-event__info h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-event__info p {
    color: #c9c8dd;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.featured-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #d3d2e6;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    background: #5b57d1;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #4a47b0;
}

.featured-event__countdown {
    display: flex;
    gap: 14px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px 18px;
    text-align: center;
    min-width: 72px;
}

.countdown-box span {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
}

.countdown-box small {
    font-size: 0.7rem;
    color: #a9a8c4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================
   UPCOMING EVENTS
========================= */
.events-section {
    padding: 64px 6vw 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.events-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.events-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.events-tabs button {
    background: #f1f0fa;
    border: none;
    color: #423f9e;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.events-tabs button:hover {
    background: #e1dffa;
}

.events-tabs button.active {
    background: var(--brand-purple);
    color: #ffffff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event-card {
    background: #ffffff;
    border: 1px solid #eceaf5;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 14px 30px rgba(20, 20, 43, 0.12);
    transform: translateY(-3px);
}

.event-date {
    width: 56px;
    height: 56px;
    background: #423f9e;
    border-radius: 6px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.event-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b57d1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.event-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-body p {
    color: #6a6a7a;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #8a8a99;
}

.btn-outline {
    display: inline-block;
    text-align: center;
    border: 1.5px solid #423f9e;
    color: #423f9e;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: #423f9e;
    color: #ffffff;
}

.events-empty {
    display: none;
    text-align: center;
    color: #8a8a99;
    font-size: 0.95rem;
    padding: 40px 0;
}

/* =========================
   PAST EVENTS STRIP
========================= */
.past-events {
    background: #f7f6fc;
    padding: 56px 6vw;
}

.past-events h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.past-events__strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.past-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.past-card__img {
    height: 160px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

.past-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #14142b;
}

/* =========================
   STAY UPDATED CTA
========================= */
.events-cta {
    background: #1c1b3a;
    color: #ffffff;
    text-align: center;
    padding: 64px 24px;
}

.events-cta h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.events-cta p {
    color: #c9c8dd;
    margin-bottom: 28px;
}

.events-cta__form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
}

.events-cta__form input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 0.95rem;
    font-family: inherit;
}

.events-cta__form button {
    border: none;
    background: #5b57d1;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 26px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.events-cta__form button:hover {
    background: #4a47b0;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #14142b;
    color: #ffffff;
    padding: 55px 6vw 25px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #bdbdd0;
    max-width: 350px;
    line-height: 1.6;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-column a {
    display: block;
    color: #bdbdd0;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 45px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9696aa;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-social a {
    color: #bdbdd0;
    text-decoration: none;
}

.footer-social a:hover {
    color: #ffffff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-search {
        display: none;
    }
    .header-top {
        grid-template-columns: auto 1fr auto;
    }
}

@media (max-width: 700px) {
    .featured-event {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .events-hero h1 {
        font-size: 2.1rem;
    }
    .brand-sub {
        display: none;
    }
    .header-nav {
        flex-wrap: wrap;
        gap: 14px 22px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: auto;
    }
}