/* Global Variables */
:root {
    --primary-color: #0A3D62; /* Deep Cerulean Blue - Serious, Investment */
    --secondary-color: #16A085; /* Mountain Meadow Green - Growth, Energy */
    --accent-color-1: #F39C12; /* Orange Yellow - CTA, Attention */
    --accent-color-2: #C0392B; /* Pomegranate Red - Bold Highlight / Warning */

    --neutral-light: #ECF0F1; /* Clouds - Very Light Grey */
    --neutral-medium: #BDC3C7; /* Silver */
    --neutral-dark: #34495E; /* Wet Asphalt - Dark Blueish Grey */
    --border-color: #2C3E50; /* Midnight Blue - For Brutalist Borders */

    --text-color-primary: #34495E; /* Wet Asphalt */
    --text-color-secondary: #5D6D7E; /* Lighter shade of Wet Asphalt */
    --text-color-headings: #2C3E50; /* Midnight Blue */
    --text-color-light: #FFFFFF;
    --text-color-accent: var(--accent-color-1);

    --background-color: #FFFFFF;
    --section-background-light: var(--neutral-light);
    --section-background-dark: var(--neutral-dark);
    --card-background-color: #FFFFFF;

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

    --spacing-unit: 1rem;
    --border-radius-sharp: 0px;
    --border-radius-slight: 4px;
    --border-strong: 2px solid var(--border-color);

    --transition-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-duration: 0.3s;

    --navbar-height: 6.25rem; /* 100px */
}

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

html {
    font-size: 100%; /* Corresponds to 16px by default */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color-primary);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* For fixed navbar */
}

/* Adaptive Typography & Headings */
h1, .title.is-1,
h2, .title.is-2,
h3, .title.is-3,
h4, .title.is-4,
h5, .title.is-5,
h6, .title.is-6 {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700; /* Playfair often looks good bold */
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.title.is-1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem); }
.title.is-2, .section-title { font-size: clamp(2rem, 4vw + 0.8rem, 3rem); }
.title.is-3 { font-size: clamp(1.75rem, 3vw + 0.7rem, 2.5rem); }
.title.is-4, .card-title { font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem); }
.title.is-5 { font-size: clamp(1.1rem, 2vw + 0.4rem, 1.5rem); }
.title.is-6 { font-size: clamp(1rem, 1.8vw + 0.3rem, 1.25rem); }

p, .content-text, .content {
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.1rem);
    margin-bottom: var(--spacing-unit);
    color: var(--text-color-primary);
}
.content p:last-child, .content-text:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-duration) var(--transition-smooth);
}
a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}

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

/* Sections */
.section {
    padding: clamp(3rem, 8vw, 6rem) 1.5rem; /* Adaptive padding */
}
.section:nth-of-type(odd) {
    /* background-color: var(--section-background-light); */ /* Optional alternating backgrounds */
}
.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    color: var(--text-color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Header & Navigation */
.header .navbar.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: var(--navbar-height);
    border-bottom: 2px solid var(--border-color);
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.2vw + 0.3rem, 1rem);
    color: var(--text-color-headings);
    transition: color var(--transition-duration) var(--transition-smooth), background-color var(--transition-duration) var(--transition-smooth);
    padding: 0.75rem 1.25rem;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: transparent; /* Brutalist - no soft hover bg */
    color: var(--accent-color-1) !important; /* Important to override Bulma */
    text-decoration: underline;
    text-decoration-color: var(--accent-color-1);
    text-decoration-thickness: 2px;
}
.navbar-brand .navbar-item.logo-text {
    font-family: var(--font-family-headings);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--primary-color);
}
.navbar-burger {
    color: var(--text-color-headings);
    height: var(--navbar-height); /* Match navbar height */
    width: var(--navbar-height);  /* Match navbar height */
}
.navbar-burger span {
    height: 3px;
    width: 20px;
    background-color: var(--text-color-headings);
    transition: background-color var(--transition-duration) var(--transition-smooth);
}
.navbar-burger:hover span {
    background-color: var(--accent-color-1);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
        border-left: var(--border-strong);
        border-right: var(--border-strong);
        border-bottom: var(--border-strong);
    }
    .navbar-item {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--neutral-light);
    }
    .navbar-item:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-title {
    font-family: var(--font-family-headings);
    font-weight: 900;
    color: var(--text-color-light) !important; /* Important to override Bulma title color */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    color: var(--text-color-light) !important; /* Important to override Bulma subtitle color */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    margin-bottom: 2rem;
}
.hero .is-size-5 { /* For the paragraph in hero */
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw + 0.4rem, 1.1rem);
    padding: calc(var(--spacing-unit)*0.75) calc(var(--spacing-unit)*1.5);
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp); /* Brutalist */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.15s var(--transition-bounce),
                background-color var(--transition-duration) var(--transition-smooth),
                color var(--transition-duration) var(--transition-smooth),
                box-shadow 0.15s var(--transition-smooth);
    box-shadow: 3px 3px 0 var(--border-color); /* Brutalist shadow */
}

