/* =========================================================
   PUBLIC EVENTS + EVENT DETAIL + SOCIAL SHARE
========================================================= */

.public-events-page,
.event-detail-page{
    background:#f7fafc;
    color:#172126;
}

/* =========================================================
   EVENTS LIST HERO
========================================================= */

.events-page-hero{
    position:relative;
    overflow:hidden;
    padding:76px 0 82px;
    background:
        radial-gradient(
            circle at 82% 22%,
            rgba(41,183,190,.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #123f47 0%,
            #0d656b 62%,
            #0b7d82 100%
        );
    color:#fff;
}

.events-page-hero::after{
    content:"";
    position:absolute;
    right:-100px;
    bottom:-150px;
    width:390px;
    height:390px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.07);
    box-shadow:
        0 0 0 65px rgba(255,255,255,.025),
        0 0 0 130px rgba(255,255,255,.018);
}

.events-page-hero .container{
    position:relative;
    z-index:2;
}

.events-page-hero span,
.public-events-toolbar>div>span,
.event-gallery-heading>span,
.event-description>span,
.event-share-eyebrow{
    color:#70d4d7;
    font-size:12px;
    font-weight:850;
    letter-spacing:.1em;
}

.events-page-hero h1{
    margin:10px 0 14px;
    font-size:clamp(40px,5vw,68px);
    line-height:1.08;
    letter-spacing:-.035em;
}

.events-page-hero p{
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.82);
    font-size:18px;
    line-height:1.8;
}

/* =========================================================
   EVENTS LIST SECTION
========================================================= */

.public-events-section{
    padding:62px 0 82px;
}

.public-events-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:24px;
    margin-bottom:30px;
}

.public-events-toolbar h2,
.event-gallery-heading h2{
    margin:8px 0 0;
    color:#12345b;
    font-size:clamp(28px,3vw,44px);
    line-height:1.25;
}

.public-event-filters{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}

.public-event-filters button{
    min-height:40px;
    padding:9px 15px;
    border:1px solid #d7e0e6;
    border-radius:999px;
    background:#fff;
    color:#536575;
    cursor:pointer;
    font-weight:750;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.public-event-filters button:hover{
    transform:translateY(-1px);
    border-color:#0a8f98;
    color:#0a8f98;
}

.public-event-filters button.is-active{
    border-color:#0a8f98;
    background:#0a8f98;
    color:#fff;
    box-shadow:0 8px 20px rgba(10,143,152,.18);
}

/* =========================================================
   EVENT CARDS
========================================================= */

.public-events-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    align-items:stretch;
}

.public-events-grid.single-event-grid{
    grid-template-columns:minmax(0,900px);
    justify-content:center;
}

.public-event-card{
    display:grid;
    grid-template-rows:auto 1fr;
    overflow:hidden;
    border:1px solid #e1e8ec;
    border-radius:20px;
    background:#fff;
    box-shadow:0 12px 34px rgba(25,57,72,.07);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.public-event-card:hover{
    transform:translateY(-6px);
    border-color:#c9dde2;
    box-shadow:0 22px 46px rgba(25,57,72,.14);
}

.public-event-image{
    position:relative;
    display:grid;
    place-items:center;
    overflow:hidden;
    aspect-ratio:16/10;
    background:
        linear-gradient(135deg,#edf2f5,#e2eaee);
    color:#aaa;
    text-decoration:none;
    font-size:45px;
}

.public-event-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,.01) 35%,
        rgba(0,0,0,.28) 100%
    );
    pointer-events:none;
}

.public-event-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .38s ease;
}

.public-event-card:hover .public-event-image img{
    transform:scale(1.045);
}

.event-image-placeholder{
    color:#a4afb7;
    font-size:48px;
}

.public-featured-badge{
    position:absolute;
    z-index:3;
    right:14px;
    top:14px;
    padding:6px 10px;
    border-radius:999px;
    background:#d6aa47;
    color:#172126;
    font-size:10px;
    font-weight:850;
    box-shadow:0 8px 18px rgba(0,0,0,.14);
}

