:root {
    /* Tetradic Color Scheme - Revised for better harmony and contrast */
    --primary-color: #0A2463; /* Deep Indigo - Professional, Trustworthy */
    --primary-color-rgb: 10, 36, 99;
    --primary-color-darker: #071A48;
    --secondary-color: #3E92CC; /* Steel Blue - Calm, Stable */
    --secondary-color-rgb: 62, 146, 204;
    --secondary-color-darker: #2A6DA4;
    --accent-color-1: #D8315B; /* Cerise Pink - Energetic, Attention-grabbing for CTAs */
    --accent-color-1-rgb: 216, 49, 91;
    --accent-color-1-darker: #A32043;
    --accent-color-2: #F4A261; /* Sandy Brown/Orange - Warm, Friendly */
    --accent-color-2-rgb: 244, 162, 97;
    --accent-color-2-darker: #E78F4A;

    /* Neutral Colors */
    --text-color-light: #FDFEFE;
    --text-color-dark: #222222;
    --text-color-medium: #5F6368; /* For subtitles, descriptions */
    --background-light: #FFFFFF;
    --background-medium: #F1F5F9; /* Light slate gray for section backgrounds */
    --background-dark: #1E293B; /* Dark slate for contrast elements */
    --border-color: #CBD5E1; /* Light gray border */

    /* Fonts */
    --font-heading: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing & Sizing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 1.5rem;  /* 24px */
    --spacing-xl: 2.5rem;  /* 40px */
    --spacing-xxl: 4rem;   /* 64px */

    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth and responsive */

    /* Header & Footer */
    --header-height: 70px; /* Adjust if navbar height changes */
    --footer-height-approx: 250px; /* Approximate for layout calculations if needed */

    /* Shadows for depth */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
}

/* === GLOBAL STYLES === */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

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

.site-wrapper {
    overflow-x: hidden; /* Ensure no horizontal scroll from animations or skewed elements */
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-color-dark); /* Default dark for headings */
    font-weight: 800; /* Manrope bold */
}

.title.is-1 { font-size: 3rem; margin-bottom: var(--spacing-md); }
.title.is-2 { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
.title.is-3 { font-size: 2rem; margin-bottom: var(--spacing-sm); }
.title.is-4 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); }
.title.is-5 { font-size: 1.25rem; }
.subtitle { color: var(--text-color-medium); font-weight: 400; } /* Rubik regular */

p {
    margin-bottom: var(--spacing-md);
    font-weight: 400; /* Rubik regular */
}

a {
    color: var(--secondary-color);
    transition: color var(--transition-speed) var(--transition-timing);
    font-weight: 500; /* Rubik medium for links */
}

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

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

.styled-image {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.image-container { /* Used for Bulma's figure.image or custom divs */
    border-radius: var(--border-radius-md);
    overflow: hidden; /* Crucial for object-fit and border-radius on img */
    position: relative; /* For potential overlays */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* === LAYOUT & HELPERS === */
.section {
    padding: var(--spacing-xxl) var(--spacing-lg); /* More vertical padding */
}
.section.is-medium {
    padding: calc(var(--spacing-xxl) * 1.5) var(--spacing-lg);
}

.container {
    max-width: 1152px; /* Bulma default is 960px, 1152px, 1344px */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.content .taglist { margin-left: 0; } /* Bulma fix */

.has-text-centered { text-align: center !important; }

.section-title {
    margin-bottom: var(--spacing-xl) !important;
    color: var(--text-color-dark);
    font-weight: 800;
}
.section-subtitle {
    margin-top: calc(-1 * var(--spacing-lg) + 0.5rem); /* Pull subtitle closer to title */
    margin-bottom: var(--spacing-xl);
    color: var(--text-color-medium);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* For elements that need to appear on scroll (initial state) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === HEADER & NAVIGATION === */
.header.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030; /* Above most content, Bulma's default for fixed navbar */
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.navbar {
    min-height: var(--header-height);
    background-color: transparent; /* Let header control background */
}

.navbar .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    padding: var(--spacing-sm) var(--spacing-md);
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 500; /* Rubik Medium */
    color: var(--text-color-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: color var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent;
    color: var(--accent-color-1) !important;
}
.navbar-item::after { /* Underline animation for hover/active */
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color-1);
    transition: width var(--transition-speed) var(--transition-timing);
    margin-top: 2px;
}
.navbar-item:hover::after, .navbar-item.is-active::after {
    width: 100%;
}


/* Burger menu */
.navbar-burger {
    color: var(--primary-color);
    height: var(--header-height); /* Ensure consistent height */
    width: var(--header-height);
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px;
    transition: transform var(--transition-speed) var(--transition-timing), opacity var(--transition-speed) var(--transition-timing);
}
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-light);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: var(--spacing-sm) 0;
    }
    .navbar-menu .navbar-item {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }
    .navbar-menu .navbar-item:last-child {
        border-bottom: none;
    }
    .navbar-menu .buttons .button {
        width: 100%;
        margin-top: var(--spacing-sm);
    }
}


