:root {
    --primary-color-dark: #0A192F; /* Very Dark Blue - Main Background, Dark Elements */
    --primary-color-medium: #173A5E; /* Medium Blue - Borders, Accents */
    --secondary-color-accent: #64FFDA; /* Bright Teal/Cyan - CTAs, Highlights */
    --secondary-color-accent-darker: #4ABFB2; /* Darker Teal for hover states */

    --text-color-light-primary: #E6F1FF; /* Lightest Blue/White - Main text on dark bg */
    --text-color-light-secondary: #CCD6F6; /* Light Blue/Grey - Secondary text on dark bg */
    --text-color-light-tertiary: #8892B0; /* Muted Blue/Grey - Subtle text on dark bg */

    --text-color-dark-primary: #182030; /* Very Dark Blue/Black - Headings on light bg */
    --text-color-dark-secondary: #334155; /* Dark Grey/Blue - Body text on light bg */
    --text-color-dark-tertiary: #64748B; /* Medium Grey/Blue - Subtle text on light bg */

    --bg-color-light: #F0F4F8; /* Very Light Grey/Blue - Light section backgrounds */
    --card-bg-glass: rgba(23, 58, 94, 0.2); /* Translucent blue for glassmorphism on cards */
    --card-border-glass: rgba(100, 255, 218, 0.2);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    --header-height-initial: 80px;
    --header-height-scrolled: 70px;

    --transition-smooth: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); /* Non-linear movement */
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* RGB versions for rgba() */
:root {
    --rgb-primary-color-dark: 10, 25, 47;
    --rgb-secondary-color-accent: 100, 255, 218;
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color-dark);
    color: var(--text-color-light-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    overflow: hidden; /* Contains biomorphic shapes if they extend */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-color-light-primary); /* Default for dark backgrounds */
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-dark-primary); /* Default for light backgrounds */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for titles on light bg */
}
.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-color-dark-secondary); /* Default for light backgrounds */
}

/* Sections with dark background (often image overlays) */
.hero-section .section-title, .hero-section .section-subtitle,
.statistics-section .section-title, .statistics-section .section-subtitle,
.events-section .section-title, .events-section .section-subtitle {
    color: var(--text-color-light-primary);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.hero-section .section-subtitle,
.statistics-section .section-subtitle,
.events-section .section-subtitle {
     color: var(--text-color-light-secondary);
}


p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color-accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--text-color-light-primary);
    text-decoration: underline;
    text-decoration-color: var(--secondary-color-accent);
    text-underline-offset: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(var(--rgb-primary-color-dark), 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height-initial);
}
.site-header.scrolled {
    background-color: rgba(var(--rgb-primary-color-dark), 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    height: var(--header-height-scrolled);
}
body main { /* Global main content padding for fixed header */
    padding-top: var(--header-height-initial);
}

/* Specific page main padding for privacy & terms */
body.privacy-page main,
body.terms-page main {
    padding-top: 100px; /* As per specific request */
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color-light-primary);
}
.logo:hover {
    color: var(--secondary-color-accent);
    text-decoration: none;
}

.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-navigation .nav-menu li a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-color-light-secondary);
    padding: 5px 0;
    position: relative;
    font-size: 0.95rem;
}
.main-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color-accent);
    transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.main-navigation .nav-menu li a:hover::after,
.main-navigation .nav-menu li a.active::after {
    width: 100%;
}
.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li a.active {
    color: var(--text-color-light-primary);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above menu items if they stack weirdly */
}
.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color-light-primary);
    position: relative;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-light-primary);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Active state for hamburger */
.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }


/* General Section Styling */
.content-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* For parallax or biomorphic shapes */
}
.content-section:nth-of-type(odd) { /* Alternate background for visual rhythm */
    background-color: var(--bg-color-light);
}
.content-section:nth-of-type(odd) .section-title {
    color: var(--text-color-dark-primary);
    text-shadow: none;
}
.content-section:nth-of-type(odd) .section-subtitle,
.content-section:nth-of-type(odd) p,
.content-section:nth-of-type(odd) .card-content p,
.content-section:nth-of-type(odd) .card-title,
.content-section:nth-of-type(odd) .stat-label {
    color: var(--text-color-dark-secondary);
}
.content-section:nth-of-type(odd) .stat-number {
    color: var(--primary-color-medium);
}
.content-section:nth-of-type(odd) .card {
    background-color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(var(--rgb-primary-color-dark), 0.08);
}

/* Sections with background images */
.hero-section,
.statistics-section,
.events-section,
.partners-section { /* partners-section needs light overlay, so dark text */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light-primary); /* Default text color for these sections */
}

