/* =============== Execution Problem Module =============== */

.problem-section {
  background: #ffffff;
  padding: 80px;

  --icon-wrap: 72px; /* circle */
  --icon-size: 32px; /* icon inside */

  container-type: inline-size;
}

/* Shared width */
.problem-header, .problem-grid {
  width: 100%;
  max-width: 1376px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.problem-header { text-align: center; margin-bottom: 40px; }

.problem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px 6px;
  border-radius: 56px;
  border: 1px solid #2665e2;
  margin-bottom: 40px;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  transition: all 0.3s ease;
  background: transparent;
  color: #2665e2;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.problem-badge:hover {
  background-color: rgba(38, 101, 226, 0.15);
  filter: brightness(1.3);
  box-shadow: 0 4px 12px rgba(38, 101, 226, 0.25), 0 0 12px rgba(38, 101, 226, 0.15);
  cursor: default;
}

.problem-badge__label {
  color: #2665e2;
  font: 700 18px/1 Roboto, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.problem-title {
  margin: 0 0 16px; 
  color: #060402;
  font: 700 clamp(32px, 4vw, 56px)/120% Roboto, sans-serif;
  letter-spacing: -.015em;
}

.problem-subtitle {
  color: rgba(14,10,2,.7);
  font: 400 18px/150% Roboto, sans-serif;
  max-width: 1120px; 
  margin: 0 auto;
}

/* Title accent (blue -> purple) */
.problem-accent {
  background: linear-gradient(90deg, #2665e2 0%, #c26de6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.problem-accent--flip {
  background: linear-gradient(90deg, #c26de6 0%, #2665e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Grid of cards ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@container (max-width: 1120px) {
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 680px) {
  .problem-grid { grid-template-columns: 1fr; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1120px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 680px)  { .problem-grid { grid-template-columns: 1fr; } }
}

/* Dynamic Gradient Border Card */
.problem-card {
  position: relative;
  background-color: #f8f9fa; /* Light grey inside */
  border: 2px solid transparent;
  border-radius: 16px;
  /* Mask gradient for inner background and gradient border */
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: linear-gradient(#f8f9fa, #f8f9fa), linear-gradient(90deg, #c26de6 0%, #2665e2 100%);
  padding: 24px;
  transition: transform .18s ease, box-shadow .25s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);

  display: grid;
  grid-template-columns: var(--icon-wrap) 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 6px;
  align-items: center;
  min-width: 0;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -24px rgba(2,6,23,.18);
}

/* Icon bubble */
.problem-icon {
  grid-column: 1; grid-row: 1 / span 2;
  width: var(--icon-wrap); 
  height: var(--icon-wrap); 
  border-radius: 9999px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: #2665E2; 
  margin: 0;
  box-shadow: 0 8px 20px rgba(38,101,226,.22);
}
.problem-icon__img { 
  width: var(--icon-size); 
  height: var(--icon-size); 
  object-fit: contain; 
  display: block; 
}

/* Title & Description */
.problem-card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

.problem-card-desc {
  grid-column: 2; 
  grid-row: 2; 
  margin: 0; 
  color: #334155; 
  font-size: 14px; 
  line-height: 1.5;
  min-width: 0;
}

/* Responsive padding tweaks */
@media (max-width: 1024px) { .problem-section { padding: 60px 40px; } }
@media (max-width: 768px)  {
  .problem-section { --icon-wrap: 64px; --icon-size: 28px; padding: 40px 20px; }
  .problem-badge { padding: 6px 14px 4px; border-radius: 40px; margin-bottom: 24px; }
  .problem-badge__label { font-size: 14px; }
  .problem-subtitle { font-size: 16px; }
}

/* ===== Optional CTA Button (Disabled by default) ===== */
.problem-btn-wrapper { margin-top: 40px; text-align: center; }

.problem-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 40px;
  border-radius: 8px;
  background-image: linear-gradient(90deg, #2665e2 0%, #c26de6 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35);
  transition: box-shadow .2s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
  overflow: hidden;
  will-change: transform, box-shadow;
  transform-origin: center center;
}
.problem-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(90deg, #c26de6 0%, #2665e2 100%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 0;
}
.problem-cta:hover::after { opacity: 1; }
.problem-cta__label { position: relative; z-index: 1; white-space: nowrap; }
.problem-cta, .problem-cta:hover { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  .problem-card:hover { transform: none; }
}