/* ═══════════════════════════════════════════════════════════════
   ARTICLE / GUIDE PAGE — Scoped Styles (.ar-*)
   Full-width blog article layout for Urbance guides
   ═══════════════════════════════════════════════════════════════ */

.ar-page {
  --ar-blue:     #2F80ED;
  --ar-blue-lt:  #EAF2FF;
  --ar-blue-dk:  #1a6bd4;
  --ar-text:     #1A202C;
  --ar-muted:    #4A5568;
  --ar-light:    #6B7280;
  --ar-border:   #E2E8F0;
  --ar-bg:       #F8FAFC;
  --ar-white:    #ffffff;
  --ar-radius:   16px;
  --ar-max:      760px;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.ar-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 140px 24px 0;
  position: relative;
  overflow: hidden;
}

.ar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(47,128,237,.18) 0%, transparent 70%);
  pointer-events: none;
}

.ar-hero__inner {
  max-width: var(--ar-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.ar-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.ar-hero__breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}

.ar-hero__breadcrumb a:hover { color: #fff; }

.ar-hero__breadcrumb span {
  color: rgba(255,255,255,.25);
}

.ar-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ar-blue-lt);
  background: rgba(47,128,237,.2);
  border: 1px solid rgba(47,128,237,.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.ar-hero__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0 0 20px;
}

.ar-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.ar-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ar-hero__meta-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ─── HERO IMAGE ────────────────────────────────────────────── */
.ar-hero__img {
  margin: 0 -24px;
  width: calc(100% + 48px);
  max-width: calc(var(--ar-max) + 48px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
}

/* Actually keep image inside the content column */
.ar-cover {
  max-width: var(--ar-max);
  margin: 0 auto 0;
  padding: 0 24px;
}

.ar-cover__img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--ar-radius) var(--ar-radius) 0 0;
  display: block;
  margin-top: -1px;
}

/* ─── ARTICLE BODY ──────────────────────────────────────────── */
.ar-body {
  max-width: var(--ar-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Typography */
.ar-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--ar-text);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 48px 0 16px;
}

.ar-body h2:first-child { margin-top: 0; }

.ar-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ar-text);
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 32px 0 12px;
}

.ar-body p {
  font-size: 1.07rem;
  color: var(--ar-muted);
  line-height: 1.78;
  margin: 0 0 22px;
}

.ar-body a {
  color: var(--ar-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.ar-body a:hover { color: var(--ar-blue-dk); }

.ar-body ul,
.ar-body ol {
  margin: 0 0 24px;
  padding-left: 1.5rem;
  color: var(--ar-muted);
  font-size: 1.07rem;
  line-height: 1.78;
}

.ar-body li {
  margin-bottom: 10px;
}

.ar-body strong {
  color: var(--ar-text);
  font-weight: 700;
}

/* ─── HIGHLIGHT BOX ─────────────────────────────────────────── */
.ar-highlight {
  background: var(--ar-blue-lt);
  border-left: 4px solid var(--ar-blue);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 1.01rem;
  color: #1a3a6b;
  line-height: 1.65;
}

.ar-highlight strong {
  color: var(--ar-blue-dk);
}

/* ─── CHECKLIST ─────────────────────────────────────────────── */
.ar-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.ar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.01rem;
  color: var(--ar-muted);
  line-height: 1.65;
  padding: 10px 0;
  border-bottom: 1px solid var(--ar-border);
}

.ar-checklist li:last-child { border-bottom: none; }

.ar-checklist li::before {
  content: "";
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--ar-blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ─── PULL QUOTE ────────────────────────────────────────────── */
.ar-pullquote {
  border: none;
  margin: 36px 0;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--ar-blue);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ar-text);
  font-weight: 600;
  line-height: 1.5;
}

/* ─── CTA BOX (inline article promo) ───────────────────────── */
.ar-cta-box {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-radius: var(--ar-radius);
  padding: 36px 40px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(37,99,235,.35);
  position: relative;
  overflow: hidden;
}