.public-event-date{
    position:absolute;
    z-index:3;
    left:14px;
    top:14px;
    display:grid;
    place-items:center;
    min-width:58px;
    padding:9px 8px;
    border:1px solid rgba(255,255,255,.38);
    border-radius:13px;
    background:rgba(255,255,255,.90);
    backdrop-filter:blur(12px);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.public-event-date strong{
    color:#62666b;
    font-size:21px;
    line-height:1;
}

.public-event-date small{
    margin-top:4px;
    color:#92979b;
    font-size:9px;
    font-weight:850;
}

.public-event-image>b{
    position:absolute;
    z-index:3;
    right:13px;
    bottom:13px;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(0,0,0,.64);
    color:#fff;
    font-size:10px;
    backdrop-filter:blur(10px);
}

.public-event-body{
    display:flex;
    flex-direction:column;
    padding:20px;
}

.public-event-body>span{
    display:inline-flex;
    align-self:flex-start;
    padding:5px 8px;
    border-radius:999px;
    background:#e9f8f9;
    color:#0693a0;
    font-size:10px;
    font-weight:850;
}

.public-event-body h3{
    margin:10px 0;
    font-size:21px;
    line-height:1.4;
}

.public-event-body h3 a{
    color:#17345c;
    text-decoration:none;
}

.public-event-information{
    display:grid;
    gap:6px;
    margin-bottom:18px;
}

.public-event-information p,
.public-event-body>p{
    margin:0;
    color:#788895;
    font-size:13px;
}

.public-event-view-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:44px;
    margin-top:auto;
    padding:10px 14px;
    border-radius:11px;
    background:#0a8f98;
    color:#fff!important;
    text-decoration:none;
    font-weight:800;
}

.public-event-view-button span{
    transition:transform .2s ease;
}

.public-event-view-button:hover span{
    transform:translateX(3px);
}

/* Wide single-event presentation */

.public-events-grid.single-event-grid .public-event-card{
    grid-template-columns:minmax(360px,1.15fr) minmax(320px,.85fr);
    grid-template-rows:auto;
    min-height:390px;
}

.public-events-grid.single-event-grid .public-event-image{
    min-height:390px;
    aspect-ratio:auto;
}

.public-events-grid.single-event-grid .public-event-body{
    justify-content:center;
    padding:38px;
}

.public-events-grid.single-event-grid .public-event-body h3{
    font-size:30px;
}

.public-events-grid.single-event-grid .public-event-information p{
    font-size:15px;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.public-events-empty{
    display:grid;
    justify-items:center;
    padding:60px 30px;
    border:1px dashed #ccd7df;
    border-radius:20px;
    background:#fff;
    text-align:center;
}

.public-events-empty>span{
    color:#a7b2ba;
    font-size:50px;
}

.public-events-empty h2{
    margin:10px 0 6px;
    color:#17345c;
}

.public-events-empty p{
    margin:0;
    color:#7c8a95;
}

/* =========================================================
   EVENT DETAIL HERO
========================================================= */

.event-detail-hero{
    position:relative;
    min-height:540px;
    display:flex;
    align-items:flex-end;
    overflow:hidden;
    color:#fff;
    background:#123f47;
}

.event-detail-hero>img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.event-detail-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(6,40,48,.86) 0%,
        rgba(6,40,48,.58) 50%,
        rgba(6,40,48,.28) 100%
    );
}

.event-detail-hero .container{
    position:relative;
    z-index:2;
    width:100%;
    padding-top:90px;
    padding-bottom:70px;
}

.event-back-link{
    display:inline-flex;
    color:#fff;
    text-decoration:none;
    font-weight:750;
}

.event-detail-kicker{
    display:block;
    margin-top:38px;
    color:#8ee4e5;
    font-size:12px;
    font-weight:850;
    letter-spacing:.1em;
}

.event-detail-hero h1{
    max-width:900px;
    margin:10px 0 20px;
    font-size:clamp(38px,5vw,70px);
    line-height:1.1;
}

.event-detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.event-detail-meta b{
    padding:9px 12px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:999px;
    background:rgba(255,255,255,.09);
    font-size:12px;
    backdrop-filter:blur(10px);
}

.event-hero-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:26px;
}

.event-primary-action,
.event-native-share{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:11px 18px;
    border-radius:11px;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.event-primary-action{
    background:#d7ae55;
    color:#172126!important;
    text-decoration:none;
}

.event-native-share{
    border:1px solid rgba(255,255,255,.38);
    background:rgba(255,255,255,.11);
    color:#fff;
    backdrop-filter:blur(12px);
}

/* =========================================================
   EVENT DESCRIPTION + SHARE PANEL
========================================================= */

.event-detail-content{
    padding:70px 0 90px;
}

.event-detail-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:38px;
    align-items:start;
    margin-bottom:64px;
}

.event-description{
    max-width:900px;
    margin:0;
}

.event-description h2,
.event-share-card h2{
    margin:8px 0 14px;
    color:#12345b;
    font-size:30px;
}

.event-description p{
    color:#596c78;
    font-size:17px;
    line-height:1.9;
}

.event-share-card{
    position:sticky;
    top:100px;
    padding:24px;
    border:1px solid #e0e8ed;
    border-radius:20px;
    background:#fff;
    box-shadow:0 14px 38px rgba(20,52,73,.075);
}

.event-share-card>p{
    color:#6c7d89;
    line-height:1.65;
}

.event-share-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin-top:18px;
}

.share-button{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:43px;
    padding:10px 11px;
    border:1px solid #e2e7eb;
    border-radius:11px;
    background:#fff;
    color:#273746;
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.share-button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(20,52,73,.09);
}

