/* style.css */

/*------------------------------------*\
  #ROOT VARIABLES
\*------------------------------------*/
:root {
  /* Monochromatic Color Palette */
  --primary-color: #2c3e50; /* Dark Slate Blue/Grey - Corporate feel */
  --primary-color-darker: #233140;
  --secondary-color: #7f8c8d; /* Cool Grey - Supporting */
  --background-color: #ffffff; /* Clean White */
  --surface-color: #f8f9fa; /* Very Light Grey - for cards, sections */
  --surface-color-darker: #e9ecef;
  --text-color-dark: #343a40; /* Dark Grey for text on light backgrounds */
  --text-color-medium: #555555;
  --text-color-light: #ffffff; /* White for text on dark backgrounds */
  --border-color: #dee2e6; /* Light grey for borders */
  --accent-color: #3498db; /* A subtle, professional blue for accents if needed, can be a lighter grey for strict monochrome */
                           /* For strict monochrome, let's use a shade of grey for accent */
  --accent-monochrome: #5a6a7a;
  --accent-monochrome-light: #bdc3c7;

  /* Typography */
  --font-family-headings: 'Oswald', sans-serif;
  --font-family-body: 'Nunito', sans-serif;

  /* Spacing & Sizing */
  --spacing-unit: 8px;
  --container-width: 1200px;
  --header-height: 70px; /* Approximate */

  /* Borders & Shadows */
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.07);
  --box-shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);

  /* Transitions & Animations */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.3s;
  --transition-speed-slow: 0.5s;
  --ease-out-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy animation */
  --ease-out-smooth: ease-out;
}

/*------------------------------------*\
  #RESET & BASE STYLES
\*------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit) * 2); /* 16px */
  text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); } /* Responsive font size */
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: calc(var(--spacing-unit) * 2); /* 16px */
  color: var(--text-color-medium);
}

a {
  color: var(--accent-monochrome);
  text-decoration: none;
  transition: color var(--transition-speed-normal) ease;
}
a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

ul, ol {
  list-style-position: inside;
  padding-left: calc(var(--spacing-unit) * 2);
}
li { margin-bottom: var(--spacing-unit); }

/*------------------------------------*\
  #LAYOUT UTILITIES
\*------------------------------------*/
.page-wrapper {
  overflow: hidden; /* Contains elements with AOS animations */
}

.header-container,
.section-container,
.footer-container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--spacing-unit) * 2.5); /* 20px */
  padding-right: calc(var(--spacing-unit) * 2.5); /* 20px */
}

.text-center { text-align: center; }

/* Flexbox & Grid Helpers (basic examples) */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 3); /* 24px */
}
.column {
  flex: 1 1 100%; /* Mobile first: full width */
}
@media (min-width: 768px) {
  .column.is-two-thirds {
    flex-basis: calc(66.666% - (var(--spacing-unit) * 1.5)); /* Adjust for gap */
  }
  .column:not(.is-two-thirds) { /* Default to roughly one-third or auto */
    flex-basis: calc(33.333% - (var(--spacing-unit) * 1.5));
  }
}

/*------------------------------------*\
  #HEADER & NAVIGATION
\*------------------------------------*/
.site-header {
  background-color: var(--background-color);
  padding: calc(var(--spacing-unit) * 1.5) 0; /* 12px */
  box-shadow: var(--box-shadow-light);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
}

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

.logo img {
  max-height: calc(var(--header-height) - var(--spacing-unit) * 2); /* 54px if header is 70px */
  width: auto;
}

.main-navigation .nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-navigation .nav-links li {
  margin-left: calc(var(--spacing-unit) * 3); /* 24px */
}

.main-navigation .nav-links a {
  font-family: var(--font-family-headings);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  padding-bottom: var(--spacing-unit); /* 8px for underline space */
  position: relative;
  transition: color var(--transition-speed-normal) var(--ease-out-smooth);
}

.main-navigation .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-monochrome);
  transition: width var(--transition-speed-normal) var(--ease-out-smooth);
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active { /* Add .active class with JS for current page */
  color: var(--accent-monochrome);
}