.button.is-primary, button.is-primary, input[type="submit"].is-primary {
    background-color: var(--accent-color-1);
    color: var(--text-color-headings); /* Dark text on yellow accent */
    border-color: var(--border-color);
}
.button.is-primary:hover, button.is-primary:hover, input[type="submit"].is-primary:hover {
    background-color: darken(var(--accent-color-1), 5%);
    color: var(--text-color-headings);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--border-color);
}
.button.is-primary:active, button.is-primary:active, input[type="submit"].is-primary:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--border-color);
}

.button.is-large {
    font-size: clamp(1rem, 1.8vw + 0.5rem, 1.3rem);
    padding: var(--spacing-unit) calc(var(--spacing-unit)*2);
}

/* Cards (Brutalist Card & Resource Card) */
.card { /* General Bulma card, can be base for brutalist */
    border-radius: var(--border-radius-sharp);
    overflow: hidden; /* Important for brutalist look with border */
    height: 100%;
    display: flex;
    flex-direction: column;
}
.brutalist-card {
    background-color: var(--card-background-color);
    border: var(--border-strong);
    box-shadow: 5px 5px 0px var(--border-color);
    transition: transform 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth);
}
.brutalist-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--accent-color-1);
}
.card .card-image, .brutalist-card .card-image { /* This is the image container div */
    width: 100%;
    height: 200px; /* Fixed height as requested */
    overflow: hidden;
    position: relative; /* For potential overlays */
}
.brutalist-card .card-image {
    border-bottom: var(--border-strong);
}
.card .card-image img, .brutalist-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s var(--transition-smooth);
}
.brutalist-card:hover .card-image img {
    transform: scale(1.05);
}
.card .card-content, .brutalist-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-color-primary);
}
.card .card-content .title, .brutalist-card .card-content .title {
    color: var(--text-color-headings);
    margin-bottom: 0.75rem;
}
.card .card-content .content, .brutalist-card .card-content .content,
.card .card-content .content-text, .brutalist-card .card-content .content-text {
    font-size: clamp(0.9rem, 1.2vw + 0.4rem, 1rem);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.resource-card {
    border: var(--border-strong);
    background-color: var(--card-background-color);
    transition: box-shadow 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth);
}
.resource-card:hover {
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}
.resource-card .card-content .title a {
    color: var(--primary-color);
}
.resource-card .card-content .title a:hover {
    color: var(--accent-color-1);
}
.resource-card .subtitle {
    color: var(--text-color-secondary);
}


/* Timeline (Bulma Overrides & Enhancements) */
.timeline {
    font-family: var(--font-family-body);
}
.timeline .timeline-header {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: var(--border-radius-sharp);
    padding: 0.5em 1em;
    box-shadow: 3px 3px 0 var(--border-color);
}
.timeline .timeline-item .timeline-marker {
    background-color: var(--background-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 3px var(--background-color); /* To make it stand out */
}
.timeline .timeline-item .timeline-marker.is-icon {
    color: var(--primary-color);
}
.timeline .timeline-item.is-primary .timeline-marker {
    border-color: var(--accent-color-1);
}
.timeline .timeline-item.is-primary .timeline-marker.is-icon {
    color: var(--accent-color-1);
}
.timeline .timeline-content {
    padding: 1em 2em;
    border-radius: var(--border-radius-sharp);
    background-color: var(--neutral-light);
    border: 2px solid var(--neutral-medium);
    box-shadow: 3px 3px 0px var(--neutral-medium);
}
.timeline .timeline-content p.heading {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 600;
}

/* Progress Indicators (Bulma .progress) */
.progress.is-primary::-webkit-progress-value { background-color: var(--primary-color); }
.progress.is-primary::-moz-progress-bar { background-color: var(--primary-color); }
.progress.is-primary::-ms-fill { background-color: var(--primary-color); }
.progress {
    border-radius: var(--border-radius-sharp);
    border: 2px solid var(--border-color);
    padding: 2px;
    height: 1.5rem;
}
.progress::-webkit-progress-bar {
    background-color: var(--neutral-light);
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-medium);
    border: 2px solid var(--border-color);
    transition: .4s var(--transition-smooth);
    border-radius: var(--border-radius-sharp);
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border: 2px solid var(--border-color);
    transition: .4s var(--transition-smooth);
    border-radius: var(--border-radius-sharp);
}
.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
    background-color: var(--accent-color-1);
}

