/* ═══════════════════════════════════════════════════════════════
   CONTENT AREA STYLES — Infinity Integrated Solutions
   Wrap your page in <section class="article-page">
   No other classes or IDs needed anywhere.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --accent:    #cd138a;
  --ink:       #1a1a1a;
  --ink-soft:  #4a4a4a;
  --ink-muted: #7a7a7a;
  --border:    #e8e4df;
  --bg:        #faf9f7;
  --radius:    10px;
}

/* ─── OUTER WRAPPER ──────────────────────────────────────────── */

.article-page {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGE TITLE BANNER (<header>) ──────────────────────────── */

.article-page header {
  background: var(--ink);
  padding: 56px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-page header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 28px,
    rgba(245, 168, 0, 0.06) 28px,
    rgba(245, 168, 0, 0.06) 29px
  );
  pointer-events: none;
}

.article-page header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.article-page header h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}

/* ─── CONTENT WRAPPER (<article>) ───────────────────────────── */

.article-page article {
  margin: 0 auto;
  padding: 10px 24px 40px;
}

/* ─── PARAGRAPHS ─────────────────────────────────────────────── */

.article-page article p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.8;
}

/* First paragraph — auto lead style */
.article-page article p:first-of-type {
  font-size: 17px;
  font-weight: 300;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 32px;
}

/* ─── HEADINGS ───────────────────────────────────────────────── */

.article-page article h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--ink);
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  letter-spacing: -0.01em;
}

.article-page article h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.article-page article h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-page article h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.article-page article h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 28px 0 8px;
}

/* ─── LISTS ──────────────────────────────────────────────────── */

.article-page article ul,
.article-page article ol {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-page article ul li,
.article-page article ol li {
  position: relative;
  padding: 10px 14px 10px 36px;
  font-size: 15px;
  color: var(--ink-soft);
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.article-page article ul li:last-child,
.article-page article ol li:last-child {
  border-bottom: none;
}

.article-page article ul li:hover,
.article-page article ol li:hover {
  background: #fffbf2;
}

.article-page article ul li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.article-page article ol {
  counter-reset: ol-counter;
}

.article-page article ol li {
  counter-increment: ol-counter;
}

.article-page article ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 13px;
  top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── INLINE ELEMENTS ────────────────────────────────────────── */

.article-page article strong {
  font-weight: 600;
  color: var(--ink);
}

.article-page article em {
  font-style: italic;
  color: var(--ink-muted);
}

.article-page article a {
  color: #c98b00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-page article a:hover {
  color: var(--ink);
}

/* ─── HORIZONTAL RULE ────────────────────────────────────────── */

.article-page article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0;
}

/* ─── BLOCKQUOTE ─────────────────────────────────────────────── */

.article-page article blockquote {
  background: #fffbf0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ─── TABLE ──────────────────────────────────────────────────── */

.article-page article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-page article thead th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.article-page article tbody tr:nth-child(even) td {
  background: #f5f3f0;
}

.article-page article tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}

/* ─── CTA BANNER (<aside> inside article) ───────────────────── */

.article-page article aside {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.article-page article aside p {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  border: none !important;
  padding: 0 !important;
}

.article-page article aside a {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s;
}

.article-page article aside a:hover {
  background: #333;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  .article-page article {
    padding: 36px 16px 60px;
  }

  .article-page article h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .article-page article aside {
    flex-direction: column;
    text-align: center;
  }
}