/* === BUTTONS (GLOBAL) === */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: transform var(--transition-speed) var(--transition-timing),
                background-color var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing),
                color var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0px);
    box-shadow: none;
}

.button.is-primary.modern-button, .modern-button { /* Custom class for specific themed buttons */
    background-color: var(--accent-color-1);
    border-color: var(--accent-color-1);
    color: var(--background-light) !important; /* Ensure text is light */
}
.button.is-primary.modern-button:hover, .modern-button:hover {
    background-color: var(--accent-color-1-darker);
    border-color: var(--accent-color-1-darker);
    color: var(--background-light) !important;
}

.button.is-link.modern-button-outline, .modern-button-outline {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
}
.button.is-link.modern-button-outline:hover, .modern-button-outline:hover {
    background-color: var(--secondary-color);
    color: var(--background-light) !important;
}


/* Animated Draw Border Button (used in Hero) */
.modern-button.anim-draw-border {
    position: relative;
    overflow: hidden;
    color: var(--background-light); /* Ensure text is light */
    background-color: var(--accent-color-1);
    border-color: var(--accent-color-1);
    padding: var(--spacing-md) var(--spacing-xl); /* Larger padding */
}
.modern-button.anim-draw-border:hover {
    background-color: var(--accent-color-1-darker);
    border-color: var(--accent-color-1-darker);
}

.modern-button.anim-draw-border span { /* For text content if any */
    position: relative;
    z-index: 1;
}

.modern-button.anim-draw-border::before,
.modern-button.anim-draw-border::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    transition: width var(--transition-speed) var(--transition-timing);
    background-color: rgba(255,255,255,0.1); /* Subtle effect */
    z-index: 0;
}
.modern-button.anim-draw-border::before {
    top: 0;
    left: 0;
}
.modern-button.anim-draw-border::after {
    bottom: 0;
    right: 0;
    transition-delay: 0.15s; /* Stagger animation */
}
.modern-button.anim-draw-border:hover::before,
.modern-button.anim-draw-border:hover::after {
    width: 100%;
}


/* === HERO SECTION === */
#hero.hero.is-fullheight {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For curved element */
}
.hero-body {
    position: relative; /* To be above the curve */
    z-index: 2;
    padding-bottom: 120px; /* Space for the curve */
}
#hero .hero-title {
    color: var(--text-color-light) !important; /* Strictly white as per prompt */
    font-size: 3.5rem;
    font-weight: 800; /* Manrope ExtraBold */
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
#hero .hero-subtitle {
    color: var(--text-color-light) !important; /* Strictly white */
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 500; /* Rubik Medium */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
#hero .hero-description {
    color: var(--text-color-light) !important; /* Strictly white */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Curved Grid Element */
.curved-grid-element.bottom-curve {
    position: absolute;
    bottom: -1px; /* Ensure no gap */
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height of the curve */
    background-color: var(--background-light); /* Color of the section below */
    clip-path: ellipse(70% 100% at 50% 100%); /* Softer curve */
    z-index: 1; /* Below hero body, above hero background */
}

/* Section specific background with curve */
.section-with-bg-curve {
    position: relative;
    background-color: var(--background-medium); /* Fallback or base color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: calc(var(--spacing-xxl) + 50px); /* Space for top curve */
}
.section-with-bg-curve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--background-light); /* Color of section above */
    clip-path: ellipse(70% 100% at 50% 0%); /* Top curve, inverted */
    z-index: 1;
}
.section-with-bg-curve .container {
    position: relative;
    z-index: 2;
}
.section-with-bg-curve-alt {
    position: relative;
    background-color: var(--background-medium);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: calc(var(--spacing-xxl) + 50px); /* Space for bottom curve */
}
.section-with-bg-curve-alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--background-light); /* Color of section below */
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 1;
}
.section-with-bg-curve-alt .container {
    position: relative;
    z-index: 2;
}

