body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/* Section styling */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0 100px 0;
  text-align: center;
}

.services h1 {
  font-size: 3rem;
  color: #4E231C;
  margin-bottom: 3rem;
}

/* Container and card layout */
.services__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.services__card {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image styling */
.services__image {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.services__image:hover {
  transform: scale(1.025);
}

/* Text content below image */
.services__text {
  margin-top: 1rem;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.services__text.animate {
  opacity: 1;
  transform: translateY(0);
}

.services__text h4 {
  font-size: 1.25rem;
  color: #4E231C;
  margin-bottom: 0.5rem;
}

.services__text p {
  color: #333333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Links in headings */
.services__text a {
  text-decoration: none;
  color: inherit;
}

.services__text a:hover h4 {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .services h1 {
    font-size: 2.5rem;
  }

  .services__card {
    width: 90%;
  }
}

@media screen and (max-width: 435px) {
  .services h1 {
    font-size: 2rem;
    margin: 2rem 0;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Optional: staggered animation per card */
.services__card:nth-child(2) .services__text {
  animation-delay: 0.7s;
}
.services__card:nth-child(3) .services__text {
  animation-delay: 1s;
}

/* Smooth hover underline for headers */
.services__text a:hover h4 {
  text-decoration: underline;
  transition: text-decoration 0.3s ease;
}

