/* General Body */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px; /* top-bottom 20px, left-right 40px */
}

/* Header */
header {
    background: #004080;
    color: #fff;
    padding: 15px 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    /* fixed header */
    top: 0;
    margin: 0 auto;
    max-width: 1200px;
    z-index: 1000;
}

/* Push hero/content down so it’s not under header */
.hero {
    margin-top: 30px;
    /* adjust depending on header height */
}

/* Logo + Title */
.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    margin-right: 20px;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* Desktop Nav */
nav {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffcc00;
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 90px;
        /* just below header */
        left: 0;
        width: 100%;
        background: #004080;
        flex-direction: column;
        align-items: center;
        gap: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

        transform: translateY(-120%);
        /* hidden by default */
    }

    nav.open {
        transform: translateY(0);
        /* slide down */
    }

    nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: center;
    }
}

/* Section Headings */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #004080;
}

/* Filters */
#filter-year,
#filter-category {
    padding: 6px 12px;
    margin-right: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Event Cards */
#events-grid div {
    flex: 1 1 calc(33% - 20px);
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

#events-grid div:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

#events-grid h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

#events-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

#events-grid img:hover {
    transform: scale(1.05);
}

#events-grid p {
    font-size: 0.95rem;
    color: #555;
}

#events-grid a {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

#events-grid a:hover {
    text-decoration: underline;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

/* Gallery */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-grid img {
    width: calc(33% - 20px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #004080;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: bold;
}
footer a:hover {
  text-decoration: underline;
}

/* Buttons */
button {
    background: #004080;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

button:hover {
    background: #0066cc;
}

/* Sticky buttone */
.sticky-donate {
    position: fixed;
    top: 100px;
    right: 40px;
    background: #b71c1c;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.sticky-donate:hover {
    background: #8a1313;
    transform: scale(1.05);
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Hero Image with Zoom Animation */
.hero picture,
.hero img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    animation: hero-zoom 20s ease-out forwards;
}

/* Gradient overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Overlay Text with Fade-In */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: overlay-fade 2s ease-out forwards;
    animation-delay: 0.5s;
    /* fade-in after 0.5s */
}

.hero-overlay h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-donate-btn {
    background: #b71c1c;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero-donate-btn:hover {
    background: #8a1313;
    transform: scale(1.05);
}

/* Zoom Animation Keyframes */
@keyframes hero-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Overlay Fade-In Keyframes */
@keyframes overlay-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -55%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Text */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .hero-donate-btn {
        padding: 10px 22px;
    }
}

/* Responsive */
@media (max-width: 992px) {

    #events-grid div,
    .gallery-grid img {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {

    #events-grid div,
    .gallery-grid img {
        flex: 1 1 100%;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1001;
        /* above nav */
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        padding: 12px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
}