/* Broker Comparison Hub – Green theme (safe, reassuring) */

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --accent: #52b788;
  --bg: #f0f7f4;
  --bg-card: #ffffff;
  --text: #1a2a2a;
  --text-muted: #5a6a6a;
  --border: #b7d9c8;
  --header-bg: #2d6a4f;
  --header-text: #ffffff;
  --footer-bg: #1b4332;
  --footer-text: #e8f5e9;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(45, 106, 79, 0.1);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
  /* Nền gradient nhẹ + gợi chart (đường kẻ mờ) */
  background-image:
    linear-gradient(135deg, rgba(45, 106, 79, 0.04) 0%, transparent 40%),
    linear-gradient(225deg, rgba(64, 145, 108, 0.03) 0%, transparent 45%),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(45, 106, 79, 0.03) 60px, rgba(45, 106, 79, 0.03) 61px),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(45, 106, 79, 0.02) 48px, rgba(45, 106, 79, 0.02) 49px),
    linear-gradient(180deg, #f5faf8 0%, #eef5f1 35%, #f0f7f4 70%, #f8fbf9 100%);
  background-attachment: fixed;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Top bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--footer-text);
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar .tagline {
  opacity: 0.95;
}

.top-bar .social-links a {
  color: inherit;
  text-decoration: none;
  margin-left: 1rem;
  opacity: 0.9;
}

.top-bar .social-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 8px 16px 8px 6px;
  margin: -8px 0 -8px -6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.logo:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Logo to hơn, nổi bật trên header */
.logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Ẩn chữ khi có logo ảnh */
.logo:has(.logo-img) .logo-text {
  display: none;
}

.logo-text {
  letter-spacing: -0.02em;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.85rem;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.main-nav .has-dropdown {
  position: relative;
}

.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  margin-top: 4px;
}

.main-nav .has-dropdown:hover > .dropdown {
  display: block;
}

/* Nested dropdown: "Top 5 by Country" → countries with flags */
.main-nav .has-subdropdown {
  position: relative;
}
.main-nav .dropdown-sub {
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: 2px;
  min-width: 180px;
}
.main-nav .has-subdropdown:hover > .dropdown-sub {
  display: block;
}
.main-nav .nav-arrow {
  margin-left: 4px;
  opacity: 0.7;
  font-size: 1rem;
}
.main-nav .nav-flag {
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
  object-fit: cover;
}

.main-nav .dropdown a {
  color: var(--primary-dark);
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.main-nav .dropdown a:hover {
  background: rgba(45, 106, 79, 0.12);
  border-left-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 1px;
}

/* Hero: nền nhẹ, có ảnh/minh họa, ít màu (thu gọn, không CTA) */
.hero {
  position: relative;
  padding: 20px 0 28px;
  overflow: hidden;
}

.hero-with-image {
  color: var(--primary-dark);
  /* Gradient sinh động + gợi màn hình trading */
  background: linear-gradient(145deg, #e8f2ee 0%, #dcebe4 25%, #d4e6dd 50%, #e2efe8 75%, #eef5f1 100%);
  position: relative;
  overflow: hidden;
}

.hero-with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Pattern grid nhẹ kiểu chart */
  background-image:
    linear-gradient(rgba(27, 67, 50, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 67, 50, 0.06) 1px, transparent 1px);
  background-size: 32px 24px;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  /* Gradient phủ thêm để không quá rối */
  background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(45, 106, 79, 0.05) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  max-width: 1040px;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--primary-dark);
}

.hero-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
}

.hero-cta {
  margin: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.hero-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  min-height: 120px;
  display: block;
  border-radius: var(--radius);
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero {
    padding: 16px 0 20px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; min-height: 100px; }
  .hero-img { max-width: 220px; min-height: 80px; margin: 0 auto; }
}

.hero-subtitle {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary-dark);
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-hero:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