/* === CARD STYLES === */
.card {
    background-color: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a row */
    overflow: hidden; /* Ensure content respects border-radius */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .card-image { /* Bulma's .card-image */
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    overflow: hidden; /* Important for child image border radius */
}

/* If using custom .image-container div instead of Bulma's .card-image > figure */
.card div.image-container { /* If it's a direct div child of .card */
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    overflow: hidden;
}
.card div.image-container img { /* Image directly in .image-container */
    width: 100%;
    object-fit: cover;
}

/* For Bulma's structure: .card > .card-image > figure.image.is-4by3.image-container > img */
.card .card-image figure.image-container { /* This is the <figure> */
    margin-bottom: 0 !important; /* Override Bulma's default margin on figure if any */
}
.card .card-image figure.image-container img {
    /* width & height 100%, object-fit: cover already globally applied to .image-container img */
    /* Ensure it fills the figure provided by Bulma's aspect ratio classes */
    border-top-left-radius: var(--border-radius-lg); /* Match card */
    border-top-right-radius: var(--border-radius-lg);
}

.card .card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to push footer elements down */
    text-align: left; /* Default for card content */
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: var(--spacing-sm);
}
.card .card-content .title.card-title-custom {
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.4;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-bottom: auto; /* Pushes elements below (like buttons) to the bottom */
    padding-bottom: var(--spacing-sm); /* Space before any fixed button */
}
.card .read-more-link {
    font-weight: 700;
    color: var(--accent-color-1);
    display: inline-block;
    margin-top: var(--spacing-sm);
    text-decoration: none;
    position: relative; /* For animated underline */
}
.card .read-more-link::after {
    content: ' →';
}
.card .read-more-link:hover {
    color: var(--accent-color-1-darker);
}
.card .read-more-link::before { /* Animated underline */
    content: "";
    position: absolute;
    display: block;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color-1);
    transition: width var(--transition-speed) var(--transition-timing);
}
.card .read-more-link:hover::before {
    width: 100%;
}
.card .button { /* Button at the bottom of a card */
    margin-top: var(--spacing-md); 
    align-self: flex-start; /* Align button to the left if text is left-aligned */
}

/* Specific card types adjustment if needed */
.workshop-card .card-content .subtitle { color: var(--text-color-medium); }
.news-card .card-content .subtitle { font-size: 0.8rem; color: #777; }
.career-card .card-content { text-align: center; }
.career-card .button { align-self: center; }
.media-card .card-content .title.card-title-custom { font-size: 1.4rem; }

/* Carousel (basic styling for Bulma columns acting as items) */
.workshop-carousel { /* This is the .columns container */
    /* Add specific styles if JS creates a carousel wrapper that needs styling */
}
.carousel-controls .button {
    margin: 0 var(--spacing-xs);
}


/* === STATISTICAL WIDGETS (About Section) === */
.statistical-widgets {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}
.stat-widget {
    padding: var(--spacing-md);
    text-align: center;
}
.stat-widget .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}
.stat-widget .stat-label {
    font-size: 1rem;
    color: var(--text-color-medium);
    font-weight: 500;
}

/* === EXTERNAL RESOURCES SECTION === */
.external-links-list {
    list-style: none;
    padding-left: 0;
}
.resource-item {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}
.resource-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.resource-item .resource-title a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.resource-item .resource-title a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}
.resource-item .resource-description {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

/* === FORM STYLES === */
.form-label-custom {
    color: var(--text-color-dark);
    font-weight: 500; /* Rubik Medium */
    margin-bottom: var(--spacing-xs) !important; /* Bulma override */
    display: block;
}
.input.modern-input, .textarea.modern-textarea {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: none; /* Remove Bulma's default inner shadow */
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.input.modern-input:focus, .textarea.modern-textarea:focus,
.input.modern-input:active, .textarea.modern-textarea:active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--secondary-color-rgb), 0.25); /* Focus ring */
}
.textarea.modern-textarea {
    min-height: 120px;
    resize: vertical;
}
.field.is-grouped.is-centered .control {
    margin-left: auto;
    margin-right: auto;
}
#contactFormIndex p a { /* Link below form on index */
    color: var(--primary-color);
    font-weight: 500;
}


