/*
 * Doctor Page Styles
 * Hero with quote and story-driven narrative layout
 */

/* ===================================
   DOCTOR HERO WITH QUOTE
   ================================= */

.doctor-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-teal-900);
}

.doctor-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-0);
}

.doctor-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.doctor-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(30, 30, 30, 0.35) 0%,
    rgba(20, 20, 20, 0.50) 50%,
    rgba(30, 30, 30, 0.35) 100%
  );
  z-index: var(--z-10);
}

.doctor-hero-content {
  position: relative;
  z-index: var(--z-20);
  text-align: center;
  max-width: 900px;
  padding: var(--space-8);
  margin: 0 auto;
}

.doctor-hero-content h1 {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.doctor-title {
  font-size: var(--text-xl);
  color: var(--color-gold-300);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.doctor-quote {
  font-size: var(--text-2xl);
  font-family: var(--font-accent);
  color: var(--color-white);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin: 0;
  padding: var(--space-6);
  border-left: 4px solid var(--color-gold-400);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .doctor-hero {
    min-height: 60vh;
  }

  .doctor-hero-content h1 {
    font-size: var(--text-4xl);
  }

  .doctor-title {
    font-size: var(--text-lg);
  }

  .doctor-quote {
    font-size: var(--text-lg);
    padding: var(--space-4);
  }
}

/* ===================================
   STORY ITEMS (ALTERNATING LAYOUT)
   ================================= */

.story-item {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .story-item {
    grid-template-columns: 1fr 1fr;
  }

  /* Reverse the order of image and content */
  .story-item-reverse .story-image {
    order: 2;
  }

  .story-item-reverse .story-content {
    order: 1;
  }
}

.story-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-teal-lg);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 350px;
  max-height: 500px;
}

/* My Journey section: show full image height */
.story-item .story-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  box-shadow: var(--shadow-gold-lg);
}

.story-item .story-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  min-height: unset;
  object-fit: contain;
}

/* Mobile: limit image height in single column view */
@media (max-width: 1023px) {
  .story-item .story-image img {
    max-height: 450px;
  }
}

.story-content h2 {
  font-size: var(--text-4xl);
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.story-content h3 {
  font-size: var(--text-2xl);
  color: var(--color-teal-600);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.story-content p {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.story-content ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.story-content li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
}

.story-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-teal-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.story-content strong {
  color: var(--color-teal-700);
  font-weight: var(--font-semibold);
}

@media (max-width: 767px) {
  .story-content h2 {
    font-size: var(--text-3xl);
  }

  .story-content h3 {
    font-size: var(--text-xl);
  }

  .story-content p {
    font-size: var(--text-base);
  }

  .story-image img {
    min-height: 250px;
    max-height: 350px;
  }
}

/* ===================================
   STORY FLOW LAYOUT (TEXT WRAPS IMAGE)
   ================================= */

.story-section-header {
  max-width: 1200px;
  margin: 0 auto var(--space-8);
}

.story-section-header h2 {
  font-size: var(--text-4xl);
  color: var(--color-teal-700);
  margin-bottom: var(--space-2);
}

.story-flow {
  max-width: 1200px;
  margin: 0 auto;
}

.story-flow::after {
  content: '';
  display: table;
  clear: both;
}

.story-flow .story-image {
  float: right;
  width: 45%;
  max-width: 450px;
  margin: 0 0 var(--space-6) var(--space-8);
}

.story-flow .story-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.story-flow p {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.story-flow ul {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.story-flow li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
}

.story-flow li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-teal-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.story-flow strong {
  color: var(--color-teal-700);
  font-weight: var(--font-semibold);
}

@media (max-width: 1023px) {
  .story-flow .story-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 var(--space-6) 0;
  }
}

/* Legacy grid layout (kept for compatibility) */
.story-intro-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .story-intro-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-intro-grid.intro-image-right .story-intro-text {
    order: 1;
  }

  .story-intro-grid.intro-image-right .story-image {
    order: 2;
  }
}

.story-intro-text p {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.story-intro-text p:last-child {
  margin-bottom: 0;
}

.story-full-width {
  max-width: 1200px;
  margin: var(--space-8) auto 0;
}

.story-full-width ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.story-full-width li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
}

.story-full-width li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-teal-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.story-full-width strong {
  color: var(--color-teal-700);
  font-weight: var(--font-semibold);
}

@media (max-width: 1023px) {
  .story-section-header h2 {
    font-size: var(--text-3xl);
  }

  .story-intro-text p {
    font-size: var(--text-base);
  }
}

/* ===================================
   CREDENTIAL LOGO CARDS
   ================================= */

.credentials-layout {
  display: grid;
  gap: var(--space-10);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .credentials-layout {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.credentials-content {
  text-align: left;
}

.credentials-content h2 {
  font-size: var(--text-4xl);
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.credentials-content h3 {
  font-size: var(--text-xl);
  color: var(--color-teal-700);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.credentials-content h3:first-child {
  margin-top: 0;
}

.credentials-content ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.credentials-content li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
}

.credentials-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-teal-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.credential-logos {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 1023px) {
  .credential-logos {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-6);
  }
}

.credential-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  width: 280px;
  height: 140px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.credential-logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-teal-300);
  box-shadow: var(--shadow-teal);
}

.credential-logo-card img {
  max-height: 96px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .credentials-content h2 {
    font-size: var(--text-3xl);
  }
}

/* ===================================
   CTA SECTION CENTERING
   ================================= */

.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-section .cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.cta-section .cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