.hero-overlay, .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--rgb-primary-color-dark), 0.75) 0%, rgba(var(--rgb-primary-color-dark), 0.95) 100%);
    z-index: 0;
}
.hero-content,
.statistics-section .container,
.events-section .container {
    position: relative;
    z-index: 1;
}

/* Specific overlay for partners if it needs to be light */
.section-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 241, 255, 0.9); /* Example: Very light semi-transparent */
    z-index: 0;
}
#socios .container { position: relative; z-index: 1; }
#socios .section-title,
#socios .section-subtitle,
#socios p,
#socios .partner-logo p {
    color: var(--text-color-dark-primary);
    text-shadow: none;
}


/* Buttons */
.cta-button, .cta-button-secondary, .cta-button-tertiary, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button { /* Primary */
    background-color: var(--secondary-color-accent);
    color: var(--primary-color-dark);
    border-color: var(--secondary-color-accent);
}
.cta-button:hover {
    background-color: var(--secondary-color-accent-darker);
    border-color: var(--secondary-color-accent-darker);
    color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--rgb-secondary-color-accent), 0.3);
}

.cta-button-secondary { /* Secondary */
    background-color: transparent;
    color: var(--secondary-color-accent);
    border-color: var(--secondary-color-accent);
}
.content-section:nth-of-type(odd) .cta-button-secondary { /* On light backgrounds */
    color: var(--primary-color-medium);
    border-color: var(--primary-color-medium);
}
.cta-button-secondary:hover {
    background-color: var(--secondary-color-accent);
    color: var(--primary-color-dark);
    transform: translateY(-2px);
}
.content-section:nth-of-type(odd) .cta-button-secondary:hover {
    background-color: var(--primary-color-medium);
    color: var(--text-color-light-primary);
}

/* Tertiary / Read More style */
.cta-button-tertiary, .open-modal, .register-event {
    background-color: transparent;
    color: var(--secondary-color-accent);
    padding: 8px 0;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    text-transform: none;
    letter-spacing: normal;
}
.cta-button-tertiary:hover, .open-modal:hover, .register-event:hover {
    color: var(--text-color-light-primary);
    border-bottom-color: var(--secondary-color-accent);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
.content-section:nth-of-type(odd) .cta-button-tertiary,
.content-section:nth-of-type(odd) .open-modal,
.content-section:nth-of-type(odd) .register-event {
    color: var(--primary-color-medium);
}
.content-section:nth-of-type(odd) .cta-button-tertiary:hover,
.content-section:nth-of-type(odd) .open-modal:hover,
.content-section:nth-of-type(odd) .register-event:hover {
    color: var(--text-color-dark-primary);
    border-bottom-color: var(--primary-color-medium);
}


/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}
.hero-content {
    max-width: 800px;
}
.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFFFFF; /* Explicitly white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 40px;
    color: #FFFFFF; /* Explicitly white */
    font-weight: 400;
    opacity: 0.9;
}

/* Biomorphic Shapes */
.biomorphic-shape {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 30% 50% 50% 70%;
    opacity: 0.07; /* very subtle */
    animation: biomorphic-flow 30s ease-in-out infinite alternate;
    background: var(--secondary-color-accent);
    z-index: 0; /* Behind hero-overlay if hero-overlay is z-index:1 and hero-content is z-index:2 */
}
.biomorphic-shape.shape-1 { width: 30vw; height: 25vw; min-width: 200px; min-height: 150px; max-width:400px; max-height:350px; top: 10%; left: 5%; }
.biomorphic-shape.shape-2 { width: 25vw; height: 30vw; min-width: 150px; min-height: 200px; max-width:350px; max-height:400px; bottom: 10%; right: 8%; animation-delay: -7s; }

@keyframes biomorphic-flow {
    0% { transform: rotate(0deg) scale(1) skew(0deg, 0deg); border-radius: 40% 60% 70% 30% / 30% 50% 50% 70%; }
    50% { transform: rotate(180deg) scale(1.15) skew(5deg, -5deg); border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; }
    100% { transform: rotate(360deg) scale(1) skew(0deg, 0deg); border-radius: 40% 60% 70% 30% / 30% 50% 50% 70%; }
}

/* Columns Layout */
.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between columns */
}
.column {
    flex: 1;
    min-width: 280px; /* Minimum width before stacking */
}
.column.is-two-thirds {
    flex-basis: 66.66%;
    flex-grow: 0; /* Prevent growing beyond 2/3 if there's space */
}
.column.image-column {
    display: flex;
    align-items: center; /* Vertically center image if column is taller */
    justify-content: center;
}
.image-container img {
    border-radius: 12px; /* Soft biomorphic touch */
    box-shadow: 0 10px 30px rgba(var(--rgb-primary-color-dark), 0.1);
}
/* Vision Section Specifics */
#vision .image-container img {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition-smooth);
}
#vision .image-container img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
}

