.event-page {
    background:
        radial-gradient(circle at 12% 5%, rgba(255, 140, 52, .12), transparent 28%),
        linear-gradient(180deg, #f7fbf8 0%, #fff 48%, #f7fbf8 100%);
    overflow: hidden;
}

.event-hero,
.event-toolbar,
.event-grid,
.event-empty,
.event-notice {
    width: min(100% - 148px, 1240px);
    margin-inline: auto;
}

.event-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: end;
    padding: 64px 0 34px;
}

.event-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: #006b46;
    background: #e9f5ef;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-hero h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    color: #10231d;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1;
    letter-spacing: 0;
}

.event-hero p {
    max-width: 650px;
    margin: 0;
    color: #60716c;
    font-size: 16px;
    line-height: 1.75;
}

.event-hero-panel {
    min-height: 190px;
    display: grid;
    align-content: end;
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .26), transparent 34%),
        linear-gradient(135deg, #062f22, #006b46);
    box-shadow: 0 26px 50px rgba(5, 42, 30, .18);
}

.event-hero-panel span {
    font-size: 58px;
    font-weight: 950;
    line-height: .95;
}

.event-hero-panel small {
    color: rgba(255, 255, 255, .75);
    font-weight: 800;
}

.event-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 140, 52, .24);
    border-radius: 18px;
    color: #6f4b20;
    background: #fff7ec;
    font-weight: 700;
}

.event-notice i {
    color: #ff8c34;
    margin-top: 3px;
}

.event-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 24px;
    border: 1px solid rgba(6, 73, 51, .10);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 45px rgba(5, 42, 30, .08);
}

.event-toolbar h2 {
    margin: 0 0 6px;
    color: #10231d;
    font-size: 26px;
    font-weight: 950;
}

.event-toolbar p {
    margin: 0;
    color: #60716c;
}

.event-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.event-filter-form label {
    display: grid;
    gap: 6px;
}

.event-filter-form span {
    color: #53625d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-filter-form select,
.event-filter-form button {
    min-height: 46px;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
}

.event-filter-form select {
    min-width: 150px;
    padding: 0 38px 0 13px;
    border: 1px solid rgba(6, 73, 51, .14);
    color: #10231d;
    background: #fbfdfc;
}

.event-filter-form button {
    align-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    color: #fff;
    background: #006b46;
    cursor: pointer;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 34px 0 72px;
}

.event-card {
    min-width: 0;
}

.event-card-button {
    width: 100%;
    height: 100%;
    display: grid;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    text-align: left;
    color: inherit;
    background: #fff;
    box-shadow: 0 20px 42px rgba(5, 42, 30, .10);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}

.event-card-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(5, 42, 30, .16);
}

.event-card-media {
    position: relative;
    display: block;
    height: 225px;
    overflow: hidden;
    background: #e9f5ef;
}

.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.event-card-button:hover .event-card-media img {
    transform: scale(1.06);
}

.event-status {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.event-card-media .event-status {
    position: absolute;
    top: 15px;
    left: 15px;
}

.event-status.upcoming {
    color: #064e3b;
    background: #d1fae5;
}

.event-status.finished {
    color: #6f4b20;
    background: #fff1d7;
}

.event-card-body {
    display: grid;
    gap: 13px;
    padding: 20px;
}

.event-card-meta,
.event-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #65736f;
    font-size: 12px;
    font-weight: 800;
}

.event-card-meta span,
.event-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.event-card-meta i,
.event-card-footer i {
    color: #006b46;
}

.event-category {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #006b46;
    background: #e9f5ef;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.event-card-body strong {
    color: #10231d;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 950;
}

.event-card-copy {
    color: #60716c;
    font-size: 14px;
    line-height: 1.65;
}

.event-card-footer {
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.event-card.is-featured .event-card-button {
    outline: 2px solid rgba(255, 140, 52, .48);
}

.event-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 290px;
    margin-top: 34px;
    margin-bottom: 72px;
    padding: 30px;
    border: 1px dashed rgba(6, 73, 51, .24);
    border-radius: 28px;
    color: #60716c;
    background: #fff;
    text-align: center;
}

.event-empty i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: #006b46;
    background: #e9f5ef;
    font-size: 24px;
}

.event-empty strong,
.event-empty p {
    margin: 0;
}

.event-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
    padding: 24px;
}

.event-modal.is-open {
    display: grid;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 29, 21, .64);
    backdrop-filter: blur(8px);
}

.event-modal-box {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: min(88vh, 760px);
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .26);
}

.event-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #10231d;
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
}

.event-modal-media {
    position: relative;
    min-height: 100%;
    background: #e9f5ef;
}

