:root {
  /* Bright Color Palette */
  --primary-color: #0D6EFD; /* Vivid Blue - Bootstrap Blue for familiarity */
  --primary-color-darker: #0B5ED7;
  --primary-color-rgb: 13, 110, 253;

  --accent-color-1: #FF6B6B; /* Coral Red */
  --accent-color-1-darker: #E05252;
  --accent-color-1-rgb: 255, 107, 107;

  --accent-color-2: #FFC107; /* Bright Yellow - Bootstrap Yellow */
  --accent-color-2-darker: #D9A400;
  --accent-color-2-rgb: 255, 193, 7;

  /* Neutral Colors */
  --text-color: #212529; /* Dark Gray for text */
  --text-color-light: #ffffff;
  --text-color-medium: #6c757d; /* Medium Gray for subtitles */
  --text-color-subtle: #adb5bd; /* Lighter gray for less emphasis */
  --background-light: #f8f9fa; /* Very Light Gray */
  --background-light-gray: #eef2f5; /* Slightly darker light gray for alternate sections */
  --background-dark: #1a2533; /* Dark Blue/Gray for footer */
  --border-color: #dee2e6; /* Light Gray for borders */
  --input-border-color: #ced4da;

  /* Fonts */
  --font-primary: 'Space Grotesk', BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-secondary: 'DM Sans', BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  /* UI Elements */
  --card-background: #ffffff;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 12px;

  /* Transitions */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.3s;
  --transition-speed-slow: 0.5s;

  /* Header */
  --header-height: 70px;
  --header-background: rgba(255, 255, 255, 0.9);
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);

  /* Section Padding */
  --section-padding-y: 4rem;
}

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

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

/* Headings - Adaptive Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-primary);
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem; /* Default Bulma margin */
}

.title.is-1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.title.is-2, .section-title { font-size: clamp(2rem, 4vw, 3rem); color: #222222; margin-bottom: 1.5rem;}
.title.is-3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.title.is-4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.subtitle.is-4 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); color: var(--text-color-medium); }
.subtitle.is-5 { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-color-medium); }

p, .content {
  font-family: var(--font-secondary);
  color: var(--text-color);
  margin-bottom: 1.25rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

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

a {
  color: var(--primary-color);
  transition: color var(--transition-speed-fast) ease-in-out;
  font-weight: 500;
}

a:hover {
  color: var(--primary-color-darker);
  text-decoration: none; /* Bulma removes it, keep it that way */
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.has-background-light-gray {
  background-color: var(--background-light-gray) !important;
}

/* Buttons - Global Styles (extending Bulma's .button) */
.button, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-primary);
  font-weight: 500;
  border-radius: var(--border-radius-medium);
  transition: all var(--transition-speed-normal) ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0.75em 1.5em; /* Default Bulma padding is a bit small */
  letter-spacing: 0.5px;
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
  color: var(--text-color-light);
}
.button.is-primary:hover {
  background-color: var(--primary-color-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}
.button.is-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(var(--primary-color-rgb), 0.2);
}

.button.is-large {
  font-size: 1.25rem; /* Bulma's default */
  padding: 1em 2em;
}

.button .icon {
  transition: transform var(--transition-speed-fast) ease-in-out;
}
.button:hover .icon svg {
   transform: translateX(3px);
}

/* Modern Input Fields for Forms */
.modern-input, .modern-textarea {
  font-family: var(--font-secondary);
  border-radius: var(--border-radius-medium) !important;
  border: 1px solid var(--input-border-color) !important;
  box-shadow: none !important; /* Remove Bulma's default focus shadow if desired */
  transition: border-color var(--transition-speed-fast) ease-in-out, box-shadow var(--transition-speed-fast) ease-in-out;
  padding: 0.8em 1em !important;
  font-size: 1rem;
}
.modern-input:focus, .modern-textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.125em rgba(var(--primary-color-rgb), 0.25) !important; /* Bulma-like focus */
}
.modern-textarea {
  min-height: 120px;
}
.label {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text-color);
}

/* Header and Navigation */
.header.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--header-shadow);
  transition: background-color var(--transition-speed-normal) ease;
}
.navbar {
  min-height: var(--header-height);
}
.navbar-brand .site-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: opacity var(--transition-speed-fast) ease;
}
.navbar-brand .site-title:hover {
  opacity: 0.8;
}
.navbar-item {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed-fast) ease, background-color var(--transition-speed-fast) ease;
  position: relative;
}
.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed-normal) ease-out;
}
.navbar-item:hover, .navbar-item.is-active {
  color: var(--primary-color);
  background-color: transparent; /* Override Bulma hover */
}
.navbar-item:hover::after, .navbar-item.is-active::after {
    width: 60%;
}

