:root {
  --primary-color: #183a7f;
  --secondary-color: #870d0d;
  --overlay-bg: rgba(24, 58, 127, 0.7);
  --text-color: #555;
  --bg-color: #f9f9f9;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: #333;
  line-height: 1.6;
}

/* Our Doctors Section */
.our-doctors {
  padding: 100px 50px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #9f0c0c, #154a9f);
}

.our-doctors h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20vh 0 0;
}

.section-intro {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
}

/* Grid Layout */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Doctor Card */
.doctor-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  will-change: transform, box-shadow;
}

/* Card Image */
.card-image {
  width: 100%;
  aspect-ratio: 4 / 6; /* For modern browsers */
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
}

.card-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.doctor-card:hover .card-image img {
  transform: scale(1.1);
}

.doctor-card:hover .card-image .overlay {
  opacity: 1;
}

/* Card Content */
.doctor-content {
  padding: 20px;
  text-align: center;
}

.doctor-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.doctor-content p {
  font-size: 1rem;
  color: var(--text-color);
}

/* Social Media Links */
.doctor-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.doctor-social a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.doctor-social a:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .our-doctors {
    padding: 50px 20px;
  }
  .doctors-grid {
    grid-template-columns: 1fr;
  }
}