.event-modal-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.event-modal-media .event-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
}

.event-modal-content {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 32px;
    overflow-y: auto;
}

.event-modal-content h2 {
    margin: 0;
    color: #10231d;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: 0;
}

.event-modal-content p {
    margin: 0;
    color: #60716c;
    line-height: 1.75;
}

.event-modal-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.event-modal-facts div {
    padding: 13px;
    border-radius: 16px;
    background: #f4f8f6;
}

.event-modal-facts dt {
    color: #65736f;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.event-modal-facts dd {
    margin: 5px 0 0;
    color: #10231d;
    font-weight: 850;
}

.event-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    color: #fff;
    background: #006b46;
    font-weight: 900;
}

.event-register-link.is-hidden {
    display: none;
}

body.event-modal-lock {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .event-hero,
    .event-toolbar,
    .event-grid,
    .event-empty,
    .event-notice {
        width: min(100% - 56px, 1080px);
    }

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

@media (max-width: 900px) {
    .event-hero,
    .event-toolbar,
    .event-modal-box {
        grid-template-columns: 1fr;
    }

    .event-hero-panel {
        min-height: 150px;
    }

    .event-filter-form {
        justify-content: stretch;
    }

    .event-filter-form label,
    .event-filter-form button {
        flex: 1 1 180px;
    }

    .event-modal-box {
        max-height: 88vh;
        overflow-y: auto;
    }

    .event-modal-media img {
        min-height: 280px;
        max-height: 320px;
    }
}

@media (max-width: 640px) {
    .event-hero,
    .event-toolbar,
    .event-grid,
    .event-empty,
    .event-notice {
        width: min(100% - 32px, 520px);
    }

    .event-hero {
        padding-top: 42px;
    }

    .event-toolbar,
    .event-filter-form {
        display: grid;
    }

    .event-filter-form label,
    .event-filter-form button {
        width: 100%;
    }

    .event-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 50px;
    }

    .event-card-media {
        height: 210px;
    }

    .event-modal {
        padding: 14px;
    }

    .event-modal-box {
        border-radius: 22px;
    }

    .event-modal-content {
        padding: 24px 18px;
    }

    .event-modal-facts {
        grid-template-columns: 1fr;
    }
}

/* Finished Event Cards & Proposal Banner Custom Styles */
.event-card.is-finished .event-card-media img {
    filter: grayscale(100%);
    opacity: 0.65;
}

.event-card.is-finished .event-card-body {
    background-color: #f5f8f6;
}

.event-card.is-finished .event-card-body strong {
    color: #5d6d69;
}

.event-card.is-finished .event-card-copy {
    color: #83918d;
}

.event-card.is-finished .event-card-meta,
.event-card.is-finished .event-card-footer {
    color: #83918d;
}

.event-card.is-finished .event-card-meta i,
.event-card.is-finished .event-card-footer i {
    color: #83918d;
}

.event-card.is-finished .event-category {
    background: #e6eae8;
    color: #6a7773;
}

.event-propose-banner {
    width: min(100% - 148px, 1240px);
    margin-inline: auto;
    margin-bottom: 72px;
    padding: 24px 32px;
    border: 1px solid rgba(6, 73, 51, .10);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 246, 0.95));
    box-shadow: 0 16px 36px rgba(5, 42, 30, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.event-propose-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.event-propose-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #e9f5ef;
    color: #006b46;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.event-propose-banner:hover .event-propose-icon {
    transform: scale(1.05) rotate(-5deg);
}

.event-propose-text h3 {
    margin: 0 0 6px;
    color: #10231d;
    font-size: 18px;
    font-weight: 800;
}

.event-propose-text p {
    margin: 0;
    color: #60716c;
    font-size: 14px;
    line-height: 1.5;
}

.event-propose-action {
    flex-shrink: 0;
}

.btn-propose-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid #006b46;
    border-radius: 14px;
    color: #006b46;
    background: transparent;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-propose-event i {
    font-size: 14px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-propose-event:hover {
    background: #006b46;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 107, 70, 0.2);
}

.btn-propose-event:hover i {
    transform: translateX(4px);
}

/* Responsiveness overrides for the proposal banner */
@media (max-width: 1180px) {
    .event-propose-banner {
        width: min(100% - 56px, 1080px);
    }
}

@media (max-width: 900px) {
    .event-propose-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 20px;
    }
    
    .event-propose-action {
        width: 100%;
    }
    
    .btn-propose-event {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .event-propose-banner {
        width: min(100% - 32px, 520px);
        border-radius: 22px;
    }
    
    .event-propose-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .event-propose-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 20px;
    }
}

