/* ==========================================================================
   
   ========================================================================== */

/* ---------- 1. Score Example Block (bảng tính điểm có progress bar) ---------- */
.fxtt-score-example {
  background: #f4f8fc;
  border: 1px solid #dce8f4;
  border-radius: 12px;
  padding: 28px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 800px;
  margin: 20px auto;
}

.fxtt-title {
  color: #14375e;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.fxtt-intro,
.fxtt-outro {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.fxtt-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(20, 55, 94, 0.08);
}

.fxtt-table thead th {
  background: #1e5a8c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
}

.fxtt-th-score,
.fxtt-th-result {
  text-align: center !important;
  white-space: nowrap;
}

.fxtt-th-bar {
  width: 30%;
}

.fxtt-table tbody tr {
  border-bottom: 1px solid #eaf1f8;
}

.fxtt-table tbody tr:nth-child(even) {
  background: #f7fafd;
}

.fxtt-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #2d5a8c;
  vertical-align: middle;
}

.fxtt-criteria {
  color: #1a3d5c;
  font-weight: 500;
}

.fxtt-weight {
  color: #7593ab;
  font-weight: 400;
  font-size: 13px;
}

.fxtt-score-cell {
  text-align: center;
  font-weight: 700;
  color: #1e5a8c;
  white-space: nowrap;
}

.fxtt-score-low {
  color: #b3541e;
}

.fxtt-bar-cell {
  min-width: 120px;
}

.fxtt-bar {
  background: #e6eef6;
  border-radius: 20px;
  height: 8px;
  width: 100%;
  overflow: hidden;
}

