/* Match Signalator's existing color scheme */
:root {
  --primary: #2563eb; /* Your blue color */
  --primary-dark: #1d4ed8;
  --secondary: #10b981; /* Your green color */
  --danger: #dc2626;
  --warning: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Base styles matching your site */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
}

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

/* Article Body */
.article-body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.article-body h2 {
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.article-body h3 {
  color: var(--dark);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 22px;
}

.article-body h4 {
  color: var(--dark);
  margin: 20px 0 10px;
  font-size: 18px;
}

/* Article Navigation */
.article-nav-desktop {
  position: sticky;
  top: 20px;
  float: right;
  width: 250px;
  margin-left: 40px;
  margin-bottom: 20px;
}

.nav-sticky {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.nav-sticky h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--dark);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  color: var(--gray);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--light);
  color: var(--primary);
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 15px 0;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gray);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-action:hover {
  background: var(--light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Navigation */
.article-nav-mobile {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 30px 0;
  overflow: hidden;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
}

.nav-header h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  transition: transform 0.3s;
}

.nav-toggle.rotate {
  transform: rotate(180deg);
}

.nav-content {
  display: none;
  padding: 0 20px 20px;
}

@media (max-width: 1200px) {
  .article-nav-desktop {
    display: none;
  }
  .article-nav-mobile {
    display: block;
  }
}

/* Comparison Container */
.comparison-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.comparison-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s;
}

.comparison-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.straight-box {
  border-left: 4px solid var(--gray);
}

.cumulative-box {
  border-left: 4px solid var(--primary);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.comparison-header i {
  font-size: 20px;
  color: var(--primary);
}

.comparison-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--dark);
}

.comparison-tag {
  margin-left: auto;
  background: var(--light);
  color: var(--gray);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.comparison-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--dark);
}

.comparison-list i {
  color: var(--secondary);
  font-size: 14px;
  margin-top: 3px;
}

.comparison-formula {
  background: var(--light);
  padding: 12px;
  border-radius: 6px;
  margin-top: 15px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--dark);
}

.formula-label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 4px;
}

/* Info Box */
.info-box {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.info-content h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: var(--dark);
}

.info-box ul {
  padding-left: 20px;
  margin: 15px 0;
}

.info-box li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.note {
  background: rgba(59, 130, 246, 0.1);
  padding: 12px;
  border-radius: 6px;
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--primary);
}

.note.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--primary);
  font-size: 20px;
}

.feature-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--dark);
}

.feature-item p {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

/* Calculation Example */
.calculation-example {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.calculation-example.detailed {
  padding: 0;
  overflow: hidden;
}

.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.example-header h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.table-toggle {
  background: white;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s;
}

.table-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.table-responsive {
  overflow-x: auto;
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.fx-table th {
  background: var(--light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
}

.fx-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.fx-table tbody tr:hover {
  background: var(--light);
}

.month-badge {
  background: var(--light);
  color: var(--gray);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.positive {
  color: var(--secondary);
  font-weight: 500;
}

.negative {
  color: var(--danger);
  font-weight: 500;
}

.highlight {
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
}

.fx-table tfoot {
  background: var(--light);
}

.summary-label {
  font-weight: 600;
  color: var(--dark);
}

.summary-value {
  font-weight: 700;
  color: var(--secondary);
}

.example-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.result-summary {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 14px;
  color: var(--gray);
}

.result-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.result-value.positive {
  color: var(--secondary);
}

/* Returns Badge */
.returns-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin: 0 4px;
}

/* Visualization */
.visualization {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.visualization h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px 0;
}

.growth-bar {
  height: 30px;
  background: var(--light);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.bar-segment {
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #34d399 100%);
  position: relative;
}

.bar-segment:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

.viz-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray);
}

/* Scenario Container */
.scenario-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.scenario-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s;
}

.scenario-box:hover {
  transform: translateY(-2px);
}

.scenario-box.favorable {
  border-left: 4px solid var(--secondary);
}

.scenario-box.caution {
  border-left: 4px solid var(--warning);
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.scenario-header i {
  font-size: 20px;
}

.scenario-box.favorable .scenario-header i {
  color: var(--secondary);
}

.scenario-box.caution .scenario-header i {
  color: var(--warning);
}

.scenario-header h4 {
  margin: 0;
  font-size: 18px;
}

.scenario-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}

.scenario-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--dark);
}