/* Statistical Widgets */
.widget-statistic {
    background-color: var(--neutral-light);
    padding: var(--spacing-unit);
    border: var(--border-strong);
    text-align: center;
    box-shadow: 3px 3px 0px var(--border-color);
}
.widget-statistic p.is-size-4 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
}
.widget-statistic p.is-size-7 {
    color: var(--text-color-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

/* Partners Section */
.partners-section .partner-logo img {
    max-height: 80px;
    width: auto;
    margin: 0 auto var(--spacing-unit);
    filter: grayscale(80%);
    transition: filter 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
.partners-section .partner-logo img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Contact Form */
.contact-form .label.form-label {
    color: var(--text-color-headings);
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 1rem;
}
.contact-form .input.form-input,
.contact-form .textarea.form-textarea {
    background-color: var(--background-color);
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp);
    padding: calc(var(--spacing-unit) * 0.75);
    font-size: 1rem;
    color: var(--text-color-primary);
    box-shadow: 2px 2px 0px var(--neutral-medium);
    transition: box-shadow 0.2s var(--transition-smooth), border-color 0.2s var(--transition-smooth);
}
.contact-form .input.form-input:focus,
.contact-form .textarea.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0px var(--primary-color), 0 0 0 0.125em rgba(var(--rgb-primary-color),0.25); /* Bulma focus style, adapt primary color */
    outline: none;
}
.contact-form .contact-submit-button {
    min-width: 200px;
}

/* Footer */
.footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    padding: 3rem 1.5rem 2rem; /* Reduced bottom padding */
    border-top: 5px solid var(--primary-color);
}
.footer .title.footer-title {
    color: var(--accent-color-1);
    font-family: var(--font-family-headings);
    margin-bottom: 1rem;
}
.footer .content-text, .footer p {
    color: var(--neutral-light);
    font-size: 0.95rem;
}
.footer a {
    color: var(--neutral-light);
    font-weight: 600;
    transition: color 0.2s var(--transition-smooth), text-decoration-color 0.2s var(--transition-smooth);
}
.footer a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
    text-decoration-color: var(--accent-color-1);
}
.footer .column ul li {
    margin-bottom: 0.5rem;
}
.footer .column ul li a[target="_blank"] { /* External social links */
    text-decoration: underline;
    text-decoration-color: var(--accent-color-1);
    text-decoration-thickness: 2px;
    font-weight: bold;
}
.footer .column ul li a[target="_blank"]:hover {
    text-decoration-color: var(--neutral-light);
}

/* Specific Page Styles (e.g., Privacy, Terms, Success) */
.page-content-privacy-terms { /* Add this class to main content wrapper on privacy/terms pages */
    padding-top: var(--navbar-height); /* this is handled by body padding-top now */
    padding-bottom: 3rem;
}
.page-content-privacy-terms .container {
    padding-top: 2rem; /* Extra space from header */
}
.page-content-privacy-terms h1, .page-content-privacy-terms h2 {
    margin-bottom: 1.5rem;
}
.page-content-privacy-terms p, .page-content-privacy-terms ul {
    margin-bottom: 1rem;
}

/* Success Page Styling */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height)); /* Account for fixed navbar */
    text-align: center;
    padding: 2rem;
    background-color: var(--neutral-light);
}
.success-page-container .success-icon { /* Placeholder for an icon */
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.success-page-container h1 {
    color: var(--secondary-color);
}
.success-page-container p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Utility Classes */
.image-container { /* For general image containers if needed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* or cover, depending on use case */
}

.text-shadow-strong {
    text-shadow: 1px 1px 0px var(--border-color), 2px 2px 0px var(--border-color);
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-family: var(--font-family-body);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color-1);
    padding-bottom: 2px;
    transition: color 0.3s var(--transition-smooth), border-bottom-color 0.3s var(--transition-smooth);
}
.read-more-link:hover {
    color: var(--accent-color-1);
    border-bottom-color: var(--primary-color);
    text-decoration: none; /* Remove default underline on hover if custom one is used */
}
.read-more-link::after {
    content: ' →'; /* Arrow */
    transition: transform 0.3s var(--transition-bounce);
    display: inline-block;
}
.read-more-link:hover::after {
    transform: translateX(5px);
}

/* Glassmorphism Utility */
.glassmorphic {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  border-radius: var(--border-radius-slight);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure high contrast for accessibility */
/* Most text colors are dark on light BG, or light on dark BG (hero, footer) */
/* Double check specific component combinations if adding new ones */

/* Responsive adjustments for smaller screens if Bulma's aren't enough */
@media screen and (max-width: 768px) {
    .section {
        padding: clamp(2rem, 6vw, 4rem) 1rem;
    }
    .title.is-1 { font-size: clamp(2rem, 8vw, 3rem); }
    .title.is-2, .section-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }

    .columns.is-vcentered .column:first-child { /* Ensure image doesn't get squished weirdly after text */
        order: 1;
    }
     .columns.is-vcentered .column:last-child {
        order: 2;
    }
    .mission-section .column.is-two-thirds {
        margin-bottom: 2rem; /* Space between text and image on mobile */
    }
}