/* =========================================================
   PSAS EVENTS
   Public + logged-in event directory
========================================================= */

:root{
    --event-ink:#172333;
    --event-muted:#677686;
    --event-green:#4cc28a;
    --event-green-dark:#173f33;
    --event-blue:#214a6b;
    --event-line:rgba(23,35,51,.09);
    --event-soft:#f7faf8;
    --event-white:#ffffff;
}

.event-public-page,
.event-member-page{
    min-height:100vh;
}

.event-member-page{
    max-width:1180px;
    margin:0 auto;
    padding:0 0 40px;
}

.event-container{
    width:min(1180px,calc(100% - 34px));
    margin-inline:auto;
}

/* =========================================================
   PUBLIC HEADER
========================================================= */

.event-public-header{
    position:relative;
    z-index:20;
    border-bottom:1px solid var(--event-line);
    background:#fff;
}

.event-public-header-row{
    min-height:72px;
    display:flex;
    align-items:center;
    gap:22px;
}

.event-public-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--event-ink);
    text-decoration:none;
    font-weight:950;
    white-space:nowrap;
}

.event-public-brand img{
    width:42px;
    height:42px;
    display:block;
    object-fit:contain;
}

.event-public-nav{
    display:flex;
    gap:5px;
    align-items:center;
    margin-left:auto;
}

.event-public-nav a{
    padding:9px 11px;
    border-radius:999px;
    color:#536272;
    text-decoration:none;
    font-size:13px;
    font-weight:850;
}

.event-public-nav a:hover,
.event-public-nav a.active{
    background:#eef8f3;
    color:#246d51;
}

.event-public-actions{
    display:flex;
    gap:8px;
}

/* =========================================================
   BUTTONS
========================================================= */

.event-btn{
    display:inline-flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    border:1px solid transparent;
    border-radius:999px;
    text-decoration:none;
    font:inherit;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.event-btn:hover{
    transform:translateY(-1px);
}

.event-btn-main{
    background:var(--event-green);
    color:#07301e;
    box-shadow:0 10px 22px rgba(76,194,138,.18);
}

.event-btn-soft{
    background:#fff;
    border-color:var(--event-line);
    color:#304456;
}

/* =========================================================
   HERO
========================================================= */

.event-hero{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(255,255,255,.14),
            transparent 27%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(76,194,138,.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #17354f,
            #214f6b 52%,
            #173f33
        );
    color:#fff;
}

.event-member-page .event-hero{
    margin-top:4px;
    border-radius:28px;
}

.event-hero-grid{
    display:grid;
    grid-template-columns:
        minmax(0,1.2fr)
        minmax(300px,.8fr);
    gap:36px;
    align-items:center;
    padding-top:68px;
    padding-bottom:62px;
}

.event-member-page .event-hero-grid{
    padding-left:28px;
    padding-right:28px;
}

.event-kicker{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 11px;
    margin-bottom:15px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:999px;
    background:rgba(255,255,255,.09);
    font-size:11px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.event-hero-copy h1{
    max-width:760px;
    margin:0;
    color:#fff;
    font-size:clamp(42px,6vw,70px);
    line-height:.96;
    letter-spacing:-.05em;
}

.event-hero-copy p{
    max-width:720px;
    margin:20px 0 0;
    color:rgba(255,255,255,.84);
    font-size:17px;
    line-height:1.7;
}

.event-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:24px;
}

.event-hero-card{
    padding:23px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:25px;
    background:rgba(255,255,255,.09);
    backdrop-filter:blur(10px);
    box-shadow:0 20px 45px rgba(0,0,0,.11);
}

.event-hero-card strong{
    display:block;
    margin-bottom:8px;
    color:#fff;
    font-size:20px;
}

.event-hero-card p{
    margin:0 0 16px;
    color:rgba(255,255,255,.78);
    font-size:13px;
    line-height:1.6;
}

.event-hero-points{
    display:grid;
    gap:7px;
}

.event-hero-points span{
    padding:8px 10px;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:rgba(255,255,255,.88);
    font-size:11px;
    font-weight:850;
}

/* =========================================================
   MAIN SECTION
========================================================= */

.event-section{
    padding:56px 0 72px;
    background:#fafcfb;
}

.event-member-page .event-section{
    background:transparent;
}

.event-section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:23px;
}

.event-section-kicker{
    display:inline-flex;
    padding:6px 9px;
    margin-bottom:8px;
    border-radius:999px;
    background:#eaf8f0;
    color:#2e7356;
    font-size:10px;
    font-weight:950;
    letter-spacing:.07em;
    text-transform:uppercase;
}

.event-section-head h2{
    margin:0;
    color:var(--event-ink);
    font-size:clamp(30px,4vw,45px);
    line-height:1.03;
    letter-spacing:-.04em;
}

.event-section-head p{
    margin:10px 0 0;
    color:var(--event-muted);
    line-height:1.6;
}

/* =========================================================
   FILTERS
========================================================= */