.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: var(--spacing-unit);
}

/*------------------------------------*\
  #GLOBAL BUTTON STYLES
\*------------------------------------*/
.cta-button,
button,
input[type='submit'],
input[type='button'],
.form-submit-button, /* from HTML */
.read-more-button { /* from HTML */
  display: inline-block;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3.5); /* 12px 28px */
  font-family: var(--font-family-headings);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-color-light);
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition-property: background-color, color, transform, box-shadow;
  transition-duration: var(--transition-speed-normal);
  transition-timing-function: var(--ease-out-bounce);
  letter-spacing: 0.5px;
  user-select: none;
}

.cta-button:hover,
button:hover,
input[type='submit']:hover,
input[type='button']:hover,
.form-submit-button:hover,
.read-more-button:hover {
  background-color: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
  color: var(--text-color-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--box-shadow-medium);
}
.cta-button:active,
button:active,
input[type='submit']:active,
input[type='button']:active,
.form-submit-button:active,
.read-more-button:active {
    transform: translateY(-1px) scale(0.98);
}


.cta-button-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.cta-button-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}

.read-more-button { /* Specific override for read-more if needed */
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2); /* 8px 16px */
  font-size: 0.9rem;
  background-color: var(--surface-color-darker);
  color: var(--primary-color);
  border-color: var(--surface-color-darker);
}
.read-more-button:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border-color: var(--secondary-color);
}

/*------------------------------------*\
  #GLOBAL CARD STYLES
\*------------------------------------*/
.card {
  background-color: var(--background-color); /* Usually white for contrast on light grey sections */
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-light);
  overflow: hidden;
  transition: transform var(--transition-speed-normal) var(--ease-out-bounce),
              box-shadow var(--transition-speed-normal) var(--ease-out-smooth);
  display: flex;
  flex-direction: column;
  text-align: center; /* Center inline/inline-block children by default */
}

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

.card-image { /* Container for image */
  width: 100%;
  height: 200px; /* Fixed height */
  overflow: hidden;
  display: flex; /* Added for centering image if it's smaller than container */
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color-darker); /* Placeholder if image is missing/transparent */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial for fixed height container */
  transition: transform var(--transition-speed-slow) var(--ease-out-smooth);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: calc(var(--spacing-unit) * 2.5); /* 20px */
  flex-grow: 1; /* Allow content to push footer of card down */
}

.card-content .card-title { /* Already h3, styled by global heading styles */
  margin-bottom: var(--spacing-unit);
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-color-medium);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.card .read-more-button {
  margin-top: auto; /* Push to bottom if card is flex column */
}

/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/
.hero-section, .page-title-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text-color-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 2.5); /* 80px 20px */
  /* min-height will be set by content + padding */
}

.hero-section {
   /* Adjust padding for a taller hero if desired, but avoid fixed min-height */
   padding-top: calc(var(--spacing-unit) * 15);
   padding-bottom: calc(var(--spacing-unit) * 15);
}

.page-title-section {
  padding-top: calc(var(--spacing-unit) * 8);
  padding-bottom: calc(var(--spacing-unit) * 8);
}

.hero-overlay, .section-overlay { /* Overlay for text readability on background images */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero-content, .page-title-section .section-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title, .page-main-title {
  color: var(--text-color-light) !important; /* IMPORTANT: User request */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7) !important;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.hero-subtitle, .page-subtitle {
  color: var(--text-color-light) !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5) !important;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero-section .cta-button {
  margin-top: calc(var(--spacing-unit) * 2);
}

/*------------------------------------*\
  #GENERAL SECTION STYLING
\*------------------------------------*/
.content-section {
  padding: calc(var(--spacing-unit) * 7.5) 0; /* 60px */
  background-color: var(--background-color);
}

.content-section-colored {
  padding: calc(var(--spacing-unit) * 7.5) 0; /* 60px */
  background-color: var(--surface-color); /* Light grey for alternate sections */
}

.section-title { /* For centered titles */
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 5); /* 40px */
  color: var(--primary-color);
}
.section-title-left { /* For left-aligned titles */
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 3); /* 24px */
  color: var(--primary-color);
}

