body {
  margin: 0;
  background: transparent;
  color: #f5f7fb;
  font-family: Arial, sans-serif;
}

.category-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 96px 20px 70px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(227, 32, 40, 0.50)),
    url("../img/Home/services/services4.png") center / cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: auto 6% -120px auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 999px;
}

.category-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.category-hero p {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  color: #e5e7eb;
  font-size: 1.14rem;
  line-height: 1.65;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.services-grid {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(12, 12, 12, 0.96) 100%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(227, 32, 40, 0.10), rgba(15, 15, 15, 0.90) 44%, rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #e32028, rgba(255, 255, 255, 0.82), rgba(227, 32, 40, 0.18));
  opacity: 0.88;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(227, 32, 40, 0.22);
  border-radius: 999px;
  background: rgba(227, 32, 40, 0.04);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 32, 40, 0.58);
  background:
    linear-gradient(145deg, rgba(227, 32, 40, 0.18), rgba(15, 15, 15, 0.92) 46%, rgba(255, 255, 255, 0.055)),
    rgba(12, 12, 12, 0.94);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.34), 0 0 28px rgba(227, 32, 40, 0.10);
}

.service-card h2 {
  margin: 0;
  max-width: 92%;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-card h2 a {
  color: #f8fafc;
  text-decoration: none;
}

.service-card p {
  margin: 0;
  color: #d7dde6;
  font-size: 0.98rem;
  line-height: 1.65;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.learn-more::before {
  content: "Learn More";
  font-size: 0.96rem;
}

.learn-more::after {
  content: "\2197";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.learn-more:hover {
  transform: translateX(3px);
  border-color: rgba(227, 32, 40, 0.85);
  background: #e32028;
  color: #ffffff;
}

.learn-more:hover::after {
  content: "\2192";
  transform: translate(2px, -2px);
  background: #ffffff;
  color: #e32028;
}

@media (max-width: 700px) {
  .category-hero {
    min-height: 320px;
    padding: 84px 16px 54px;
  }

  .category-hero::before {
    width: 180px;
    height: 180px;
    right: -72px;
    bottom: -78px;
  }

  .category-hero h1 {
    font-size: 2.55rem;
  }

  .category-hero p {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .services-grid {
    padding: 52px 0;
  }
}
