* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #003366;
    overflow-x: hidden;
    padding-top: 90px;
}

/* ── NAVBAR ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 51, 102, 0.97);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 3px solid #C8A861;
    animation: fadeInDown 0.8s ease;
}

nav.scrolled {
    background: rgba(0, 51, 102, 0.99);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-image { width: 50px; height: 50px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }

.logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-subtitle { font-size: 11px; color: #C8A861; letter-spacing: 2px; font-weight: 500; }

.nav-links { display: flex; gap: 35px; list-style: none; }

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: #C8A861; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 3px;
    background: #C8A861;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #C8A861; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 25px; height: 3px; background: white; transition: all 0.3s; }

/* ── EVENT BLOCK ── */
.event-block {
    max-width: 1200px;
    margin: 0 auto 48px;
}
.event-block:first-of-type {
    padding-top: 40px;
}

.event-heading {
    font-size: 22px;
    font-weight: 700;
    color: #003366;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 5px solid #C8A861;
}

/* ── SLIDER ── */
.slider-wrapper {
    position: relative;
    background: white;
    border-radius: 14px;
    padding: 18px 52px;
    box-shadow: 0 2px 14px rgba(0, 51, 102, 0.09);
}

.slides {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 330px;
}

.slides::-webkit-scrollbar { display: none; }

.image {
    flex: 0 0 330px;
    width: 330px;
    height: 330px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
    cursor: pointer;
    background: #e8e8e8;
    flex-shrink: 0;
    /* Start invisible; fade in once .loaded is added by JS */
    opacity: 0;
    transition: filter 0.2s ease, transform 0.2s ease, opacity 0.35s ease, box-shadow 0.3s ease;
}

.image.loaded {
    opacity: 1;
}

.image:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 51, 102, 0.18);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 51, 102, 0.82);
    color: white;
    font-size: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.prev:hover, .next:hover {
    background: #003366;
    transform: translateY(-50%) scale(1.12);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ── DOTS ── */
.dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
}

.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background: #C8A861;
    transform: scale(1.4);
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 86vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.7);
    animation: fadeIn 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 18px; right: 26px;
    color: white;
    font-size: 38px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover { color: #C8A861; transform: rotate(90deg); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 22px;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(200, 168, 97, 0.4); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    letter-spacing: 1px;
}

/* ── FOOTER ── */
.foot {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 25px;
    font-size: 17px;
    margin-top: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav { padding: 15px 25px; }

    .menu-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(0, 51, 102, 0.98);
        padding: 35px;
        border-radius: 10px;
        transition: right 0.3s;
        backdrop-filter: blur(10px);
        border: 2px solid #C8A861;
        z-index: 999;
    }

    .nav-links.active { right: 25px; }

    body { padding-top: 80px; }

    .image { flex: 0 0 240px; width: 240px; height: 240px; }
    .slides { height: 240px; }
    .slider-wrapper { padding: 14px 44px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* Blur-up — for images WITH thumbs */
.image.loading {
    filter: blur(12px);
    transform: scale(1.08);
    opacity: 1;
}

.image.loaded {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

/* Shimmer — for images WITHOUT thumbs (src="") */
.image[data-src]:not(.loading) {
    opacity: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}