/*
 * Conditions Page Styles
 * Page hero and condition layout
 */

/* ===================================
   PAGE HERO
   ================================= */

.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-teal-900);
}

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

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

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(45, 125, 142, 0.6) 0%,
    rgba(45, 125, 142, 0.8) 100%
  );
  z-index: var(--z-10);
}

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

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

.page-hero-content p {
  font-size: var(--text-xl);
  color: var(--color-teal-50);
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .page-hero {
    height: 40vh;
    min-height: 300px;
  }

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

  .page-hero-content p {
    font-size: var(--text-lg);
  }
}

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

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

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

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

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

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

.condition-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px;
  max-height: 400px;
}

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

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

.condition-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.condition-content li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-gray-700);
}

.condition-content li::before {
  content: '✓';
  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);
  flex-shrink: 0;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

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

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

  .condition-image img {
    min-height: 250px;
    max-height: 300px;
  }
}

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

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

.cta-section .cta-content {
  text-align: center;
}

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