.navbar-burger {
  color: var(--text-color);
  height: var(--header-height); /* Ensure burger aligns */
  width: var(--header-height);
}
.navbar-burger span {
  background-color: var(--text-color);
  height: 2px;
  transition: transform var(--transition-speed-normal) ease, opacity var(--transition-speed-normal) ease;
}
.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(--card-background);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
  }
  .navbar-item {
    padding: 0.75rem 1.5rem;
  }
  .navbar-item::after {
    left: 1.5rem;
    transform: translateX(0);
  }
}

/* Hero Section */
.hero.is-large.has-background-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-color-light);
}
.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}
.hero .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .hero-title {
  color: var(--text-color-light);
  font-size: clamp(2.8rem, 6vw, 4.5rem); /* Larger for hero */
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.hero .hero-subtitle {
  color: var(--text-color-light);
  opacity: 0.9;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  margin: 1.5rem auto 2.5rem;
  max-width: 700px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Parallax Images */
.parallax-image {
  /* Basic CSS parallax can be tricky with Bulma structure.
     JS is better. If relying on CSS only:
     This class could be used on a background if it were a div bg.
     For an <img> tag, JS is needed for true parallax scrolling effect.
     For now, just ensure it's displayed well.
  */
  border-radius: var(--border-radius-large);
  box-shadow: var(--card-shadow);
}
.image-container img.parallax-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px; /* Example max height */
    object-fit: cover;
}

/* Card Styles (Generic) */
.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius-large);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
  overflow: hidden; /* Ensure content respects border-radius */
  display: flex; /* For STROGO requirement */
  flex-direction: column; /* For STROGO requirement */
  height: 100%; /* Make cards in a row same height */
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--card-hover-shadow);
}
.card .card-image { /* Bulma's class */
  overflow: hidden; /* Crucial for image within rounded corners */
  position: relative; /* For potential overlays on image */
  width: 100%; /* Ensure it spans card width */
  /* Fixed height example for card images - adjust per section if needed */
}

/* STROGO: For all sections with cards - image centering */
.card .card-image img {
  display: block;
  width: 100%;
  height: 250px; /* Default fixed height for card images */
  object-fit: cover; /* STROGO requirement */
  transition: transform var(--transition-speed-slow) ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card .card-content {
  padding: 1.75rem;
  flex-grow: 1; /* Allow content to fill space */
  display: flex;
  flex-direction: column;
}
.card .card-content .title, .card .card-content .card-title {
  font-size: 1.3rem; /* Adjusted for cards */
  margin-bottom: 0.75rem;
  color: var(--text-color);
}
.card .card-content .subtitle {
  font-size: 0.9rem;
  color: var(--text-color-medium);
  margin-bottom: 1rem;
}
.card .card-content .content {
  font-size: 0.95rem;
  color: var(--text-color-medium);
  line-height: 1.6;
}

/* Service Cards (can inherit generic .card) */
.service-card .card-image img {
  height: 220px; /* Specific height for service card images */
}

/* Team Member Cards */
.team-member-card .card-image {
  padding: 1.5rem 1.5rem 0; /* Space for rounded image */
  display: flex; /* center image if not full width */
  justify-content: center;
}
.team-member-card .card-image img {
  border-radius: 50%; /* Rounded profile pictures */
  width: 150px; /* Fixed size for profile */
  height: 150px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.team-member-card .card-content {
  text-align: center;
}
.team-member-card .card-content .title {
  margin-top: 0.5rem;
}
.team-member-card .card-content .content {
    font-size: 0.85rem;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}
.testimonial-card .card-content p.content {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-color-light);
  opacity: 0.95;
  margin-bottom: 1rem;
}
.testimonial-card .card-content p.has-text-weight-bold {
  color: var(--text-color-light);
  font-style: normal;
  font-size: 0.95rem;
}
.testimonial-card:hover { /* Different hover for testimonial */
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

/* Gallery Cards */
#gallery .card {
    align-items: stretch; /* Override general card align for gallery */
}
#gallery .card .card-image img {
  height: 280px;
}
#gallery .card:hover { /* Less pronounced hover for gallery images */
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}
#gallery .card .card-image {
    padding: 0; /* Remove padding if images are full bleed */
}