.section-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color-medium);
  max-width: 750px; /* For readability of longer paragraphs */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.content-section-colored .section-paragraph,
.content-section-colored .section-title {
    /* Ensure good contrast on colored background, primary already good */
}


/* Parallax Section (CSS only basic) */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  padding: calc(var(--spacing-unit) * 10) 0; /* 80px */
}

.parallax-section .section-title,
.parallax-section .section-paragraph,
.parallax-section .statistic-label,
.parallax-section .statistic-value {
  color: var(--text-color-light); /* Text on parallax bg should be light */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/*------------------------------------*\
  #SERVICES SECTION
\*------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3.5); /* 28px */
}
/* .service-card uses global .card styles */

/*------------------------------------*\
  #STATISTICS SECTION
\*------------------------------------*/
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing-unit) * 3); /* 24px */
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 4);
}

.statistic-item {
  padding: var(--spacing-unit) * 2;
}

.statistic-value {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color); /* Default, overridden in parallax */
  margin-bottom: var(--spacing-unit);
}

.statistic-label {
  font-size: 1rem;
  color: var(--secondary-color); /* Default, overridden in parallax */
}

.progress-bar-container {
  background-color: var(--surface-color-darker);
  border-radius: var(--border-radius-small);
  height: calc(var(--spacing-unit) * 1.25); /* 10px */
  margin-top: var(--spacing-unit);
  overflow: hidden;
}
.parallax-section .progress-bar-container {
    background-color: rgba(255,255,255,0.3);
}

.progress-bar {
  background-color: var(--accent-monochrome);
  height: 100%;
  border-radius: var(--border-radius-small);
  width: 0; /* Animated by JS */
  transition: width 1.5s var(--ease-out-smooth);
}
.parallax-section .progress-bar {
    background-color: var(--text-color-light);
}

/*------------------------------------*\
  #RESEARCH SECTION (ACCORDION)
\*------------------------------------*/
.accordion {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--spacing-unit) * 3);
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  margin-bottom: var(--spacing-unit);
  overflow: hidden;
  background-color: var(--background-color);
}

.accordion-header {
  background-color: var(--surface-color);
  color: var(--primary-color);
  cursor: pointer;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5); /* 16px 20px */
  width: 100%;
  text-align: left;
  border: none;
  font-family: var(--font-family-headings);
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed-normal) var(--ease-out-smooth);
}

.accordion-header:hover {
  background-color: var(--surface-color-darker);
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-speed-normal) var(--ease-out-bounce);
  font-weight: bold;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 calc(var(--spacing-unit) * 2.5);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed-slow) var(--ease-out-smooth),
              padding var(--transition-speed-slow) var(--ease-out-smooth);
}

.accordion-header[aria-expanded="true"] + .accordion-content { /* JS will handle this mostly */
  /* padding-top: calc(var(--spacing-unit) * 2);
  padding-bottom: calc(var(--spacing-unit) * 2); */
  /* max-height set by JS */
}

.accordion-content p {
  margin-top: calc(var(--spacing-unit) * 2);
  color: var(--text-color-medium);
}

.accordion-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-small);
  margin-top: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  box-shadow: var(--box-shadow-light);
}

/*------------------------------------*\
  #NEWS & SUCCESS STORIES (SLIDER)
\*------------------------------------*/
.custom-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.news-slider { max-width: 1100px; margin: 0 auto; }
.success-stories-slider { max-width: 800px; margin: 0 auto; }

.slider-wrapper {
  display: flex;
  transition: transform var(--transition-speed-slow) var(--ease-out-smooth);
}

.slider-slide {
  min-width: 100%; /* Default for single item view */
  box-sizing: border-box;
}

