/* ─── UVC Article Page — Shared Stylesheet ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #01152f;
  --navy-light: #081424;
  --gold: #C9A84C;
  --gold-light: #E8C96B;
  --white: #ffffff;
  --gray: #f4f6f9;
  --text: #01152f;
  --text-light: #4a5568;
  --border: #e5e7eb;
}

html { overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── NAVBAR ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); padding: 0 5%;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; height: 70px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.logo-text span { color: var(--gold); }

nav { display: flex; align-items: center; gap: 4px; justify-content: center; }
.menu__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  color: rgba(255,255,255,0.75); font-size: 13.5px; font-weight: 600;
  transition: all .2s;
}
.menu__item:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.menu__item.active { color: var(--gold); }
.menu__icon { font-size: 13px; }

/* ─── SERVICES DROPDOWN ─── */
.menu__item--has-drop { position: relative; cursor: pointer; }
.svc-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); min-width: 180px;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  padding: 6px 0; z-index: 200; overflow: hidden;
}
.menu__item--has-drop:hover .svc-dropdown,
.menu__item--has-drop:focus-within .svc-dropdown { display: block; animation: ddFade .15s ease; }
@keyframes ddFade { from { opacity:0; transform: translateX(-50%) translateY(-4px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.svc-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600;
  transition: background .15s, color .15s;
}
.svc-dd-item:hover { background: rgba(255,255,255,0.07); color: var(--gold); }
.svc-dd-item i { width: 14px; text-align: center; font-size: 12px; color: var(--gold); }
.svc-dd-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 2px 0; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-call {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); transition: background .2s;
}
.header-call:hover { background: rgba(255,255,255,0.08); }
.header-wa {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(37,211,102,0.15); color: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; border: 1px solid rgba(37,211,102,0.3); transition: background .2s;
}
.header-wa:hover { background: rgba(37,211,102,0.25); }
.btn-consult {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 8px; transition: filter .2s, transform .2s;
}
.btn-consult:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ─── ARTICLE HERO ─── */
.art-hero {
  background: linear-gradient(135deg, #01152f 0%, #071e42 60%, #0a2550 100%);
  padding: 110px 5% 56px; position: relative; overflow: hidden;
}
.art-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.art-hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.art-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.art-breadcrumb a { color: rgba(255,255,255,0.45); transition: color .2s; }
.art-breadcrumb a:hover { color: var(--gold); }
.art-breadcrumb i { font-size: 9px; }
.art-cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
}
.art-hero h1 {
  font-size: clamp(24px, 4vw, 42px); font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.art-hero-lead {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 24px;
}
.art-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.art-meta span { display: flex; align-items: center; gap: 6px; }
.art-meta i { color: var(--gold); }

/* ─── LAYOUT ─── */
.art-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 5% 80px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; align-items: start;
}

/* ─── ARTICLE BODY ─── */
.art-body { min-width: 0; }
.art-body h2 {
  font-size: clamp(20px, 2.5vw, 26px); font-weight: 800;
  color: var(--navy); margin: 40px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.art-body h3 {
  font-size: 18px; font-weight: 700;
  color: var(--navy); margin: 28px 0 12px;
}
.art-body p { font-size: 15.5px; color: #2d3748; line-height: 1.8; margin-bottom: 16px; }
.art-body ul, .art-body ol {
  margin: 12px 0 20px 20px; color: #2d3748; font-size: 15.5px;
}
.art-body li { margin-bottom: 8px; line-height: 1.7; }
.art-body strong { color: var(--navy); font-weight: 700; }

/* Tables */
.art-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid var(--border); }
.art-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.art-table th {
  background: var(--navy); color: var(--gold);
  padding: 12px 16px; text-align: left; font-weight: 700; font-size: 12.5px;
  letter-spacing: .5px;
}
.art-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: #2d3748; }
.art-table tr:last-child td { border-bottom: none; }
.art-table tr:nth-child(even) td { background: #fafafa; }

/* Info boxes */
.art-tip, .art-warn, .art-info, .art-success {
  border-radius: 12px; padding: 18px 20px;
  margin: 24px 0; display: flex; gap: 14px; align-items: flex-start;
}
.art-tip { background: #fffbeb; border-left: 4px solid var(--gold); }
.art-warn { background: #fff5f5; border-left: 4px solid #fc8181; }
.art-info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.art-success { background: #f0fdf4; border-left: 4px solid #22c55e; }
.art-tip-icon, .art-warn-icon, .art-info-icon, .art-success-icon {
  font-size: 18px; flex-shrink: 0; margin-top: 2px;
}
.art-tip-icon { color: var(--gold); }
.art-warn-icon { color: #fc8181; }
.art-info-icon { color: #3b82f6; }
.art-success-icon { color: #22c55e; }
.art-box-body { flex: 1; }
.art-box-title { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.art-box-text { font-size: 14px; color: #374151; line-height: 1.6; }

/* Step list */
.art-steps { counter-reset: step; list-style: none; margin: 16px 0 24px 0; padding: 0; }
.art-steps li {
  counter-increment: step;
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 18px; font-size: 15.5px; color: #2d3748; line-height: 1.7;
}
.art-steps li::before {
  content: counter(step);
  min-width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* Highlight stat cards */
.art-stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin: 24px 0;
}
.art-stat-card {
  background: var(--gray); border-radius: 12px;
  padding: 18px 16px; text-align: center;
  border: 1px solid var(--border);
}
.art-stat-val {
  font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1;
}
.art-stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* In-article CTA */
.art-cta-box {
  background: linear-gradient(135deg, var(--navy), #0a2550);
  border-radius: 16px; padding: 32px; margin: 40px 0;
  text-align: center;
}
.art-cta-box h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.art-cta-box p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 22px; line-height: 1.6; }
.art-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.art-cta-primary {
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 14px; padding: 12px 24px;
  border-radius: 10px; transition: filter .2s;
}
.art-cta-primary:hover { filter: brightness(1.08); }
.art-cta-secondary {
  background: rgba(37,211,102,0.15); color: #25D366;
  font-weight: 700; font-size: 14px; padding: 12px 24px;
  border-radius: 10px; border: 1.5px solid rgba(37,211,102,0.4);
  display: flex; align-items: center; gap: 7px;
}

/* ─── SIDEBAR ─── */
.art-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.sidebar-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
}
.sidebar-card-title {
  font-size: 12.5px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy), #0a2550);
  border-radius: 16px; padding: 26px; text-align: center;
}
.sidebar-cta h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.sidebar-cta-btn {
  display: block; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 13.5px; padding: 12px 20px;
  border-radius: 10px; margin-bottom: 10px; transition: filter .2s;
}
.sidebar-cta-btn:hover { filter: brightness(1.08); }
.sidebar-cta-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: #25D366; font-size: 13px; font-weight: 600;
}
.toc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  font-size: 13.5px; color: var(--text-light); display: flex;
  align-items: flex-start; gap: 8px; line-height: 1.4;
  padding: 6px 0; border-bottom: 1px solid #f3f4f6; transition: color .2s;
}
.toc-list a:hover { color: var(--navy); }
.toc-list a i { color: var(--gold); font-size: 10px; margin-top: 4px; flex-shrink: 0; }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 12px; border-bottom: 1px solid #f3f4f6;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-emoji { font-size: 24px; flex-shrink: 0; }
.related-item a { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; display: block; margin-bottom: 3px; transition: color .2s; }
.related-item a:hover { color: var(--gold); }
.related-item span { font-size: 11.5px; color: var(--text-light); }

/* ─── FOOTER ─── */
.art-footer {
  background: var(--navy); padding: 28px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.art-footer-links { display: flex; gap: 20px; }
.art-footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color .2s; }
.art-footer-links a:hover { color: var(--gold); }
.art-footer-copy { color: rgba(255,255,255,0.35); font-size: 12px; }

/* ─── MOBILE NAV HAMBURGER ─── */
.mob-menu-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 15px;
  width: 36px; height: 36px;
  border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
.mob-menu-btn:hover { background: rgba(255,255,255,0.18); }

.mob-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: #01152f;
  border-top: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 999;
  flex-direction: column;
  padding: 6px 0 14px;
}
.mob-nav.is-open { display: flex; }

.mob-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px;
  color: rgba(255,255,255,0.8);
  font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.mob-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.mob-nav-link i { color: var(--gold); width: 18px; text-align: center; flex-shrink: 0; }
.mob-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #01152f !important;
  margin: 12px 20px 0;
  border-radius: 10px;
  border-bottom: none !important;
  justify-content: center;
  font-weight: 700;
}
.mob-nav-cta i { color: #01152f !important; }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  nav { display: none !important; }
  .header-call { display: none !important; }
  .header-wa { display: none !important; }
  .btn-consult { display: none !important; }
  .mob-menu-btn { display: flex !important; }
  /* Prevent grid/flex children from overflowing their column */
  .art-body { min-width: 0; }
  .art-sidebar { min-width: 0; }
}
@media (max-width: 960px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { order: 2; position: static; }
}
@media (max-width: 600px) {
  /* ── Standardize all section gutters to 4% ── */
  .art-hero   { padding: 90px 4% 40px !important; }
  .art-layout { padding-left: 4% !important; padding-right: 4% !important; }
  .art-footer { padding-left: 4% !important; padding-right: 4% !important; flex-direction: column; text-align: center; }
  /* ── Prevent inline/fixed-width children from overflowing ── */
  .art-body > * { max-width: 100%; box-sizing: border-box; }
  .art-stats-row { grid-template-columns: 1fr 1fr; }
  .art-cta-btns { flex-direction: column; align-items: center; }
  .art-footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .art-table-wrap { font-size: 13px; overflow-x: auto; }
}
