/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, header, footer, nav, ul, li, a, img, p, h1, h2, h3, h4, h5, h6, button {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; }
ul { list-style: none; }

/* ===== Base typography ===== */
body {
  background-color: #171822;
  color: #c2c2c2;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
a {
  color: #ffa500;
}
a:hover {
  color: #ffa500;
}

/* ===== Layout container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-cta,
.btn-primary {
  background-color: #ff0000;
  color: #ffffff;
}
.btn-cta:hover,
.btn-primary:hover {
  background-color: #ff0000;
  color: #ffffff;
}
.btn-secondary {
  background-color: #33344f;
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #4e4f7a;
  color: #ffffff;
}

/* ===== Header ===== */
.site-header {
  background-color: #262739;
  border-bottom: 1px solid #4e4f7a;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #262739;
  border-top: 1px solid #4e4f7a;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}
.logo-img-footer {
  height: 32px;
}
.legal-line {
  color: #c2c2c2;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
@media (min-width: 900px) {
  .container {
    padding: 0 32px;
  }
  body {
    font-size: 17px;
  }
}

/* ===== Article page additions ===== */
.article-page {
  display: block;
}

/* Hero carousel */
.hero-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.carousel-track {
  display: flex;
  gap: 2px;
}
.carousel-slide {
  position: relative;
  flex: 1 0 85%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #262739;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
}
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,24,34,0) 0%, rgba(23,24,34,0.85) 100%);
}
.carousel-heading {
  position: relative;
  color: #ffffff;
  font-size: 1.3rem;
  max-width: 24ch;
}
.carousel-slide .btn {
  position: relative;
}

@media (min-width: 700px) {
  .hero-carousel { overflow-x: visible; }
  .carousel-track { gap: 16px; }
  .carousel-slide { flex: 1 1 33.3333%; min-height: 280px; }
}

/* Page title + TOC */
.page-title-toc {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 0;
}
.page-title-toc h1 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}
.page-title-toc > p {
  margin-bottom: 20px;
}
.toc-box {
  border: 1px solid #4e4f7a;
  border-radius: 8px;
  background-color: #262739;
  padding: 16px 20px;
}
.toc-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}
.toc-list {
  display: grid;
  gap: 8px;
}
.toc-list a {
  color: #ffa500;
}
.toc-list a:hover {
  color: #ffa500;
  text-decoration: underline;
}
@media (min-width: 700px) {
  .toc-list { grid-template-columns: 1fr 1fr; }
}

/* Intro banner */
.intro-banner {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 16px;
}
.intro-banner p {
  margin-bottom: 16px;
}
.promo-banner-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.promo-banner-img {
  width: 100%;
  border-radius: 8px;
}

/* Article body sections */
.article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.article-section,
.key-facts-section,
.trust-section,
.support-section,
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-section h2,
.key-facts-section h2,
.trust-section h2,
.support-section h2,
.faq-section h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid #4e4f7a;
  padding-bottom: 8px;
}
.section-img {
  border-radius: 8px;
  width: 100%;
}
.step-list {
  list-style: decimal;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.key-facts-section {
  text-align: left;
}
.key-facts-section .btn,
.article-section .btn,
.trust-section .btn {
  align-self: center;
}

/* Tables */
.kv-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #4e4f7a;
  overflow-x: auto;
  display: block;
}
.kv-table thead,
.kv-table tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.kv-table th,
.kv-table td {
  border: 1px solid #4e4f7a;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.kv-table th {
  background-color: #262739;
  color: #ffffff;
}
.kv-table tbody tr:nth-child(even) {
  background-color: #1d1e2c;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid #4e4f7a;
  border-radius: 8px;
  padding: 14px 18px;
  background-color: #262739;
}
.faq-item dt {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-item dd {
  margin: 0;
}

@media (min-width: 900px) {
  .page-title-toc,
  .intro-banner,
  .article-body {
    padding-left: 32px;
    padding-right: 32px;
  }
}