.scenario-list i {
  font-size: 14px;
  margin-top: 3px;
}

.scenario-box.favorable .scenario-list i {
  color: var(--secondary);
}

.scenario-box.caution .scenario-list i {
  color: var(--warning);
}

.scenario-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--light);
  border-radius: 6px;
  margin-top: 15px;
}

.outcome-label {
  font-weight: 500;
  color: var(--gray);
}

.outcome-value {
  font-weight: 600;
}

.outcome-value.positive {
  color: var(--secondary);
}

.outcome-value.negative {
  color: var(--warning);
}

/* Warning Box */
.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.warning-icon {
  color: var(--warning);
  font-size: 20px;
  background: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.warning-content h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: var(--dark);
}

.warning-content p {
  margin: 10px 0;
  color: var(--dark);
}

/* Takeaways Grid */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.takeaway-card {
  text-align: center;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s;
}

.takeaway-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.takeaway-icon {
  width: 50px;
  height: 50px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--primary);
  font-size: 20px;
}

.takeaway-card h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--dark);
}

.takeaway-card p {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

/* Key Takeaways */
.key-takeaways {
  background: #ecfdf5;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0;
}

.key-takeaways h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: var(--dark);
}

.key-takeaways ul {
  padding-left: 20px;
  margin: 15px 0;
}

.key-takeaways li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Decision Guide */
.decision-guide {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.decision-guide h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px 0;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.decision-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--light);
  border-radius: 6px;
  transition: all 0.2s;
}

.decision-item:hover {
  background: white;
  border-color: var(--primary);
}

.decision-question {
  font-weight: 500;
  color: var(--dark);
}

.decision-answer {
  font-weight: 600;
  color: var(--primary);
}

/* Sidebar Cards */
.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.card-header i {
  color: var(--primary);
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--dark);
}

.card-content {
  padding: 20px;
}

/* Summary Items */
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.summary-label {
  font-size: 14px;
  color: var(--gray);
}

.summary-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

/* Related Links */
.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.related-link:last-child {
  border-bottom: none;
}

.link-icon {
  width: 36px;
  height: 36px;
  background: var(--light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.link-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--dark);
}

.link-content p {
  margin: 0;
  font-size: 12px;
  color: var(--gray);
}

.link-arrow {
  margin-left: auto;
  color: var(--gray);
}

.related-link:hover {
  background: var(--light);
  margin: 0 -20px;
  padding: 12px 20px;
}

.related-link:hover .link-arrow {
  color: var(--primary);
}

/* Next Topic */
.next-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--light);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.next-topic:hover {
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.next-topic-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.next-topic-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--dark);
}

.next-topic-info p {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.next-topic .fa-chevron-right {
  margin-left: auto;
  color: var(--gray);
}

/* Tool Links */
.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

.tool-link:last-child {
  border-bottom: none;
}

.tool-link i {
  color: var(--primary);
  width: 20px;
}

.tool-link:hover {
  color: var(--primary);
}

/* Quiz CTA */
.quiz-cta {
  background: var(--dark);
  color: white;
  padding: 40px 0;
  border-radius: 12px;
}

.quiz-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.quiz-text h2 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 24px;
}

