:root {
    /* Analogous Color Scheme (Green-Yellow-Orange focus) */
    --color-primary: #009639;       /* Main Green */
    --color-primary-dark: #00672E;  /* Darker Green */
    --color-primary-light: #39b54a; /* Lighter Green */

    --color-secondary: #FFDD00;     /* Bright Yellow (Brazilian flag) */
    --color-secondary-dark: #e6c800;/* Darker Yellow */

    --color-accent: #F7931E;        /* Orange/Gold Accent */
    --color-accent-dark: #d47f1a;   /* Darker Accent */

    /* Neutral Colors */
    --color-text-dark: #363636;        /* Bulma's default text color */
    --color-text-light: #ffffff;
    --color-text-medium: #555555;
    --color-text-headings: #222222;    /* Darker for strong headings */
    --color-text-subtle: #7a7a7a;     /* For help text, secondary info */

    --color-background-body: #f8f8f8; /* Very light grey, almost white */
    --color-background-section: #ffffff;
    --color-background-card: #ffffff;
    --color-background-footer: #2c2c2c; /* Dark grey for footer */
    --color-border: #333333; /* Brutalist border */
    --color-border-light: #dbdbdb; /* Bulma's default border */

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

    /* UI Element Styles */
    --border-strong: 2px solid var(--color-border);
    --shadow-volumetric: 4px 4px 0 var(--color-border);
    --shadow-volumetric-hover: 6px 6px 0 var(--color-primary-dark);
    --shadow-volumetric-active: 2px 2px 0 var(--color-border);
    --shadow-volumetric-inset: inset 2px 2px 0px 0px rgba(0,0,0,0.2); /* Subtle inset shadow */
    
    --shadow-card: 3px 3px 0px var(--color-border-light); /* Softer for general cards */
    --shadow-card-hover: 5px 5px 0px var(--color-primary);


    /* Spacing & Sizing */
    --navbar-height: 3.25rem; /* Default Bulma navbar height */
    --section-padding-y: 4rem;
    --section-padding-x: 1.5rem;
    --card-padding: 1.5rem;
    --border-radius-sharp: 0px; 
    --border-radius-subtle: 4px; 

    --transition-speed: 0.2s ease-in-out;
    --transition-speed-fast: 0.15s ease-in-out;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--color-text-headings);
    font-weight: 700; /* Playfair Display often looks good bold */
}

.title {
    font-weight: 900; /* Extra bold for main titles */
}
.subtitle {
    font-family: var(--font-body); /* Subtitles often with body font */
    color: var(--color-text-medium);
}

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

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

section.section {
    padding: var(--section-padding-y) var(--section-padding-x);
    background-color: var(--color-background-section);
}

section.section:nth-child(even) { /* Alternate section background for visual separation if desired */
   /* background-color: var(--color-background-body); */
}

.container {
    max-width: 1140px; /* Consistent container width */
    margin-left: auto;
    margin-right: auto;
}

/* HEADER & NAVBAR */
.header .navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px); /* Subtle glassmorphism for navbar */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--color-border-light);
}

.navbar-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary-dark) !important;
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-medium);
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important; /* Override Bulma default */
    color: var(--color-primary) !important;
}

.navbar-burger span {
    background-color: var(--color-text-headings);
    height: 2px; /* Thinner burger lines for a modern look */
}
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg); /* Adjusted for 2px height */
}
.navbar-burger.is-active span:nth-child(2) {
    /*opacity: 0;*/
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg); /* Adjusted for 2px height */
}


/* VOLUMETRIC UI ELEMENTS (BUTTONS & INPUTS) */
.volumetric-button {
    background-color: var(--color-primary);
    color: var(--color-text-light) !important; /* Important to override Bulma link colors in buttons */
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp);
    padding: 0.75em 1.5em; /* Adjusted padding */
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-volumetric);
    transition: all var(--transition-speed-fast);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.volumetric-button:hover {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-volumetric-hover);
    transform: translate(-2px, -2px);
}

.volumetric-button:active {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-volumetric-active);
    transform: translate(1px, 1px);
}

.input.volumetric-input,
.textarea.volumetric-input {
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp);
    padding: 0.75em 1em; /* Adjusted padding */
    font-family: var(--font-body);
    box-shadow: var(--shadow-volumetric-inset);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    background-color: #fff; /* Ensure bg is white */
}

.input.volumetric-input:focus,
.textarea.volumetric-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-volumetric-inset), 0 0 0 2px var(--color-primary-light); /* Focus ring */
}

.form-icon { /* Icons inside form fields */
    width: 18px;
    height: 18px;
    /*opacity: 0.6;*/
}