.ar-cta-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.ar-cta-box__text {
  flex: 1 1 260px;
}

.ar-cta-box__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: 8px;
}

.ar-cta-box__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0 0 10px;
}

.ar-cta-box__sub {
  font-size: .92rem;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  margin: 0;
}

.ar-cta-box__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #ffffff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
  border-radius: 10px;
  transition: background .17s, transform .17s, box-shadow .17s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.ar-cta-box__btn:hover {
  background: #eff6ff;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.ar-cta-box__btn svg {
  width: 14px;
  height: 14px;
}

/* ─── NUMBERED STEPS ────────────────────────────────────────── */
.ar-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  counter-reset: ar-step;
}

.ar-steps li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ar-border);
  counter-increment: ar-step;
}

.ar-steps li:last-child { border-bottom: none; }

.ar-steps li::before {
  content: counter(ar-step);
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ar-blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ar-steps li > div {
  display: flex;
  flex-direction: column;
}

.ar-steps li strong {
  font-size: 1rem;
  color: var(--ar-text);
  font-weight: 700;
  margin-bottom: 4px;
}

.ar-steps li span {
  font-size: .93rem;
  color: var(--ar-muted);
  line-height: 1.65;
}

/* ─── ARTICLE IMAGE ─────────────────────────────────────────── */
.ar-img {
  margin: 32px 0;
  border-radius: var(--ar-radius);
  overflow: hidden;
}

.ar-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ar-img figcaption {
  font-size: .78rem;
  color: var(--ar-light);
  padding: 10px 14px 0;
  font-style: italic;
}

/* ─── TAG LIST ──────────────────────────────────────────────── */
.ar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 28px;
}

.ar-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ar-blue);
  background: var(--ar-blue-lt);
  border: 1px solid rgba(47,128,237,.15);
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
}

/* ─── DIVIDER ────────────────────────────────────────────────── */
.ar-divider {
  border: none;
  border-top: 1px solid var(--ar-border);
  margin: 40px 0;
}

/* ─── RELATED ARTICLES ──────────────────────────────────────── */
.ar-related {
  max-width: var(--ar-max);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.ar-related__heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ar-text);
  letter-spacing: -.01em;
  margin: 0 0 24px;
}

.ar-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ar-related__card {
  background: var(--ar-white);
  border: 1px solid var(--ar-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.ar-related__card:hover {
  box-shadow: 0 8px 24px rgba(47,128,237,.1);
  border-color: rgba(47,128,237,.22);
  transform: translateY(-2px);
}

.ar-related__card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.ar-related__card-body {
  padding: 14px 16px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ar-related__card-tag {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ar-blue);
  margin-bottom: 6px;
}

.ar-related__card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ar-text);
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* ─── PRE-FOOTER ────────────────────────────────────────────── */
.ar-prefooter {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.ar-prefooter__bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(60px, 14vw, 140px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.032);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.ar-prefooter__inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ar-prefooter__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.ar-prefooter__title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.ar-prefooter__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin: 0 0 30px;
}

.ar-prefooter__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ar-prefooter__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
}

.ar-prefooter__link--primary {
  background: var(--ar-blue);
  color: #fff;
}

.ar-prefooter__link--primary:hover {
  background: var(--ar-blue-dk);
  transform: translateY(-1px);
}

.ar-prefooter__link:not(.ar-prefooter__link--primary) {
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.22);
}

.ar-prefooter__link:not(.ar-prefooter__link--primary):hover {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ar-hero { padding: 120px 20px 0; }
  .ar-body { padding: 36px 20px 64px; }
  .ar-related { padding: 0 20px 48px; }
  .ar-related__grid { grid-template-columns: 1fr; }
  .ar-cta-box { padding: 24px 20px; flex-direction: column; gap: 18px; }
  .ar-cta-box__btn { width: 100%; justify-content: center; }
  .ar-prefooter { padding: 64px 20px; }
}

@media (max-width: 900px) {
  .ar-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .ar-related__grid { grid-template-columns: 1fr; }
}