/* Statistics Section */
#estadisticas { padding: 100px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}
.stat-item {
    padding: 20px;
    border-radius: 8px;
    /* Glassmorphism attempt - might need specific dark bg on stats for this to pop */
    /* background: rgba(var(--rgb-secondary-color-accent), 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--rgb-secondary-color-accent), 0.1); */
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary-color-accent);
    display: block;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-color-light-secondary);
    font-weight: 600;
}

/* Clientele Section & Carousel */
.carousel-container {
    position: relative;
    margin-bottom: 30px;
}
.client-carousel { /* This will be the Glider track or similar */
    display: flex; /* For Glider or manual setup */
    overflow-x: auto; /* Basic scroll for no-JS, Glider will hide */
    padding-bottom: 20px; /* Space for scrollbar if visible */
}
.client-card {
    flex: 0 0 auto; /* For carousel items */
    width: 280px; /* Fixed width for carousel items */
    margin-right: 20px;
}
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--rgb-secondary-color-accent), 0.5);
    color: var(--primary-color-dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}
.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--secondary-color-accent);
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }


/* Cards (General) */
.card {
    background-color: var(--card-bg-glass);
    border: 1px solid var(--card-border-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-bounce);
    height: 100%; /* For equal height cards in a row */
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--rgb-primary-color-dark), 0.2);
}
.card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Rounded images within card */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.client-card .card-image { /* Specific for client logos */
    height: 100px;
    margin-bottom: 15px;
}
.client-card .card-image img {
    object-fit: contain; /* Logos should be contained */
    max-height: 80px; /* Ensure logo isn't too large */
    filter: grayscale(30%) contrast(110%); /* Subtle effect for logos */
}

.card-content { width: 100%; }
.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color-light-primary); /* Default */
}
.card p {
    font-size: 0.95rem;
    color: var(--text-color-light-secondary); /* Default */
    margin-bottom: 15px;
}

/* Success Stories Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(var(--rgb-primary-color-dark), 0.9);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--primary-color-dark);
    border: 1px solid var(--primary-color-medium);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: modalOpen 0.5s var(--transition-bounce);
}
@keyframes modalOpen {
    from { transform: scale(0.8) translateY(-50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.close-modal {
    color: var(--text-color-light-tertiary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}
.close-modal:hover, .close-modal:focus {
    color: var(--secondary-color-accent);
    text-decoration: none;
    cursor: pointer;
}
.modal-title {
    font-size: 2rem;
    color: var(--secondary-color-accent);
    margin-bottom: 20px;
}
.modal-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.modal p {
    color: var(--text-color-light-secondary);
    margin-bottom: 15px;
}

/* Events Section */
.events-list { display: flex; flex-direction: column; gap: 30px; }
.event-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background-color: var(--card-bg-glass);
    border: 1px solid var(--card-border-glass);
    border-radius: 10px;
    transition: var(--transition-smooth);
}
.event-item:hover {
    transform: translateX(5px);
    border-left: 5px solid var(--secondary-color-accent);
}
.event-date {
    text-align: center;
    color: var(--secondary-color-accent);
    flex-shrink: 0;
}
.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}
.event-date .day {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}
.event-details .event-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-color-light-primary);
}
.event-time-location {
    font-size: 0.9rem;
    color: var(--text-color-light-tertiary);
    margin-bottom: 10px;
}
.event-description {
    font-size: 0.95rem;
    color: var(--text-color-light-secondary);
    margin-bottom: 15px;
}

