/* Case Study Telehealth Specific Styles */

/* ============================================
   HERO SECTION
   ============================================ */
.case-study-hero {
  background-color: #0b1221;
  /* #0f172a */
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ffffff0d;
}

.case-study-tag {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 10.5px;
  border: 1px solid #f05a2833;
  border-radius: 9999px;
  background: #f05a281a;
  color: var(--primary-color);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  gap: 7px;
}

.case-study-title-work {
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: var(--line-height-tight);
}

.case-study-subtitle {
  font-weight: 300;
  font-size: 18px;
  line-height: 28.44px;
  letter-spacing: 0;
  color: #94a3b8;
  /* Slate-400 equivalent */
  max-width: 800px;
  margin-bottom: 34px;
  vertical-align: middle;
}

.case-study-subtitle strong {
  font-weight: 500;
  font-size: 18px;
  line-height: 28.44px;
  letter-spacing: 0;
  color: var(--text-white);
  vertical-align: middle;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
  width: 100%;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.52px;
  color: #6b7280;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  vertical-align: middle;
}

.meta-label img {
  width: 10.5px;
  height: 10.5px;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(48%) sepia(12%) saturate(498%)
    hue-rotate(178deg) brightness(94%) contrast(89%);
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 21px;
  letter-spacing: 0;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-white);
  font-weight: 500;
  border-radius: 3.5px;
  transition: all var(--transition-base);
  font-size: 14px;
}

.hero-cta-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.case-study-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-content-container {
  flex-shrink: 0;
}

