/* Section Container */
.goals-section {
  text-align: center;
  padding: 2em;
  background-color: #f9f9f9;
}

.goals-section h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #333;
}

.section-description {
  font-size: 1em;
  color: #555;
  max-width: 600px;
  margin: 0 auto 1.5em;
}

/* Goals Container */
.goals-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

/* Goal Card */
.goal-card {
  position: relative;
  width: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-container {
  position: relative;
}

.goal-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay on image */
  z-index: 1;
}

/* Always Show Overlay with White Text */
.goal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff; /* Set overlay text to white */
  padding: 1em;
  box-sizing: border-box;
  text-align: left;
  border-radius: 0 0 10px 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.goal-overlay h3 {
  font-size: 1.2em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff; /* Ensure heading text is white */
}

.goal-overlay p {
  font-size: 0.9em;
  margin: 0 0 0.5em;
  color: #fff; /* Ensure paragraph text is white */
}

/* Unique CTA Button Style */
.goal-cta-button {
  display: inline-block;
  padding: 0.5em 1em;
  background: linear-gradient(90deg, #1e90ff, #007acc);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  margin-top: 0.5em;
  transition: background 0.3s ease;
  font-size: 0.9em;
}

.goal-cta-button:hover {
  background: linear-gradient(90deg, #007acc, #1e90ff);
}