/* Trust signals (safety) - kept for any reuse */
.trust-signals {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (max-width: 640px) {
  .trust-signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-signal-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.trust-signal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
}

/* Broker Comparison Table – vùng quan trọng, nổi bật one-screen + CTA */
.section-top-table.broker-table-spotlight {
  background: linear-gradient(165deg, rgba(45, 106, 79, 0.08) 0%, rgba(255,255,255,0.95) 40%, var(--bg-card) 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 32px 28px 36px;
  margin-bottom: 48px;
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.section-top-table.broker-table-spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(45, 106, 79, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.broker-table-head {
  text-align: center;
  margin-bottom: 28px;
}

.broker-table-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(45, 106, 79, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.broker-table-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
  margin-bottom: 8px !important;
}

.broker-table-availability {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.broker-table-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.table-wrap {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow-x: hidden;
}
.table-wrap::-webkit-scrollbar {
  height: 6px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.broker-table-disclaimer {
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.broker-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.broker-table th,
.broker-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  overflow-wrap: break-word;
}
.broker-table th:nth-child(1),
.broker-table td:nth-child(1) { width: 7%; }
.broker-table th:nth-child(2),
.broker-table td:nth-child(2) { width: 42%; }
.broker-table th:nth-child(3),
.broker-table td:nth-child(3) { width: 14%; }
.broker-table th:nth-child(4),
.broker-table td:nth-child(4) { width: 14%; }
.broker-table th:nth-child(5),
.broker-table td:nth-child(5) { width: 23%; }

.broker-table th {
  background: var(--primary-dark);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Cột # */
.broker-table .col-num {
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
.broker-table th.col-num {
  color: #fff !important;
}
.broker-table td.col-num {
  color: var(--text-muted);
}

.broker-table .col-broker,
.broker-table .col-deposit,
.broker-table .col-years,
.broker-table .col-action {
  vertical-align: middle;
}

.broker-table .col-deposit,
.broker-table .col-years,
.broker-table .col-action,
.broker-table th.col-deposit,
.broker-table th.col-years,
.broker-table th.col-action {
  text-align: center;
}

.broker-table th:last-child {
  text-align: center;
}

.broker-table tbody tr:nth-child(even) {
  background: rgba(45, 106, 79, 0.06);
}
.broker-table tbody tr:hover {
  background: rgba(45, 106, 79, 0.1);
}

.broker-table tbody tr:last-child td {
  border-bottom: none;
}

.broker-table td:last-child {
  text-align: center;
  vertical-align: middle;
}

.broker-table-broker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.broker-table-broker-copy {
  min-width: 0;
}

.broker-table-broker-copy strong {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
}

.broker-table-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.broker-table-logo {
  display: block;
  flex-shrink: 0;
  width: clamp(56px, 7vw, 72px);
  height: auto;
  max-width: 100%;
  max-height: clamp(32px, 4.5vw, 48px);
  object-fit: contain;
}

/* Broker comparison table only: scale up logos (Octa, Vantage +10%; FBS +116%; Lite +99%; HFM +44%; FXTM +25%) */
.broker-table tbody tr:nth-child(3) .broker-table-logo,
.broker-table tbody tr:nth-child(4) .broker-table-logo {
  transform: scale(1.1);
}
.broker-table tbody tr:nth-child(5) .broker-table-logo {
  transform: scale(2.16);
}
.broker-table tbody tr:nth-child(8) .broker-table-logo {
  transform: scale(1.99);
}
.broker-table tbody tr:nth-child(7) .broker-table-logo {
  transform: scale(1.44);
}
.broker-table tbody tr:nth-child(9) .broker-table-logo {
  transform: scale(1.25);
}

/* SVG logo (e.g. FXTM) hiển thị đúng trên desktop */
.broker-table-logo[src$=".svg"],
.broker-logo-img[src$=".svg"] {
  min-width: 48px;
  min-height: 48px;
  vertical-align: middle;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* CTA Visit site – nổi bật, rõ hành động */
.btn-cta-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  padding: clamp(8px, 1.2vw, 10px) clamp(10px, 1.5vw, 14px);
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  font-weight: 700;
  line-height: 1.2;
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--primary-dark);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.4);
}

.btn-cta-table:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.5);
}
.btn-cta-table-arrow {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .section-top-table.broker-table-spotlight {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 24px 16px 28px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .table-wrap {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .broker-table th,
  .broker-table td {
    padding: 10px 5px;
    font-size: 0.82rem;
  }

  .broker-table th:nth-child(1),
  .broker-table td:nth-child(1) { width: 8%; }
  .broker-table th:nth-child(2),
  .broker-table td:nth-child(2) { width: 40%; }
  .broker-table th:nth-child(3),
  .broker-table td:nth-child(3) { width: 16%; }
  .broker-table th:nth-child(4),
  .broker-table td:nth-child(4) { width: 14%; }
  .broker-table th:nth-child(5),
  .broker-table td:nth-child(5) { width: 22%; }

  .broker-table-broker {
    gap: 8px;
    align-items: flex-start;
  }

  .broker-table-logo {
    width: clamp(48px, 14vw, 60px);
    max-height: 38px;
  }

  .broker-table-meta {
    display: none;
  }

  .btn-cta-table {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* Quick comparison */
.quick-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .quick-compare-grid {
    grid-template-columns: 1fr;
  }
}

.quick-compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.quick-compare-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.quick-compare-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: var(--text);
}

.quick-compare-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quick-compare-list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.quick-compare-list li:last-child {
  border-bottom: none;
}

/* How to choose a broker (education) */
.choose-broker-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.choose-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.choose-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.choose-step-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.choose-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.choose-broker-cta {
  margin: 24px 0 0;
}

/* Educational blocks (How to start, How to choose, Risk awareness) */
.education-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .education-blocks {
    grid-template-columns: 1fr;
  }
}

.education-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Vùng ảnh 3 box bằng nhau */
.education-block-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  height: 120px;
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

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

.education-block-body {
  padding: 24px;
}

.education-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.education-block-body p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.education-more-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 24px 0 12px;
}

.education-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.education-links.links-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

/* Link tham khảo: More guides, More regions, FAQ list — rõ là link, hấp dẫn */
.education-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 6px 4px 0;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.education-links a:hover {
  color: var(--primary-dark);
  background: rgba(45, 106, 79, 0.1);
  padding-left: 6px;
  padding-right: 6px;
}

/* For Beginners: 3 link, tạm thời chưa có link tham khảo */
.beginners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beginners-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 6px 4px 0;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.beginners-list a:hover {
  color: var(--primary-dark);
  background: rgba(45, 106, 79, 0.1);
  padding-left: 6px;
  padding-right: 6px;
}

/* Read review / Read guide — rõ ràng là link, dễ nhận */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 0;
  transition: color 0.2s, background 0.2s;
}

.link-arrow:hover {
  color: var(--primary-dark);
  background: rgba(45, 106, 79, 0.08);
  border-radius: 4px;
  padding-left: 8px;
  padding-right: 8px;
}

/* Review section: 5 featured cards (desktop 5 cols) + more pills */
.section-review {
  margin-bottom: 48px;
}

.review-featured {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .review-featured {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-review .review-card-thumb {
    min-height: 56px;
    height: 56px;
    padding: 8px;
  }

  .section-review .review-card-thumb img {
    max-width: 80px;
    max-height: 40px;
  }

  .section-review .review-card-title,
  .section-review .review-card-desc,
  .section-review .review-card .link-arrow {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-review .review-card-title {
    padding-top: 10px;
    font-size: 0.92rem;
    margin: 0 0 4px;
  }

  .section-review .review-card-desc {
    padding-bottom: 4px;
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .section-review .review-card .link-arrow {
    padding-bottom: 12px;
    font-size: 0.88rem;
  }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.review-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  height: 96px;
  background: var(--bg);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.review-card-thumb img {
  display: block;
  max-width: 120px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.post-review-logo img {
  display: block;
  max-width: 120px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.review-card-title,
.review-card-desc,
.review-card .link-arrow {
  padding-left: 24px;
  padding-right: 24px;
}

.review-card-title {
  padding-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.review-card-desc {
  padding-bottom: 8px;
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.review-card .link-arrow {
  display: inline-flex;
  padding-bottom: 24px;
}

.review-card-title a {
  color: var(--primary-dark);
  text-decoration: none;
}

.review-card-title a:hover {
  text-decoration: underline;
}

/* More broker reviews: card + pills (gọn, dễ nhìn, bắt mắt) */
.review-more-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.review-more-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(45, 106, 79, 0.06);
  border: 1px solid rgba(45, 106, 79, 0.35);
  border-radius: 999px;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.review-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.35);
}

.review-pill-logo {
  width: 24px;
  height: 24px;
  min-width: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

/* How We Compare Brokers */
.compare-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .compare-blocks {
    grid-template-columns: 1fr;
  }
}

.compare-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* Why Trust Our Comparison – single trust box */
.trust-one-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.trust-one-lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin: 0 0 16px;
  line-height: 1.6;
}

.trust-one-block p:last-child {
  margin: 0;
}

.trust-one-block p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-one-block a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.trust-one-block a:hover {
  color: var(--primary-dark);
}

.compare-block-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.compare-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ mainpage: 1 box dọc, 10 câu – phân biệt câu hỏi / câu trả lời */
.section-faq-main .faq-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-faq-main .faq-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.section-faq-main .faq-item:last-child {
  border-bottom: none;
}

.section-faq-main .faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 8px;
  line-height: 1.35;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.section-faq-main .faq-answer {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid transparent;
}

.section-faq-main .faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

.section-faq-main .faq-answer a:hover {
  color: var(--primary-dark);
}

/* How We Compare – 9 criteria grid */
.compare-criteria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 560px) {
  .compare-criteria {
    grid-template-columns: 1fr;
  }
}

.compare-criterion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  padding-top: 36px;
}

.compare-criterion-icon {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 10px;
  text-align: center;
}

.compare-criterion-num {
  position: absolute;
  top: 14px;
  left: 20px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.compare-criterion-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.compare-criterion p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Broker Comparison by Region (same section layout as others) */
.region-selector-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.region-selector-wrap .country-selector {
  margin: 0;
}

/* Region blocks: 3 cột — Asia | Africa | Other Countries */
.region-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .region-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .region-blocks {
    grid-template-columns: 1fr;
  }
}

.region-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.region-block-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--primary-dark);
}

.region-block .country-selector {
  margin: 0;
  gap: 10px;
}

/* Country selector section */
.country-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(45, 106, 79, 0.06);
  border: 1px solid rgba(45, 106, 79, 0.35);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.country-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.country-flag {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

.country-flag-img {
  display: inline-block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Trust section (Regulation, Security, Risk disclaimer) */
.trust-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .trust-blocks {
    grid-template-columns: 1fr;
  }
}

.trust-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.trust-block-disclaimer {
  border-color: var(--primary-light);
  background: rgba(13, 115, 119, 0.06);
}

.trust-block-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.trust-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: block;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-size: 1.2rem;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 16px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Layout: content + sidebar – content thu hẹp để vừa màn, sidebar khít */
.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  padding: 28px 0 24px;
  align-items: start;
  max-width: 100%;
  overflow-x: hidden;
}

/* Phần content (từ comparison table trở xuống) cân đối, không quá hẹp */
.layout .content {
  min-width: 0;
  max-width: 900px;
}

.sidebar {
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Inner pages: About, Trust */
.page-main {
  padding: 48px 0 64px;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog post template (post.html) */
.post-header {
  text-align: left;
}
.post-header .page-lead {
  margin-left: 0;
  margin-right: 0;
}
.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.post-meta a {
  color: var(--primary);
  text-decoration: none;
}
.post-meta a:hover {
  text-decoration: underline;
}
.post-content {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}
.post-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 2em 0 0.5em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.post-content h2:first-of-type {
  margin-top: 1.5em;
}
.post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5em 0 0.4em;
}
.post-content p {
  margin: 0 0 1em;
}
.post-content ul {
  margin: 0 0 1em 1.25em;
  padding: 0;
}
.post-content li {
  margin-bottom: 0.35em;
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover {
  color: var(--primary-dark);
}

.content-prose {
  max-width: 720px;
  margin: 0 auto;
}

.page-section {
  margin-bottom: 36px;
}

.page-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

.page-section p,
.page-section ul {
  margin: 0 0 1em;
  line-height: 1.65;
  color: var(--text);
}

.page-section ul {
  padding-left: 1.4em;
}

.page-section li {
  margin-bottom: 0.4em;
}

.page-section-ads {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.content-prose a {
  color: var(--primary);
  text-decoration: none;
}

.content-prose a:hover {
  text-decoration: underline;
}

/* About page: intro card + values + contact */
.page-about .page-lead {
  max-width: 680px;
}

.about-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.about-intro-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

.about-value-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.about-value-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.about-value-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-about .about-section {
  margin-bottom: 40px;
}

.page-about .about-section h2 {
  margin-bottom: 14px;
}

.page-about .about-section ul {
  margin-bottom: 1.2em;
}

.about-contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 16px;
  max-width: 480px;
}

.about-contact-box p {
  margin: 0 0 8px;
}

.about-contact-box p:last-child {
  margin-bottom: 0;
}

.about-contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px !important;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

/* Section nền nhẹ xen kẽ – gợi forex/trading */
.section-education,
.section-beginners {
  padding: 28px 0 8px;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(45, 106, 79, 0.04) 0%, transparent 30%, transparent 70%, rgba(64, 145, 108, 0.03) 100%);
}

.section-region {
  padding: 28px 0 8px;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, transparent 0%, rgba(45, 106, 79, 0.03) 50%, transparent 100%);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.section-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.section-desc a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}
.section-desc a:hover {
  color: var(--primary-dark);
}

/* Broker cards */
.popular-brokers {
  margin-bottom: 48px;
}

.broker-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .broker-cards {
    grid-template-columns: 1fr;
  }
}

.broker-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.broker-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.broker-logo-placeholder {
  width: 80px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.broker-a { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.broker-b { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); }
.broker-c { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%); }

.broker-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.broker-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
}

.article-title a {
  color: var(--text);
  text-decoration: none;
}

.article-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About the site section */
.section-about-site .about-site-body {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-site-body p {
  margin: 0 0 1em;
  line-height: 1.65;
}

.about-site-body p:last-of-type {
  margin-bottom: 0;
}

.about-site-body ul {
  margin: 0 0 1em;
  padding-left: 1.4em;
  line-height: 1.65;
}

.about-site-body li {
  margin-bottom: 0.35em;
}

/* Popular brokers full-width section */
.popular-brokers-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--header-text);
  padding: 48px 0 56px;
}

.section-title-light {
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.section-desc-light {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 32px;
}

.popular-brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.popular-broker-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.popular-broker-logo {
  width: 80px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.popular-broker-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}

.popular-broker-desc {
  font-size: 0.85rem;
  margin: 0 0 16px;
  opacity: 0.9;
}

.popular-broker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.popular-broker-actions .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Sidebar */
/* Sidebar scrolls naturally with page (no sticky) */
.sidebar {
  position: relative;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Broker Popular - 10 logo grid, 2 per row */
.broker-popular .broker-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.broker-logo-item {
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.broker-logo-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.broker-logo-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.broker-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

/* Sidebar: Vantage, LiteFinance, Markets4You – slightly smaller (items 5, 7, 10) */
.broker-logo-item:nth-child(1) .broker-logo-demo { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.broker-logo-item:nth-child(2) .broker-logo-demo { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%); }
.broker-logo-item:nth-child(3) .broker-logo-demo { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); }
.broker-logo-item:nth-child(4) .broker-logo-demo { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); }
.broker-logo-item:nth-child(5) .broker-logo-demo { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%); }
.broker-logo-item:nth-child(6) .broker-logo-demo { background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%); }
.broker-logo-item:nth-child(7) .broker-logo-demo { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.broker-logo-item:nth-child(8) .broker-logo-demo { background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%); }
.broker-logo-item:nth-child(9) .broker-logo-demo { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%); }
.broker-logo-item:nth-child(10) .broker-logo-demo { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }

/* TradingView in sidebar: vertical list, no horizontal scroll */
/* Live Quotes – TradingView widget realtime */
.tradingview-widget .widget-title {
  margin-bottom: 12px;
}

.tradingview-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.tradingview-widget-container {
  width: 100%;
  min-height: 400px;
  overflow: hidden;
}

.tradingview-widget-container iframe {
  max-width: 100%;
  overflow: hidden;
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.widget-links,
.widget-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-links li,
.widget-posts li {
  margin-bottom: 10px;
}

.widget-links a,
.widget-posts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 6px 4px 0;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.widget-links a:hover,
.widget-posts a:hover {
  color: var(--primary-dark);
  background: rgba(45, 106, 79, 0.1);
  padding-left: 6px;
  padding-right: 6px;
}

.widget-cat {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.broker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
}

.ad-placeholder .ad-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.ad-box {
  min-height: 120px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sidebar banner (120x600) */
.sidebar-banner .ad-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.sidebar-banner-link {
  display: block;
  text-align: center;
}
.sidebar-banner-img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Banner ngang (720x90) */
.banner-horizontal-wrap {
  padding: 20px 0;
}
.banner-horizontal-link {
  display: block;
  text-align: center;
}
.banner-horizontal-img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 115, 119, 0.2);
}

/* Disclaimer strip */
.disclaimer-strip {
  background: var(--primary-dark);
  color: var(--footer-text);
  padding: 32px 0;
}