/* HERO SECTION */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Darker gradient */
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2; /* Content above overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-title {
    color: var(--color-text-light); /* Explicitly white as per prompt */
    font-size: 3.5rem; /* Responsive font size */
    margin-bottom: 1rem;
    line-height: 1.2;
}

#hero .hero-subtitle {
    color: var(--color-text-light); /* Explicitly white */
    font-size: 1.3rem; /* Responsive font size */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* For GSAP/JS controlled animations */
/*.animated-text-fadein { opacity: 0; }*/
.anm-pulse:hover { animation: pulse 1s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }


/* SECTION TITLES */
.section-title {
    margin-bottom: 1.5rem; /* Default margin for section titles */
    color: var(--color-text-headings) !important; /* Ensure high contrast */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}
.section .subtitle {
    margin-bottom: 3rem; /* Space after section subtitle */
    color: var(--color-text-medium) !important;
}


/* CARD STYLES (General) */
.card {
    background-color: var(--color-background-card);
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp); /* Brutalist sharp edges */
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
    overflow: hidden; /* Ensures content doesn't break brutalist box */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.card .card-content {
    padding: var(--card-padding);
    flex-grow: 1; /* Allows content to fill card height */
    text-align: center; /* Center text content in cards */
}

.card .card-image { /* Bulma's card-image */
    margin-bottom: 0; /* Remove default margin if content is directly below */
    display: flex; /* For centering content within card-image if needed */
    justify-content: center;
    align-items: center;
}
.card .image-container { /* Custom container for image */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem; /* Space between image and text */
}

.card .card-title {
    color: var(--color-text-headings) !important;
    margin-bottom: 0.75rem;
}
.card .content {
    color: var(--color-text-medium);
    font-size: 0.95rem;
}

/* FEATURES SECTION */
.feature-card .card-image .image-container { /* For 96x96 icons */
    padding-top: 1rem; /* Space above icon */
}
.feature-card .card-image .image-container img {
    width: 72px; /* Slightly smaller icons for better balance */
    height: 72px;
    object-fit: contain;
}

/* INSTRUCTORS SECTION */
.instructor-card .card-image .image-container {
    height: 220px; /* Fixed height for instructor images */
    width: 100%;
    overflow: hidden;
}
.instructor-card .card-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Often better for portraits */
}
.instructor-card .card-content {
    padding-top: 1rem;
}

/* SUCCESS STORIES SECTION */
.success-story-card {
    background-color: var(--color-primary-light); /* Different bg for emphasis */
    border-color: var(--color-primary-dark);
    box-shadow: 4px 4px 0 var(--color-primary-dark);
}
.success-story-card:hover {
    box-shadow: 6px 6px 0 var(--color-primary-dark);
}
.success-story-card .card-title,
.success-story-card .content,
.success-story-card .has-text-weight-bold {
    color: var(--color-text-light) !important; /* Ensure text is light on darker bg */
}
.success-story-card .has-text-weight-bold {
    color: var(--color-secondary) !important; /* Accent for name */
}

.statistical-widgets-container .stat-widget {
    padding: 1rem;
}
.stat-widget .stat-number {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--color-primary) !important;
    font-size: 3.5rem;
    line-height: 1;
}
.stat-widget .stat-label {
    font-family: var(--font-body);
    color: var(--color-text-medium) !important;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Accordion */
.accordion-item {
    margin-bottom: 0.5rem;
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp);
    overflow: hidden; /* Keep content within borders */
}
.accordion-header {
    background-color: var(--color-background-card);
    color: var(--color-text-headings);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.8em 1.2em;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: var(--border-strong); /* Separator line if content is visible */
    cursor: pointer;
    transition: background-color var(--transition-speed);
    position: relative; /* For pseudo-element arrow */
}
.accordion-header:hover {
    background-color: var(--color-background-body);
}
.accordion-header.is-active {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    border-bottom-color: var(--color-primary-dark);
}
.accordion-header::after { /* Arrow indicator */
    content: '+';
    font-size: 1.5em;
    position: absolute;
    right: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
}
.accordion-header.is-active::after {
    content: '-';
}
.accordion-content {
    padding: 1.5rem;
    background-color: var(--color-background-card);
    display: none; /* JS will toggle */
    color: var(--color-text-medium);
}
.accordion-content p {
    margin-bottom: 1rem;
}
.accordion-content p:last-child {
    margin-bottom: 0;
}


