/* ========================================
   CHALLENGE SECTION
   3 challenge cards in a row, solution card full-width below
   ======================================== */

.challenge-section {
  grid-column: left-edge / right-edge;
  padding: 60px 0 60px 0;
}

/* ----------------------------------------
   HEADER
   ---------------------------------------- */
.challenge-header {
  text-align: left;
  margin-bottom: 48px;
}

.challenge-header .section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: "Univers Next Pro", sans-serif;
  color: rgba(18, 18, 18, 0.5);
  margin-bottom: 16px;
  display: block;
}

.challenge-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.2;
  font-family: "Univers Next Pro", sans-serif;
  color: #121212;
}

.challenge-intro {
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Univers Next Pro", sans-serif;
  color: rgba(18, 18, 18, 0.7);
  max-width: 700px;
}

/* ----------------------------------------
   CHALLENGE CARDS - Horizontal Row
   ---------------------------------------- */
.challenge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 16px 28px;
  background: rgba(18, 18, 18, 0.02);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.challenge-card:hover {
  background: rgba(18, 18, 18, 0.04);
  border-color: rgba(18, 18, 18, 0.12);
  transform: none;
}

/* ----------------------------------------
   CARD ICON / NODE GRAPHS
   ---------------------------------------- */
.challenge-card .card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-card .card-icon svg {
  width: 100%;
  height: 100%;
  color: #333;
}

.node-graph {
  display: block;
}

/* ----------------------------------------
   CARD CONTENT
   ---------------------------------------- */
.challenge-card .card-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-family: "Univers Next Pro", sans-serif;
  color: #121212;
}

.challenge-card .card-content p {
  font-size: 0.8rem;
  line-height: 1.6;
  font-family: "Univers Next Pro", sans-serif;
  color: rgba(18, 18, 18, 0.6);
  margin: 0;
}

.challenge-card .card-note {
  display: block;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(18, 18, 18, 0.1);
  font-size: 0.72rem;
  line-height: 1.4;
  font-family: "Univers Next Pro", sans-serif;
  font-style: italic;
  color: rgba(18, 18, 18, 0.4);
}

/* ----------------------------------------
   SOLUTION CARD - Full width, dark
   ---------------------------------------- */
.solution-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: #121212;
  border-radius: 16px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.solution-card .card-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 1;
}

.solution-card .card-icon svg {
  width: 100%;
  height: 100%;
  color: #f7f7f4;
}

.solution-card .node-graph {
  display: block;
}

.solution-card .card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.solution-card .solution-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: "Univers Next Pro", sans-serif;
  color: rgba(247, 247, 244, 0.5);
  margin-bottom: 10px;
  display: block;
}

.solution-card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-family: "Univers Next Pro", sans-serif;
  color: #f7f7f4;
}

.solution-card p {
  font-size: 0.8rem;
  line-height: 1.6;
  font-family: "Univers Next Pro", sans-serif;
  color: rgba(247, 247, 244, 0.7);
  max-width: 700px;
  margin: 0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Medium screens */
@media (max-width: 900px) {
  .challenge-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .challenge-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .solution-card {
    padding: 32px;
    gap: 24px;
  }

  .solution-card .card-icon {
    width: 56px;
    height: 56px;
  }
}

/* Small screens */
@media (max-width: 600px) {
  .challenge-section {
    padding: 40px 0 30px 0;
  }

  .challenge-header {
    margin-bottom: 32px;
  }

  .challenge-header h2 {
    font-size: 1.4rem;
  }

  .challenge-intro {
    font-size: 0.9rem;
  }

  .challenge-cards {
    gap: 12px;
    margin-bottom: 16px;
  }

  .challenge-card {
    padding: 20px;
    gap: 16px;
  }

  .challenge-card .card-icon {
    width: 56px;
    height: 56px;
  }

  .challenge-card .card-content h3 {
    font-size: 0.95rem;
  }

  .challenge-card .card-content p {
    font-size: 0.8rem;
  }

  .solution-card {
    padding: 28px 24px;
    gap: 20px;
  }

  .solution-card .card-icon {
    width: 48px;
    height: 48px;
  }

  .solution-card h3 {
    font-size: 1.15rem;
  }

  .solution-card p {
    font-size: 0.8rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .challenge-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .solution-card {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
    align-items: center;
    gap: 16px;
  }

  .solution-card .card-icon {
    width: 48px;
    height: 48px;
  }
}