.disclaimer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.disclaimer-strip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.95;
}

.disclaimer-copyright {
  margin-top: 16px !important;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 24px;
}

/* Footer FAQ: 3 blocks + 7 links (layout like main sections) */
.footer-faq {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-faq-teaser {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-faq-teaser a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.footer-faq-teaser a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.footer-faq-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--footer-text);
  margin: 0 0 8px;
}

.footer-faq-desc {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.footer-faq-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .footer-faq-blocks {
    grid-template-columns: 1fr;
  }
}

.footer-faq-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.footer-faq-block-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--footer-text);
}

.footer-faq-block p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.footer-faq-more-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 24px 0 12px;
}

.footer-faq-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.footer-faq-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.2s;
}

.footer-faq-links a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* Long CFD / website purpose disclaimer in footer */
.footer-cfd-disclaimer {
  margin-bottom: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-disclaimer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.footer-disclaimer-content {
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.92;
}

.footer-disclaimer-content p {
  margin: 0 0 1em;
}

.footer-disclaimer-content p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.risk-warning {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0 0 12px;
  line-height: 1.5;
}

.copyright {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.85;
}

/* Mobile nav */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav .dropdown {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 0 0 16px;
  }

  .main-nav .dropdown-sub {
    left: 0;
    margin-left: 0;
    margin-top: 4px;
  }

  .main-nav .has-dropdown:hover > .dropdown,
  .main-nav .has-dropdown.is-open > .dropdown,
  .main-nav .has-subdropdown:hover > .dropdown-sub,
  .main-nav .has-subdropdown.is-open > .dropdown-sub {
    display: block;
  }

  .nav-toggle {
    display: block;
  }
}