/* Event Calendar Section */
.calendar-placeholder {
    background-color: var(--primary-color-dark); /* Assuming this section has light bg by default */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--primary-color-medium);
}
#calendario-eventos.content-section:nth-of-type(odd) .calendar-placeholder {
    background-color: #fff; /* Light bg for calendar if section is light */
    border: 1px solid #e0e0e0;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.calendar-month h4 {
    font-size: 1.3rem;
    color: var(--secondary-color-accent); /* Default for dark bg section */
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary-color-medium);
    padding-bottom: 5px;
}
#calendario-eventos.content-section:nth-of-type(odd) .calendar-month h4 {
    color: var(--primary-color-medium); /* For light bg section */
    border-bottom-color: #ddd;
}
.calendar-month ul { list-style: none; padding-left: 0; }
.calendar-month li {
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px dashed var(--primary-color-medium);
}
#calendario-eventos.content-section:nth-of-type(odd) .calendar-month li {
    border-bottom-color: #eee;
}
.calendar-month li:last-child { border-bottom: none; }
.calendar-month li strong { color: var(--text-color-light-primary); } /* Default */
#calendario-eventos.content-section:nth-of-type(odd) .calendar-month li strong {
    color: var(--text-color-dark-primary);
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    text-align: center;
}
.partner-logo img {
    max-height: 70px; /* Control logo height */
    width: auto;
    margin: 0 auto 10px auto;
    filter: grayscale(100%) opacity(0.7) contrast(150%); /* Monochromatic, subtle */
    transition: var(--transition-smooth);
}
.partner-logo img:hover {
    filter: grayscale(0%) opacity(1) contrast(100%);
}
.partner-logo p {
    font-size: 0.9rem;
    font-weight: 600;
    /* color: var(--text-color-dark-secondary); Already set by #socios styling for light overlay */
}

/* External Links Section */
.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.external-link-card {
    background-color: #fff; /* Assuming light background for this section */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(var(--rgb-primary-color-dark), 0.07);
    transition: var(--transition-smooth);
}
.external-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--rgb-primary-color-dark), 0.1);
}
.external-link-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.external-link-card h3 a {
    color: var(--primary-color-medium); /* Darker link color for light card */
}
.external-link-card h3 a:hover {
    color: var(--secondary-color-accent);
}
.external-link-card p {
    font-size: 0.9rem;
    color: var(--text-color-dark-tertiary);
    margin-bottom: 0;
}
.section-disclaimer {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 30px;
    color: var(--text-color-dark-tertiary);
}

/* Contact Form */
.contact-form-section { background-color: var(--primary-color-dark); } /* Ensure dark bg for this one */
.contact-form-section .section-title,
.contact-form-section .section-subtitle,
.contact-form-section .form-assurance {
    color: var(--text-color-light-primary);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.contact-form-section .section-subtitle,
.contact-form-section .form-assurance {
    color: var(--text-color-light-secondary);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    position: relative;
    margin-bottom: 30px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px 15px 12px 15px; /* Padding for floating label */
    background-color: rgba(var(--rgb-secondary-color-accent), 0.05);
    border: 1px solid var(--primary-color-medium);
    border-radius: 6px;
    color: var(--text-color-light-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-color-light-tertiary);
    opacity: 1; /* Firefox */
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color-accent);
    background-color: rgba(var(--rgb-secondary-color-accent), 0.1);
    box-shadow: 0 0 0 3px rgba(var(--rgb-secondary-color-accent), 0.3);
}
.form-group label {
    position: absolute;
    left: 15px;
    top: 16px; /* Initial position */
    color: var(--text-color-light-tertiary);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    font-size: 1rem;
    background-color: transparent; /* To avoid cutting through border on focus */
    padding: 0 5px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px; /* Move up */
    font-size: 0.8rem;
    color: var(--secondary-color-accent);
    background-color: var(--primary-color-dark); /* Match form section bg to 'cut' through input border */
}
.contact-form button[type="submit"] { width: 100%; }
.form-assurance { font-size: 0.9rem; text-align: center; margin-top: 20px; }


/* Footer */
.site-footer {
    background-color: #061222; /* Even darker than primary for depth */
    color: var(--text-color-light-tertiary);
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-heading {
    font-size: 1.3rem;
    color: var(--text-color-light-primary);
    margin-bottom: 15px;
    font-weight: 700;
}
.footer-links li, .footer-social-links li {
    list-style: none;
    margin-bottom: 10px;
}
.footer-links li a, .footer-social-links li a {
    color: var(--text-color-light-tertiary);
}
.footer-links li a:hover, .footer-social-links li a:hover {
    color: var(--secondary-color-accent);
    padding-left: 5px;
    text-decoration-color: var(--secondary-color-accent);
}
.footer-social-links li a {
    display: inline-block; /* For padding */
    font-weight: 600;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--primary-color-medium);
    font-size: 0.85rem;
}

/* Cookie Consent Popup */
#cookie-consent-popup {
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-consent-popup p a:hover {
    color: var(--text-color-light-primary);
}
#accept-cookies:hover {
    background-color: var(--text-color-light-primary) !important;
}


