/* ========================================
   PROBLEM SECTION
   ======================================== */

#problem {
  position: relative;
  padding: 88px 0;
  background: #FBF0F4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Problem Title */
.problem-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a0a1a;
  text-align: center;
  margin-bottom: 20px;
}

/* Shimmer Text Animation */
.problem-title.shimmer-text {
  background: linear-gradient(
    90deg,
    #1a0a1a 0%,
    #1a0a1a 30%,
    #C03D6A 45%,
    #E8823A 55%,
    #1a0a1a 70%,
    #1a0a1a 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 200% center;
  }
  50% {
    background-position: 0% center;
  }
}

/* Accent Line */
.problem-accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #C03D6A, #E8823A);
  border-radius: 2px;
  margin: 20px auto 40px;
}

/* Subtext */
.problem-subtext {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a0a1a;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Problem Grid - 2x2 */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 0;
}

/* Problem Card */
.problem-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  border: 0.5px solid rgba(192, 61, 106, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(192, 61, 106, 0.12);
  border-color: rgba(192, 61, 106, 0.2);
}

/* Card Icon */
.problem-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.problem-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* First and third card icons */
.problem-card:nth-child(1) .problem-card-icon,
.problem-card:nth-child(3) .problem-card-icon {
  background: #FBF0F4;
}

.problem-card:nth-child(1) .problem-card-icon svg,
.problem-card:nth-child(3) .problem-card-icon svg {
  color: #C03D6A;
  stroke: #C03D6A;
}

/* Second and fourth card icons */
.problem-card:nth-child(2) .problem-card-icon,
.problem-card:nth-child(4) .problem-card-icon {
  background: #FDF0EA;
}

.problem-card:nth-child(2) .problem-card-icon svg,
.problem-card:nth-child(4) .problem-card-icon svg {
  color: #E8823A;
  stroke: #E8823A;
}

.problem-card:hover .problem-card-icon {
  transform: scale(1.08) rotate(5deg);
}

.problem-card:hover .problem-card-icon img {
  transform: scale(1.15);
}

/* Card Title */
.problem-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a0a1a;
  margin-bottom: 12px;
}

/* Card Text */
.problem-card-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(26, 10, 26, 0.7);
  margin: 0;
}

/* Transition Paragraph */
.problem-transition {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #1a0a1a;
  max-width: 600px;
  margin: 60px auto 0;
  padding: 24px 32px;
  background: rgba(192, 61, 106, 0.08);
  border-radius: 12px;
  text-align: center;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  #problem {
    padding: 110px 0;
  }
  
  .container {
    padding: 0 32px;
  }
  
  .problem-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
  
  .problem-grid {
    gap: 24px;
  }
  
  .problem-card {
    padding: 28px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #problem {
    padding: 72px 0;
  }
  
  .container {
    padding: 0 24px;
  }
  
  .problem-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 16px;
  }
  
  .problem-accent-line {
    margin: 16px auto 32px;
  }
  
  .problem-subtext {
    font-size: 17px;
    line-height: 1.6;
    margin: 40px auto 48px;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }
  
  .problem-card {
    padding: 24px;
    min-height: 140px;
    border-radius: 12px;
  }
  
  .problem-card-icon {
    width: 48px;
    height: 48px;
  }
  
  .problem-card-title {
    font-size: 18px;
    line-height: 1.4;
  }
  
  .problem-card-text {
    font-size: 14px;
  }
  
  .problem-transition {
    font-size: 16px;
    padding: 20px 24px;
  }
}
