/* =========================================================
   Doctors Page Styles — Elite Pet Veterinary Clinic
   Follows the home.php design language & visual identity
   ========================================================= */

/* ---- Doctor Hero / Intro ---- */
.doctor-hero {
  padding: 0;
  overflow: hidden;
  background-image: url('/assets/img/footer-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.doctor-hero .doctor-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1rem 2rem;
}

.doctor-hero .doctor-hero-content {
  text-align: center;
  max-width: 880px;
}

.doctor-hero .doctor-hero-content .section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.doctor-hero .doctor-hero-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 1rem 0;
  /* color: #150B33; */
  color: #fff;
}

.doctor-hero .doctor-hero-content h1 span {
  color: var(--primary-green);
  
}

.doctor-hero .doctor-hero-content p {
  /* color: var(--charcoal-gray); */
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .doctor-hero .doctor-hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .doctor-hero .doctor-hero-content h1 {
    font-size: 3rem;
  }
}

/* ---- Why Right Vet Matters ---- */
.doctor-why-matters {
  padding: var(--section-padding) 0;
  background-color: var(--mint-light);
}

.doctor-why-matters .section-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.doctor-why-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.doctor-why-header .section-title {
  max-width: 700px;
  margin: 0.75rem auto;
}

.doctor-why-header p {
  color: var(--charcoal-gray);
  max-width: 700px;
  margin: 0 auto;
}

.doctor-non-negotiables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .doctor-non-negotiables {
    grid-template-columns: 1fr 1fr;
  }
}

.doctor-non-negotiable-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-non-negotiable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.doctor-non-negotiable-card .nn-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--mint-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1.2rem;
}



.doctor-non-negotiable-card .nn-text h4 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  color: #150B33;
}

.doctor-non-negotiable-card .nn-text p {
  font-size: 0.92rem;
  color: var(--charcoal-gray);
  margin: 0;
  line-height: 1.5;
}

/* ---- Doctor Profiles ---- */
.doctor-profile-section {
  padding: var(--section-padding) 0;
}

.doctor-profile-section .section-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.doctor-profile-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.doctor-profile-card.flipped {
  direction: ltr;
}

.doctor-profile-image {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  display: none !important;
}

.doctor-profile-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.doctor-profile-image .img-placeholder {
  width: 100%;
  /* aspect-ratio: 4/5; */
  background: var(--mint-light);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.doctor-profile-info {
  flex: 1;
}

.doctor-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mint-light);
  color: var(--primary-green);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.doctor-profile-info h2 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
  color: #150B33;
}

.doctor-profile-info .doctor-title-line {
  font-size: 0.95rem;
  color: var(--charcoal-gray);
  margin-bottom: 0.2rem;
}

.doctor-profile-info .doctor-credentials {
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doctor-profile-info .doctor-credentials span {
  background: var(--mint-light);
  padding: 0.2rem 0.75rem;
  border-radius: 1rem;
}

.doctor-profile-info h4 {
  font-size: 1rem;
  color: #150B33;
  margin: 1.25rem 0 0.6rem;
}

.doctor-profile-info p {
  font-size: 0.97rem;
  color: var(--charcoal-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.doctor-cert-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.doctor-cert-list li {
  position: relative;
  padding-left: 1.5rem;
  padding-right: 0;
  font-size: 0.95rem;
  color: var(--charcoal-gray);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

html[lang='ar'] .doctor-cert-list li {
  padding-right: 1.5rem;
  padding-left: 0;
}

.doctor-cert-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: url('/assets/icons/green-hand.png') no-repeat center center;
  background-size: contain;
}

html[lang='ar'] .doctor-cert-list li::before {
  left: unset;
  right: 0;
}

@media (min-width: 768px) {
  .doctor-profile-card {
    flex-direction: row;
    align-items: stretch; /* بدل flex-start */
    padding: 2.5rem;
  }

  .doctor-profile-image {
    width: 34%;
    min-width: 280px;
    max-width: 340px;
    margin: 0;
    height: auto; /* يورث الارتفاع من الكارد بفضل stretch */
  }

  .doctor-profile-image img,
  .doctor-profile-image .img-placeholder {
    height: 100%;
    aspect-ratio: unset; /* نلغي الـ aspect-ratio الثابت في الديسكتوب فقط */
    object-fit: cover;
  }

  .doctor-profile-card.flipped {
    flex-direction: row-reverse;
  }
}

/* ---- Appointment Steps ---- */
.doctor-steps {
  padding: var(--section-padding) 0;
  background: var(--mint-light);
}

.doctor-steps .section-container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.doctor-steps-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.doctor-steps-header .section-title {
  max-width: 600px;
  margin: 0.75rem auto;
}

.doctor-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doctor-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.doctor-step-item:hover {
  transform: translateX(4px);
}

html[lang='ar'] .doctor-step-item:hover {
  transform: translateX(-4px);
}

.doctor-step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.doctor-step-text h4 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: #150B33;
}

.doctor-step-text p {
  font-size: 0.92rem;
  color: var(--charcoal-gray);
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .doctor-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* ---- FAQ Section ---- */
.doctor-faq {
  padding: var(--section-padding) 0;
}

.doctor-faq .section-container {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.doctor-faq-header {
  text-align: center;
  margin-bottom: 2rem;
}

.doctor-faq-header .section-title {
  max-width: 600px;
  margin: 0.75rem auto;
}

.doctor-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doctor-faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.doctor-faq-item.active {
  border-color: var(--primary-green);
}

.doctor-faq-question {
  width: 100%;
  background: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: #150B33;
  border: none;
  transition: background 0.3s;
}

html[lang='ar'] .doctor-faq-question {
  text-align: right;
}

.doctor-faq-question:hover {
  background: #f9f9f9;
}

.doctor-faq-question .faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--mint-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  color: var(--primary-green);
  font-size: 0.7rem;
}

.doctor-faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-green);
  color: #fff;
}

.doctor-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}

.doctor-faq-item.active .doctor-faq-answer {
  max-height: 400px;
  padding: 0 1.25rem 1.1rem;
}

.doctor-faq-answer p {
  font-size: 0.94rem;
  color: var(--charcoal-gray);
  line-height: 1.7;
  margin: 0;
}

/* ---- CTA Section ---- */
.doctor-cta {
  padding: var(--section-padding) 0;
  background: var(--mint-light);
  text-align: center;
}

.doctor-cta .section-container {
  width: 95%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.doctor-cta .section-title {
  max-width: 600px;
  margin: 0.75rem auto;
}

.doctor-cta p {
  color: var(--charcoal-gray);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

.doctor-cta .doctor-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 500px) {
  .doctor-cta .doctor-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---- Doctor Divider ---- */
.doctor-divider {
  width: 80px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  margin: 0.75rem 0;
}

/* ---- Structured Data (hidden) ---- */
.doctor-schema {
  display: none;
}


.doctor-step-text,
.nn-text {
  max-width: 85%;
  text-align: start;
}
.section-btn img {
  width: 10%;
}

.doctor-profile-info,
.doctor-faq-answer {
  text-align: start;
}