/* Success Page */
.success-page-container { /* Apply to a wrapper div on success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-color-dark);
    color: var(--text-color-light-primary);
}
.success-page-container h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--secondary-color-accent);
    margin-bottom: 20px;
}
.success-page-container p {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-color-light-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}
.success-page-container .cta-button {
    font-size: 1.1rem;
    padding: 15px 40px;
}


/* Animations - these classes are typically added by JS (e.g., Motion One, Anime.js or custom Intersection Observer) */
.animate-on-scroll {
    /*opacity: 0;*/
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Non-linear */
}

.animate-on-scroll.is-visible[data-animation="fadeIn"] { opacity: 1; }
.animate-on-scroll.is-visible[data-animation="fadeInUp"] { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-animation="fadeInUp"] { transform: translateY(50px); }

.animate-on-scroll.is-visible[data-animation="fadeInLeft"] { opacity: 1; transform: translateX(0); }
.animate-on-scroll[data-animation="fadeInLeft"] { transform: translateX(-50px); }

.animate-on-scroll.is-visible[data-animation="fadeInRight"] { opacity: 1; transform: translateX(0); }
.animate-on-scroll[data-animation="fadeInRight"] { transform: translateX(50px); }

.animate-on-scroll.is-visible[data-animation="zoomIn"] { opacity: 1; transform: scale(1); }
.animate-on-scroll[data-animation="zoomIn"] { transform: scale(0.8); }

.animate-on-scroll.is-visible[data-animation="slideInUp"] { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-animation="slideInUp"] { transform: translateY(100px); }

.animate-on-scroll.is-visible[data-animation="bounceIn"] { opacity: 1; animation: bounceIn 0.8s var(--transition-bounce) forwards; }
@keyframes bounceIn {
    /*0% { opacity: 0; transform: scale(0.3); }*/
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .column.is-two-thirds {
        flex-basis: 100%; /* Stack columns */
    }
    .column.image-column {
        margin-top: 30px;
    }
    #vision .image-container img {
        transform: none; /* Simplify for mobile */
    }
    #vision .image-container img:hover {
        transform: scale(1.03);
    }
    .carousel-prev { left: 5px; }
    .carousel-next { right: 5px; }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
        height: var(--header-height-scrolled); /* Fixed shorter height on mobile */
    }
    body main {
        padding-top: var(--header-height-scrolled);
    }
    /* Mobile nav specific padding for privacy/terms if needed, current is 100px */
    body.privacy-page main,
    body.terms-page main {
        padding-top: 100px;
    }


    .main-navigation .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; /* Align with header */
        right: -100%; /* Off-screen */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color-dark); /* Solid background */
        padding: calc(var(--header-height-scrolled) + 30px) 30px 30px; /* Space for header */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
        overflow-y: auto;
        z-index: 999; /* Below toggle button but above content */
    }
    .main-navigation .nav-menu.active {
        right: 0;
    }
    .main-navigation .nav-menu li {
        width: 100%;
    }
    .main-navigation .nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--primary-color-medium);
    }
    .main-navigation .nav-menu li:last-child a { border-bottom: none; }
    .main-navigation .nav-menu li a::after { display: none; } /* Remove underline hover for mobile menu */

    .nav-toggle {
        display: block;
        z-index: 1000; /* Ensure toggle is on top of menu */
    }

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

    .event-item { flex-direction: column; align-items: flex-start; }
    .event-date { text-align: left; margin-bottom: 10px; }
    .event-date .day { font-size: 2rem; }

    .footer-columns { grid-template-columns: 1fr; } /* Stack footer columns */
    .footer-column { text-align: center; }
    .footer-links, .footer-social-links { padding-left: 0; }
}

/* Standalone page content (e.g. about.html) */
.standalone-page-content-wrapper {
    padding: 40px 0; /* Content specific padding, main already has header padding */
    background-color: var(--bg-color-light);
    color: var(--text-color-dark-secondary);
}
.standalone-page-content-wrapper .section-title {
    color: var(--text-color-dark-primary);
}
.standalone-page-content-wrapper h1,
.standalone-page-content-wrapper h2,
.standalone-page-content-wrapper h3 {
    color: var(--text-color-dark-primary);
}
.standalone-page-content-wrapper p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.standalone-page-content-wrapper ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 20px;
}
.standalone-page-content-wrapper li {
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-align: center;
    margin-bottom: 40px;
    color: #7a7c7f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.content-section:nth-of-type(odd) .section-title {
    color: #a5a7aa;
}
.content-section:nth-of-type(odd) .section-subtitle, .content-section:nth-of-type(odd) p, .content-section:nth-of-type(odd) .card-content p, .content-section:nth-of-type(odd) .card-title, .content-section:nth-of-type(odd) .stat-label {
    color: #94979b;
}
.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #dedfe0;
}