/* style.css */

/* CSS Variables */
:root {
    /* Triadic Colors */
    --color-primary: #023e7d;
    /* Deep professional blue */
    --color-secondary: #fca311;
    /* Vibrant accent orange */
    --color-tertiary: #00b4d8;
    /* Bright teal/cyan */

    /* Neutral Colors */
    --color-background-light: #f8f9fa;
    --color-background-dark: #1a1a1a;
    --color-text-dark: #212529;
    --color-text-light: #ffffff;
    --color-border: #ced4da;
    /* Light border/shadow color */
    --color-shadow-light: rgba(0, 0, 0, 0.15);
    --color-shadow-dark: rgba(255, 255, 255, 0.8);
    /* For neuromorphic effect on light backgrounds */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;

    /* Neuromorphism Shadows (Light Background) */
    --neumorph-light-raised: 10px 10px 20px var(--color-shadow-light), -10px -10px 20px var(--color-shadow-dark);
    --neumorph-light-pressed: inset 5px 5px 10px var(--color-shadow-light), inset -5px -5px 10px var(--color-shadow-dark);

    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll caused by animations */
}

/* Adaptive Typography for Body */
body {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    /* Min 16px, preferred 1.8vw, max 18.4px */
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-align: center;
    /* Centered titles */
}

/* Adaptive Typography for Headings */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Min 40px, preferred 5vw, max 64px */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    /* Min 32px, preferred 4vw, max 48px */
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    /* Min 24px, preferred 3vw, max 35.2px */
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    /* Min 19.2px, preferred 2.5vw, max 28.8px */
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
    /* Ensure text is dark on light background */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Layout: Columns (Simple Flexbox Grid) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--spacing-sm));
    /* Negative margin to counter column padding */
    margin-right: calc(-1 * var(--spacing-sm));
}

.column {
    flex-grow: 1;
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    /* Add margin between columns on wrap */
}

/* Responsive column widths */
.columns.is-multiline>.column.is-one-third {
    width: 100%;
}

.columns.is-multiline>.column.is-half {
    width: 100%;
}

.columns.is-multiline>.column.is-two-thirds {
    width: 100%;
}

@media (min-width: 768px) {
    .columns.is-multiline>.column.is-one-third {
        flex-basis: 33.333%;
        width: 33.333%;
    }

    .columns.is-multiline>.column.is-half {
        flex-basis: 50%;
        width: 50%;
    }

    .columns.is-two-thirds>.column:first-child {
        flex-basis: 66.666%;
        width: 66.666%;
    }

    .columns.is-two-thirds>.column:last-child {
        flex-basis: 33.333%;
        width: 33.333%;
    }

    .columns.is-centered {
        justify-content: center;
    }

    .columns.is-centered>.column.is-two-thirds {
        flex-basis: 66.666%;
        width: 66.666%;
        max-width: 800px;
        /* Max width for content columns */
    }
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.content-block {
    margin-bottom: var(--spacing-lg);
}

/* Ensure text content has proper spacing within columns */
.content-text p {
    margin-bottom: var(--spacing-md);
}


/* Neuromorphism Base Styles (Applied to elements like cards, buttons, forms) */
.card,
.contact-form,
.form-group input,
.form-group textarea,
.button,
.stats-widget ul,
.timeline-item .timeline-content {
    border-radius: var(--border-radius-md);
    background-color: var(--color-background-light);
    /* Match body background */
    box-shadow: var(--neumorph-light-raised);
    padding: var(--spacing-md);
    /* Default padding for neumorphic elements */
    transition: var(--transition-smooth);
    /* Smooth transitions for hover/active */
}

.card:hover,
.button:hover {
    box-shadow: var(--neumorph-light-pressed);
    /* Slight pressed effect on hover */
    transform: translateY(2px);
    /* Micro-animation: Slight sink effect */
}


/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* Slightly transparent white */
    backdrop-filter: blur(5px);
    /* Glassmorphism effect */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    /* Dark color for logo text on light background */
    text-decoration: none;
}

