.service-section {
  position: relative;
  padding: 4rem 3rem;
  min-height: 70vh;
  width: calc(100% - 4rem);
  margin: 2rem;
  background-image: url("../../assets/home/church-2661905_1920.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(48, 92, 222, 0.5),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

.service-container {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--neutral-light);
  text-align: center;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.service-content {
  width: 100%;
}

.service-times {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 90rem;
  margin: 0 auto;
}

.service-time-card {
  flex: 1;
  min-width: 320px;
  max-width: 400px;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-time-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.icon-wrapper i {
  font-size: 2.5rem;
  color: var(--neutral-light);
}

.service-time-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--fw-bold);
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
  letter-spacing: var(--ls-h4);
}

.service-time-card .time {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: var(--fw-semibold);
  color: var(--primary-1);
  margin-bottom: 0.75rem;
}

.service-time-card .description {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: var(--fw-regular);
  color: var(--neutral-dark);
  opacity: 0.85;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .service-section {
    padding: 5rem 0;

    background-attachment: scroll;

    background-position: center center;
  }

  .service-section::before {
    background: linear-gradient(
      135deg,
      rgba(48, 92, 222, 0.6),
      rgba(0, 0, 0, 0.7)
    );
  }

  .service-container {
    padding: 0 1.5rem;
  }

  .service-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 3.5rem;
  }

  .service-times {
    gap: 1.5rem;
  }

  .service-time-card {
    padding: 2.25rem 1.5rem;
  }

  .icon-wrapper {
    width: 4.25rem;
    height: 4.25rem;
  }

  .icon-wrapper i {
    font-size: 2rem;
  }

  .service-time-card h3 {
    font-size: 1.85rem;
  }

  .service-time-card .time {
    font-size: 1.4rem;
  }

  .service-time-card .description {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .service-section {
    padding: 4.5rem 1rem;
  }

  .service-container {
    padding: 0 1.4rem;
  }

  .service-title {
    font-size: clamp(2.1rem, 5vw, 2.75rem);
    margin-bottom: 3.25rem;
  }

  .service-times {
    gap: 1.6rem;
  }

  .service-time-card {
    padding: 2.1rem 1.75rem;
  }

  .icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
  }

  .icon-wrapper i {
    font-size: 2.25rem;
  }

  .service-time-card h3 {
    font-size: 2rem;
  }

  .service-time-card .time {
    font-size: 1.5rem;
  }

  .service-time-card .description {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .service-section {
    padding: 4rem 2rem;
  }

  .service-container {
    padding: 0 1.25rem;
  }

  .service-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
  }

  .service-times {
    gap: 2rem;
  }

  .service-time-card {
    padding: 3rem 2rem;
    min-width: 250px;
  }

  .icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
  }

  .icon-wrapper i {
    font-size: 2.25rem;
  }

  .service-time-card h3 {
    font-size: 2rem;
  }

  .service-time-card .time {
    font-size: 1.5rem;
  }

  .service-time-card .description {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .service-section {
    padding: 3rem 1.5rem;
  }

  .service-section::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .service-container {
    padding: 1rem;
  }

  .service-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .service-times {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }

  .service-time-card {
    width: 100%;
    max-width: 500px;
    padding: 3rem 2rem;
  }

  .icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.5rem;
  }

  .icon-wrapper i {
    font-size: 2rem;
  }

  .service-time-card h3 {
    font-size: 1.85rem;
  }

  .service-time-card .time {
    font-size: 1.4rem;
  }

  .service-time-card .description {
    font-size: 1.1rem;
  }
}

@media (max-width: 375px) {
  .service-section {
    padding: 2.5rem 1rem;
    width: calc(100% - 2rem);
    margin: 1rem;
  }

  .service-container {
    padding: 0.75rem;
  }

  .service-title {
    font-size: 1.85rem;
    margin-bottom: 2rem;
  }

  .service-times {
    gap: 1.75rem;
  }

  .service-time-card {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.5rem;
  }

  .icon-wrapper {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
  }

  .icon-wrapper i {
    font-size: 1.85rem;
  }

  .service-time-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.65rem;
  }

  .service-time-card .time {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
  }

  .service-time-card .description {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}
