/* =========================
   SERVICES SECTION (Like Screenshot)
========================= */
.services-section{
  position: relative;
  width: 100%;
  background: #0e0f4f;
  padding: 80px 20px 95px;
  overflow: hidden;
}

/* light pattern (optional) */
.services-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,.07) 0 2px, transparent 3px) 0 0/40px 40px,
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.05) 0 2px, transparent 3px) 0 0/46px 46px;
  opacity: .35;
  pointer-events:none;
}

/* center content width */
.services-top,
.services-grid{
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* TOP CONTENT */
.services-top{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 55px;
}

.services-top h5{
  color:#fff;
  opacity:.95;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.services-top h2{
  color:#fff;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

/* ✅ Curved underline under Services */
.services-top h2 span{
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.services-top h2 span::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-2px;
  width: 160px;
  height: 18px;
  border-bottom: 6px solid #ff4d3a;
  border-radius: 0 0 140px 140px;
  transform: translateX(-50%) rotate(-4deg);
}

/* right paragraph */
.services-desc{
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0;
}

/* CARDS GRID */
.services-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

/* CARD */
.service-card{
  background:#fff;
  color:#0e0f4f;
  padding: 34px 22px 32px;
  border-radius: 6px;
  text-align: center;
  height: 300px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* hover fill (smooth) */
.service-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg,#ff5b3a 0%, #cd7342 60%, #9fb21f 100%);
  transform: translateY(100%);
  transition: transform .45s ease;
  z-index: 0;
}
.service-card:hover::before{
  transform: translateY(0);
}

/* content above overlay */
.service-card *{
  position: relative;
  z-index: 1;
}

/* ICON */
.service-icon{
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #eef0f5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 38px;
  color: #ff4d3a;
  margin: 0 auto 18px;
  transition: .45s ease;
}

/* TITLE */
.service-card h3{
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
  color:#0e0f4f;
  transition: .45s ease;
}

/* TEXT */
.service-card p{
  font-size: 13.5px;
  line-height: 1.7;
  color:#4b5563;
  margin: 0;
  transition: .45s ease;
}

/* hover effects */
.service-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 26px 65px rgba(0,0,0,.24);
}
.service-card:hover h3,
.service-card:hover p{
  color:#fff;
}
.service-card:hover .service-icon{
  background:#fff;
  color:#ff4d3a;
}

/* ========== Responsive ========== */
@media (max-width: 1200px){
  .services-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
  .services-top{ grid-template-columns: 1fr; text-align: left; }
  .services-top h2{ font-size: 40px; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .services-top{ text-align: center; }
  .services-top h2{ font-size: 32px; }
  .services-grid{ grid-template-columns: 1fr; }
  .services-top h2 span::after{ width: 130px; }
}
