@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --primary-color: #1a2a3a;
    --secondary-color: #5dade2; /* Light Blue */
    --accent-color: #ff9800;    /* Orange */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --white: #ffffff;
    --overlay: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 80%; /* Scale all text down by 20% globally */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Header & Nav */
header {
    background-color: rgba(26, 42, 58, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--accent-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.1; /* Tighter spacing for multi-line logo */
}

.logo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Main Sections */
section {
    position: relative;
    padding: 8rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 100px; /* Offset for sticky header */
}

#intro {
    padding-top: 4rem; /* Reduced top padding for intro specifically */
}

/* Section Backgrounds (Placeholders) */
#intro { color: var(--white); }

/* Fixed Crossfading Background */
.bg-fixed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
}

/* Content Boxes */
.content-box {
    position: relative;
    z-index: 2;
    background: var(--overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 4px;
    max-width: 1200px;
    width: 100%;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

#intro .content-box {
    background: transparent;
    color: var(--white);
    box-shadow: none;
    text-align: center;
    max-width: 1200px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-text {
    margin-bottom: 4rem;
}

.hero-text h1 {
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 2rem;
}

.hero-actions {
    margin-top: 3rem;
}

.scroll-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    display: inline-block;
}

.scroll-link:hover {
    color: var(--accent-color);
    border-color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

h1, h2 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 2rem;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); color: var(--primary-color); }

p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

#intro p { margin: 0 auto 3rem; }

/* CTA Portal */
.cta-box {
    margin-top: 6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 12px;
    color: var(--white);
}

.cta-box p {
    font-size: 1.4rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 2rem !important;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1.2rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.4);
}

.video-intro {
    margin-top: 4rem;
    text-align: center;
}

.video-intro p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
}

.video-intro cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.video-intro cite a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.video-intro cite a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.video-container {
    margin: 4rem auto;
    max-width: 1200px;
    background: #000;
    border: none;
    border-radius: 12px;
    aspect-ratio: 16/9;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Target Groups */
.section-intro {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    border-left: 8px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.bullet-points {
    list-style: none;
    padding-left: calc(8px + 1.5rem); /* Align with text after the intro bar */
}

.bullet-points li {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bullet-points li::before {
    content: '→';
    color: var(--accent-color);
    font-weight: 900;
    margin-right: 0.75rem;
}

.video-placeholder::before {
    content: '▶';
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Floating Support Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cta:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--primary-color);
}

/* Newsletter Section */
#support {
    color: var(--white);
}

#support .content-box {
    background: transparent;
    color: var(--white);
    box-shadow: none;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#support h2 {
    color: var(--white);
}

#support p {
    margin: 0 auto 2rem;
}

#support .section-intro {
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

.calendar-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto 3rem;
    margin-bottom: -2em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {
    header { padding: 0.8rem 0; }
    .logo { font-size: 1.3rem; }

    section { padding: 6rem 1rem; }
    .content-box { padding: 2rem 1rem; }
    nav { justify-content: center; padding: 0 1rem; }
    nav ul { display: none; }

    .video-container {
        aspect-ratio: 1;
        margin: 2rem 0;
    }
}

/* Footer Links Styling */
.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Legal Pages Styling */
.legal-page header {
    position: static;
}

.legal-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 400px);
}

.legal-container h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 1rem;
}

.legal-container h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

.legal-container h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-container p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.legal-container ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style-type: square;
}

.legal-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-container a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.legal-container a:hover {
    color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
}

/* Dynamic Calendar Custom Styling */
.calendar-widget {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: left;
}

.event-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.event-card:has(.event-description) {
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.event-date-badge {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    width: 80px;
    aspect-ratio: 1 / 1;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.event-date-badge .day {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

.event-date-badge .month {
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

.event-details {
    flex-grow: 1;
    color: var(--white);
    padding-right: 1.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.event-meta {
    font-size: 1rem;
    opacity: 0.8;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.event-meta a:hover {
    color: var(--accent-color);
}

.event-description {
    font-size: 0.95rem;
    opacity: 0;
    line-height: 1.5;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

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

.event-description p:last-child {
    margin-bottom: 0;
}

.event-description ul {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.event-description li {
    margin-bottom: 0.4rem;
}

.event-description a {
    color: var(--secondary-color) !important;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.event-description a:hover {
    color: var(--accent-color) !important;
}

.event-description h1,
.event-description h2,
.event-description h3,
.event-description h4,
.event-description h5,
.event-description h6 {
    color: var(--white);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.event-description h1 { font-size: 1.3rem; }
.event-description h2 { font-size: 1.2rem; }
.event-description h3 { font-size: 1.1rem; }
.event-description h4, 
.event-description h5, 
.event-description h6 { font-size: 1rem; }

.event-card.unfolded .event-description {
    max-height: 40em;
    opacity: 0.95;
    margin-top: 1rem;
}

.event-toggle-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.event-card.unfolded .event-toggle-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.calendar-fallback-iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Minimal Calendar Action Links */
.calendar-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-actions a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.calendar-actions a:hover {
    color: var(--accent-color);
}

.calendar-actions .dot-separator {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 600px) {
    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 1.2rem;
    }
    .calendar-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .calendar-actions .dot-separator {
        display: none;
    }
}
