/* ================================================================
   HERE Technologies eMagazine — AutoPro
   main.css — CDN VCCorp GenK
   Slug: here-twowheeler-emagazine20260526
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

/* Fix CMS GenK: body bị apply max-width 720px của bài thường,
   override để eMag template hiển thị đúng >= 980px */
body {
  max-width: 1080px !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
  font-family: 'Be Vietnam Pro', 'Inter', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: #14140F;
  background: #fff;
  counter-reset: xm-section;
}

/* ---- Progress bar ---- */
.xm-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #00AFAA;
  width: 0%;
  z-index: 9999;
  transition: width 0.15s ease-out;
}

/* ---- Hero ---- */
.xm-hero {
  position: relative;
  width: 100%;
  background: #0a1a1a;
  overflow: hidden;
}

.xm-hero img.xm-hero-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.xm-hero img.xm-hero-img.loaded { opacity: 1; }

/* ---- Article body ---- */
.xm-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.xm-article p {
  font-size: 17px;
  line-height: 1.72;
  color: #14140F;
  margin-bottom: 1.1rem;
  font-weight: 400;
}

/* ---- Section heading ---- */
.xm-section-heading {
  counter-increment: xm-section;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.22;
  color: #14140F;
  margin: 3rem 0 1.5rem;
  padding: 0 1rem;
}

.xm-section-heading::before {
  content: counter(xm-section, decimal-leading-zero) ".";
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #00AFAA;
  opacity: 0.32;
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

/* ---- Section banner (ảnh phân chương) ---- */
.xm-section-banner {
  width: 100%;
  margin: 48px 0;
  overflow: hidden;
}

.xm-section-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Diptych: ảnh + bio ---- */
.xm-diptych {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin: 40px 0;
  padding: 28px;
  background: #F5F5F0;
  border-radius: 4px;
  align-items: center;
}

.xm-diptych img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.xm-diptych-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00AFAA;
  margin-bottom: 6px;
}

.xm-diptych-name {
  font-size: 22px;
  font-weight: 700;
  color: #14140F;
  margin-bottom: 4px;
}

.xm-diptych-role {
  font-size: 14px;
  font-style: italic;
  color: #5a5852;
  margin-bottom: 14px;
}

.xm-diptych-bio {
  font-size: 15px;
  line-height: 1.55;
  color: #3a3832;
}

/* ---- Stats band ---- */
.xm-stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0;
  width: 100%;
  overflow: hidden;
}

.xm-stat-item {
  background: linear-gradient(135deg, #F0FAF9 0%, #E5F4F2 100%);
  padding: 22px 16px;
  border-top: 3px solid #00AFAA;
  text-align: center;
  border-radius: 4px;
}

.xm-stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: #008580;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.xm-stat-label {
  font-size: 14px;
  line-height: 1.45;
  color: #2a2925;
  font-weight: 500;
}

/* ---- Pull number ---- */
.xm-pull-number {
  margin: 36px 0;
  padding: 28px 24px;
  background: #14140F;
  color: #F5F2EA;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
}

.xm-pull-number-big {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 0.95;
  color: #00AFAA;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.xm-pull-number-big .unit {
  font-size: 0.5em;
  color: #F5F2EA;
  margin-left: 4px;
}

.xm-pull-number-text {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(245,242,234,0.88);
}

.xm-pull-number-text strong { color: #F5F2EA; font-weight: 600; }

/* ---- Pull quote ---- */
.xm-pull-quote {
  margin: 36px 0;
  padding: 28px 32px;
  background: #F0FAF9;
  border-left: 4px solid #00AFAA;
  position: relative;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}

.xm-pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px; left: 16px;
  font-size: 76px;
  line-height: 1;
  color: #00AFAA;
  font-family: Georgia, serif;
  font-weight: 700;
  opacity: 0.6;
}

.xm-pull-quote p {
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-style: italic;
  color: #14140F;
  margin: 0 0 14px 0 !important;
  font-weight: 500;
}

.xm-pull-quote cite {
  font-size: 13px;
  font-style: normal;
  color: #5a5852;
  letter-spacing: 0.02em;
  display: block;
  padding-left: 32px;
  position: relative;
}

.xm-pull-quote cite::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 1px;
  background: #5a5852;
}

/* ---- Figure ---- */
.xm-figure {
  margin: 36px 0;
  overflow: hidden;
}

.xm-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.xm-figure-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #5a5852;
  font-style: italic;
  text-align: center;
  line-height: 1.45;
}

/* ---- Closing italic ---- */
.xm-closing {
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: #14140F;
  text-align: center;
  padding: 32px 0;
  margin: 48px 0;
  border-top: 1px solid #C9C2B0;
  border-bottom: 1px solid #C9C2B0;
}

/* ---- Box info ---- */
.xm-box-info {
  margin: 36px 0;
  padding: 22px 26px;
  background: #F0FAF9;
  border-left: 4px solid #00AFAA;
  border-radius: 0 4px 4px 0;
}

.xm-box-info p {
  margin-bottom: 0.5rem !important;
  font-size: 15px !important;
}

/* ---- Author credit ---- */
.xm-author {
  border-top: 2px solid #14140F;
  padding: 28px 0 0;
  margin: 48px 0 0;
}

.xm-author-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.xm-author-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a5852;
  min-width: 130px;
  flex-shrink: 0;
}

.xm-author-value {
  font-size: 15px;
  font-weight: 600;
  color: #14140F;
}

/* ---- Footer strip ---- */
.xm-footer {
  background: #0a0a0a;
  color: #c8c8c8;
  padding: 20px 28px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.xm-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.xm-footer-badge .e {
  background: #00AFAA;
  color: #000;
  width: 20px; height: 20px;
  border-radius: 3px;
  text-align: center;
  line-height: 20px;
  font-style: italic;
  font-weight: 800;
}

.xm-footer-credit { color: #888; }
.xm-footer-credit strong { color: #fff; font-weight: 600; }

/* ---- Reveal animation ---- */
.xm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.xm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .xm-article { padding: 40px 20px 32px; }
  .xm-stats-band { grid-template-columns: 1fr; }
  .xm-stat-number { font-size: 36px; }
  .xm-pull-number { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .xm-pull-number-big { font-size: 52px; }
  .xm-diptych { grid-template-columns: 1fr; text-align: center; }
  .xm-diptych img { max-width: 180px; margin: 0 auto; }
  .xm-pull-quote { padding: 22px 20px; }
  .xm-section-heading { font-size: 24px; }
  .xm-section-heading::before { font-size: 40px; }
  .xm-author-row { flex-direction: column; gap: 2px; }
  .xm-author-label { min-width: 0; }
}
