/* Optional flex container helper */
.flex-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 30px;
}

/* Full-width background section */
.full-width-bg {
  background-color: var(--accent-color);
  padding: 60px 20px;
}

.full-width-bg h1,
.full-width-bg h2 {
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
}

.full-width-bg p {
  color: #f0f0f0;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.centered-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Button styles consolidated in CSS/buttons.css */

/* Inner container with border and layout */
.image-text-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 30px;
  overflow: hidden;
  padding: 20px;
  background-color: white;
  height: 100%;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Left-side content (text and button) */
.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* Heading styling */
.text-content h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #004B40;
}

/* Paragraph styling */
.text-content p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

/* Right side image */
.image-content {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 300px;
  height: 250px;
  overflow: hidden;
  border-radius: 20px;
}

/* Each clickable container */
.container-link {
  text-decoration: none;
  color: inherit;
  flex: 0 0 calc(50% - 10px);
  box-sizing: border-box;
}


@media (max-width: 768px) {
  .button-wrapper {
    order: 3;
    margin-top: 10px;
  }
  
  /* Make each card span full width */
  .container-link {
    flex: 0 0 100%;
  }

  /* Stack text over image and let the section fill the screen width */
  .image-text-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  /* Let the image container grow and remove tight caps */
  .image-content {
    width: 100%;
    max-width: none;
    height: auto;
    overflow: visible;
  }

  /* Make the actual image responsive */
  .image-content img,
  .container-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Optional: center the whole row when using the helper */
  .flex-container {
    justify-content: center;
  }
}



.centered-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
