/* ============================================================
   Salinas Valley Health – Cancer Center Sub-Page Module Styles
   Add to site stylesheet or paste into a CSS module.
   CMS Standards: No ID selectors · Native CSS nesting
   ============================================================ */

.cancer-subpage-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;

  .page-title {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1b4571;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .page-description {
    font-size: 1rem;
    color: #333;
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 8px;
  }

  .page-description-placeholder {
    font-size: 0.95rem;
    color: #999;
    font-style: italic;
    margin-bottom: 8px;
  }
}

.cancer-subpage-divider {
  max-width: 1200px;
  margin: 16px auto 28px;
  padding: 0 24px;

  hr {
    border: none;
    border-top: 2px solid #e0e0e0;
  }
}

.cancer-icon-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.cancer-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px 16px 20px;
  transition: box-shadow .25s ease, transform .25s ease;

  &:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transform: translateY(-2px);
  }

  .icon-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 4px;
  }

  .icon-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1b4571;
    line-height: 1.35;
  }

  .icon-label-link {
    font-size: 1rem;
    font-weight: 700;
    color: #4e7a2d;
    text-decoration: none;
    line-height: 1.35;

    &:hover {
      color: #3d6122;
      text-decoration: underline;
    }
  }
}

/* --- Testimonials Carousel --- */

.cancer-testimonials-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;

  .testimonials-header {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1b4571;
    margin-bottom: 8px;
  }

  .testimonials-description {
    font-size: 1rem;
    color: #333;
    margin-bottom: 24px;
    max-width: 700px;
  }
}

.cancer-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.cancer-carousel-track {
  display: flex;
  transition: transform .4s ease;
}

.cancer-carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 60px;
  text-align: center;

  .slide-media {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    background: #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    font-size: 0.9rem;
    color: #888;
  }

  .slide-caption {
    font-size: 1rem;
    color: #333;
    font-style: italic;
    max-width: 520px;
  }

  .slide-attribution {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-weight: 600;
  }
}

.cancer-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1b4571;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 2;

  &:hover {
    background: #23567e;
  }

  &.prev {
    left: 14px;
  }

  &.next {
    right: 14px;
  }
}

.cancer-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.cancer-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background .2s ease;

  &.active {
    background: #1b4571;
  }
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .cancer-icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
}

@media (max-width: 560px) {
  .cancer-icon-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cancer-subpage-header {
    .page-title {
      font-size: 1.55rem;
    }
  }

  .cancer-carousel-slide {
    padding: 32px 20px;
  }

  .cancer-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}