/* External Link Cards */
.external-link-card {
    background-color: var(--card-background);
}
.external-link-card .card-content .title a {
    color: var(--primary-color);
    font-weight: 600;
}
.external-link-card .card-content .title a:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
.external-link-card .content {
    font-size: 0.9rem;
}

/* Accordion (Resources Section) */
.accordion-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-header {
  background-color: var(--card-background);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-speed-fast) ease;
  text-align: left;
  width: 100%;
  border: none; /* Override Bulma button border */
  justify-content: space-between !important; /* Ensure icon is to the right */
  box-shadow: none !important;
}
.accordion-header:hover {
  background-color: var(--background-light-gray);
}
.accordion-header .icon svg {
  transition: transform var(--transition-speed-normal) ease-in-out;
}
.accordion-item.active .accordion-header .icon svg {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed-slow) ease-in-out, padding var(--transition-speed-slow) ease-in-out;
  background-color: var(--background-light);
}
.accordion-item.active .accordion-content {
  /* max-height will be set by JS, but provide a large enough value */
   padding: 1.5rem;
}
.accordion-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color-medium);
}


/* Section Titles - ensure visibility */
.section-title {
  color: #2c3e50; /* Darker color for high contrast */
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 3rem !important; /* More space after title */
}
.section-title::after { /* Underline accent */
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
.has-background-light-gray .section-title {
    color: #2c3e50; /* Ensure contrast on light gray too */
}


/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--text-color-subtle);
  padding: 3rem 1.5rem 2rem; /* Default Bulma is 3rem 1.5rem 6rem, reduce bottom */
}
.footer .title.is-5 {
  color: var(--text-color-light);
  font-family: var(--font-primary);
  margin-bottom: 1rem;
}
.footer p, .footer li {
  font-size: 0.9rem;
  color: var(--text-color-subtle);
}
.footer a {
  color: var(--text-color-subtle); /* Default link color */
  font-weight: normal;
  transition: color var(--transition-speed-fast) ease;
}
.footer a:hover, .footer a.has-text-primary-light:hover {
  color: var(--primary-color) !important;
}
.footer a.has-text-primary-light { /* Specific class from HTML */
    color: var(--primary-color) !important; /* Make it stand out */
    font-weight: 500;
}
.footer hr {
  background-color: rgba(255,255,255,0.1);
}
.footer .content p { /* For copyright */
  color: var(--text-color-subtle);
  font-size: 0.85rem;
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li {
    padding: 0.25rem 0;
}

/* "Read more" link style - example */
.read-more-link {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--accent-color-1);
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}
.read-more-link:hover {
  color: var(--accent-color-1-darker);
  text-decoration: underline;
}
.card-content a:not(.button) { /* General links within card content */
    color: var(--primary-color);
}
.card-content a:not(.button):hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}


/* Privacy & Terms pages specific padding */
body.privacy-page main, body.terms-page main,
body.contacts-page main, body.about-page main {
  padding-top: var(--header-height); /* Ensure content not hidden by sticky header */
}
.page-content-container { /* Wrapper for content on simple pages */
    padding: var(--section-padding-y) 0;
}
.page-content-container .title.is-1 {
    margin-bottom: 2rem;
}

/* Success page styling */
body.success-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.success-page main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.success-content {
  max-width: 600px;
}
.success-content .icon.is-large svg {
  width: 80px;
  height: 80px;
  color: var(--primary-color); /* or a success green */
}
.success-content .title {
  color: var(--primary-color); /* or a success green */
  margin-top: 1.5rem;
}
.success-content p {
  color: var(--text-color-medium);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* AOS Animation Defaults (can be overridden by data-aos attributes) */
[data-aos] {
  transition-property: transform, opacity;
  transition-timing-function: ease-in-out;
}

/* Responsive Adjustments for smaller screens */
@media screen and (max-width: 768px) {
  .section {
    padding-top: calc(var(--section-padding-y) * 0.75);
    padding-bottom: calc(var(--section-padding-y) * 0.75);
  }
  .title.is-1 { font-size: 2.2rem; }
  .title.is-2, .section-title { font-size: 1.8rem; margin-bottom: 2rem;}
  .hero .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero .hero-subtitle { font-size: clamp(1rem, 4vw, 1.25rem); }

  .columns.is-multiline .column { /* Ensure cards stack nicely */
    margin-bottom: 1.5rem; /* Add space between stacked cards */
  }
  .footer .columns {
    text-align: center;
  }
  .footer .column:not(:last-child) {
    margin-bottom: 2rem;
  }
}