.event-filters{
    display:grid;
    grid-template-columns:
        minmax(0,1fr)
        minmax(150px,190px)
        minmax(150px,190px)
        auto;
    gap:10px;
    padding:15px;
    border:1px solid var(--event-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 28px rgba(23,35,51,.045);
}

.event-filters input,
.event-filters select{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid rgba(23,35,51,.11);
    border-radius:12px;
    background:#fff;
    color:var(--event-ink);
    font:inherit;
}

.event-search-field{
    min-width:0;
}

.event-results-meta{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    margin:18px 0;
    color:var(--event-muted);
    font-size:13px;
}

.event-results-meta strong{
    color:#405449;
}

.event-results-meta a{
    color:#2a7657;
    text-decoration:none;
    font-weight:900;
}

/* =========================================================
   EVENT CARDS
========================================================= */

.event-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.event-card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    min-width:0;
    border:1px solid var(--event-line);
    border-radius:25px;
    background:#fff;
    box-shadow:0 14px 36px rgba(23,35,51,.065);
}

.event-card.is-featured{
    border-color:rgba(76,194,138,.42);
    box-shadow:
        0 0 0 4px rgba(76,194,138,.07),
        0 17px 38px rgba(23,35,51,.08);
}

.event-card-image{
    height:195px;
    display:grid;
    place-items:center;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.65),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #dff4e8,
            #e7eef8
        );
    background-size:cover;
    background-position:center;
}

.event-card-image > span{
    font-size:52px;
}

.event-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:19px;
}

.event-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:11px;
}

.event-tag{
    display:inline-flex;
    padding:6px 9px;
    border-radius:999px;
    background:#edf8f2;
    color:#307356;
    font-size:10px;
    font-weight:950;
}

.event-tag.is-trade{
    background:#f2edf9;
    color:#654d7d;
}

.event-tag.is-partner{
    background:#173f33;
    color:#fff;
}

.event-tag.is-featured{
    background:#fff3cd;
    color:#755800;
}

.event-card h3{
    margin:0 0 8px;
    color:var(--event-ink);
    font-size:22px;
    line-height:1.16;
}

.event-organiser{
    margin-bottom:12px;
    color:#7b8781;
    font-size:12px;
    font-weight:800;
}

.event-meta{
    display:grid;
    gap:5px;
    margin-bottom:13px;
    color:#586a60;
    font-size:13px;
}

.event-description{
    margin:0 0 19px;
    color:var(--event-muted);
    font-size:13px;
    line-height:1.62;
}

.event-card-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:auto;
}

.event-empty{
    grid-column:1/-1;
    padding:35px;
    border:1px dashed rgba(23,35,51,.15);
    border-radius:22px;
    background:#fff;
    text-align:center;
    color:var(--event-muted);
}

.event-empty strong{
    color:#405449;
}

.event-empty p{
    margin:7px 0 0;
}

/* =========================================================
   SUBMIT PANEL
========================================================= */

.event-submit-panel{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:25px;
    align-items:center;
    margin-top:30px;
    padding:29px;
    border:1px solid var(--event-line);
    border-radius:26px;
    background:
        radial-gradient(
            circle at top right,
            rgba(76,194,138,.13),
            transparent 28%
        ),
        #fff;
    box-shadow:0 13px 34px rgba(23,35,51,.05);
}

.event-submit-panel h2{
    margin:0 0 8px;
    color:var(--event-ink);
    font-size:27px;
}

.event-submit-panel p{
    max-width:760px;
    margin:0;
    color:var(--event-muted);
    line-height:1.65;
}

/* =========================================================
   PUBLIC FOOTER
========================================================= */

.event-public-footer{
    padding:25px 0;
    border-top:1px solid var(--event-line);
    background:#fff;
}

.event-public-footer-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    color:#6e7c75;
    font-size:12px;
}

.event-public-footer nav{
    display:flex;
    flex-wrap:wrap;
    gap:13px;
}

.event-public-footer a{
    color:#536961;
    text-decoration:none;
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:920px){

    .event-hero-grid{
        grid-template-columns:1fr;
    }

    .event-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .event-filters{
        grid-template-columns:1fr 1fr;
    }

    .event-search-field{
        grid-column:1/-1;
    }

    .event-public-nav{
        display:none;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:650px){

    .event-container{
        width:min(100% - 22px,1180px);
    }

    .event-member-page{
        padding-bottom:24px;
    }

    .event-public-header-row{
        min-height:64px;
    }

    .event-public-brand span{
        display:none;
    }

    .event-public-actions{
        margin-left:auto;
    }

    .event-public-actions .event-btn{
        padding-left:11px;
        padding-right:11px;
        font-size:11px;
    }

    .event-hero{
        border-radius:0;
    }

    .event-member-page .event-hero{
        margin-top:0;
        border-radius:20px;
    }

    .event-hero-grid{
        padding-top:46px;
        padding-bottom:44px;
    }

    .event-member-page .event-hero-grid{
        padding-left:17px;
        padding-right:17px;
    }

    .event-hero-copy h1{
        font-size:40px;
    }

    .event-hero-copy p{
        font-size:15px;
    }

    .event-section{
        padding:42px 0 55px;
    }

    .event-section-head{
        align-items:start;
        flex-direction:column;
    }

    .event-filters{
        grid-template-columns:1fr;
        padding:12px;
    }

    .event-search-field{
        grid-column:auto;
    }

    .event-filters .event-btn{
        width:100%;
    }

    .event-results-meta{
        align-items:flex-start;
        flex-direction:column;
    }

    .event-grid{
        grid-template-columns:1fr;
    }

    .event-submit-panel{
        grid-template-columns:1fr;
        padding:21px;
    }

    .event-submit-panel .event-btn{
        width:100%;
    }

    .event-public-footer-row{
        flex-direction:column;
    }

}