.site-logo svg {
    margin-right: var(--spacing-xs);
    stroke: var(--color-primary);
}


/* Navigation */
.nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.nav a {
    color: var(--color-text-dark);
    /* Dark text for nav links */
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    text-decoration: none;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease-in-out;
}

.nav a:hover::after {
    width: 100%;
}

/* Burger Menu (Mobile) */
.burger-toggle {
    display: none;
}

.burger-icon {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    /* Above the nav */
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: 100%;
        /* Position below the header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        /* Almost opaque */
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default */
        padding: var(--spacing-md) 0;
        overflow-y: auto;
        max-height: calc(100vh - 60px);
        /* Adjust based on header height */
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .nav a {
        padding: var(--spacing-sm) 0;
        font-size: 1.2rem;
    }

    .burger-icon {
        display: flex;
        /* Show burger icon */
    }

    .burger-toggle:checked~.nav {
        display: block;
        /* Show navigation when checked */
    }

    /* Burger Icon Animation */
    .burger-toggle:checked~.burger-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-toggle:checked~.burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .burger-toggle:checked~.burger-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* Main Content Padding */
main {
    /* Add padding to main content to avoid being hidden by fixed header */
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    /* Needed for parallax/animation effects */
    overflow: hidden;
    /* Hide elements outside the section during animation */
}

.section-title {
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
    text-align: center;
    width: 100%;
    /* Ensure title takes full width above content */
    /* High contrast title on light background */
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    /* White text on dark background */
}

.hero .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Optional: Parallax effect (basic CSS, JS needed for full control) */
    background-attachment: fixed;
}

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

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    color: var(--color-text-light);
    /* White */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Text shadow for readability */
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    color: var(--color-text-light);
    /* White */
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Text shadow for readability */
}

/* About Section */
.about .content-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    /* Center columns if they don't fill the width */
}

.about .content-block .column {
    flex-basis: auto;
    /* Allow columns to take their content width */
}

@media (min-width: 768px) {
    .about .content-block {
        flex-direction: row;
    }

    .about .content-block .column {
        flex-basis: 50%;
        /* Distribute columns */
    }

    .about .content-block.is-two-thirds>.column:first-child {
        flex-basis: 66.666%;
    }

    .about .content-block.is-two-thirds>.column:last-child {
        flex-basis: 33.333%;
    }
}


/* Card Styles (for Insights, Instructors, Media) */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    text-align: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    /* Space between cards in columns */
}

.card-image {
    width: 100%;
    height: 200px;
    /* Fixed height for consistent card look */
    overflow: hidden;
    /* Hide overflow if image doesn't fit fixed height */
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    /* Use flex to center image */
    justify-content: center;
    align-items: center;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1), -3px -3px 8px rgba(255, 255, 255, 0.5);
    /* Subtle neumorphic image shadow */
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the container while maintaining aspect ratio */
    border-radius: var(--border-radius-sm);
}

.card-content {
    flex-grow: 1;
    /* Allow content to take remaining space */
    width: 100%;
    padding: var(--spacing-sm);
    /* Padding inside content area */
    /* Neuromorphic style already applied to .card */
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    color: var(--color-primary);
}

.card-content p {
    font-size: 1rem;
    color: var(--color-text-dark);
}

.read-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--color-tertiary);
    font-weight: bold;
    text-decoration: none;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--color-tertiary);
    transition: width 0.3s ease-in-out;
}

.read-more:hover {
    color: var(--color-secondary);
}

.read-more:hover::after {
    width: 100%;
    background-color: var(--color-secondary);
}


/* Timeline Styles (for Webinars, Events Calendar) */
.timeline {
    position: relative;
    padding: var(--spacing-lg) 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    /* Adjust based on marker size */
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: 60px;
    /* Space for marker and timeline line */
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 14px;
    /* Align with the timeline line */
    width: 15px;
    height: 15px;
    background-color: var(--color-secondary);
    border: 2px solid var(--color-background-light);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--neumorph-light-raised);
}

