/*--------------------------------------------------------------
# Team Section Base
--------------------------------------------------------------*/
.team-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.team-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
}

/* Grid Layout */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Team Card */
.team-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  width: 280px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

/* Image styling */
.team-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #222;
}

.team-card p {
  font-size: 14px;
  color: #777;
  margin: 0;
}

/*--------------------------------------------------------------
# Enlarged Card Overlay
--------------------------------------------------------------*/
.card-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.enlarged-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 850px;
  width: 95%;
  min-height: 400px; /* adjust as needed */
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: center; /* center left & right vertically */
  text-align: left;
  position: relative;
}

/* Left Section */
.enlarged-left {
  flex: 1.55; /* slightly bigger */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: center;
}

.enlarged-left img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.enlarged-left h3 {
  font-size: 22px;
  margin: 6px 0;
}

.enlarged-left p {
  font-size: 15px;
  color: #555;
}

/* Right Section */
.enlarged-right {
  flex: 2.45;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* evenly space description and button */
  align-items: center; /* center horizontally */
  padding: 10px;
  box-sizing: border-box;
  height: 100%; /* ensures space-between works correctly */
}


/* Description Area */
.doctor-description {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center; /* center text on right section */
}

/* Book Button */
.book-btn {
  background: #5a7e70;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  margin-top: auto; /* pushes button to bottom if more content */
}

.book-btn:hover {
  background: #218838;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  line-height: 30px;
  text-align: center;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .enlarged-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .enlarged-right {
    align-items: center;
  }
  
  .doctor-description {
    text-align: center;
  }
}
