:root {
    --ocean-blue: #2c5f7c;
    --ocean-light: #4a90b5;
    --sand: #f4e8d8;
    --sand-dark: #d4c4b0;
    --holiday-red: #c94b4b;
    --holiday-green: #5c8b7b;
    --gold: #d4af37;
    --white: #ffffff;
    --text-dark: #2a2a2a;
    --text-light: #666666;

    /* new accent variants for holiday pops */
    --accent-red: #c94b4b;
    --accent-red-dark: #a83838;
    --card-image-max-height: 360px;
}

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

body {
    font-family: "Raleway", sans-serif;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #e8f4f8 0%, var(--sand) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Wave decoration */
.wave-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--ocean-blue), transparent);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Hero Section */
.hero {
    /* keep the base gradient but layer a local photo underneath */
    background: linear-gradient(
        135deg,
        rgba(44, 95, 124, 0.78) 0%,
        rgba(74, 144, 181, 0.68) 100%
    );
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1; /* establish stacking so pseudo elements sit behind content */
}

.hero::after {
    /* local hero photo (mori-point.jpg) with subtle blue tint via filter/opacity */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("mori-point.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(6%) contrast(0.95) brightness(0.78) saturate(0.9);
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* soft layered highlight + a tiny warm red glow — sits above the image but below text */
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(212, 175, 55, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 10% 20%,
            rgba(201, 75, 75, 0.05) 0%,
            transparent 25%
        );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 60px auto;
}

.city-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    /* slight red-tinted border for holiday accent */
    border: 2px solid rgba(201, 75, 75, 0.14);
    box-shadow: 0 2px 8px rgba(201, 75, 75, 0.04) inset;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 2px var(--accent-red-dark);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px var(--text-dark);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Intro */
.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Event Card */
.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
}

/* decorative top stripe (revealed on hover) */
.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--holiday-red), var(--gold));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(201, 75, 75, 0.06);
    /* stronger holiday accent on hover */
    border-color: rgba(201, 75, 75, 0.14);
}

.event-card:hover::before {
    opacity: 1;
}

/* Image: keep natural aspect ratio instead of forcing fixed height */
.event-image {
    width: 100%;
    height: auto; /* preserve aspect ratio */
    max-height: var(--card-image-max-height);
    display: block;
    object-fit: contain; /* fallback so large aspect ratios scale nicely */
    background-color: #f8f5f2; /* neutral background if image has whitespace from contain */
}

/* content */
.event-content {
    padding: 1.5rem;
}

.event-date {
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--holiday-red),
        var(--accent-red-dark)
    );
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.event-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    /* warmer headline color for holiday feel */
    color: var(--holiday-red);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-location::before {
    content: "📍";
    font-size: 1.1rem;
    /* make the location pin slightly holiday-tinged */
    color: var(--holiday-red);
}

.event-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.event-description p {
    margin-bottom: 0.75rem;
}

.event-description strong {
    color: var(--text-dark);
    font-weight: 600;
}

.event-description ul,
.event-description ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Register button — emphasized with richer red and subtle shine */
.event-register {
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--holiday-red),
        #e05a5a 60%,
        var(--accent-red-dark)
    );
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
    box-shadow: 0 6px 20px rgba(201, 75, 75, 0.18);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-register:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(201, 75, 75, 0.28);
}

#individual-events-description > p {
    padding: 3rem 2rem;
    text-align: center;
}

.hide {
    display: none;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--sand-dark);
    border-top: 4px solid var(--ocean-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* No Events */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--ocean-blue);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-tagline {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-size: 1.05rem;
    /* tiny red ornament within the tagline */
    letter-spacing: 0.4px;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}