.timeline-content {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorph-light-raised);
    padding: var(--spacing-md);
    position: relative;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    text-align: left;
    /* Align text left in timeline content */
}

.timeline-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
    text-align: left;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: 4px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-content {
        padding: var(--spacing-sm);
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }
}


/* Stats Widget (for Sustainability) */
.stats-widget {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    background-color: var(--color-background-light);
    box-shadow: var(--neumorph-light-raised);
    text-align: center;
}

.stats-widget h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.stats-widget ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--spacing-sm);
}

.stats-widget li {
    flex: 1 1 150px;
    /* Allow items to grow/shrink, min width 150px */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-background-light);
    /* Subtle background within the widget */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.3);
    /* Inner shadow for depth */
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-dark);
}


/* External Resources Section */
.resources .resource-list {
    max-width: 800px;
    margin: 0 auto;
}

.resources .resource-list ul {
    list-style: none;
    padding: 0;
}

.resources .resource-list li {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    background-color: var(--color-background-light);
    box-shadow: var(--neumorph-light-raised);
    transition: var(--transition-smooth);
}

.resources .resource-list li:hover {
    box-shadow: var(--neumorph-light-pressed);
    transform: translateY(2px);
}


.resources .resource-list li a {
    display: block;
    color: var(--color-text-dark);
    /* Use dark text */
    text-decoration: none;
}

.resources .resource-list li a h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
    color: var(--color-primary);
    text-align: left;
}

.resources .resource-list li a p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #555;
    /* Slightly lighter text for description */
    text-align: left;
}


/* Contact Section and Form */
.contact .section-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    text-align: center;
    color: var(--color-text-dark);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    border: none;
    /* Remove default border */
    border-radius: var(--border-radius-sm);
    background-color: #e0e0e0;
    /* Lighter base for pressed effect */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
    /* Neuromorphic pressed state */
    transition: var(--transition-smooth);
    color: var(--color-text-dark);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    /* Darker inner shadow on focus */
    border: 1px solid var(--color-primary);
    /* Accent border on focus */
}


/* Global Button Styles */
.button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    /* Ensure buttons as links look like buttons */
    box-shadow: var(--neumorph-light-raised);
}

.button.is-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.button.is-secondary {
    background-color: var(--color-tertiary);
    color: var(--color-text-light);
}

.button:hover {
    box-shadow: var(--neumorph-light-pressed);
    transform: translateY(2px);
}

.button.is-primary:hover {
    background-color: #00509d;
    /* Slightly darker primary */
}

.button.is-secondary:hover {
    background-color: #f37c05;
    /* Slightly darker secondary */
}

.button:active {
    box-shadow: var(--neumorph-light-pressed);
    transform: translateY(1px);
}

.button.is-small {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
}


/* Success Message Popup (on ./ Contact form) */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-text-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    z-index: 2000;
    box-shadow: var(--neumorph-light-raised);
    max-width: 400px;
    width: 90%;
}

.success-popup-content h3 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    text-shadow: none;
    /* No text shadow on popup text */
}

.success-popup-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.success-popup .close-popup-button {
    margin-top: var(--spacing-md);
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}


/* Footer */
.footer {
    background-color: var(--color-background-dark);
    color: #cccccc;
    /* Light text for dark background */
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
}

.footer .columns {
    margin-bottom: var(--spacing-lg);
}

.footer .column {
    margin-bottom: var(--spacing-md);
}

.footer h4 {
    color: var(--color-tertiary);
    /* Accent color for footer headings */
    margin-bottom: var(--spacing-md);
    text-align: left;
    font-size: 1.1rem;
    text-shadow: none;
    /* No text shadow on dark background */
}

.footer p {
    color: #cccccc;
    margin-bottom: var(--spacing-sm);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--spacing-xs);
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #cccccc;
    transition: width 0.3s ease-in-out;
}

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

