/* ==========================================================================
   PROBLEM SECTION STYLES — ULTRA CLEAN & INSTANTLY SCANNABLE
   Theme: Midnight Glass (#0A0F1D / #0D1526)
   Audience instantly grasps the dilemma and fix within 3 seconds
   ========================================================================== */

.problem-section {
  background-color: var(--color-bg-alt, #0A0F1D);
  position: relative;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  overflow: hidden;
}

/* Subtle background accent glow */
.problem-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.problem-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.problem-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(2.75rem, 5vw, 3.75rem);
}

.problem-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 122, 0, 0.1);
  color: #FF851A;
  border: 1px solid rgba(255, 122, 0, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}

.problem-main-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.problem-lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: #94A3B8;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto;
}

/* 3-Column Grid */
.problem-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

/* Individual Dilemma Card */
.problem-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(13, 18, 30, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease;
  position: relative;
}

.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 122, 0, 0.12);
}

/* Card Media */
.problem-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #070B14;
}

.problem-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.problem-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.15) 0%, rgba(10, 15, 29, 0.85) 100%);
  pointer-events: none;
}

.problem-badge-row {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.dilemma-num-pill {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: #FF851A;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.dilemma-tag-pill {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Card Body */
.problem-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.problem-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.problem-summary {
  font-size: 0.885rem;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 1.35rem;
  min-height: 48px;
}

/* Instant Contrast Flow (The Dilemma vs Miracle IT Fix) */
.problem-contrast-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contrast-row {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Trap Box */
.trap-row {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-left: 3px solid #EF4444;
}

.trap-badge {
  color: #F87171;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

/* Fix Box */
.fix-row {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-left: 3px solid #10B981;
}

.fix-badge {
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fix-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.contrast-text {
  font-size: 0.835rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin: 0;
}

.fix-row .contrast-text {
  color: #E2E8F0;
  font-weight: 500;
}

/* Action Link */
.problem-card-action {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.problem-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #FF851A;
  font-size: 0.885rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.problem-action-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.problem-card:hover .problem-action-btn {
  color: #FFA34D;
}

.problem-card:hover .problem-action-btn svg {
  transform: translateX(5px);
}

/* Mobile Scroll Dots (Hidden on Desktop) */
.problem-scroll-dots {
  display: none;
  justify-content: center;
  gap: 0.65rem;
  margin: -1.75rem 0 2.5rem;
}

.problem-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.problem-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #FF7A00;
}

/* Reassuring Transition / Consultation Banner */
.problem-transition-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(22, 30, 48, 0.9) 0%, rgba(15, 22, 36, 0.95) 100%);
  border: 1px solid rgba(255, 122, 0, 0.25);
  border-radius: 18px;
  padding: 1.75rem 2.25rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.transition-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
}

.transition-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF851A;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.transition-icon svg {
  width: 22px;
  height: 22px;
}

.transition-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.transition-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FF851A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.transition-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF851A;
  box-shadow: 0 0 6px rgba(255, 122, 0, 0.8);
}

.transition-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.transition-heading-accent {
  color: #FF851A;
}

.transition-sub {
  font-size: 0.875rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.transition-sub-bold {
  color: #F1F5F9;
}

.transition-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.transition-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .problem-transition-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }
  .transition-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .problem-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .problem-summary {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .problem-section {
    padding: 3.5rem 0;
  }
  .problem-card-body {
    padding: 1.25rem;
  }
  .transition-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  .transition-sub {
    flex-direction: column;
    align-items: flex-start;
  }
}