/* For multi-item view in news-slider */
@media (min-width: 768px) {
  .news-slider .slider-slide {
    min-width: calc(50% - (var(--spacing-unit) * 1.5)); /* 2 items with gap */
    margin: 0 calc(var(--spacing-unit) * 0.75);
  }
}
@media (min-width: 992px) {
  .news-slider .slider-slide {
    min-width: calc(33.333% - (var(--spacing-unit) * 1.5)); /* 3 items with gap */
     margin: 0 calc(var(--spacing-unit) * 0.75);
  }
}
.news-slider .card { height: 100%; } /* Ensure cards in slider have same height for multi-view */
.slider-slide .card { margin: 0 auto; max-width: 350px;} /* Center single card in success stories */
.news-slider .slider-slide .card { max-width: none; }


.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(44, 62, 80, 0.7); /* primary-color with alpha */
  color: var(--text-color-light);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: calc(var(--spacing-unit) * 5); /* 40px */
  height: calc(var(--spacing-unit) * 5); /* 40px */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-speed-normal) var(--ease-out-smooth),
              transform var(--transition-speed-fast) var(--ease-out-bounce);
}
.slider-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}
.slider-button.prev { left: calc(var(--spacing-unit) * 2); }
.slider-button.next { right: calc(var(--spacing-unit) * 2); }

.news-date {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-unit);
}

/*------------------------------------*\
  #EVENTS SECTION
\*------------------------------------*/
.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 3.5); /* 28px */
  margin-top: calc(var(--spacing-unit) * 3);
}
.event-item .card-content { text-align: left; } /* Override default card center for event details */
.event-title { font-size: 1.5rem; color: var(--primary-color); }
.event-date {
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-unit);
  font-size: 0.9rem;
}
.event-item .cta-button-secondary {
    margin-top: var(--spacing-unit) * 2;
}

/*------------------------------------*\
  #GALLERY SECTION
\*------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 2); /* 16px */
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-speed-slow) var(--ease-out-smooth),
              filter var(--transition-speed-normal) var(--ease-out-smooth);
}
.gallery-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05);
}

/*------------------------------------*\
  #CAREERS SECTION
\*------------------------------------*/
.career-image-container img {
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-medium);
  object-fit: cover;
  height: 100%; /* For column layout */
  max-height: 400px;
}
#careers .cta-button {
    margin-top: calc(var(--spacing-unit) * 2.5);
}

/*------------------------------------*\
  #EXTERNAL RESOURCES SECTION
\*------------------------------------*/
.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 2.5); /* 20px */
  margin-top: calc(var(--spacing-unit) * 3);
}
.resource-item.card {
  background-color: var(--surface-color);
  text-align: left; /* Override card center */
}
.resource-title {
  font-size: 1.2rem;
  color: var(--primary-color);
}
.resource-title a {
  color: var(--primary-color);
}
.resource-title a:hover {
  color: var(--accent-monochrome);
}
.resource-description {
  font-size: 0.9rem;
  color: var(--text-color-medium);
}

/*------------------------------------*\
  #CONTACT CTA SECTION (ON INDEX)
\*------------------------------------*/
#contact-cta { /* This is a parallax section */ }
#contact-cta .section-title,
#contact-cta .section-paragraph {
  color: var(--text-color-light); /* Already handled by parallax-section */
}
#contact-cta .cta-button {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    border-color: var(--text-color-light);
}
#contact-cta .cta-button:hover {
    background-color: var(--surface-color-darker);
    color: var(--primary-color-darker);
    border-color: var(--surface-color-darker);
}