.footer a:hover::after {
    width: 100%;
    background-color: var(--color-tertiary);
}


/* Text-only Social Links in Footer */
.footer-social ul li a {
    display: inline-block;
    /* Display as block to control padding/margin */
    margin-right: var(--spacing-sm);
    /* Space between links */
    /* Use padding for click area if needed, but keep text structure */
}

.footer-social ul li:last-child a {
    margin-right: 0;
}


.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-bottom p {
    color: #888888;
    margin-bottom: 0;
}


/* Specific Page Styles (About, Contact, Privacy, Terms) */
.page-section {
    padding-top: var(--spacing-xl);
    /* Add padding to avoid header overlap */
    padding-bottom: var(--spacing-xl);
}

.page-title {
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.page-section .content-block h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    text-align: left;
}

.page-section .content-block ul {
    list-style: disc;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.page-section .content-block ul li {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.placeholder-map {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    text-align: center;
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorph-light-raised);
}


/* Success Page Styles */
.success-html main .page-section {
    min-height: calc(100vh - 80px - var(--spacing-xl)*2 - 200px);
    /* Adjust min-height considering header/footer approx height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-html main .page-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-html .content-block {
    max-width: 600px;
    margin: 0 auto;
}

.success-html .page-title {
    color: var(--color-primary);
}

.success-html .button-group {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}


/* Animation Styles (Initial states, actual animation handled by script.js with Motion One) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    /* Default slide-up effect */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in animation */
[data-animation="fade-in"].animate-on-scroll {
    transform: none;
    /* No vertical translation for fade-in */
}

/* Fade-in-up animation (default) */
[data-animation="fade-in-up"].animate-on-scroll {
    transform: translateY(20px);
}

/* Fade-in-left animation */
[data-animation="fade-in-left"].animate-on-scroll {
    transform: translateX(-20px);
}

/* Fade-in-right animation */
[data-animation="fade-in-right"].animate-on-scroll {
    transform: translateX(20px);
}

/* Smooth page transitions (basic CSS example, JS needed for full control) */
body.page-transition-active {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.page-transition-finished {
    opacity: 1;
}


/* Cookie Consent Popup - Inline CSS already provided in HTML */
/* Ensure it has minimal styles and uses the variables if needed, though inline styles are prioritized */
#cookie-popup button {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
}

#cookie-popup button:hover {
    background-color: #f37c05;
}


/* Ensure high contrast for text on light backgrounds */
.section,
.page-section {
    background-color: var(--color-background-light);
}

.section-title,
.page-title,
.content-block h3,
.card-content h3,
.timeline-content h3,
.stats-widget h3,
.resources .resource-list li a h3,
.form-group label {
    color: var(--color-text-dark);
    /* Use dark text for titles on light background */
}

.card-content p,
.timeline-content p,
.stats-widget .stat-label,
.resources .resource-list li a p,
.form-group input,
.form-group textarea,
.section-description,
.page-section .content-block p,
.page-section .content-block ul li {
    color: var(--color-text-dark);
    /* Use dark text for body on light background */
}

/* Text color override for Hero and Footer (dark backgrounds) */
.hero .hero-title,
.hero .hero-subtitle,
.footer,
.footer p,
.footer a,
.success-popup,
.success-popup-content h3,
.success-popup-content p {
    color: var(--color-text-light);
    /* White text for dark backgrounds */
}

.footer h4 {
    color: var(--color-tertiary);
    /* Specific accent for footer headings */
}

/* Text shadow for titles on light backgrounds for extra contrast */
.section-title,
.page-title {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* No text shadow needed on dark backgrounds */
.hero-title,
.hero-subtitle,
.footer h4,
.footer p,
.success-popup h3,
.success-popup p {
    text-shadow: none;
}

header ul{
    flex-wrap: wrap;
}

textarea{
    resize: vertical;
}

body{
    padding-top: 4rem;
}