/* Hero */
.solution-hero {
  background: linear-gradient(135deg, #0a1f5c 0%, #0941c6 60%, #1a6fd4 100%);
  padding: 72px 0 60px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.solution-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.solution-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.solution-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
}
.solution-hero .badge-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.solution-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.solution-hero .banner-btn {
  background: #d32f2f;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.solution-hero .solution-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.solution-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}
.solution-hero-meta-item svg {
  opacity: 0.8;
  flex-shrink: 0;
}

.solution-hero-meta-item .solution-body {
  background: #f5f7fb;
  padding: 56px 0 80px;
}

/* TOC */
.solution-toc-wrap {
  position: sticky;
  top: 80px;
}

.solution-toc {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 24px 20px;
}
.solution-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.solution-toc li {
  margin: 0;
}
.solution-toc a {
  display: block;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #475569;
  text-decoration: none;
  border-radius: 5px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.solution-toc a.active, .solution-toc a:hover {
  background: #eff4ff;
  color: #0941c6;
  border-left-color: #0941c6;
}
.solution-toc li.sub a {
  padding-left: 22px;
  font-size: 0.78rem;
  color: #64748b;
}
.solution-toc li.sub a.active, .solution-toc li.sub a:hover {
  background: #eff4ff;
  color: #0941c6;
  border-left-color: #0941c6;
}

.solution-toc-title {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

/* Article */
.solution-article {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 40px 44px;
}
.solution-article .intro-block {
  border-left: 4px solid #0941c6;
  padding: 16px 20px;
  background: #f0f5ff;
  border-radius: 0 8px 8px 0;
  margin-bottom: 36px;
  color: #1e3a6e;
  font-size: 1rem;
  line-height: 1.75;
}
.solution-article h2 {
  font-size: 26px;
  font-weight: 600;
  color: #1e4bbd;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  scroll-margin-top: 100px;
}
.solution-article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.solution-article h3 {
  font-size: 20px;
  font-weight: 600;
  color: #082e75;
  margin-top: 28px;
  margin-bottom: 10px;
  scroll-margin-top: 100px;
}
.solution-article p {
  color: #212323;
  font-size: 16px;
  line-height: 1.75;
}
.solution-article [id] {
  scroll-margin-top: 100px;
}
.solution-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.solution-article table thead tr {
  background: #0941c6;
  color: #fff;
  border: none;
}
.solution-article table th {
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  background: #0941c6;
  color: #fff;
}
.solution-article table th:first-child {
  border-left: none;
  border-top-left-radius: 5px;
}
.solution-article table th:last-child {
  border-right: none;
  border-top-right-radius: 5px;
}
.solution-article table td {
  padding: 11px 16px;
  color: #374151;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.solution-article table tbody tr:nth-child(even) {
  background: #f8faff;
}
.solution-article table tbody tr:last-child td {
  border-bottom: none;
}
.solution-article table tbody tr:hover {
  background: #eff4ff;
}

@media (max-width: 767.98px) {
  .solution-article {
    padding: 24px 20px;
  }
}
.eyebrow-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #dbeafe;
  color: #1d4ed8;
}
.eyebrow-badge.pre {
  background: #dbeafe;
  color: #1d4ed8;
}
.eyebrow-badge.during {
  background: #fef3c7;
  color: #92400e;
}
.eyebrow-badge.post {
  background: #dcfce7;
  color: #166534;
}

/* Strategy cards */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px;
}

@media (max-width: 575.98px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }
}
.strategy-card {
  background: #f8faff;
  border: 1px solid #d1deff;
  border-radius: 8px;
  padding: 14px 16px;
}
.strategy-card h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0941c6;
  margin: 0 0 6px;
}
.strategy-card p {
  font-size: 0.82rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}

/* Styled check list */
.solution-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.solution-check-list li {
  position: relative;
  padding: 0.875rem 0 0.875rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.solution-check-list li:last-child {
  border-bottom: none;
}
.solution-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 18px;
  height: 18px;
  background: #0941c6;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.solution-check-list li strong {
  color: #111827;
}

/* Code blocks */
.solution-article pre {
  position: relative;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 1.5rem 0;
  border: 1px solid #334155;
}
.solution-article pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.solution-article pre .code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 5px;
  color: #94a3b8;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.solution-article pre .code-copy-btn:hover {
  background: #475569;
  color: #fff;
}
.solution-article pre .code-copy-btn.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.solution-article pre:hover .code-copy-btn {
  opacity: 1;
}

.solution-article code {
  background: #f1f5f9;
  color: #d63384;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-style: italic;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.solution-example {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.solution-example .solution-example-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #15803d;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.solution-example p {
  margin: 0;
  color: #1e293b;
  line-height: 1.7;
}