*,
*::before,
*::after {
    box-sizing: border-box;
}

header, section, footer {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(200, 200, 200, 0.25);
    margin: 0;
    max-width: none;
    transition: padding 0.3s, background 0.3s;
    box-sizing: border-box;
}

header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #222;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: transparent;
    box-shadow: none;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #222;
    background: 
        url('images/Background.png') center center / cover no-repeat fixed,
        linear-gradient(135deg, rgba(220,220,220,0.7) 0%, rgba(245,245,245,0.7) 100%);
    background-blend-mode: lighten;
    padding-top: 200px; /* Adjust to match header height */
}
nav a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, background 0.2s;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2.5rem;
    padding: 2rem;
}

section h2 {
    margin-top: 0;
    color: #4E3891;
    font-weight: 600;
    letter-spacing: -0.5px;
}

footer {
    color: #222;
    text-align: center;
    padding: 1rem 0;
    margin: 2rem auto 0 auto;
    max-width: 800px;
}

a {
    color: #c340b4;
    text-decoration: underline;
    transition: color 0.2s;
}

/* Glassmorphism for all lists */
ul, ol {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0 1.5rem;
    margin: 1.5rem 0;
    list-style: none;
}

ul li, ol li {
    margin: 0.7em 0;
    padding: 0.5em 1em;
    border-radius: 10px;
    transition: background 0.2s;
    position: relative;
    list-style: none;
}

ul li a, ol li a {
    color: #222;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    padding: 2px 6px;
    transition: background 0.2s, color 0.2s;
    background: rgba(255,255,255,0.10);
}

ul li:hover, ol li:hover {
    color: #4E3891;
    background: rgba(255,255,255,0.35);
}

header, section, footer {
    border: 1px solid rgba(200, 200, 200, 0.25);
}

::-webkit-scrollbar {
    width: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: rgba(76,175,80,0.15);
    border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    header, section, footer, main {
        padding: 1rem !important;
    }
    ul, ol {
        padding: 0.7rem 0.5rem;
    }
    .floating-banner {
        width: 60px;
        top: 8px;
        right: 8px;
    }
    header > div {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    header h1 {
        font-size: 1.2rem !important;
        word-break: break-word;
    }
    header.shrunk img {
        width: 36px !important;
    }
}

.floating-banner {
    position: fixed;
    top: 1px;
    right: 24px;
    width: 140px;
    height: auto;
    z-index: 1000;
    opacity: 0.95;
    transition: width 0.3s, top 0.3s;
}

.floating-banner.shrunk {
    width: 80px;
    top: 0px;
}

/* Style for embedded Luma calendar iframe */
#events iframe {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    height: 450px;
    border: 1px solid rgba(78, 56, 145, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
}
/* Shrunk header styles */
header.shrunk {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    transition: padding 0.3s, background 0.3s;
}

header.shrunk img {
    width: 48px !important;
    transition: width 0.3s;
}

header.shrunk h1 {
    font-size: 1.5rem !important;
    transition: font-size 0.3s;
}