:root {
  /* Bright Color Scheme & Modern Design Tokens */
  --primary-color: #0077b6; /* Rich Blue - Good contrast with white text */
  --primary-color-rgb: 0, 119, 182;
  --primary-color-hover: #005a8d; /* Darker blue for hover */

  --accent-color: #ffc107; /* Bright Yellow/Amber */
  --accent-color-hover: #e0a800;
  --accent-text-color: #212529; /* Dark text for yellow accent for contrast */

  --secondary-color: #e6007e; /* Vibrant Pink/Magenta for highlights */
  --secondary-color-hover: #b80065;

  --text-color-dark: #222222; /* For titles, important text */
  --text-color-body: #333333; /* For general content */
  --text-color-light: #ffffff;
  --text-color-muted: #6c757d;

  --bg-light: #ffffff;
  --bg-medium: #f4f7f9; /* Light grey for alternating sections */
  --bg-dark: #1a1a2e; /* Dark blue/purple for footer */

  --card-bg: var(--bg-light);
  --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  --card-border-radius: 12px;
  --card-hover-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  --card-image-height: 220px; /* Default fixed height for card images */

  --input-border-color: #ced4da;
  --input-focus-border-color: var(--primary-color);
  --input-bg: #ffffff;
  --input-border-radius: 8px;

  --font-family-headings: "Raleway", "Arial", sans-serif;
  --font-family-body: "Open Sans", "Arial", sans-serif;

  --header-height: 70px; /* Adjusted based on typical fixed header */
  --footer-padding: 3rem 1.5rem;

  --transition-duration: 0.3s;
  --transition-timing-function: ease-in-out;

  --border-color: #e0e0e0;
  --section-padding-vertical: 4rem; /* Vertical padding for sections */
}

img {
  object-fit: cover;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
  font-size: 100%; /* Base for rem units */
}

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

/* Adaptive Typography */
h1,
.title.is-1 {
  font-family: var(--font-family-headings);
  font-weight: 900;
  color: var(--text-color-dark);
  font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2,
.title.is-2 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: var(--text-color-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

h3,
.title.is-3 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: var(--text-color-dark);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h4,
.title.is-4 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--text-color-dark);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h5,
.title.is-5 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--text-color-dark);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.4;
}

p,
.content {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  margin-bottom: 1rem;
}

.content p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-duration) var(--transition-timing-function);
}
a:hover {
  color: var(--primary-color-hover);
}

/* Global Button Styles (enhancing Bulma's .button) */
.button {
  font-family: var(--font-family-headings);
  font-weight: 600;
  border-radius: 25px; /* Modern rounded buttons */
  padding: 0.8em 2em;
  transition: background-color var(--transition-duration)
      var(--transition-timing-function),
    color var(--transition-duration) var(--transition-timing-function),
    transform var(--transition-duration) var(--transition-timing-function),
    box-shadow var(--transition-duration) var(--transition-timing-function),
    border-color var(--transition-duration) var(--transition-timing-function);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-width: 2px;
  border-style: solid;
  line-height: 1.5; /* Ensure text is centered vertically */
}

.button:hover,
input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

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

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

.button.is-accent {
  /* Custom class for accent color button */
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-text-color);
}
.button.is-accent:hover {
  background-color: var(--accent-color-hover);
  border-color: var(--accent-color-hover);
  color: var(--accent-text-color);
}

/* Modern Input Styles */
.modern-input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border-color);
  border-radius: var(--input-border-radius);
  padding: 0.8em 1.2em;
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: var(--text-color-body);
  transition: border-color var(--transition-duration),
    box-shadow var(--transition-duration);
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.modern-input:focus {
  border-color: var(--input-focus-border-color);
  box-shadow: 0 0 0 0.15rem rgba(var(--primary-color-rgb), 0.25);
  outline: none;
}
textarea.modern-input {
  min-height: 120px;
}
.field label.label {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--text-color-dark);
  margin-bottom: 0.5em;
}

/* Checkbox styling (basic for modern feel) */
.checkbox input[type="checkbox"] {
  margin-right: 0.5em;
  vertical-align: middle;
}
.checkbox input[type="checkbox"] + a,
.checkbox a {
  color: var(--primary-color);
  text-decoration: underline;
}
.checkbox input[type="checkbox"] + a:hover,
.checkbox a:hover {
  color: var(--primary-color-hover);
}