.share-button span{
    display:grid;
    place-items:center;
    width:25px;
    height:25px;
    border-radius:50%;
    color:#fff;
    font-size:11px;
}

.share-button.whatsapp span{
    background:#25d366;
}

.share-button.facebook span{
    background:#1877f2;
}

.share-button.twitter span{
    background:#111;
}

.share-button.email span{
    background:#6c7b8a;
}

.copy-event-link{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    margin-top:10px;
    padding:11px;
    border:1px solid #cbdde1;
    border-radius:11px;
    background:#eefafa;
    color:#087f8b;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.copy-feedback{
    min-height:20px;
    margin:8px 0 0!important;
    color:#16834f!important;
    font-size:12px;
    text-align:center;
}

/* =========================================================
   EVENT PHOTO GALLERY
========================================================= */

.event-gallery-heading p{
    margin:9px 0 0;
    color:#74848f;
}

.event-masonry-grid{
    columns:3 280px;
    column-gap:14px;
    margin-top:24px;
}

.event-masonry-grid button{
    width:100%;
    margin:0 0 14px;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:15px;
    background:#edf2f5;
    cursor:zoom-in;
    break-inside:avoid;
}

.event-masonry-grid img{
    display:block;
    width:100%;
    height:auto;
    transition:transform .3s ease;
}

.event-masonry-grid button:hover img{
    transform:scale(1.025);
}

.event-gallery-empty{
    display:grid;
    justify-items:center;
    margin-top:24px;
    padding:60px 20px;
    border:1px dashed #cad7de;
    border-radius:20px;
    background:#fff;
    text-align:center;
}

.event-gallery-empty>span{
    color:#a8b2b9;
    font-size:50px;
}

.event-gallery-empty h3{
    margin:10px 0 5px;
    color:#16385f;
}

.event-gallery-empty p{
    margin:0;
    color:#7e8c96;
}

/* =========================================================
   LIGHTBOX
========================================================= */

#publicEventLightbox[hidden]{
    display:none!important;
}

#publicEventLightbox{
    position:fixed;
    z-index:9999;
    inset:0;
    display:grid;
    place-items:center;
    padding:30px;
    background:rgba(0,0,0,.88);
    backdrop-filter:blur(18px);
}

#publicEventLightbox img{
    max-width:94vw;
    max-height:88vh;
    object-fit:contain;
    border-radius:18px;
    box-shadow:0 28px 90px rgba(0,0,0,.45);
}

.event-lightbox-close{
    position:absolute;
    z-index:3;
    top:20px;
    right:24px;
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#1c1c1e;
    font-size:29px;
    cursor:pointer;
}

.event-lightbox-arrow{
    position:absolute;
    top:50%;
    z-index:2;
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.90);
    color:#172126;
    font-size:31px;
    cursor:pointer;
    transform:translateY(-50%);
}

.event-lightbox-arrow.previous{
    left:22px;
}

.event-lightbox-arrow.next{
    right:22px;
}

.event-lightbox-counter{
    position:absolute;
    bottom:20px;
    left:50%;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(0,0,0,.58);
    color:#fff;
    font-size:12px;
    transform:translateX(-50%);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1020px){
    .public-events-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .event-detail-layout{
        grid-template-columns:1fr;
    }

    .event-share-card{
        position:static;
    }
}

@media(max-width:760px){
    .public-events-toolbar{
        grid-template-columns:1fr;
        align-items:start;
    }

    .public-event-filters{
        justify-content:flex-start;
    }

    .public-events-grid,
    .public-events-grid.single-event-grid{
        grid-template-columns:1fr;
    }

    .public-events-grid.single-event-grid .public-event-card{
        grid-template-columns:1fr;
        min-height:0;
    }

    .public-events-grid.single-event-grid .public-event-image{
        min-height:260px;
    }

    .public-events-grid.single-event-grid .public-event-body{
        padding:22px;
    }

    .event-detail-hero{
        min-height:470px;
    }
}

@media(max-width:600px){
    .events-page-hero{
        padding:58px 0 64px;
    }

    .public-events-section{
        padding:48px 0 66px;
    }

    .public-event-filters{
        display:grid;
        grid-template-columns:1fr 1fr;
        width:100%;
    }

    .public-event-filters button:first-child{
        grid-column:1/-1;
    }

    .event-hero-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .event-primary-action,
    .event-native-share{
        width:100%;
    }

    .event-share-buttons{
        grid-template-columns:1fr;
    }

    .event-masonry-grid{
        columns:1;
    }

    .event-lightbox-arrow{
        width:40px;
        height:40px;
    }

    .event-lightbox-arrow.previous{
        left:8px;
    }

    .event-lightbox-arrow.next{
        right:8px;
    }
}