/* =========================================
   DOCTORS PAGE STYLES (Modern & Animated)
   ========================================= */

:root {
  --color-primary: #5d35b9;    /* Purple */
  --color-secondary: #ff853f;  /* Orange */
  --accent-blue: #007bff;      /* Blue */
  --color-dark: #343a40;       /* Black/Dark Gray */
  --color-gray: #6c757d;       /* Text Gray */
  --bg-light: #f8f9fa;         /* Light Background */
  --white: #ffffff;
  --font-main: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--color-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 1. Hero Section --- */
.doctors-hero-section {
  padding: 100px 0 80px;
  background: var(--white);
  text-align: center;
  position: relative;
  border-bottom: 1px solid #eee;
  /* Subtle Background Pattern */
  background-image: radial-gradient(#5d35b9 0.5px, transparent 0.5px), radial-gradient(#5d35b9 0.5px, #ffffff 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-color: #ffffff; 
  /* Overlay to fade pattern */
  background-blend-mode: overlay; 
}

/* Fade out the pattern slightly */
.doctors-hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.doctors-hero-section .container {
    position: relative;
    z-index: 1;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(93, 53, 185, 0.15); /* Light Purple Underline */
  z-index: -1;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* --- 2. Search & Filter Bar (Floating) --- */
.search-filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: var(--white);
  padding: 15px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #eee;
}

.search-box, .filter-box {
  position: relative;
  flex: 1;
}

.search-box i, .filter-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.1rem;
}

#doctor-search, #specialty-filter {
  width: 100%;
  padding: 15px 20px 15px 50px; /* Padding left for icon */
  border: 1px solid transparent;
  background: var(--bg-light);
  border-radius: 30px;
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
  transition: 0.3s;
}

#doctor-search:focus, #specialty-filter:focus {
  background: var(--white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(93, 53, 185, 0.1);
}

/* --- 3. Grid Section --- */
.doctors-grid-section {
  padding: 60px 0 100px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columns */
  gap: 30px;
}

/* --- 4. Doctor Card (The Design you liked) --- */
.doctor-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  text-align: left;
  display: flex;
  flex-direction: column;
  opacity: 0; /* Hidden initially for animation */
  animation: fadeUpCard 0.6s ease forwards;
}

/* Animation Keyframes */
@keyframes fadeUpCard {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(93, 53, 185, 0.15);
  border-color: transparent;
}

/* Top Gradient Line */
.doctor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-blue));
}

/* Doctor Info */
.doctor-name-bottom {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.doctor-specialty {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(93, 53, 185, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 25px;
}

/* Info Groups */
.info-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
  font-size: 0.95rem;
  color: var(--color-gray);
  font-weight: 500;
}

.info-group.qualification {
  border-top: none; /* No line for first item */
  padding-top: 0;
}

.info-group i {
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.icon-grad { color: var(--accent-blue); }
.icon-exp { color: var(--color-secondary); }

/* --- 5. No Results & View More --- */
.no-results {
  text-align: center;
  padding: 50px;
  color: var(--color-gray);
}
.no-results i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ddd;
}

.view-more-container {
  text-align: center;
  margin-top: 60px;
}

.view-all-btn {
  background: var(--color-primary);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(93, 53, 185, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.view-all-btn:hover {
  background: #4a2b96;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(93, 53, 185, 0.3);
}

.view-all-btn i {
  transition: transform 0.3s;
}
.view-all-btn:hover i {
  transform: rotate(180deg);
}

/* --- 6. Scroll Animations --- */
.reveal-text, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-text.active, .reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .search-filter-wrapper { flex-direction: column; border-radius: 20px; }
  .search-box i, .filter-box i { top: 20px; }
  #doctor-search, #specialty-filter { padding: 15px 20px 15px 45px; }
}