/* body {
  background: #fff !important;
} */

.overlay {
  position: fixed;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.65); */
  display: none;
  justify-content: center;
  /* align-items: center; */
  z-index: 99;
}

.overlay-content {
  background: #fff;
  width: 100%;
  /* max-width: 1200px; */
  max-height: 60vh;
  /* overflow-y: auto; */
  /* padding: 40px; */
  /* border-radius: 18px; */
  position: fixed;
  top: 70px;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  cursor: pointer;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 40px;
  /* text-align: center; */
}
/* SECTION */
.header-services-section {
  padding: 50px 8%;
  background: #EDEEF2;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

/* GRID */
.header-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
  gap: 40px;
  justify-items: center; /* centers cards */
}

/* CARD */
.header-service-card {
  width: 375px;   /* ✅ fixed width */
  height: 195px;  /* ✅ fixed height */
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
}

/* HOVER */
.header-service-card:hover {
  background: linear-gradient(103.87deg, #edeefd -1.05%, #bdc1ff 103.08%);
  transform: translateY(-5px);
}

/* ICON */
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.icon img {
  /* width: 20px; */
}

/* TITLE */
.header-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* DESCRIPTION */
.description {
  font-size: 13.5px;
  color: #555;
  line-height: 1.4;
  flex-grow: 1;
}

/* ARROW */
.arrow-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.header-service-card:hover .arrow-btn {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1200px) {
  .header-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
  }
}

/* Mobile */
@media (max-width: 420px) {
  .header-service-card {
    width: 100%;
    height: auto; /* better UX on small screens */
  }
}
