/* ===== YES Associates Services Page ===== */
body {
  font-family: 'Poppins', sans-serif;
  color: #000;
  background: #f9f9f9;
  margin: 0;
}

/* Section */
.services-section {
  padding: 80px 20px;
  background: #fff;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  color: #555;
  margin-bottom: 50px;
  font-size: 1.05rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Grid - 3×3 Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

/* Service Box */
.service-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  overflow: hidden;
}

.service-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(219, 199, 81, 0.4);
}

/* Icon */
.service-icon {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-box:hover .service-icon {
  transform: scale(1.1);
  color: #000;
}

/* Title */
.service-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

/* Animated underline */
.service-box h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #FFD700;
  margin: 10px auto 0;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.service-box:hover h3::after {
  width: 80px;
}

/* Paragraph */
.service-box p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 100px;
  margin-top: 10px;
}

/* Glowing hover border */
.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.service-box:hover::before {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Responsive Layout */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-box {
    padding: 30px 20px;
  }
}
