html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.pamphlet-header {
    background: url("../image/hero section/event.webp") center center / cover no-repeat;
    background-color: #eef4fb;
    color: #0a2a66;
    padding: 100px 0 80px;
    min-height: 420px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    padding-left: clamp(24px, 8vw, 120px);
    padding-right: 24px;
}

.pamphlet-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
    color: #0a2a66;
}

.pamphlet-header .subtitle {
    font-size: 20px;
    color: #0a2a66;
    font-weight: 400;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 700px;
    line-height: 1.6;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-content {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap, 48px);
}

.event-feature,
.event-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.08);
    overflow: hidden;
}

.event-feature-photo,
.event-photo {
    margin: 0;
    min-height: 320px;
    background: #f4f7fb;
}

.event-feature-photo img,
.event-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.event-feature-photo img {
    object-fit: contain;
    background: #f7fafc;
    padding: 16px;
}

.event-feature-copy,
.event-copy {
    padding: 32px 36px 36px 8px;
}

.event-section .event-copy {
    padding: 32px 8px 36px 36px;
}

.event-kicker {
    color: #e53935;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.event-feature h2,
.event-copy h2,
.event-gallery h2,
.event-topics h2 {
    color: #1a237e;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.event-feature p,
.event-copy p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.event-copy a {
    color: #1a237e;
    font-weight: 600;
}

.event-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 22px;
}

.event-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0a2a66;
    font-weight: 600;
}

.event-facts i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef3fb;
    color: #1a237e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.event-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a237e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
}

.event-cta:hover {
    background: #0a2a66;
}

.event-gallery h2,
.event-topics h2 {
    text-align: center;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 28px;
}

.event-gallery-lead {
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: -12px auto 28px;
    max-width: 640px;
}



.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 8px;
}

.event-gallery-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 12px 12px 16px;
    border-radius: 2px;
    box-shadow: 0 8px 28px rgba(20, 40, 80, 0.08);
    text-decoration: none;
    color: #1c1c1c;
}

.event-gallery-grid a:hover {
    box-shadow: 0 12px 32px rgba(20, 40, 80, 0.14);
}

.event-gallery-grid a:focus-visible {
    outline: 3px solid #1a237e;
    outline-offset: 3px;
}

.event-gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
    background: #d6e4f4;
}

.event-album-title {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #1c1c1c;
}

.event-album-meta {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: #9aa3ad;
}

.event-view {
    max-width: 1200px;
    width: 100%;
    margin: var(--section-gap, 48px) auto;
    padding: 0 24px var(--section-gap, 48px);
}

.event-view-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a237e;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 18px;
}

.event-view h2 {
    color: #1a237e;
    font-size: 36px;
    margin-bottom: 8px;
}

.event-view-lead {
    color: #555;
    margin-bottom: 22px;
}

.event-view-empty {
    color: #555;
    font-size: 16px;
}

.event-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.event-view-grid figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.08);
    overflow: hidden;
}

/* .event-view-grid figure:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 520px);
} */

.event-view-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f7fafc;
}


.event-gallery h2::after,
.event-topics h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 88px;
    height: 4px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to right, #1a237e, #e53935);
}

.event-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.event-topic {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 20px;
    box-shadow: 0 8px 24px rgba(10, 42, 102, 0.06);
}

.event-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef3fb;
    color: #1a237e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.event-topic h3 {
    color: #1a237e;
    font-size: 18px;
    margin-bottom: 8px;
}

.event-topic p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .event-feature,
    .event-section,
    .event-topic-grid {
        grid-template-columns: 1fr;
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    

    .event-album-title {
        font-size: 15px;
    }

    .event-view h2 {
        font-size: 28px;
    }

    .event-feature-copy,
    .event-copy,
    .event-section .event-copy {
        padding: 8px 22px 28px;
    }

    .event-feature-photo img,
    .event-photo img {
        min-height: 240px;
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .event-gallery-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }

    
.event-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .pamphlet-header {
        background-size: cover !important;
        background-position: center center !important;
        background-color: #eef4fb !important;
        height: clamp(170px, 44vw, 230px) !important;
        min-height: clamp(170px, 44vw, 230px) !important;
        padding: 30px 16px 24px !important;
    }

    .pamphlet-header h1 {
        font-size: 36px;
    }

    .pamphlet-header .subtitle,
    .event-feature h2,
    .event-copy h2,
    .event-gallery h2,
    .event-topics h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    
    
.event-view-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

    .pamphlet-header {
        height: clamp(160px, 44vw, 210px) !important;
        min-height: clamp(160px, 44vw, 210px) !important;
        padding: 26px 14px 20px !important;
    }

    .pamphlet-header h1 {
        font-size: 30px;
    }

    .event-content,
    .event-view {
        padding-left: 14px;
        padding-right: 14px;
    }
}