/* Page Container */
.main-page-container {
  opacity: 0; /* Initially hidden for page transition */
  animation: fadeInPage 0.5s ease-out forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

/* GSAP Animation Start States */
.gsap-fade-in {
  opacity: 0;
}
.gsap-fade-in-delay {
  opacity: 0;
}
.gsap-fade-in-delay-2 {
  opacity: 0;
}
.gsap-slide-up {
  opacity: 0;
  transform: translateY(40px);
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: var(--header-height);
  transition: background-color var(--transition-duration),
    box-shadow var(--transition-duration);
}
.header .navbar {
  background-color: transparent;
  min-height: var(--header-height);
}
.header .navbar-brand img {
  max-height: calc(var(--header-height) - 20px); /* Adjust logo size */
  width: auto;
}
.header .navbar-item {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--text-color-dark);
  padding: 0.5rem 1rem;
  transition: color var(--transition-duration);
}
.header .navbar-item:hover,
.header .navbar-item.is-active {
  color: var(--primary-color);
  background-color: transparent;
}
.header .navbar-burger {
  color: var(--text-color-dark);
  height: var(--header-height); /* Align burger with header height */
  width: var(--header-height);
}
.header .navbar-burger span {
  background-color: var(--text-color-dark);
  height: 2px;
}
@media screen and (max-width: 1023px) {
  .header .navbar-menu {
    background-color: var(--bg-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }
}

/* Sections General Styling */
section.section {
  padding-top: var(--section-padding-vertical);
  padding-bottom: var(--section-padding-vertical);
}
.section-title {
  margin-bottom: 2.5rem !important; /* Bulma override */
  color: var(--text-color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}
section.has-background-light {
  background-color: var(--bg-medium) !important; /* Bulma override */
}

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* For overlay */
}
#hero .hero-body {
  padding-top: calc(var(--header-height) + 3rem); /* Adjust for fixed header */
  padding-bottom: 3rem;
  position: relative; /* Ensure content is above overlay */
  z-index: 1;
}
#hero .title.is-1,
#hero .subtitle.is-3 {
  color: var(--text-color-light) !important; /* Force white text on hero */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Enhance readability */
}
#hero .title.is-1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
}
#hero .subtitle.is-3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-duration)
      var(--transition-timing-function),
    box-shadow var(--transition-duration) var(--transition-timing-function);
  overflow: hidden; /* Important for child elements like images */
  height: 100%; /* Make cards in a row same height if using Bulma columns */
  display: flex; /* As per prompt for centering */
  flex-direction: column; /* As per prompt */
  /* align-items: center; Centers direct children of card. Content inside card-content needs .has-text-centered */
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.card .card-image.image-container {
  /* If .card-image is the container */
  width: 100%;
  height: var(--card-image-height); /* Default fixed height */
  overflow: hidden;
  margin-bottom: 0; /* Bulma figure margin */
}
/* Specific card types might need different image heights */
.event-card .card-image.image-container {
  height: 250px; /* Taller images for event cards */
}
.information-card .card-image.image-container {
  height: 200px;
}

.card .card-image.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(
    --card-border-radius
  ); /* If image is flush with top */
  border-top-right-radius: var(--card-border-radius);
}
/* If card radius is applied to the card itself and overflow hidden, this might not be needed for img */

.card .card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allows card content to expand and push footer down */
  display: flex;
  flex-direction: column;
}
.card .card-content .title,
.card .card-content .subtitle {
  color: var(--text-color-dark);
}
.card .card-content .title:not(:last-child) {
  margin-bottom: 0.5rem; /* Adjust spacing */
}
.card .card-content .subtitle {
  margin-bottom: 1rem;
}
.card .card-content .content {
  font-size: 0.95rem;
  flex-grow: 1;
}
.card .card-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-medium); /* Subtle differentiation */
}
.card .card-footer .button {
  width: 100%;
}

/* Mission Section Specifics */
#mission .information-card .title.is-4 {
  margin-top: 0.5rem; /* Space after image */
}

/* Methodology Section Specifics */
#methodology .animated-icon-placeholder img {
  transition: transform var(--transition-duration);
}
#methodology .column:hover .animated-icon-placeholder img {
  transform: scale(1.1);
}
#methodology .title.is-5 {
  margin-top: 1rem;
}

/* Events Section - "Read More" button style */
#events .event-card .button {
  margin-top: auto; /* Pushes button to bottom of card-content */
}

/* Clientele Section - Testimonial Cards */
.testimonial-card {
  text-align: left; /* Override card's align-items: center for content block */
}
.testimonial-card .media-left img {
  border-radius: 50%;
}
.testimonial-card .content {
  font-style: italic;
  color: var(--text-color-muted);
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin-top: 1rem;
}
.testimonial-card .content small {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-color-dark);
}

/* Resources Section */
.resource-card .title.is-5 a {
  color: var(--primary-color);
  text-decoration: none;
}
.resource-card .title.is-5 a:hover {
  color: var(--primary-color-hover);
  text-decoration: underline;
}
.resource-card .content {
  font-size: 0.9rem;
  color: var(--text-color-muted);
}