.quiz-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.secondary-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  font-weight: 500;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-body h2 {
    font-size: 24px;
  }
  
  .article-body h3 {
    font-size: 20px;
  }
  
  .comparison-container,
  .scenario-container {
    grid-template-columns: 1fr;
  }
  
  .feature-grid,
  .takeaways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .decision-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .takeaways-grid {
    grid-template-columns: 1fr;
  }
  
  .result-summary {
    flex-direction: column;
    gap: 15px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
/* ===========================
   FX Book – Article Components (ID=13)
   Add to end of fx-book.css
   =========================== */

/* Ensure consistent base */
.article-body article { margin-bottom: 26px; }
.article-body h2 { margin-top: 28px; }
.article-body p { line-height: 1.75; }

/* Card baseline used across components */
:root {
  --fx-card-bg: #ffffff;
  --fx-card-border: var(--border-color, #e2e8f0);
  --fx-card-shadow: 0 10px 15px -3px rgba(0,0,0,0.06);
  --fx-radius: 16px;
  --fx-muted: var(--gray, #64748b);
}

/* Comparison (Straight vs Cumulative) */
.comparison-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.comparison-box {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 16px;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.comparison-header h3 { margin: 0; font-size: 18px; }
.comparison-tag {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--fx-card-border);
  color: var(--fx-muted);
  background: #f8fafc;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.comparison-list li:last-child { border-bottom: 0; }
.comparison-formula {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--fx-card-border);
}
.comparison-formula code { white-space: normal; }

/* Info box */
.info-box {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 16px;
  margin: 18px 0;
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid var(--fx-card-border);
}
.info-content h4 { margin: 0 0 10px 0; }
.info-content ul { margin: 0 0 10px 18px; }
.note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--fx-card-border);
  background: #f8fafc;
  color: var(--fx-muted);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.feature-item {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 14px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid var(--fx-card-border);
  margin-bottom: 10px;
}
.feature-item h4 { margin: 0 0 6px 0; }

/* Calculation example blocks */
.calculation-example {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 16px;
  margin: 18px 0;
}
.calculation-example .example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.table-responsive { overflow-x: auto; }

/* Badges */
.returns-badge, .month-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--fx-card-border);
  background: #f8fafc;
  font-size: 12px;
  color: var(--fx-muted);
  margin-right: 6px;
}
.month-badge { font-weight: 700; }

/* Table */
.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.fx-table th, .fx-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fx-card-border);
  text-align: right;
  white-space: nowrap;
}
.fx-table th:first-child, .fx-table td:first-child { text-align: left; }
.fx-table thead th { color: var(--fx-muted); font-weight: 800; }
.fx-table tfoot td { font-weight: 800; }
.fx-table .summary-label { text-align: right; }
.fx-table .summary-value { text-align: right; }

/* Positive/negative emphasis (do not hardcode bright colors) */
.positive { font-weight: 800; }
.negative { font-weight: 800; }
.highlight { font-weight: 900; }

/* Result summary footer */
.result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.result-item {
  border: 1px solid var(--fx-card-border);
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
}
.result-label { display: block; font-size: 12px; color: var(--fx-muted); }
.result-value { display: block; margin-top: 4px; font-weight: 900; }

/* Visualization bar */
.visualization {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 16px;
  margin: 18px 0;
}
.growth-bar {
  display: flex;
  gap: 6px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--fx-card-border);
}
.bar-segment { background: #cbd5e1; }
.viz-labels {
  display: flex;
  justify-content: space-between;
  color: var(--fx-muted);
  font-size: 12px;
  margin-top: 10px;
}

/* Scenarios */
.scenario-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.scenario-box {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 14px;
}
.scenario-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.scenario-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scenario-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.scenario-list li:last-child { border-bottom: 0; }
.scenario-outcome {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--fx-card-border);
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  color: var(--fx-muted);
}

/* Warning box */
.warning-box {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 16px;
  margin: 18px 0;
}
.warning-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid var(--fx-card-border);
}

/* Takeaways */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.takeaway-card {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 14px;
}
.takeaway-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid var(--fx-card-border);
  margin-bottom: 10px;
}

/* Decision guide */
.decision-guide {
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
  padding: 16px;
  margin: 18px 0;
}
.decision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.decision-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--fx-card-border);
}
.decision-question { color: var(--fx-muted); }
.decision-answer { font-weight: 900; }

/* Mobile article nav block */
.article-nav-mobile {
  display: none;
  margin-top: 18px;
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-card-shadow);
}
.article-nav-mobile .nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fx-card-border);
}
.article-nav-mobile .nav-content {
  padding: 14px 16px;
}
.nav-links { display: grid; gap: 10px; }
.nav-link { text-decoration: none; color: inherit; }
.nav-actions { display: flex; gap: 10px; margin-top: 12px; }
.nav-action {
  border: 1px solid var(--fx-card-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--fx-card-border);
  background: #ffffff;
  box-shadow: var(--fx-card-shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 999;
}

/* Responsive */
@media (max-width: 1024px) {
  .comparison-container,
  .feature-grid,
  .scenario-container,
  .takeaways-grid,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .article-nav-mobile { display: block; }
}
/* ===== FIX FOR PAGE 13 SPECIFIC ISSUES ===== */

/* 1. Fix icon colors to use gold accent instead of blue */
.path-step-icon {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%) !important;
}