/* === FOOTER === */
.site-footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: var(--spacing-xxl) var(--spacing-lg);
    font-size: 0.95rem;
}
.site-footer .footer-title {
    color: var(--text-color-light) !important; /* Ensure light title */
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}
.site-footer p {
    color: rgba(var(--text-color-light-rgb, 253, 254, 254), 0.8); /* Slightly dimmer paragraph text */
    margin-bottom: var(--spacing-sm);
}
.site-footer ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0; /* Override Bulma user agent styles */
}
.site-footer ul li {
    margin-bottom: var(--spacing-sm);
}
.site-footer ul li a {
    color: rgba(var(--text-color-light-rgb, 253, 254, 254), 0.9);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
}
.site-footer ul li a:hover {
    color: var(--accent-color-2);
    padding-left: var(--spacing-xs); /* Slight indent on hover */
}
.site-footer .social-links a { /* Specific styling for social text links */
    font-weight: 500; /* Rubik Medium */
}
.site-footer .copyright {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(var(--text-color-light-rgb, 253, 254, 254), 0.2);
    font-size: 0.85rem;
    color: rgba(var(--text-color-light-rgb, 253, 254, 254), 0.7);
}


/* === SPECIFIC PAGE STYLES === */

/* success.html centering and min-height */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-medium); /* Optional: different bg for success page */
}
body.success-page .site-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
body.success-page main { /* This main tag is in success.html */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
}
.success-content { /* Wrapper for content on success page */
    background-color: var(--background-light);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
}
.success-content .icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
}

/* privacy.html & terms.html content padding */
.simple-page-container { /* Add to main content container on these pages */
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-xxl);
    min-height: calc(100vh - var(--header-height) - var(--footer-height-approx) - var(--spacing-xl));
}
.simple-page-container h1, .simple-page-container h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}
.simple-page-container h1 { font-size: 2.5rem; }
.simple-page-container h2 { font-size: 2rem; margin-top: var(--spacing-xl); }
.simple-page-container p, .simple-page-container li {
    line-height: 1.8;
    color: var(--text-color-dark);
}
.simple-page-container ul, .simple-page-container ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}


/* === COOKIE CONSENT POPUP === */
/* Styles for #cookieConsentPopup are in HTML as requested for simplicity */
/* However, if allowed, better here: */
#cookieConsentPopup {
    font-family: var(--font-body);
}
#cookieConsentPopup p a {
    font-weight: 500;
}
#cookieConsentPopup button {
    font-family: var(--font-heading);
    font-weight: 700;
}


/* === RESPONSIVE ADJUSTMENTS === */
@media screen and (max-width: 768px) { /* Tablet and Mobile */
    html { font-size: 15px; }

    #hero .hero-title { font-size: 2.5rem; }
    #hero .hero-subtitle { font-size: 1.25rem; }
    #hero .hero-description { font-size: 1rem; }

    .section { padding: var(--spacing-xl) var(--spacing-md); }
    .section.is-medium { padding: var(--spacing-xxl) var(--spacing-md); }
    
    .section-title { font-size: 2rem; margin-bottom: var(--spacing-lg); }
    .section-subtitle { margin-bottom: var(--spacing-lg); }

    .columns.is-multiline .column {
        margin-bottom: var(--spacing-lg); /* Space between cards stacked on mobile */
    }

    .stat-widget .stat-number { font-size: 2.5rem; }
    .stat-widget .stat-label { font-size: 0.9rem; }

    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: var(--spacing-lg);
    }
    .footer ul li a:hover {
        padding-left: 0; /* No indent on mobile hover */
    }
}

@media screen and (max-width: 480px) { /* Small Mobile */
    html { font-size: 14px; }
    #hero .hero-title { font-size: 2rem; }
    #hero .hero-subtitle { font-size: 1.1rem; }

    .button, button, input[type="submit"], input[type="button"] {
        padding: calc(var(--spacing-sm) * 0.9) calc(var(--spacing-lg) * 0.9);
        font-size: 0.9rem;
    }
    .button.is-large { /* Adjust Bulma large button */
        font-size: 1.1rem;
    }
}

/* Ensure background images with text overlays have sufficient contrast */
[style*="background-image"] { /* General rule for inline background images */
    /* If text is directly on this element, ensure a gradient is present in the style attribute */
    /* Example: style="background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(...)" */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Ensure global text contrast on light backgrounds */
body {
    color: var(--text-color-dark); /* Default body text for light backgrounds */
}
section:not([style*="background-image"]) { /* Sections without a dark background image */
    /* Ensure child text uses dark color by default or specific overrides */
}
section[style*="background-image"] { /* Sections with background images */
    /* If text is light, ensure the linear-gradient in HTML style provides enough darkness */
}