/* RESEARCH SECTION */
.research-card .card-image .image-container img {
    object-fit: cover;
}
/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px; /* smaller switch */
  height: 28px; /* smaller switch */
}
.switch input { display:none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border: 1px solid var(--color-border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; /* smaller knob */
  width: 20px; /* smaller knob */
  left: 3px; /* adjusted */
  bottom: 3px; /* adjusted */
  background-color: white;
  transition: .4s;
  border: 1px solid var(--color-border);
}
input:checked + .slider {
  background-color: var(--color-primary);
  border-color: var(--color-primary-dark);
}
input:checked + .slider:before {
  transform: translateX(22px); /* adjusted */
  border-color: var(--color-primary-dark);
}
.slider.round { border-radius: var(--border-radius-sharp); } /* Sharp edges */
.slider.round:before { border-radius: var(--border-radius-sharp); } /* Sharp edges */


/* SUSTAINABILITY & CAREERS SECTION */
#sustainability .content p, #careers .content p {
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
}
#sustainability .image-container img, #careers .image-container img {
    border: var(--border-strong);
    border-radius: var(--border-radius-sharp);
}

/* EXTERNAL RESOURCES SECTION */
.resource-card .card-content {
    text-align: left;
}
.resource-card .title a {
    color: var(--color-primary-dark) !important;
    text-decoration: underline !important;
}
.resource-card .title a:hover {
    color: var(--color-accent) !important;
}

/* CONTACT SECTION */
#contact {
    background-color: var(--color-background-body); /* Slightly different bg */
}
#contactForm label.label {
    color: var(--color-text-headings);
    font-weight: 600;
}
.contact-details {
    margin-top: 2rem;
    padding: 1.5rem;
    border: var(--border-strong);
    background-color: var(--color-background-section);
}
.contact-details p {
    color: var(--color-text-medium);
    margin-bottom: 0.5rem;
}
.contact-details strong {
    color: var(--color-text-headings);
}

/* FOOTER */
.footer {
    background-color: var(--color-background-footer);
    color: var(--color-text-subtle);
    padding: 3rem 1.5rem 2rem; /* Reduced bottom padding */
}
.footer .title.footer-title {
    color: var(--color-text-light) !important;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer p, .footer ul li {
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}
.footer a {
    color: var(--color-primary-light) !important;
    transition: color var(--transition-speed);
}
.footer a:hover {
    color: var(--color-secondary) !important;
}
.footer hr {
    background-color: #444; /* Darker hr */
    margin: 1.5rem 0;
}
.footer .content p {
    color: var(--color-text-subtle);
}

/* SPECIFIC PAGE STYLES */
/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--section-padding-y) var(--section-padding-x);
    background-color: var(--color-background-body);
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
}
.success-page-container .icon-success {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    fill: var(--color-primary); /* For SVG icons */
}

/* Privacy & Terms Pages */
.page-content-wrapper { /* Wrap content of privacy.html & terms.html in this */
    padding-top: calc(var(--navbar-height) + 40px); /* Adjust 40px as needed */
    padding-bottom: var(--section-padding-y);
    min-height: calc(100vh - var(--navbar-height) - 100px); /* Example for footer spacing */
}
.page-content-wrapper .content h1,
.page-content-wrapper .content h2,
.page-content-wrapper .content h3 {
    color: var(--color-text-headings);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content-wrapper .content p,
.page-content-wrapper .content ul,
.page-content-wrapper .content ol {
    color: var(--color-text-medium);
    margin-bottom: 1rem;
}

/* "Read More" link style */
.read-more-link {
    display: inline-block;
    color: var(--color-accent) !important;
    font-weight: 700;
    text-decoration: underline !important;
    margin-top: 1rem;
    transition: color var(--transition-speed);
}
.read-more-link:hover {
    color: var(--color-accent-dark) !important;
}

/* Scroll Animations Base (JS will toggle .is-visible) */
.anim-on-scroll {
    /*opacity: 0;*/
    transform: translateY(25px);
    transition: opacity 0.6s var(--transition-speed), transform 0.6s var(--transition-speed);
}
.anim-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 1023px) { /* Bulma's tablet breakpoint */
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
        border-top: 1px solid var(--color-border-light);
    }
    .navbar-item {
        padding: 0.75rem 1rem;
    }
}

@media screen and (max-width: 768px) { /* Bulma's mobile breakpoint */
    html {
        font-size: 15px; /* Slightly smaller base font on mobile */
    }
    #hero .hero-title {
        font-size: 2.5rem;
    }
    #hero .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem; /* Adjust title sizes */
    }
    .stat-widget .stat-number {
        font-size: 2.8rem;
    }
    .columns.is-multiline .column { /* Ensure cards stack nicely */
        margin-bottom: 1.5rem; 
    }
    .columns.is-multiline .column:last-child {
        margin-bottom: 0;
    }
    .footer .columns > .column { /* Stack footer columns */
        margin-bottom: 1.5rem;
    }
}