/*------------------------------------*\
  #CONTACT PAGE
\*------------------------------------*/
.contact-layout {
  align-items: flex-start; /* Align columns at the top */
}
.contact-info-column ul {
  list-style: none;
  padding: 0;
}
.contact-info-column li {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  font-size: 1rem;
  color: var(--text-color-medium);
  display: flex;
  align-items: baseline;
}
.contact-info-column li strong {
  color: var(--primary-color);
  min-width: 100px; /* Adjust as needed for alignment */
  margin-right: var(--spacing-unit);
}
.subsection-title { /* For "Horario de Atención" */
  font-family: var(--font-family-headings);
  font-size: 1.3rem;
  margin-top: calc(var(--spacing-unit) * 3);
  margin-bottom: var(--spacing-unit);
  color: var(--primary-color);
}
.map-placeholder img {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  margin-top: calc(var(--spacing-unit) * 2);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.contact-form .form-group {
  margin-bottom: calc(var(--spacing-unit) * 2.5); /* 20px */
}
.contact-form label {
  display: block;
  margin-bottom: var(--spacing-unit);
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 0.9rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.5); /* 12px */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  font-family: var(--font-family-body);
  font-size: 1rem;
  background-color: var(--background-color);
  color: var(--text-color-dark);
  transition: border-color var(--transition-speed-normal) ease,
              box-shadow var(--transition-speed-normal) ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  border-color: var(--accent-monochrome);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, .25); /* Using accent color with alpha */
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group-checkbox {
  display: flex;
  align-items: center;
  margin-top: calc(var(--spacing-unit) * 1.5);
}
.form-group-checkbox input[type="checkbox"] {
  margin-right: var(--spacing-unit);
  width: auto;
  accent-color: var(--primary-color);
  height: 18px; width: 18px;
  cursor: pointer;
}
.form-group-checkbox .checkbox-label {
  font-weight: normal;
  font-size: 0.9rem;
  color: var(--text-color-medium);
  margin-bottom: 0;
  cursor: pointer;
}
.form-group-checkbox .checkbox-label a {
    color: var(--accent-monochrome);
    text-decoration: underline;
}
.form-group-checkbox .checkbox-label a:hover {
    color: var(--primary-color);
}
.form-submit-button { /* Already styled globally */
  width: 100%;
  margin-top: var(--spacing-unit);
}

/*------------------------------------*\
  #LEGAL & ABOUT PAGES
\*------------------------------------*/
.legal-content, .about-us-content {
  padding-top: calc(var(--header-height) + var(--spacing-unit) * 2.5); /* 100px if header is 70px */
}
.legal-content .section-container, .about-us-content .section-container {
  max-width: 850px; /* For better readability of long text */
}
.legal-content .section-title-left,
.about-us-content .section-title-left {
  margin-top: calc(var(--spacing-unit) * 3);
}
.legal-content h3, .about-us-content h3.mvv-title {
  font-family: var(--font-family-headings);
  font-size: 1.4rem;
  margin-top: calc(var(--spacing-unit) * 3);
  margin-bottom: var(--spacing-unit);
  color: var(--primary-color);
}
.legal-content ul, .about-us-content ul {
  list-style: disc;
  margin-left: calc(var(--spacing-unit) * 2.5); /* 20px */
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.legal-content li, .about-us-content li {
  margin-bottom: var(--spacing-unit);
  color: var(--text-color-medium);
}
.about-us-content .mvv-item {
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.about-us-content .mvv-title {
    border-bottom: 2px solid var(--accent-monochrome-light);
    padding-bottom: var(--spacing-unit);
    display: inline-block;
}
.about-us-content .image-container img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-medium);
}


/*------------------------------------*\
  #SUCCESS PAGE
\*------------------------------------*/
.success-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--footer-height, 200px)); /* Adjust footer height estimate */
  text-align: center;
  padding: calc(var(--spacing-unit) * 5);
}
.success-page-content .page-main-title {
    color: var(--primary-color); /* Not on image background */
    text-shadow: none;
}
.success-page-content .section-paragraph {
    color: var(--text-color-medium);
}
.success-page-content .cta-button {
  margin-top: calc(var(--spacing-unit) * 4);
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
.site-footer {
  background-color: var(--primary-color-darker);
  color: var(--accent-monochrome-light);
  padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 2.5); /* 40px 0 20px */
  font-size: 0.95rem;
}

.site-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(var(--spacing-unit) * 3.5); /* 28px */
  margin-bottom: calc(var(--spacing-unit) * 3.5);
}

