/* Healthcare Page Custom Styles */

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  color: #fff;
}

.headline {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff4b2b, #ff416c, #ffb347, #2af598, #009efd);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s infinite linear, pulseZoom 3s infinite ease-in-out;
}

.lead {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  margin-top: 1rem;
  max-width: 800px;
}

.pill-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pill-list li {
  background: rgba(255,255,255,0.25);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pulseZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Flip Card Base */
.service-card {
  perspective: 1000px;
  width: 100%;
  height: 320px;
  position: relative;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

/* 🎯 One Global Navy Blue Color */
.service-bg .service-card {
  --color:200, 100%, 45%;  /* Navy Blue */
}

/* FRONT */
.service-card-front {
  background: hsl(var(--color) / 0.25);
  border: 3px solid hsl(var(--color));
}

.service-card-front .card-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
}

.service-card-front .card-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: hsl(var(--color));
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* BACK */
.service-card-back {
  background: hsl(var(--color));
  color: #fff;
  transform: rotateY(180deg);
}

.service-card-back h3 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.service-card-back p {
  font-size: 1.5rem;
  line-height: 1.8;
  max-width: 95%;
}

.highlight-red {
  color: #ff4444;
  font-weight: 800;
}

/* Section Background */
.service-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

.service-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.service-bg .container {
  position: relative;
  z-index: 1;
}

.service-bg .section-title,
.service-bg .section-subtitle {
  color: #fff;
}
