.events-page {
    --event-ink: #183553;
    --event-navy: #12365a;
    --event-blue: #2875a8;
    --event-teal: #158b7a;
    --event-line: #d9e3e9;
    --event-mist: #eef5f8;
    background: #f7f9fa;
    color: #263745;
}

.events-page .navbar { background: var(--event-navy); color: #fff; }
.events-page .navbar .container { max-width: 1240px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.events-page .nav-brand { color: #fff; font-size: 1.12rem; line-height: 1.15; }
.events-page .nav-brand-icon { width: 30px; height: 30px; }
.events-page .nav-brand small { display: block; margin-top: 3px; color: #d7e5ef; font-size: 0.68rem; font-weight: 400; }
.events-page .nav-menu { gap: clamp(0.75rem, 2vw, 2rem); }
.events-page .nav-link { display: block; padding: 8px 0; color: #e8f0f5; font-size: 0.9rem; }
.events-page .nav-link:hover, .events-page .nav-link.active { color: #fff; border-bottom: 2px solid #53c7b5; }
.events-page .nav-donate, .events-page .involvement-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 22px; border-radius: 5px; background: #62c3e6; color: #10314e; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.events-page .nav-donate:hover { background: #8dd8ef; }
.events-page .hamburger span { background: #fff; }

.events-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr); min-height: 220px; background: #eaf1f4; }
.events-hero-copy { width: min(100%, 650px); align-self: center; justify-self: end; padding: 28px clamp(24px, 5vw, 68px) 30px 24px; }
.events-page .eyebrow { margin: 0 0 5px; color: var(--event-teal); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.events-hero h1 { margin: 0; color: var(--event-ink); font-size: clamp(2.1rem, 5vw, 2.8rem); line-height: 1.05; }
.events-hero .hero-lede { margin: 4px 0 6px; color: #354e62; font-size: 1.1rem; }
.events-hero-copy > p:last-child { max-width: 570px; margin: 0; color: #556a79; font-size: 0.91rem; line-height: 1.5; }
.events-hero-image { min-height: 220px; background: linear-gradient(90deg, rgba(234, 241, 244, 0.08), rgba(18, 54, 90, 0.04)), url("adventure-english/resources/eventLink.jpg") center 42% / cover; }
.events-content { width: min(100% - 40px, 1160px); margin: 0 auto; padding: 14px 0 30px; }
.event-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; padding: 5px; border: 1px solid var(--event-line); border-radius: 5px; background: #edf3f6; }
.filter-button { min-height: 38px; padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: #445a6b; font: inherit; font-size: 0.84rem; cursor: pointer; }
.filter-button:hover { background: #dce9ef; }
.filter-button.active { background: var(--event-navy); color: #fff; }
.event-section { margin: 0 0 18px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.section-heading h2, .involvement-banner h2 { margin: 0; color: var(--event-ink); font-size: 1.38rem; line-height: 1.25; }
.section-heading > a { flex: 0 0 auto; color: #327896; font-size: 0.82rem; text-decoration: none; }
.section-heading > a:hover, .event-details h3 a:hover { color: var(--event-teal); }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--event-line); border-radius: 5px; background: #fff; }
.event-image { position: relative; display: block; min-height: 120px; overflow: hidden; background: var(--event-mist); }
.event-image img { display: block; width: 100%; height: 100%; min-height: 120px; object-fit: cover; transition: transform 220ms ease; }
.event-card:hover .event-image img { transform: scale(1.035); }
.event-grid-upcoming .event-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
.event-grid-upcoming .event-image { height: 142px; min-height: 142px; }
.event-grid-upcoming .event-image img { height: 142px; min-height: 142px; }
.event-date-badge { position: absolute; top: 8px; left: 8px; display: flex; width: 43px; height: 49px; flex-direction: column; align-items: center; justify-content: center; border-radius: 4px; background: var(--event-navy); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); color: #fff; text-align: center; }
.event-date-badge .month { font-size: 0.68rem; line-height: 1.1; }
.event-date-badge .year { font-size: 1rem; font-weight: 700; line-height: 1.1; }
.event-grid-upcoming .event-details { justify-content: flex-start; gap: 7px; padding: 10px 12px 12px; }
.event-status { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 20px; background: var(--event-teal); color: #fff; font-size: 0.68rem; line-height: 1.5; }
.event-status.upcoming { background: #2875a8; }
.event-status.completed { background: #647786; }
.event-details { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; padding: 11px 13px 10px; }
.event-details h3 { margin: 0 0 3px; color: var(--event-ink); font-size: 0.98rem; line-height: 1.3; }
.event-details h3 a { color: inherit; text-decoration: none; }
.event-details p { margin: 0; color: #61717d; font-size: 0.79rem; line-height: 1.4; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; color: #526a79; font-size: 0.74rem; list-style: none; }
.event-meta li { display: flex; align-items: center; gap: 6px; }
.event-meta li span { color: var(--event-blue); font-size: 0.95rem; }
.involvement-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 19px 24px; border: 1px solid #d1e5eb; border-radius: 5px; background: #eaf5f7; }
.involvement-banner h2 { margin-bottom: 3px; font-size: 1.28rem; }
.involvement-banner > div > p:last-child { margin: 0; color: #526a79; font-size: 0.86rem; }
.events-page .involvement-button { flex: 0 0 auto; background: var(--event-navy); color: #fff; }
.events-page .involvement-button:hover { background: #1d527c; }
.events-page .footer { padding: 18px 0; background: #12365a; color: #e7eff5; text-align: center; }
.events-page .footer p { margin: 0; font-size: 0.82rem; }
.event-card[hidden], .event-section[hidden] { display: none; }

@media (max-width: 760px) {
    .events-page .navbar .container { flex-wrap: wrap; }
    .events-page .nav-donate { margin-left: auto; margin-right: 14px; }
    .events-page .hamburger { display: flex; border: 0; background: transparent; }
    .events-page .nav-menu { display: none; order: 5; width: 100%; flex-direction: column; gap: 0; padding: 8px 0; }
    .events-page .nav-menu.active { display: flex; }
    .events-page .nav-link { padding: 10px 4px; }
    .events-hero { grid-template-columns: minmax(0, 1fr) minmax(190px, 0.75fr); }
    .events-hero-copy { padding: 24px 18px; }
    .events-content { width: min(100% - 28px, 620px); }
    .event-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .events-hero { grid-template-columns: 1fr; }
    .events-hero-copy { justify-self: stretch; padding: 24px 20px 16px; }
    .events-hero-image { min-height: 145px; background-position: center 38%; }
    .events-content { width: min(100% - 24px, 440px); }
    .event-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-button:first-child { grid-column: 1 / -1; }
    .section-heading { align-items: flex-start; }
    .section-heading h2 { font-size: 1.2rem; }
    .section-heading > a { max-width: 45%; text-align: right; }
    .event-card { grid-template-columns: 108px minmax(0, 1fr); }
    .event-details { padding: 9px 10px; }
    .event-meta { gap: 3px 9px; }
    .involvement-banner { align-items: flex-start; flex-direction: column; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .events-page *, .events-page *::before, .events-page *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
