
.doctors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 6%;
  margin-bottom: 80px;
}

.doctor-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
  padding: 25px 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
}

.doctor-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.doctor-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,120,255,0.2);
}

.doctor-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #0078ff;
  transition: all 0.4s ease;
}

.doctor-card:hover .doctor-img {
  transform: scale(1.1);
  border-color: #00c6ff;
}

.doctor-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0078ff;
  margin-bottom: 5px;
}

.doctor-specialization {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 10px;
}

.doctor-qualification {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 10px;
}

.doctor-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

@keyframes fadeUp { from{opacity:0; transform:translateY(30px);} to{opacity:1; transform:translateY(0);} }
@keyframes fadeDown { from{opacity:0; transform:translateY(-30px);} to{opacity:1; transform:translateY(0);} }

.doctors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 6%;
  margin-bottom: 80px;
  justify-items: center; /* center all cards horizontally */
}


.btn-more {
  display: inline-block;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 120, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.5s ease;
}

.btn-more:hover::before {
  left: 100%;
}

.btn-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 120, 255, 0.5);
}


/* Single Box Container */
.facility-box {
  background: linear-gradient(135deg, #ffffff, #e6f0ff);
  border-radius: 30px;
  padding: 50px 30px;
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  box-shadow: 0 15px 40px rgba(0, 120, 255, 0.15);
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.facility-box:hover {
  transform: rotateY(5deg) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(0, 120, 255, 0.25);
}

/* Individual Facility Card inside box */
.facility-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px 15px;
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.facility-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,120,255,0.2);
}

.facility-icon {
  font-size: 36px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #fff;
  transition: transform 0.4s ease;
}

.facility-card:hover .facility-icon {
  transform: scale(1.3) rotate(15deg);
}

.facility-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0078ff;
  margin-bottom: 6px;
}

.facility-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* Scroll animation */
@keyframes fadeUp { from {opacity:0; transform:translateY(40px);} to {opacity:1; transform:translateY(0);} }
@keyframes fadeDown { from {opacity:0; transform:translateY(-30px);} to {opacity:1; transform:translateY(0);} }