.topic-icon {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%) !important;
}

/* 2. Fix button colors on page 13 */
.fx-hero-buttons .cta-button.primary-btn {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(230, 162, 60, 0.3) !important;
}

.fx-hero-buttons .cta-button.secondary-btn {
    background: linear-gradient(135deg, #1a3a5f 0%, #2a5a8c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(26, 58, 95, 0.3) !important;
}

/* 3. Fix button hover states */
.fx-hero-buttons .cta-button.primary-btn:hover {
    background: linear-gradient(135deg, #d18a2c 0%, #b87824 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 162, 60, 0.4) !important;
    color: white !important;
}

.fx-hero-buttons .cta-button.secondary-btn:hover {
    background: linear-gradient(135deg, #2a5a8c 0%, #1a3a5f 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 95, 0.4) !important;
    color: white !important;
}

/* 4. Fix statistics number colors */
.fx-stat-number {
    color: #e6a23c !important;
}

/* 5. Fix topic card hover border color */
.topic-card:hover {
    border-color: rgba(230, 162, 60, 0.3) !important;
}

/* 6. Fix path step hover border color */
.path-step:hover {
    border-color: rgba(230, 162, 60, 0.3) !important;
}

/* 7. Fix currency pair color */
.currency-pair {
    color: #e6a23c !important;
}

/* 8. Fix pip indicator gradient */
.pip-indicator {
    background: linear-gradient(135deg, #e6a23c 0%, #f59e0b 100%) !important;
}

/* 9. Fix price change styling */
.price-change {
    color: #e6a23c !important;
}

/* 10. Fix quiz CTA button */
.quiz-content .cta-button {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%) !important;
    color: white !important;
}

.quiz-content .cta-button:hover {
    background: linear-gradient(135deg, #d18a2c 0%, #b87824 100%) !important;
    color: white !important;
}

/* 11. Ensure consistent section title colors */
.topics-section .section-title h2,
.learning-path .section-title h2,
.featured-article .section-title h2 {
    color: #1a3a5f !important;
}

/* 12. Fix filter button active state */
.filter-btn.active {
    background: #e6a23c !important;
    border-color: #e6a23c !important;
}

.filter-btn:hover:not(.active) {
    border-color: #e6a23c !important;
    background: rgba(230, 162, 60, 0.05) !important;
}

/* 13. Fix progress bar gradient */
.progress-fill {
    background: linear-gradient(to right, #e6a23c, #f59e0b) !important;
}

/* 14. Fix featured stats color */
.featured-stat .stat-number {
    color: #e6a23c !important;
}

/* 15. Fix visual section gradients */
.pip-visual {
    background: linear-gradient(135deg, #0f172a 0%, #1a3a5f 100%) !important;
}

/* Article Grid Layout */
.article-content {
    padding: 60px 0;
    background: #f8fafc;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.article-body {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: #e6a23c;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Article Headings */
.article-body h2 {
    font-size: 2rem;
    color: #1a3a5f;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #1a3a5f;
    margin: 2rem 0 1rem;
}

.article-body h4 {
    font-size: 1.2rem;
    color: #1a3a5f;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Comparison Container */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 2rem 0;
}

.comparison-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.straight-box {
    border-top: 4px solid #1e88e5;
}

.cumulative-box {
    border-top: 4px solid #e6a23c;
}

.comparison-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.comparison-header i {
    font-size: 1.8rem;
    color: #64748b;
}

.straight-box .comparison-header i {
    color: #1e88e5;
}

.cumulative-box .comparison-header i {
    color: #e6a23c;
}

.comparison-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.comparison-tag {
    margin-left: auto;
    padding: 5px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.comparison-list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #334155;
}

.comparison-list i {
    color: #82D32B;
    margin-top: 3px;
    flex-shrink: 0;
}

.comparison-formula {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #1a3a5f;
}

.formula-label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

.comparison-formula code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #1a3a5f;
    font-size: 0.95rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-left: 4px solid #e6a23c;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    font-size: 2rem;
    color: #e6a23c;
}

.info-content h4 {
    margin-top: 0;
    color: #854d0e;
}

.info-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 8px;
    color: #854d0e;
}

.note {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #854d0e;
    border: 1px solid rgba(230, 162, 60, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note i {
    color: #e6a23c;
    margin-top: 2px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(230, 162, 60, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Calculation Examples */
.calculation-example {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-toggle {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.table-toggle:hover {
    background: #e6a23c;
    color: white;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.fx-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.fx-table th {
    background: #1a3a5f;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fx-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.fx-table tbody tr:hover {
    background: #f8fafc;
}

.fx-table tfoot {
    background: #f1f5f9;
    font-weight: 600;
}

.fx-table .positive {
    color: #82D32B;
    font-weight: 600;
}

.fx-table .negative {
    color: #ff4d4f;
    font-weight: 600;
}

.fx-table .highlight {
    background: rgba(130, 211, 43, 0.1);
}

.month-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a3a5f;
}

/* Visualization */
.visualization {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.growth-bar {
    display: flex;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.bar-segment {
    background: linear-gradient(135deg, #82D32B 0%, #4CAF50 100%);
    transition: all 0.3s ease;
    position: relative;
}

.bar-segment:hover {
    opacity: 0.9;
}

.viz-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

/* Scenario Container */
.scenario-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 2rem 0;
}

.scenario-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
}

.favorable {
    border-top: 4px solid #82D32B;
}

.caution {
    border-top: 4px solid #e6a23c;
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.scenario-header i {
    font-size: 1.8rem;
}

.favorable .scenario-header i {
    color: #82D32B;
}

.caution .scenario-header i {
    color: #e6a23c;
}

.scenario-list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.scenario-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.scenario-list .fa-check {
    color: #82D32B;
}

.scenario-list .fa-times {
    color: #ff4d4f;
}

.scenario-outcome {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.outcome-value.positive {
    color: #82D32B;
    font-weight: 700;
    font-size: 1.1rem;
}

.outcome-value.negative {
    color: #ff4d4f;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffeaa7 100%);
    border-left: 4px solid #e6a23c;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
}

.warning-icon {
    font-size: 2rem;
    color: #e6a23c;
}

.warning-content h4 {
    margin-top: 0;
    color: #854d0e;
}

/* Takeaways */
.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.takeaway-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.takeaway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(230, 162, 60, 0.3);
}

.takeaway-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3a5f 0%, #2a5a8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.takeaway-card h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.takeaway-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #1e88e5;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.key-takeaways h3 {
    margin-top: 0;
    color: #1a3a5f;
}

.key-takeaways ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.key-takeaways li {
    margin-bottom: 10px;
    color: #334155;
}

/* Decision Guide */
.decision-guide {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px dashed #e2e8f0;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}

.decision-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.decision-question {
    font-weight: 600;
    color: #334155;
}

.decision-answer {
    color: #e6a23c;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Sidebar Styles */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.card-header {
    background: linear-gradient(135deg, #1a3a5f 0%, #2a5a8c 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.summary-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-value {
    color: #1a3a5f;
    font-weight: 600;
    text-align: right;
}

/* Related Links */
.related-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.related-link:last-child {
    border-bottom: none;
}

.related-link:hover {
    background: #f8fafc;
    margin: -1rem;
    padding: 1rem;
    border-radius: 8px;
    transform: translateX(5px);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.link-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1a3a5f;
}

.link-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.link-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Next Topic */
.next-topic {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.next-topic:hover {
    background: #f1f5f9;
    border-color: #e6a23c;
    transform: translateX(5px);
}

.next-topic-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.next-topic-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #1a3a5f;
}

.next-topic-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.next-topic i:last-child {
    margin-left: auto;
    color: #94a3b8;
}

/* Tool Links */
.tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #1a3a5f;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.tool-link:last-child {
    border-bottom: none;
}

.tool-link:hover {
    color: #e6a23c;
    transform: translateX(5px);
}

.tool-link i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

/* Mobile Navigation */
.article-nav-mobile {
    display: none;
    background: white;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.nav-header {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.nav-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
}

.nav-content {
    padding: 1.5rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.nav-link {
    padding: 10px 15px;
    color: #1a3a5f;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #e6a23c;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-action {
    flex: 1;
    padding: 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-action:hover {
    background: #e6a23c;
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 162, 60, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 162, 60, 0.4);
}

/* Returns Badge */
.returns-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(130, 211, 43, 0.1);
    color: #82D32B;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparison-container,
    .scenario-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-body {
        padding: 2rem;
    }
    
    .feature-grid,
    .takeaways-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-nav-mobile {
        display: block;
    }
    
    .sidebar-card {
        display: none;
    }
    
    .nav-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .article-body {
        padding: 1.5rem;
    }
    
    .feature-grid,
    .takeaways-grid,
    .decision-grid {
        grid-template-columns: 1fr;
    }
    
    .fx-hero h1 {
        font-size: 1.8rem;
    }
    
    .fx-hero-lead {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .comparison-box,
    .scenario-box {
        padding: 1.5rem;
    }
    
    .info-box,
    .warning-box {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation for back to top button */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===== Sidebar Card Headers (Without Background) ===== */

.sidebar-card .card-header {
    background: none !important;
    color: #1a3a5f !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-card .card-header i {
    font-size: 1.5rem;
    color: #e6a23c !important;
}

.sidebar-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a3a5f !important;
}

/* Update related card content padding */
.sidebar-card .card-content {
    padding: 1rem 1.5rem 1.5rem;
}

/* Remove the gradient from related links and next topic icons */
.link-icon {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%) !important;
}

.next-topic-icon {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%) !important;
}

/* Update tool links to match */
.tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #1a3a5f;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.tool-link:hover {
    color: #e6a23c;
    transform: translateX(5px);
}

.tool-link i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    color: #e6a23c;
}

/* Also update the related links to match the clean look */
.related-link:hover {
    background: #f8fafc;
    margin: -0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transform: translateX(5px);
}

.next-topic:hover {
    background: #f8fafc;
    border-color: #e6a23c;
    transform: translateX(5px);
}

/* Update summary items to match clean design */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.summary-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.summary-value {
    color: #1a3a5f;
    font-weight: 600;
    text-align: right;
}

/* If you want a more minimal look, also update the main headings in article body */
.article-body h2 {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 0.5rem !important;
}

/* Update comparison boxes to be cleaner */
.comparison-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comparison-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #e6a23c;
}

/* Make the comparison header cleaner */
.comparison-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-tag {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

/* Clean up feature items */
.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #e6a23c;
}

/* Clean up calculation example */
.calculation-example {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Clean up the table */
.fx-table th {
    background: #f8fafc !important;
    color: #1a3a5f !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.fx-table {
    border: 1px solid #e2e8f0 !important;
}

/* Clean up takeaways cards */
.takeaway-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.takeaway-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #e6a23c;
}

/* Make scenario boxes cleaner */
.scenario-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.favorable {
    border-top: 3px solid #82D32B !important;
}

.caution {
    border-top: 3px solid #e6a23c !important;
}

/* Clean up warning and info boxes */
.warning-box,
.info-box {
    background: #f8fafc !important;
    border-left: 3px solid #e6a23c !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.warning-box .warning-icon,
.info-box .info-icon {
    color: #e6a23c !important;
}

.warning-content h4,
.info-content h4 {
    color: #1a3a5f !important;
}

/* Update the note styling */
.note {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1px solid #e2e8f0 !important;
}

/* Update key takeaways */
.key-takeaways {
    background: #f8fafc !important;
    border-left: 3px solid #1e88e5 !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

/* Update decision guide */
.decision-guide {
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
}

/* Update mobile nav */
.article-nav-mobile .nav-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
}

.nav-action {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
}

.nav-action:hover {
    background: #e6a23c !important;
    color: white !important;
    border-color: #e6a23c !important;
}

/* ===== Next Topic Card (Updated Design) ===== */

.next-topic-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.next-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(230, 162, 60, 0.3);
}

.next-topic-card .card-header {
    background: none;
    color: #1a3a5f;
    padding: 1.5rem 1.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.next-topic-card .card-header i {
    font-size: 1.5rem;
    color: #e6a23c;
}

.next-topic-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a3a5f;
    font-weight: 600;
}

.next-topic-content {
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    color: inherit;
}

.next-topic-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.next-topic-text {
    text-align: center;
}

.next-topic-text h4 {
    font-size: 1.4rem;
    color: #1a3a5f;
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.next-topic-text p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* If you want a more minimalist version like the image */
.next-topic-minimal {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    display: block;
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.next-topic-minimal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e6a23c;
}

.next-topic-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e6a23c, #f59e0b);
    opacity: 0.8;
}

.next-topic-minimal h4 {
    font-size: 1.6rem;
    color: #1a3a5f;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.next-topic-minimal .topic-title {
    font-size: 1.8rem;
    color: #1a3a5f;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    line-height: 1.2;
}

.next-topic-minimal .topic-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.next-topic-minimal .topic-arrow {
    display: inline-block;
    margin-top: 1.5rem;
    color: #e6a23c;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.next-topic-minimal .topic-arrow i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.next-topic-minimal:hover .topic-arrow i {
    transform: translateX(5px);
}

/* Updated HTML structure for the Next Topic card */
.next-topic-html {
    <div class="sidebar-card next-topic-card">
        <div class="card-header">
            <i class="fas fa-arrow-right"></i>
            <h3>Next Topic</h3>
        </div>
        <a href="/page_show.php?id=14" class="next-topic-content">
            <div class="next-topic-icon">
                <i class="fas fa-exchange-alt"></i>
            </div>
            <div class="next-topic-text">
                <h4>Understanding Spreads</h4>
                <p>How brokers make money and its impact on your trades</p>
            </div>
        </a>
    </div>
}

/* OR for the minimal version */
.next-topic-html-minimal {
    <a href="/page_show.php?id=14" class="next-topic-minimal">
        <h4>Next Topic</h4>
        <div class="topic-title">Understanding Spreads</div>
        <p class="topic-subtitle">How brokers make money and its impact on your trades</p>
        <div class="topic-arrow">
            <span>Continue Reading</span>
            <i class="fas fa-chevron-right"></i>
        </div>
    </a>
}

/* Update the existing related links to match */
.related-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-link:last-child {
    margin-bottom: 0;
}

.related-link:hover {
    transform: translateX(5px);
    border-color: #e6a23c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

.link-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1a3a5f;
    font-weight: 600;
}

.link-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.link-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .next-topic-minimal {
        padding: 1.5rem;
    }
    
    .next-topic-minimal .topic-title {
        font-size: 1.5rem;
    }
    
    .next-topic-minimal .topic-subtitle {
        font-size: 0.95rem;
    }
    
    .next-topic-content {
        padding: 1rem;
    }
    
    .next-topic-text h4 {
        font-size: 1.2rem;
    }
}

.info-box {
    background: #f0f9ff !important; /* Light blue background */
    border-left: 4px solid #1e88e5 !important; /* Blue accent border */
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #e2e8f0;
}

.info-icon {
    font-size: 2rem;
    color: #1e88e5 !important; /* Blue icon */
}

.info-content h4 {
    margin-top: 0;
    color: #1a3a5f !important; /* Dark blue text */
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content h4 i {
    color: #1e88e5 !important; /* Blue icon */
}

.info-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 12px;
    color: #334155 !important; /* Dark gray text */
    line-height: 1.6;
}

.info-content li strong {
    color: #1a3a5f !important; /* Dark blue for bold text */
}

.note {
    background: rgba(230, 162, 60, 0.1) !important; /* Light gold background */
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #854d0e !important; /* Dark gold/brown text (kept for readability) */
    border: 1px solid rgba(230, 162, 60, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note i {
    color: #e6a23c !important; /* Gold icon */
    margin-top: 2px;
    flex-shrink: 0;
}

/* Alternative color scheme for warning/note boxes */
.warning-box {
    background: #fff8e1 !important; /* Light gold background */
    border-left: 4px solid #e6a23c !important; /* Gold accent border */
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #e2e8f0;
}

.warning-box .warning-icon {
    font-size: 2rem;
    color: #e6a23c !important; /* Gold icon */
}

.warning-content h4 {
    margin-top: 0;
    color: #1a3a5f !important; /* Dark blue text */
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-content h4 i {
    color: #e6a23c !important; /* Gold icon */
}

.warning-content p {
    color: #334155 !important; /* Dark gray text */
    line-height: 1.6;
}

/* If you want the note to match the blue theme better: */
.blue-note {
    background: rgba(30, 136, 229, 0.1) !important; /* Light blue background */
    color: #1a3a5f !important; /* Dark blue text */
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.blue-note i {
    color: #1e88e5 !important; /* Blue icon */
}

/* Update the HTML to use blue-note class */
.info-box .note {
    background: rgba(30, 136, 229, 0.1) !important;
    color: #1a3a5f !important;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.info-box .note i {
    color: #1e88e5 !important;
}
/* ===== Key Takeaways Section ===== */

#takeaways {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

#takeaways h2 {
    font-size: 2rem;
    color: #1a3a5f;
    margin-bottom: 2rem;
    text-align: center;
}

/* Key takeaways box - the main container */
.key-takeaways-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #1e88e5;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0 3rem;
    border: 1px solid #e2e8f0;
}

.key-takeaways-box h3 {
    font-size: 1.5rem;
    color: #1a3a5f;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-takeaways-box h3 i {
    color: #1e88e5;
}

.key-takeaways-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.key-takeaways-box li {
    margin-bottom: 1rem;
    color: #334155;
    line-height: 1.6;
    font-size: 1.05rem;
}

.key-takeaways-box li strong {
    color: #1a3a5f;
    font-weight: 700;
}

/* Alternative: Clean, simple version */
.key-takeaways-clean {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.key-takeaways-clean h3 {
    font-size: 1.5rem;
    color: #1a3a5f;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.key-takeaways-clean h3 i {
    color: #e6a23c;
}

.key-takeaways-clean ul {
    margin: 0;
    padding-left: 1.5rem;
}

.key-takeaways-clean li {
    margin-bottom: 1rem;
    color: #334155;
    line-height: 1.6;
    padding-left: 0.5rem;
    position: relative;
}

.key-takeaways-clean li:before {
    content: "•";
    color: #e6a23c;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.key-takeaways-clean li strong {
    color: #1a3a5f;
    font-weight: 700;
}

/* For the takeaways grid */
.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 2.5rem 0;
}

.takeaway-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.takeaway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #e6a23c;
}

.takeaway-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a3a5f 0%, #2a5a8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.takeaway-card:hover .takeaway-icon {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
}

.takeaway-card h4 {
    font-size: 1.3rem;
    color: #1a3a5f;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.takeaway-card p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Decision guide */
.decision-guide {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    border: 1px solid #e2e8f0;
}

.decision-guide h4 {
    font-size: 1.3rem;
    color: #1a3a5f;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.decision-guide h4 i {
    color: #e6a23c;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}

.decision-item {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.decision-item:hover {
    border-color: #e6a23c;
    background: #fff8e1;
    transform: translateX(5px);
}

.decision-question {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.decision-answer {
    color: #e6a23c;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.decision-answer:before {
    content: "→";
    font-size: 1rem;
}

/* ===== Fixed Related Links Hover Effect ===== */

.related-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative; /* Add this */
}

.related-link:last-child {
    margin-bottom: 0;
}

.related-link:hover {
    /* Remove negative margin */
    transform: translateX(5px);
    border-color: #e6a23c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Add a slight background change */
    background: #f8fafc;
}

.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.related-link:hover .link-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.3);
}

.link-content {
    flex: 1;
}

.link-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1a3a5f;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-link:hover .link-content h4 {
    color: #e6a23c;
}

.link-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.link-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.related-link:hover .link-arrow {
    color: #e6a23c;
    transform: translateX(5px);
}

/* Ensure the parent container doesn't shift */
.sidebar-card .card-content {
    padding: 1rem 1.5rem 1.5rem;
}

/* If you want a more subtle hover without layout shift */
.related-link-subtle {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-link-subtle:hover {
    border-color: #e6a23c;
    background: rgba(230, 162, 60, 0.05);
}

/* Alternative: Clean hover with just color changes */
.related-link-clean {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.related-link-clean:last-child {
    border-bottom: none;
}

.related-link-clean:hover {
    padding-left: 10px;
    border-left: 2px solid #e6a23c;
}

.related-link-clean:hover .link-content h4 {
    color: #e6a23c;
}

.related-link-clean:hover .link-arrow {
    color: #e6a23c;
    transform: translateX(5px);
}

/* Make sure the card header stays clean */
.sidebar-card .card-header {
    background: none;
    color: #1a3a5f;
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-card .card-header i {
    font-size: 1.5rem;
    color: #e6a23c;
}

.sidebar-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a3a5f;
}