.homepage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
}

.homepage-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 15px;
  background: linear-gradient(45deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
  transition: all 0.3s ease-in-out;
}

.homepage-title:hover {
  transform: scale(1.02);
  letter-spacing: 0.08em;
}

.homepage-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.5rem;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 2px;
  transition: width 0.4s ease-in-out;
}

.homepage-title:hover::after {
  width: 80%;
}

.homepage-grid {
  display: grid;
  gap: 2rem;
  width: 80%;
  justify-items: center; 
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.patient-grid {
  gap: 0rem; 
  width: 60%;
}

.homepage-card {
  position: relative;
  width: 20rem;
  height: 22rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease, transform 0.3s ease;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  background-color: #111827;
}

.card-image {
  position: absolute;
  inset: 0; 
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 0;     
}

.homepage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3); 
  z-index: 1;
}

.homepage-card h2,
.homepage-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 0.5rem 0.5rem 0.5rem;
}

.homepage-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.homepage-card p {
  font-size: 0.875rem;
  color: #f3f4f6;
}

.homepage-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform: translateY(-6px);
}

.homepage-card:hover .card-image {
  transform: scale(1.1); 
}

.homepage-card:hover::after {
  background: rgba(0,0,0,0.15); 
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

body {
  background: #f0f8ff; /* Default body background */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}


