

/* Theme Variables */
:root {
  --primary:       #198754;
  --primary-hover: #146c43;
  --text-color:    #333;
  --bg-light:      #f4f4f4;
  --card-bg:       #fff;
  --border-color:  #ddd;
}

/* Reset & Core */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-light);
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 2.5rem; }
.hero p  { font-size: 1.1rem; }

/* Doctors Grid & Cards */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
.doctor-card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;              /* for scroll reveal */
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.3s ease;
}
.doctor-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.doctor-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.doctor-card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 1rem; /* top 0, auto sides, bottom 1rem */
}

.doctor-card h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.doctor-card h3 { font-size: 1rem; color: #555; margin-bottom: 0.75rem; }
.doctor-card ul {
  list-style: none;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}
.doctor-card ul li { text-align: left; margin-bottom: 0.25rem; }
.doctor-card button {
  margin-top: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.doctor-card button:hover {
  background: var(--primary-hover);
}

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-content {
  background: var(--card-bg);
  border-radius: 0.5rem;
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; padding: 1.5rem;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
}
.modal-body img.modal-photo {
  width: 150px; height: 150px;
  object-fit: cover; border-radius: 50%;
  display: block; margin: 0 auto 1rem;
}
.modal-body h2 { text-align: center; margin-bottom: 0.5rem; }
.modal-body p  { margin-bottom: 1rem; }
.modal-body ul { list-style: disc inside; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 2rem 1rem; }
  .doctors-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}


/* ❖ Team-Page-Only Styles ❖ */
.team-sections {
  padding: 2rem;
  background: var(--bg-light);
}
.team-sections h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Cards Grid */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.team-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-card ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.4em;
}
.team-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Small tweaks for mobile */
@media (max-width: 600px) {
  .team-sections { padding: 1rem; }
  .team-sections h2 { font-size: 1.6rem; }
}

/* in team.css, at the bottom: */
.navbar-nav .nav-link {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* font-size: 1rem; */
}