.footer-column h4 {
  font-family: var(--font-family-headings);
  color: var(--text-color-light);
  font-size: 1.3rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-shadow: none;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-column ul li a {
  color: var(--accent-monochrome-light);
  text-decoration: none;
  transition: color var(--transition-speed-normal) ease,
              padding-left var(--transition-speed-normal) ease;
}

.footer-column ul li a:hover {
  color: var(--text-color-light);
  text-decoration: underline;
  padding-left: var(--spacing-unit);
}
.social-links-text li a {
    font-weight: bold;
}

.footer-column p {
  color: var(--accent-monochrome-light);
  margin-bottom: var(--spacing-unit);
}

.footer-bottom {
  text-align: center;
  padding-top: calc(var(--spacing-unit) * 2.5); /* 20px */
  border-top: 1px solid var(--secondary-color);
  font-size: 0.9rem;
  color: var(--secondary-color);
}
.footer-bottom p { color: var(--secondary-color); }

/*------------------------------------*\
  #COOKIE POPUP
\*------------------------------------*/
/* Styles for #cookiePopup are inlined in HTML as per prompt */

/*------------------------------------*\
  #RESPONSIVE STYLES
\*------------------------------------*/
@media (max-width: 992px) {
  .news-slider .slider-slide {
    min-width: calc(50% - var(--spacing-unit)); /* 2 items with gap */
    margin: 0 calc(var(--spacing-unit) / 2);
  }
}

@media (max-width: 768px) {
  .site-header .header-container { flex-wrap: wrap; }
  .main-navigation { width: 100%; order: 3; }
  .menu-toggle { display: block; margin-left: auto; order: 2; }
  .logo { order: 1; }

  .nav-links {
    display: none; /* Hidden by default */
    flex-direction: column;
    width: 100%;
    background-color: var(--background-color);
    position: absolute;
    top: var(--header-height);
    left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: var(--spacing-unit) 0;
    border-top: 1px solid var(--border-color);
  }
  .nav-links.active { display: flex; } /* Shown when active */

  .main-navigation .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .main-navigation .nav-links a {
    display: block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5); /* 12px 20px */
    border-bottom: 1px solid var(--surface-color-darker);
  }
  .main-navigation .nav-links li:last-child a { border-bottom: none; }
  .main-navigation .nav-links a::after { display: none; }

  .columns-container { flex-direction: column; }
  .column.is-two-thirds, .column:not(.is-two-thirds) {
    flex-basis: 100%;
  }

  .news-slider .slider-slide {
    min-width: calc(100% - var(--spacing-unit)); /* 1 item on mobile */
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column ul { text-align: center; }

  .legal-content, .about-us-content {
    padding-top: calc(var(--header-height) + var(--spacing-unit));
  }
}

@media (max-width: 576px) {
  body { font-size: 15px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .hero-section {
    padding-top: calc(var(--spacing-unit) * 10);
    padding-bottom: calc(var(--spacing-unit) * 10);
  }
  .hero-subtitle, .page-subtitle { font-size: 1rem; }

  .cta-button, button, input[type='submit'], input[type='button'], .form-submit-button, .read-more-button {
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2.5); /* 10px 20px */
    font-size: 0.9rem;
  }

  .services-grid, .statistics-grid, .events-list, .gallery-grid, .resources-list {
    grid-template-columns: 1fr; /* Single column on small screens */
  }
  .slider-button {
    width: calc(var(--spacing-unit) * 4.5); /* 36px */
    height: calc(var(--spacing-unit) * 4.5);
    font-size: 1.5rem;
  }
  .slider-button.prev { left: var(--spacing-unit); }
  .slider-button.next { right: var(--spacing-unit); }
}

/*------------------------------------*\
  #AOS Customization (optional)
\*------------------------------------*/
[data-aos="fade-up"] {
  transition-property: transform, opacity;
}
[data-aos="zoom-in"] {
  transition-property: transform, opacity;
}
/* Add more if needed, or rely on GSAP for more complex entry animations */

/* Define footer height for success page calculation, if footer has somewhat fixed content height */
:root {
    --footer-height: 250px; /* Estimate, adjust based on your actual footer content and layout */
}
/* For very dynamic footers, the 100vh calculation might need JS or be less precise */