.hero-image-container {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.hero-image-container img {
  width: auto;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* ============================================
   CLIENT CONTEXT SECTION
   ============================================ */
.client-context-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.context-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.section-label-underline {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.section-label-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.context-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 25.59px;
  letter-spacing: 0;
  color: #4b5563;
  margin-bottom: 3rem;
  vertical-align: middle;
}

.context-description p {
  margin-bottom: 1.5rem;
}

.context-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-box-work {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.single-work .stat-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 0;
  background-color: #f9fafb;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon img,
.stat-icon svg {
  width: 17.5;
  object-fit: contain;
}

.single-work .stat-text {
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  color: #374151;
}

/* ============================================
   THE CHALLENGE SECTION
   ============================================ */
.challenge-section {
  padding: 70px 188px;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.challenge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.single-work .challenge-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.single-work .challenge-content p {
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 25.59px;
  letter-spacing: 0;
  color: #4b5563;
  vertical-align: middle;
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.challenge-item {
  background-color: var(--bg-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0px 1px 2px 0px rgb(0 0 0 / 5%);
  border-left: 4px solid #f05a28;
}

.challenge-header {
  width: 100%;
  background: none;
  border: none;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.challenge-icon {
  flex-shrink: 0;
  width: 17.5px;
  height: 17.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.challenge-text {
  font-weight: 500;
  font-style: normal;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0;
  color: #374151;
  flex: 1;
}

.challenge-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-arrow img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 10.5px;
  height: auto;
}

.challenge-item.active .challenge-arrow img {
  transform: rotate(180deg);
}

.challenge-item:not(.active) .challenge-arrow img {
  transform: rotate(0deg);
}

.challenge-details-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease 0.1s;
  padding: 0 14px;
  opacity: 0;
}

.challenge-item.active .challenge-details-content {
  max-height: 250px;
  overflow-y: auto;
  padding-top: 0;
  padding-bottom: 14px;
  opacity: 1;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease 0.15s;
}

.challenge-details-content {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6.5px;
  width: 100%;
}

.challenge-details-content p {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.46;
  color: #475569;
  position: relative;
  padding-left: 14px;
  margin-bottom: 0;
}

.challenge-details-content a {
  color: var(--primary-color);
}

/* ============================================
   OUR SOLUTION SECTION
   ============================================ */
.solution-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.solution-header {
  max-width: 800px;
  margin-bottom: 4rem;
}

.solution-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.solution-header p {
  font-size: var(--font-size-base);
  color: var(--text-light);
  line-height: 1.7;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.solution-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-base);
}

.solution-card:hover {
  transform: translateY(-5px);
}

.solution-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  border-radius: 7px;
  box-shadow: 0px 1px 2px 0px #0000000d;
  opacity: 1;
  transform: rotate(0deg);
}

.solution-icon img {
  max-width: 21px;
}

.solution-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #111827;
  margin-bottom: 1rem;
}

.solution-card-desc {
  font-size: var(--font-size-sm);
  color: #475569;
  line-height: 1.6;
}

.solution-card a {
  color: var(--primary-color);
}

/* ============================================
   HOW WE DELIVERED SECTION
   ============================================ */
.delivery-section-work {
  padding: 6rem 0;
  background-color: #0b1221;
  color: var(--text-white);
}

.delivery-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 3rem;
  color: var(--text-white);
}

.delivery-timeline-work {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  position: relative;
}

.case-study-delivery-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}

.case-study-delivery-step::before {
  content: "";
  position: absolute;
  left: 17.5px;
  top: 4px;
  bottom: 0;
  width: 1px;
  background-color: #374151;
  transform: translateX(-50%);
  z-index: 0;
}

.case-study-delivery-step:last-child::before {
  padding-bottom: 0;
  width: 0px;
}

.case-study-step-number {
  width: 35px;
  height: 35px;
  border-radius: 9999px;
  background-color: #111827;
  color: var(--text-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  border: 1px solid #4b5563;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0;
  color: #9ca3af;
  vertical-align: middle;
}

/* ============================================
   OUTCOMES DELIVERED SECTION
   ============================================ */
.outcomes-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.single-work .outcomes-section .outcomes-title {
  font-size: 32px;
  font-weight: 700px;
  color: #0f172a;
  margin-bottom: 2.5rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.outcome-card {
  background-color: #f9fafb;
  padding: 2.5rem 2rem;
  border-radius: 10.5px;
  border: 1px solid #e5e7eb;
}

.outcome-value {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1.2;
}

.single-work .outcome-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: #111827;
  margin-bottom: 0.75rem;
  display: block;
}

.outcome-desc {
  font-size: var(--font-size-sm);
  color: #475569;
  line-height: 1.5;
}

/* ============================================
   RELATED CAPABILITIES SECTION
   ============================================ */
.related-section {
  padding-bottom: 6rem;
  background-color: var(--bg-white);
}

.single-work .related-title {
  font-size: 32px;
  font-weight: 700px;
  color: #0f172a;
  margin-bottom: 2rem;
}

.related-caps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.cap-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: rgba(237, 92, 55, 0.05);
}

/* ============================================
   CHALLENGE CTA SECTION
   ============================================ */
.challenge-cta-section {
  padding: 8rem 0;
  background-color: #0b1221;
  text-align: center;
  color: var(--text-white);
}

.challenge-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.challenge-cta-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.challenge-cta-desc {
  font-size: var(--font-size-lg);
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.challenge-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-white);
  font-weight: var(--font-weight-bold);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
}

.challenge-cta-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.work-template-default .hc-solutions-detail-cta {
  background-color: #0f172a;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .challenge-section {
    padding: 50px 50px;
  }
}

@media (max-width: 991px) {
  .case-study-hero-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  .hero-image-container {
    display: none;
  }

  .case-study-title {
    font-size: var(--font-size-4xl);
  }

  .challenge-section {
    padding: 4rem 1rem;
  }

  .challenge-section {
    padding: 4rem 1rem;
  }

  .context-layout,
  .challenge-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .context-sidebar {
    margin-bottom: 1rem;
  }

  .case-meta-grid,
  .solution-grid,
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-content-container {
    padding: 4rem 0 3rem;
    width: 100%;
  }

  .hero-image-container {
    display: none;
  }

  .case-study-title,
  .solution-header h2,
  .delivery-title,
  .outcomes-title,
  .challenge-cta-title {
    font-size: 2rem;
  }

  .case-study-subtitle {
    font-size: 16px;
  }

  .case-meta-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .context-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .challenge-section,
  .solution-section,
  .delivery-section,
  .outcomes-section,
  .challenge-cta-section {
    padding: 4rem 0;
  }

  .challenge-section {
    padding: 3rem 0;
  }

  .challenge-item {
    padding: 0;
  }

  .outcome-value {
    font-size: 2rem;
  }

  .hero-cta-btn,
  .challenge-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .delivery-timeline {
    gap: 0;
  }
}