.fxtt-bar-fill {
  background: linear-gradient(90deg, #2d5a8c, #1e5a8c);
  height: 100%;
  border-radius: 20px;
}

.fxtt-bar-fill.fxtt-bar-low {
  background: linear-gradient(90deg, #d98a4a, #b3541e);
}

.fxtt-result {
  text-align: center;
  font-weight: 600;
  color: #14375e;
  white-space: nowrap;
}

.fxtt-final-row td {
  background: #eaf2fb;
  border-top: 2px solid #1e5a8c;
}

.fxtt-final-label {
  font-weight: 700;
  color: #14375e;
  font-size: 15px;
}

.fxtt-final-result {
  text-align: center;
  font-weight: 800;
  color: #14375e;
  font-size: 16px;
  white-space: nowrap;
}

/* ---------- 2. Rating Cards (5 thẻ xếp hạng) ---------- */
.fxtt-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 24px 0;
}

.fxtt-card {
  flex: 1 1 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  padding: 24px 18px;
  text-align: center;
}

.fxtt-score {
  color: #1e5a8c;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.fxtt-card-title {
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.fxtt-card-desc {
  color: #4a4a4a;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- 3. Method / Protection Tables (bảng WP Table đã custom) ---------- */
.fxtt-method-table {
  margin: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fxtt-method-table table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 55, 94, 0.08);
}

.fxtt-method-table thead th {
  background: #1e5a8c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border: none;
}

.fxtt-method-table tbody tr {
  border-bottom: 1px solid #eaf1f8;
}

.fxtt-method-table tbody tr:nth-child(even) {
  background: #f7fafd;
}

.fxtt-method-table tbody tr:hover {
  background: #eef5fb;
}

.fxtt-method-table td {
  padding: 13px 16px;
  font-size: 14px;
  color: #1a3d5c;
  border: none;
  vertical-align: middle;
}

.fxtt-method-table td:first-child {
  font-weight: 600;
  color: #14375e;
  white-space: nowrap;
}

.fxtt-weight-cell {
  text-align: center;
  font-weight: 700;
  color: #1e5a8c;
  white-space: nowrap;
}

.fxtt-center-cell {
  text-align: center;
  color: #4a7ba6;
  font-weight: 500;
}

.fxtt-total-row td {
  background: #eaf2fb;
  border-top: 2px solid #1e5a8c;
  font-weight: 700;
  color: #14375e;
}

.fxtt-total-row .fxtt-weight-cell,
.fxtt-total-row .fxtt-center-cell {
  color: #14375e;
}

.fxtt-rating-cell {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  font-size: 15px;
}

.fxtt-rating-high { color: #1e5a8c; }
.fxtt-rating-good { color: #3d7ab5; }
.fxtt-rating-mid  { color: #c9922f; }
.fxtt-rating-low  { color: #b3541e; }

/* ---------- 4. Responsive (áp dụng chung cho mọi bảng/thẻ) ---------- */
@media (max-width: 900px) {
  .fxtt-cards-wrapper {
    flex-wrap: wrap;
  }
  .fxtt-card {
    flex: 1 1 calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .fxtt-score-example {
    padding: 18px;
  }

  .fxtt-table,
  .fxtt-method-table table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .fxtt-table thead th,
  .fxtt-table td,
  .fxtt-method-table th,
  .fxtt-method-table td {
    font-size: 12.5px;
    padding: 10px 10px;
  }

  .fxtt-th-bar,
  .fxtt-bar-cell {
    min-width: 100px;
  }

  .fxtt-card {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   FX TRADING TODAY — TABLE OF CONTENTS ("ON THIS PAGE") BLOCK
    ========================================================================== */

.fxtt-toc {
  background: #f4f8fc;
  border: 1px solid #dce8f4;
  border-radius: 12px;
  padding: 24px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 24px 0;
}

.fxtt-toc-label {
  color: #1e5a8c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.fxtt-toc-list {
  column-count: 2;
  column-gap: 40px;
  list-style: none;
  counter-reset: fxtt-toc-counter;
  margin: 0;
  padding: 0;
}

.fxtt-toc-list li {
  counter-increment: fxtt-toc-counter;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 6px 0;
  display: flex;
  align-items: baseline;
}

.fxtt-toc-list li::before {
  content: counter(fxtt-toc-counter) ".";
  color: #4a7ba6;
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}

.fxtt-toc-list li a {
  color: #14375e;
  font-size: 14.5px;
  text-decoration: none;
  line-height: 1.4;
}

.fxtt-toc-list li a:hover {
  color: #1e5a8c;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .fxtt-toc {
    padding: 20px;
  }

  .fxtt-toc-list {
    column-count: 1;
  }
}

/* ==========================================================================
   FX TRADING TODAY — CALLOUT BOXES (Warning / Tip / Verdict)
   Dán vào: Appearance > Customize > Additional CSS (thêm 1 lần duy nhất)
   ========================================================================== */

.fxtt-callout {
  border-left: 4px solid;
  border-radius: 8px;
  padding: 18px 24px;
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fxtt-callout-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.fxtt-callout-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}

/* ---------- Warning (đỏ) ---------- */
.fxtt-callout-warning {
  background: #fdedec;
  border-left-color: #c0392b;
}

.fxtt-callout-warning .fxtt-callout-label {
  color: #c0392b;
}

/* ---------- Tip (xanh lá) ---------- */
.fxtt-callout-tip {
  background: #e9f7ef;
  border-left-color: #27ae60;
}

.fxtt-callout-tip .fxtt-callout-label {
  color: #1e8449;
}

/* ---------- Verdict / Kết luận (xanh biển - đồng bộ theme site) ---------- */
.fxtt-callout-verdict {
  background: #eaf2fb;
  border-left-color: #1e5a8c;
}

.fxtt-callout-verdict .fxtt-callout-label {
  color: #1e5a8c;
}

.fxtt-callout-verdict .fxtt-callout-text {
  font-style: italic;
  color: #14375e;
}

@media (max-width: 600px) {
  .fxtt-callout {
    padding: 16px 18px;
  }
}

/* ==========================================================================
   FX TRADING TODAY — FAQ ACCORDION
   ========================================================================== */

.fxtt-faq {
  margin: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fxtt-faq-item {
  background: #ffffff;
  border: 1px solid #dce8f4;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.fxtt-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #14375e;
  position: relative;
  user-select: none;
}

/* Ẩn mũi tên mặc định của trình duyệt (Chrome/Safari) */
.fxtt-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Icon dấu + / - tự custom */
.fxtt-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #1e5a8c;
  transition: transform 0.2s ease;
}

.fxtt-faq-item[open] summary::after {
  content: "\2212"; /* dấu trừ − */
}

.fxtt-faq-item summary:hover {
  background: #f7fafd;
}

.fxtt-faq-answer {
  padding: 14px 20px 18px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #333333;
}

/* Hiệu ứng mở nhẹ nhàng */
.fxtt-faq-item[open] summary {
  border-bottom: 1px solid #eaf1f8;
}

@media (max-width: 600px) {
  .fxtt-faq-item summary {
    padding: 14px 40px 14px 16px;
    font-size: 14px;
  }
  .fxtt-faq-answer {
    padding: 12px 16px 16px 16px;
    font-size: 14px;
  }
}