/* Pricing Section */
.pricing-card {
  text-align: center; /* Center content within pricing cards */
}
.pricing-card .card-header-title {
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-color);
  background-color: transparent; /* Override Bulma default */
  border-bottom: 1px solid var(--border-color);
}
.pricing-card.is-featured .card-header-title {
  color: var(--text-color-light);
  background-color: var(--primary-color);
}
.pricing-card .title.is-3 {
  font-weight: 900;
  color: var(--text-color-dark);
  margin: 1rem 0 0.25rem;
}
.pricing-card em {
  color: var(--text-color-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1.5rem;
}
.pricing-card ul {
  list-style: none;
  margin-left: 0;
  text-align: left;
  margin-bottom: 1.5rem;
}
.pricing-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
}
.pricing-card ul li:last-child {
  border-bottom: none;
}
.pricing-card ul li::before {
  content: "✓"; /* Checkmark */
  color: var(--primary-color); /* Use primary for checkmark for consistency */
  margin-right: 0.5em;
  font-weight: bold;
}
.pricing-card.is-featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.02); /* Slightly larger featured card */
}
.pricing-card.is-featured:hover {
  transform: scale(1.04) translateY(-5px);
}

/* Pricing Switch */
.switch-container .button {
  border-radius: 0;
  font-size: 0.9rem;
  padding: 0.7em 1.5em;
}
.switch-container .button.is-static {
  background-color: var(--bg-medium);
  border-color: var(--border-color);
  color: var(--text-color-dark);
  font-weight: 600;
}
.switch-container .button:first-of-type:not(.is-static) {
  /* Bulma adds field > control > button */
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.switch-container .button:last-of-type {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
.switch-container .button:not(.is-primary):not(.is-static) {
  background-color: var(--bg-light);
  color: var(--text-color-muted);
  border-color: var(--border-color);
}
.switch-container .button:not(.is-primary):not(.is-static):hover {
  background-color: #e9ecef;
  color: var(--text-color-body);
  border-color: #ced4da;
}

/* Contact Section */
#contact .image-container img {
  border-radius: var(--card-border-radius);
}
#contact strong {
  color: var(--text-color-dark);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  padding: var(--footer-padding);
}
.footer .title.is-5 {
  color: var(--text-color-light) !important; /* Bulma override */
  font-family: var(--font-family-headings);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer p,
.footer ul li {
  color: var(--text-color-muted); /* Muted light for less important text */
  font-size: 0.95rem;
}
.footer strong {
  color: var(--text-color-light); /* Important info in footer */
}
.footer a {
  color: var(--text-color-light); /* Brighter for links */
  transition: color var(--transition-duration);
  font-weight: 500;
}
.footer a:hover {
  color: var(--primary-color); /* Primary color for hover */
}
.footer .has-text-primary {
  /* Email link */
  color: var(--primary-color) !important;
}
.footer .has-text-primary:hover {
  color: var(--primary-color-hover) !important;
}
.footer hr {
  background-color: #343a40; /* Darker hr */
}
.footer .content.has-text-centered p {
  color: var(--text-color-muted);
  font-size: 0.9rem;
}

/* Social media text links in footer */
.footer ul li a.has-text-grey-light {
  /* Target specific class from HTML */
  color: var(--text-color-muted) !important; /* Override Bulma */
}
.footer ul li a.has-text-grey-light:hover {
  color: var(--primary-color) !important;
}

/* Page-Specific Styles */
/* success.html */
body.success-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-medium);
}
.success-page .main-page-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.success-page main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.success-page .success-content {
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  max-width: 600px;
}
.success-page .success-content .icon {
  font-size: 4rem;
  color: var(--primary-color); /* Using a checkmark color */
  margin-bottom: 1rem;
}

/* privacy.html, terms.html */
body.legal-page main {
  padding-top: calc(
    var(--header-height) + 2rem
  ); /* Space for fixed header + extra */
}
.legal-page .section {
  padding-top: 2rem; /* Adjust section padding if needed */
}
.legal-page h1.title.is-1 {
  /* Main page title */
  margin-bottom: 2rem;
  text-align: center;
}
.legal-page .content h2,
.legal-page .content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color-dark);
}

/* Cookie Consent Popup (Basic styling, HTML has inline for critical parts) */
#cookieConsentPopup a {
  color: var(
    --primary-color
  ) !important; /* Bulma might override if not important */
}
#cookieConsentPopup #acceptCookieButton {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-family: var(--font-family-body);
}
#cookieConsentPopup #acceptCookieButton:hover {
  background-color: var(--primary-color-hover);
}

/* Responsive Adjustments (Bulma handles a lot, these are fine-tuning) */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Adjust for mobile */
    margin-bottom: 2rem !important;
  }
  #hero .hero-body {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 1.5rem;
  }
  #hero .title.is-1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  #hero .subtitle.is-3 {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }
  .footer {
    text-align: center;
  }
  .footer .columns {
    display: block; /* Stack columns on mobile */
  }
  .footer .column {
    margin-bottom: 1.5rem;
  }
  #contact .columns {
    flex-direction: column-reverse; /* Show form first on mobile if desired, or remove if not */
  }
  #contact .column.is-half:first-child {
    /* Contact info column */
    margin-top: 2rem; /* Space between form and info on mobile */
  }
}
