/* ================================================
   PAVICTEK — Article / Blog Post Stylesheet
   ================================================ */

/* ── Reading Progress Bar ────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 10000;
  width: 0;
  transition: width .08s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Article Hero ────────────────────────────────── */
.article-hero {
  background: linear-gradient(135deg, #020218 0%, #040428 45%, #08084a 100%);
  padding: 6rem 0 4.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(255,0,0,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(8,8,100,.4) 0%, transparent 50%);
  pointer-events: none;
}

.article-hero .container { position: relative; }

.article-hero .breadcrumb a,
.article-hero .breadcrumb span { color: rgba(255,255,255,.6); font-size: .875rem; }
.article-hero .breadcrumb-sep  { color: rgba(255,255,255,.3); }
.article-hero .breadcrumb a:hover { color: #fff; }

.article-category {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,0,0,.12);
  color: #ff8080;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,0,0,.22);
}

.article-title {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0;
  color: #fff;
  max-width: 840px;
  letter-spacing: -.02em;
}

.article-meta {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,.5);
  font-size: .8375rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.article-meta span { display: flex; align-items: center; gap: .4rem; }

/* ── White article wrapper ───────────────────────── */
.article-section {
  background: var(--white);
  padding-bottom: 5rem;
}

/* ── Article Body ────────────────────────────────── */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 0;
}

/* Lead / first paragraph ── */
.article-body > p:first-child {
  font-size: 1.125rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* ── Headings ─────────────────────────────────────── */
.article-body h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 3rem 0 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  padding-left: .9rem;
  border-left: 4px solid var(--accent);
}

.article-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 2rem 0 .875rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ── Body text ────────────────────────────────────── */
.article-body p {
  color: #3c3c3c;
  line-height: 1.875;
  margin-bottom: 1.375rem;
  font-size: 1.0625rem;
}

/* ── Lists ────────────────────────────────────────── */
.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.article-body ul { list-style: none; }

.article-body ul li {
  position: relative;
  padding-left: 1.625rem;
  margin-bottom: .625rem;
  font-size: 1.0625rem;
  color: #3c3c3c;
  line-height: 1.75;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .625em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.article-body ol {
  list-style: none;
  counter-reset: article-counter;
}

.article-body ol li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: .875rem;
  font-size: 1.0625rem;
  color: #3c3c3c;
  line-height: 1.75;
  counter-increment: article-counter;
}

.article-body ol li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body strong { color: var(--primary); font-weight: 700; }

.article-body a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255,0,0,.28);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: text-decoration-color .2s;
}
.article-body a:not(.btn):hover { text-decoration-color: var(--accent); }

/* ── Divider ──────────────────────────────────────── */
.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── Callout / highlight box ─────────────────────── */
.article-callout {
  background: rgba(4,4,40,.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-callout p { margin: 0; color: var(--primary); font-weight: 500; }

/* ── Tables ───────────────────────────────────────── */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: .9375rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
}

.article-body thead tr { background: var(--primary); }

.article-body th {
  color: #fff;
  padding: .9375rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .02em;
}

.article-body td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: #444;
  vertical-align: top;
  background: var(--white);
}

.article-body tr:last-child td  { border-bottom: none; }
.article-body tbody tr:nth-child(even) td { background: var(--light); }
.article-body tbody tr { transition: background .15s; }
.article-body tbody tr:hover td { background: #eef0fb; }

/* ── Price bands ──────────────────────────────────── */
/* HTML structure: <div class="price-band"><h3/><p/><strong/></div>
   Grid places h3+p in col 1, strong (price) spanning both rows in col 2 */
.price-band {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 2rem;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  transition: box-shadow .2s, transform .2s;
}
.price-band:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.price-band h3 {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.0125rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.price-band p {
  grid-column: 1;
  grid-row: 2;
  font-size: .9125rem;
  color: var(--gray);
  margin: .3rem 0 0;
  line-height: 1.5;
}

.price-band strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 520px) {
  .price-band {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .price-band strong {
    grid-column: 1;
    grid-row: auto;
    margin-top: .5rem;
    font-size: 1.25rem;
  }
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-section {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  border: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 1.375rem !important;
  color: var(--primary) !important;
  margin: 0 0 1.5rem !important;
  padding-left: 0 !important;
  border-left: none !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

.faq-item-static {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  border: 1px solid var(--border);
}

.faq-item-static:last-child { margin-bottom: 0; }

.faq-item-static strong {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--primary) !important;
  margin-bottom: .75rem !important;
  font-size: .9875rem;
  line-height: 1.45;
}

.faq-item-static strong::before {
  content: 'Q';
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .075rem;
}

.faq-item-static p {
  color: var(--gray) !important;
  margin: 0 !important;
  font-size: .9375rem;
  padding-left: 2.25rem;
  line-height: 1.7;
}

/* ── CTA Box ──────────────────────────────────────── */
.article-cta-box {
  background: linear-gradient(135deg, #040428 0%, #07073d 55%, #0d0d52 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3.5rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.article-cta-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,0,0,.15) 0%, transparent 65%);
  pointer-events: none;
}

.article-cta-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(8,8,120,.6) 0%, transparent 70%);
  pointer-events: none;
}

.article-cta-box h3 {
  color: #fff !important;
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: .875rem;
  position: relative;
  z-index: 1;
  border-left: none !important;
  padding-left: 0 !important;
}

.article-cta-box p {
  color: rgba(255,255,255,.72);
  margin-bottom: 1.875rem;
  font-size: 1.0625rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.article-cta-box .btn {
  position: relative;
  z-index: 1;
  color: #fff !important;
  text-decoration: none !important;
}
.article-cta-box .btn:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* Belt-and-suspenders: no link styles on any button in article body */
.article-body .btn,
.article-body .btn:hover,
.article-body .btn:focus {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* ── Related Articles ─────────────────────────────── */
.article-body > h2:last-of-type {
  border-left: none;
  padding-left: 0;
  font-size: 1.375rem;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.375rem 1.5rem;
  text-decoration: none !important;
  display: block;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.related-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  border-color: rgba(255,0,0,.18);
  text-decoration: none !important;
}

.related-card:hover::after { transform: scaleX(1); }

.related-card span {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .625rem;
  background: rgba(255,0,0,.07);
  padding: .2rem .6rem;
  border-radius: 100px;
}

.related-card h4 {
  font-size: .9375rem;
  color: var(--primary);
  line-height: 1.45;
  margin: 0;
  font-weight: 600;
  transition: color .2s;
}

.related-card:hover h4 { color: var(--accent); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .article-hero { padding: 5rem 0 3.5rem; }
  .article-body { padding: 3.5rem 1.25rem 0; }
}

@media (max-width: 640px) {
  .article-hero { padding: 4.5rem 0 3rem; }
  .article-body { padding: 2.5rem 1rem 0; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body h3 { font-size: 1.075rem; }
  .article-meta { gap: .875rem; font-size: .8rem; }
  .related-posts { grid-template-columns: 1fr; }
  .article-cta-box { padding: 2rem 1.5rem; }
  .article-cta-box h3 { font-size: 1.375rem; }
  .faq-section { padding: 1.75rem 1.25rem; }
  .article-body table { font-size: .875rem; }
  .article-body th,
  .article-body td { padding: .75rem .875rem; }
  .article-section { padding-bottom: 3.5rem; }
}
