/* Port of ProblemSection.astro scoped styles */

.problem-section {
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.problem-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .problem-card {
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
  }
}

/* ─── Visual (image side - fills full height & width of left column) ─── */
.problem-visual {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .problem-visual {
    min-height: 100%;
    height: 100%;
  }
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  position: absolute;
  inset: 0;
}

.visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  z-index: 2;
}

@media (min-width: 768px) {
  .visual-overlay {
    padding: 32px 36px;
  }
}

.overlay-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.overlay-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* ─── Content side ─────────────────────────────────────────── */
.problem-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

@media (min-width: 768px) {
  .problem-content {
    padding: 40px;
    gap: 24px;
  }
}

.problem-quote {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--primary);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--heading);
  font-style: italic;
}

.problem-desc {
  margin: 0;
  font-size: var(--fs-body, 1rem);
  line-height: 1.7;
  color: var(--text);
}

/* ─── Assurance bar ────────────────────────────────────────── */
.assurance-bar {
  padding: 14px 16px;
  background: var(--primary-light);
  border: 1px solid rgba(27, 84, 216, 0.14);
  border-radius: 14px;
}

.assurance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assurance-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 600;
  color: var(--heading);
}

.assurance-list li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ─── Values list ──────────────────────────────────────────── */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-size: var(--fs-body, 1rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.value-item p {
  margin: 0;
  font-size: var(--fs-small, 0.875rem);
  line-height: 1.55;
  color: var(--text);
}

/* ─── CTA ──────────────────────────────────────────────────── */
.problem-cta {
  width: 100%;
}

@media (min-width: 480px) {
  .problem-cta {
    width: auto;
  }
}
