/**
 * Research hub (research.html). Bump ?v= on the <link> when this file changes.
 */

    .article-card--clickable {
      cursor: pointer;
      position: relative;
    }

    .article-card-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      border-radius: inherit;
      text-decoration: none;
      color: transparent;
    }

    .article-card-overlay:focus-visible {
      outline: 2px solid #1a365d;
      outline-offset: 3px;
    }

    .article-card--clickable .article-card-action {
      position: relative;
      z-index: 2;
    }

    /* Correlation colors: assets/css/avantas-design-system.css */

    .correlation-table td {
      padding: 0.75rem;
      text-align: center;
      border-radius: 4px;
      border: 1px solid #e9ecef;
    }
    .footer-links,
    .footer-links a,
    .footer-nav,
    .footer-nav a {
      display: none !important;
    }
    /* Research Header Section */
    .research-header-section {
      background: #1E2875;
      color: white;
      padding: 0;
      height: 12px;
      text-align: center;
      margin: 0;
      border: none;
      position: relative;
    }

    /* Performance Table - 1M Perf Column Outline */
    .performance-table th:nth-child(2),
    .performance-table td:nth-child(2) {
      border-left: 2px solid #333;
      border-right: 2px solid #333;
    }

    .performance-table th:nth-child(2) {
      border-top: 2px solid #333;
    }

    .performance-table tbody tr:last-child td:nth-child(2) {
      border-bottom: 2px solid #333;
    }

    /* Risk Table - Sharpe Ratio Column Outline */
    .risk-table th:nth-child(4),
    .risk-table td:nth-child(4) {
      border-left: 2px solid #333;
      border-right: 2px solid #333;
    }

    .risk-table th:nth-child(4) {
      border-top: 2px solid #333;
    }

    .risk-table tbody tr:last-child td:nth-child(4) {
      border-bottom: 2px solid #333;
    }

    .research-header-section::before {
      display: none;
    }
    
    .header-content {
      display: none;
    }

    .header-content {
      position: relative;
      z-index: 2;
    }

    .header-title {
      display: none;
    }
    
    /* Mobile Header Optimizations */
    @media (max-width: 768px) {
      .header-title {
        display: none !important;
      }
      
      .header-subtitle {
        font-size: 1rem !important;
        line-height: 1.4 !important;
      }
      
      .research-header-section {
        padding: 0 !important;
        height: 12px !important;
        background: #1E2875 !important;
      }
    }
    
    @media (max-width: 480px) {
      .header-title {
        display: none !important;
      }
      
      .header-subtitle {
        font-size: 0.9rem !important;
      }
      
      .research-header-section {
        padding: 0 !important;
        height: 12px !important;
        background: #1E2875 !important;
      }
    }

    .header-subtitle {
      color: #6c757d;
      font-size: 1.25rem;
      max-width: 800px;
      margin: 0 auto;
      line-height: 1.6;
      font-family: 'Times New Roman', Times, serif;
      text-shadow: none;
    }

    /* Section Headers */
    .section-header {
      margin-bottom: 3rem;
    }

    /* Market Trends Card Layout */
    .market-trends-grid {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      margin-top: 2rem;
    }

    .trends-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }

    .trend-card-empty {
      visibility: hidden;
      pointer-events: none;
    }

    .trend-card {
      background: #ffffff;
      border: 2px solid #e9ecef;
      border-radius: 16px;
      padding: 1.5rem 2rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      gap: 1.5rem;
      position: relative;
      overflow: hidden;
    }
    
    /* Mobile optimizations for trend cards */
    @media (max-width: 768px) {
      .trend-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.25rem !important;
        gap: 1rem !important;
      }
      
      .trend-card .card-content {
        width: 100% !important;
      }
    }
    
    @media (max-width: 480px) {
      .trend-card {
        padding: 1rem !important;
        gap: 0.75rem !important;
      }
    }

    .trend-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #bfa76a, #d4c4a8);
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }

    .trend-card:hover {
      border-color: #bfa76a;
      box-shadow: 0 8px 24px rgba(191, 167, 106, 0.15);
      transform: translateY(-4px);
    }

    .trend-card:hover::before {
      transform: scaleX(1);
    }

    .trend-card[aria-expanded="true"] {
      border-color: #bfa76a;
      background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }

    .trend-card[aria-expanded="true"]::before {
      transform: scaleX(1);
    }

    .trend-icon {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #bfa76a, #d4c4a8);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.3s ease;
    }

    .trend-card:hover .trend-icon {
      transform: scale(1.1);
      box-shadow: 0 4px 12px rgba(191, 167, 106, 0.3);
    }

    .trend-icon i {
      font-size: 1.5rem;
      color: #ffffff;
    }

    .trend-content {
      flex: 1;
      min-width: 0;
      padding-right: 1rem;
    }

    .trend-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #232526;
      margin: 0;
      font-family: 'Times New Roman', Times, serif;
      line-height: 1.3;
      text-align: center;
    }

    .trend-summary {
      font-size: 0.9rem;
      color: #666;
      margin: 0;
      line-height: 1.4;
      font-family: 'Times New Roman', Times, serif;
    }

    .trend-arrow {
      width: 32px;
      height: 32px;
      background: #f8f9fa;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.3s ease;
    }

    .trend-card:hover .trend-arrow {
      background: #bfa76a;
      transform: translateX(4px);
    }

    .trend-arrow i {
      font-size: 0.9rem;
      color: #666;
      transition: all 0.3s ease;
    }

    .trend-card:hover .trend-arrow i {
      color: #ffffff;
    }

    .trend-card[aria-expanded="true"] .trend-arrow {
      background: #bfa76a;
      transform: rotate(90deg);
    }

    .trend-card[aria-expanded="true"] .trend-arrow i {
      color: #ffffff;
    }

    /* Collapsible Content Panel */
    .trend-details-panel {
      background: #ffffff;
      border: 1px solid #e9ecef;
      border-radius: 16px;
      padding: 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      position: sticky;
      top: 2rem;
      max-height: 80vh;
      overflow-y: auto;
    }

    .trend-detail-content {
      border-radius: 16px;
      overflow: hidden;
    }

    .detail-header {
      background: linear-gradient(135deg, #bfa76a, #d4c4a8);
      padding: 1.5rem;
      color: #ffffff;
    }

    .detail-header h4 {
      margin: 0;
      font-size: 1.2rem;
      font-weight: 600;
      font-family: 'Times New Roman', Times, serif;
    }

    .detail-body {
      padding: 1.5rem;
    }

    .detail-body ul {
      margin: 0;
      padding-left: 1.5rem;
    }

    .detail-body li {
      margin-bottom: 1rem;
      line-height: 1.6;
      color: #444;
      font-family: 'Times New Roman', Times, serif;
    }

    .detail-body li:last-child {
      margin-bottom: 0;
    }

    .detail-body strong {
      color: #bfa76a;
      font-weight: 600;
    }

    .env-subpanel {
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 1rem;
      margin-top: 1rem;
    }

    .env-subpanel strong {
      color: #bfa76a;
      font-weight: 600;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
      .trends-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
      }

      .trends-row .trend-card:nth-child(4) {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
      }

      .trends-row .trend-card-empty:nth-child(4) {
        display: none;
      }
    }

    @media (max-width: 768px) {
      .trends-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
      }

      .trends-row .trend-card:nth-child(3),
      .trends-row .trend-card:nth-child(4) {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
      }

      .trend-card {
        padding: 1.25rem 1.5rem;
      }

      .trend-icon {
        width: 40px;
        height: 40px;
      }

      .trend-icon i {
        font-size: 1.2rem;
      }

      .trend-title {
        font-size: 1rem;
      }

      .trend-summary {
        font-size: 0.85rem;
      }

      .trend-details-panel {
        position: static;
        margin-top: 2rem;
      }
    }

    @media (max-width: 576px) {
      .trends-row {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .trends-row .trend-card:nth-child(3),
      .trends-row .trend-card:nth-child(4) {
        grid-column: 1;
        max-width: none;
        margin: 0;
      }
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: #232526;
      margin-bottom: 1rem;
      letter-spacing: -1px;
    }

    .section-subtitle {
      font-size: 1.1rem;
      color: #666;
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* Market Trends Cards */
    .trend-card {
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      padding: 1.5rem;
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
      height: 100%;
    }

    /* Performance Table Styles */
    .performance-table {
      margin-bottom: 0;
      border-collapse: separate;
      border-spacing: 0;
    }

    .performance-table thead th {
      background: linear-gradient(135deg, #bfa76a, #d4c4a8);
      color: #ffffff;
      font-weight: 600;
      padding: 1rem 0.75rem;
      border: none;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .performance-table thead th:first-child {
      border-top-left-radius: 12px;
    }

    .performance-table thead th:last-child {
      border-top-right-radius: 12px;
    }

    .performance-table tbody tr {
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .performance-table tbody tr:hover {
      background-color: rgba(191, 167, 106, 0.05);
      transform: translateY(-1px);
    }

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

    .performance-table tbody td {
      padding: 1rem 0.75rem;
      vertical-align: middle;
      border: none;
      font-size: 0.9rem;
    }

    .perf-key-takeaways {
      margin-top: 1.75rem;
      padding: 1.35rem 1.5rem;
      background: linear-gradient(145deg, #0f172a 0%, #1a2744 100%);
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 55, 0.2);
    }

    .perf-key-takeaways-title {
      color: #f8fafc;
      font-size: 1.05rem;
      font-weight: 700;
      margin: 0 0 1.1rem;
      letter-spacing: 0.02em;
    }

    .perf-key-takeaways-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .perf-key-takeaways-list li {
      padding: 0.85rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .perf-key-takeaways-list li:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .perf-key-takeaways-list li:first-child {
      padding-top: 0;
    }

    .perf-key-takeaway-head {
      color: #ffffff;
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.4rem;
    }

    .perf-key-takeaway-text {
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.9rem;
      line-height: 1.55;
      margin: 0 0 0.55rem;
      text-align: justify;
    }

    .perf-key-takeaway-source {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 500;
      color: #cbd5e1;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 999px;
      padding: 0.2rem 0.65rem;
      text-decoration: none;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: middle;
    }

    a.perf-key-takeaway-source:hover {
      color: #f8fafc;
      background: rgba(212, 175, 55, 0.22);
      border-color: rgba(212, 175, 55, 0.35);
    }

    .instrument-name {
      font-weight: 600;
      color: #232526;
      font-size: 0.95rem;
    }

    .instrument-level {
      font-weight: 600;
      color: #232526;
      font-size: 0.95rem;
      text-align: right;
    }

    .performance {
      font-weight: 600;
      font-size: 0.9rem;
      text-align: right;
    }

    .performance.positive {
      color: #28a745;
    }

    .performance.negative {
      color: #dc3545;
    }

    .percentile {
      font-weight: 600;
      color: #666;
      font-size: 0.9rem;
      text-align: center;
    }

    .table-description {
      color: #666;
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    .table-description em {
      color: #bfa76a;
      font-style: italic;
    }

    .table-note {
      color: #666;
      font-size: 0.8rem;
      margin: 0;
      font-style: italic;
    }

    /* Correlation Matrix Styles */
    .correlation-section {
      background: #f8f9fa;
    }

    .correlation-legend {
      background: #ffffff;
      padding: 1.5rem;
      border-radius: 12px;
      border: 1px solid #e9ecef;
      margin-bottom: 2rem;
    }

    .correlation-legend h4 {
      color: #232526;
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .legend-items {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.75rem;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
    }

    .legend-color {
      width: 20px;
      height: 20px;
      border-radius: 4px;
      border: 1px solid #ddd;
    }

    .legend-color.perfect {
      background: #28a745;
    }

    .legend-color.strong-positive {
      background: #20c997;
    }

    .legend-color.moderate-positive {
      background: #6f42c1;
    }

    .legend-color.weak-positive {
      background: #17a2b8;
    }

    .legend-color.neutral {
      background: #ffffff;
    }

    .legend-color.weak-negative {
      background: #fd7e14;
    }

    .legend-color.moderate-negative {
      background: #dc3545;
    }

    .legend-color.strong-negative {
      background: #6f42c1;
    }

    .correlation-table {
      margin-bottom: 0;
      border-collapse: separate;
      border-spacing: 0;
    }

    .correlation-table thead th {
      background: linear-gradient(135deg, #bfa76a, #d4c4a8);
      color: #ffffff;
      font-weight: 600;
      padding: 1rem 0.75rem;
      border: none;
      font-size: 0.9rem;
      text-align: center;
    }

    .correlation-table tbody td {
      padding: 0.75rem;
      border: 1px solid #e9ecef;
      text-align: center;
      font-weight: 600;
      font-size: 0.9rem;
    }

    .correlation-table .row-header {
      background: #f8f9fa;
      font-weight: 600;
      text-align: left;
      color: #232526;
    }

    .correlation-cell {
      border-radius: 4px;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .correlation-cell.perfect {
      background: #28a745;
    }

    .correlation-cell.strong-positive {
      background: #20c997;
    }

    .correlation-cell.moderate-positive {
      background: #6f42c1;
    }

    .correlation-cell.weak-positive {
      background: #17a2b8;
    }

    .correlation-cell.neutral {
      background: #6c757d;
    }

    .correlation-cell.weak-negative {
      background: #fd7e14;
    }

    .correlation-cell.moderate-negative {
      background: #dc3545;
    }

    .correlation-cell.strong-negative {
      background: #6f42c1;
    }

    /* Risk & Sharpe Ratio Styles */
    .risk-section {
      background: #ffffff;
    }

    .risk-table {
      margin-bottom: 0;
      border-collapse: separate;
      border-spacing: 0;
    }

    .risk-table thead th {
      background: linear-gradient(135deg, #bfa76a, #d4c4a8);
      color: #ffffff;
      font-weight: 600;
      padding: 1rem 0.75rem;
      border: none;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .risk-table tbody td {
      padding: 1rem 0.75rem;
      vertical-align: middle;
      border: none;
      font-size: 0.9rem;
    }

    .risk-table tbody tr {
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .risk-table tbody tr:hover {
      background-color: rgba(191, 167, 106, 0.05);
      transform: translateY(-1px);
    }

    .return.positive {
      color: #28a745;
      font-weight: 600;
    }

    .return.negative {
      color: #dc3545;
      font-weight: 600;
    }

    .sharpe.positive {
      color: #28a745;
      font-weight: 600;
    }

    .sharpe.neutral {
      color: #ffc107;
      font-weight: 600;
    }

    .sharpe.negative {
      color: #dc3545;
      font-weight: 600;
    }

    .volatility,
    .drawdown,
    .var {
      color: #666;
      font-weight: 500;
    }

    /* Chart Section Styles */
    .chart-section {
      background: #f8f9fa;
    }

    .chart-container {
      background: #ffffff;
      border-radius: 12px;
      padding: 2rem;
      border: 1px solid #e9ecef;
    }

    .chart-placeholder {
      text-align: center;
      padding: 3rem 2rem;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-radius: 12px;
      border: 2px dashed #bfa76a;
    }

    .chart-info h4 {
      color: #232526;
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .chart-info p {
      color: #666;
      font-size: 1rem;
      margin-bottom: 2rem;
    }

    .chart-features {
      text-align: left;
      max-width: 600px;
      margin: 0 auto 2rem;
    }

    .chart-features h5 {
      color: #232526;
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .chart-features ul {
      list-style: none;
      padding: 0;
    }

    .chart-features li {
      padding: 0.5rem 0;
      border-bottom: 1px solid #e9ecef;
      color: #666;
    }

    .chart-features li:last-child {
      border-bottom: none;
    }

    .chart-note {
      background: rgba(191, 167, 106, 0.1);
      padding: 1rem;
      border-radius: 8px;
      border-left: 4px solid #bfa76a;
    }

    .chart-note p {
      margin: 0;
      color: #666;
      font-size: 0.9rem;
    }

    /* Calendar Section Styles */
    .calendar-section {
      background: #ffffff;
    }

    .calendar-table {
      margin-bottom: 0;
      border-collapse: separate;
      border-spacing: 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      border-radius: 8px;
      overflow: hidden;
      width: 100%;
    }

    .calendar-table thead th {
      background: linear-gradient(135deg, #bfa76a, #d4c4a8);
      color: #ffffff;
      font-weight: 600;
      padding: 1.1rem 0.85rem;
      border: none;
      white-space: nowrap;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .calendar-table tbody td {
      padding: 1.1rem 0.85rem;
      vertical-align: middle;
      border: none;
      font-size: 0.92rem;
      line-height: 1.5;
    }
    
    .calendar-table tbody tr {
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .calendar-table tbody tr:nth-child(even) {
      background-color: #F8F9FA;
    }

    .calendar-table tbody tr:hover {
      background-color: rgba(191, 167, 106, 0.08) !important;
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Highlight high impact events with light grey background */
    table.calendar-table tbody tr.high-impact {
      background-color: #f5f5f5 !important;
    }

    table.calendar-table tbody tr.high-impact:hover,
    table.calendar-table.table-hover tbody tr.high-impact:hover {
      background-color: rgba(191, 167, 106, 0.1) !important;
    }

    .event-name {
      font-weight: 600;
      color: #232526;
    }

    /* Unbold event names for medium impact events */
    .calendar-table tbody tr.medium-impact .event-name {
      font-weight: 400 !important;
    }

    .level {
      font-weight: 600;
      color: #232526;
      text-align: right;
    }

    .country {
      font-weight: 600;
      color: #232526;
      text-align: center;
    }

    .consensus {
      font-weight: 700;
      color: #232526;
      text-align: center;
    }

    .previous {
      font-weight: 400;
      color: #666;
      text-align: center;
    }

    .actual {
      font-weight: 600;
      color: #232526;
      text-align: center;
    }

    .impact {
      font-weight: 600;
      text-align: center;
    }

    .date {
      color: #666;
      font-style: italic;
    }

    /* Trend Cards Styles */
    .trend-cards-container {
      margin-top: 2rem;
    }

    .trend-cards-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      max-width: 1000px;
      margin: 0 auto;
    }

    .trend-card-item {
      background: #ffffff;
      border-radius: 16px;
      padding: 1.4rem 1.6rem;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border: 1px solid #eef1f4;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 1rem;
      min-height: 86px;
    }

    .trend-card-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(191, 167, 106, 0.15);
      border-color: #bfa76a;
    }

    .trend-card-item.trend-card-empty {
      background: transparent;
      border: none;
      box-shadow: none;
      cursor: default;
    }

    .trend-card-item.trend-card-empty:hover {
      transform: none;
      box-shadow: none;
    }

    .trend-icon {
      width: 52px;
      height: 52px;
      background: #f3f4f6;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .trend-icon i {
      font-size: 1.5rem;
      color: #b79b52;
    }

    .trend-content {
      flex: 1;
    }

    .trend-title {
      font-size: 1.05rem;
      font-weight: 600;
      color: #2b2b2b;
      margin: 0;
      line-height: 1.2;
    }

    .trend-arrow {
      color: #b6b6b6;
      font-size: 1.1rem;
      transition: transform 0.3s ease;
    }

    .trend-card-item:hover .trend-arrow {
      transform: translateX(3px);
    }

    /* Collapsible Content Styles */
    .collapse-content {
      margin-top: 2rem;
    }

    .trend-detail-card {
      background: #ffffff;
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      border: 1px solid #e9ecef;
      margin-bottom: 1rem;
    }

    .trend-detail-card h4 {
      color: #232526;
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      border-bottom: 2px solid #bfa76a;
      padding-bottom: 0.5rem;
    }

    .trend-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .stat-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid #bfa76a;
    }

    .stat-label {
      font-weight: 500;
      color: #666;
      font-size: 0.9rem;
    }

    .stat-value {
      font-weight: 600;
      color: #232526;
      font-size: 1rem;
    }

    .stat-value.positive {
      color: #28a745;
    }

    .stat-value.negative {
      color: #dc3545;
    }

    .trend-description {
      color: #666;
      line-height: 1.6;
      margin: 0;
      font-size: 0.95rem;
    }

    .trend-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 40px rgba(191, 167, 106, 0.15);
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .card-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: #232526;
      margin: 0;
    }

    .update-time {
      font-size: 0.8rem;
      color: #bfa76a;
      font-weight: 500;
    }

    .card-content {
      padding: 0;
    }

    /* Market Items */
    .market-item,
    .indicator-item,
    .sector-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .market-item:last-child,
    .indicator-item:last-child,
    .sector-item:last-child {
      border-bottom: none;
    }

    .market-info,
    .indicator-info {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .market-name,
    .indicator-name,
    .sector-name {
      font-size: 0.9rem;
      color: #666;
      font-weight: 500;
    }

    .market-value,
    .indicator-value {
      font-size: 1rem;
      color: #232526;
      font-weight: 600;
    }

    /* Market Changes */
    .market-change,
    .indicator-change,
    .sector-change {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      font-size: 0.9rem;
      font-weight: 600;
      padding: 0.25rem 0.5rem;
      border-radius: 6px;
    }

    .market-change.positive,
    .indicator-change.positive,
    .sector-change.positive {
      color: #28a745;
      background: rgba(40, 167, 69, 0.1);
    }

    .market-change.negative,
    .indicator-change.negative,
    .sector-change.negative {
      color: #dc3545;
      background: rgba(220, 53, 69, 0.1);
    }

    .indicator-change.neutral {
      color: #6c757d;
      background: rgba(108, 117, 125, 0.1);
    }

    /* Sector Performance */
    .sector-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .sector-bar {
      width: 100%;
      height: 6px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 3px;
      overflow: hidden;
    }

    .sector-fill {
      height: 100%;
      background: linear-gradient(90deg, #bfa76a, #8b7355);
      border-radius: 3px;
      transition: width 0.3s ease;
    }

    /* Articles Section */
    .articles-section {
      background-color: #f8f9fa;
    }

    /* Featured Articles Hover Effect */
    .featured-article-card:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15) !important;
    }

    /* Featured section: show only the 9 latest cards (newest first in markup) */
    #featured-articles .row.g-4 > div:nth-child(n + 10) {
      display: none !important;
    }
    
    /* Featured Articles Section Mobile Optimizations */
    @media (max-width: 768px) {
      /* Show only the 4 latest cards on mobile (order in markup = newest first) */
      #featured-articles .row.g-4 > div:nth-child(n + 5) {
        display: none !important;
      }

      .featured-articles-section {
        padding: 2rem 0 !important;
      }
      
      .featured-articles-section .section-header {
        margin-bottom: 1.5rem !important;
      }
      
      .featured-articles-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
      }
      
      .featured-articles-section .section-subtitle {
        font-size: 0.9rem !important;
      }
      
      .featured-article-card {
        margin-bottom: 1.5rem !important;
        height: auto !important;
      }
      
      .featured-article-card .article-image {
        height: 180px !important;
      }
      
      .featured-article-card .article-content {
        padding: 1rem !important;
      }
      
      .featured-article-card .article-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
      }
      
      .featured-article-card .article-excerpt {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
      }
      
      .featured-article-card .article-meta {
        font-size: 0.75rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
      }
      
      .featured-article-card .article-meta .article-author {
        margin-left: 0 !important;
      }
      
      .featured-article-card .article-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
      }
      
      .featured-article-card .read-more {
        width: 100% !important;
        text-align: center !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
      }
      
      .featured-article-card .article-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
      }
      
      .featured-articles-section .btn-outline-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
      }
    }
    
    @media (max-width: 480px) {
      .featured-articles-section {
        padding: 1.5rem 0 !important;
      }
      
      .featured-articles-section .section-title {
        font-size: 1.25rem !important;
      }
      
      .featured-articles-section .section-subtitle {
        font-size: 0.85rem !important;
      }
      
      .featured-article-card .article-image {
        height: 160px !important;
      }
      
      .featured-article-card .article-content {
        padding: 0.875rem !important;
      }
      
      .featured-article-card .article-title {
        font-size: 0.95rem !important;
      }
      
      .featured-article-card .article-excerpt {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
      }
      
      .featured-article-card .article-meta {
        font-size: 0.7rem !important;
      }
      
      .featured-article-card .read-more {
        padding: 0.45rem 0.875rem !important;
        font-size: 0.8rem !important;
      }
      
      .featured-article-card .tag {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
      }
    }
    
    .article-card {
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: all 0.3s ease;
      height: 100%;
    }

    .article-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(191, 167, 106, 0.15);
    }

    .article-image {
      position: relative;
      overflow: hidden;
      height: 200px;
    }

    .article-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .article-card:hover .article-image img {
      transform: scale(1.05);
    }

    .article-category {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: linear-gradient(135deg, #bfa76a, #8b7355);
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .article-content {
      padding: 1.5rem;
    }

    .article-meta {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
      font-size: 0.8rem;
      color: #666;
    }

    .article-meta span {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    .article-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: #232526;
      margin-bottom: 1rem;
      line-height: 1.4;
    }

    .article-title a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .article-title a:hover {
      color: #bfa76a;
    }

    .article-excerpt {
      color: #666;
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    .article-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .read-more {
      color: #bfa76a;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      transition: all 0.3s ease;
    }

    .read-more:hover {
      color: #8b7355;
      transform: translateX(3px);
    }

    .article-tags {
      display: flex;
      gap: 0.5rem;
    }

    .tag {
      background: rgba(191, 167, 106, 0.1);
      color: #bfa76a;
      padding: 0.25rem 0.5rem;
      border-radius: 12px;
      font-size: 0.7rem;
      font-weight: 500;
    }

    /* Newsletter Section */
    .newsletter-section {
      background: linear-gradient(135deg, #232526 0%, #2c2c2c 100%);
      color: white;
    }

    .newsletter-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 3rem 2rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .newsletter-icon i {
      font-size: 3rem;
      color: #bfa76a;
    }

    .newsletter-title {
      font-size: 2rem;
      font-weight: 700;
      color: white;
    }

    .newsletter-description {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.8);
      line-height: 1.6;
    }

    .newsletter-form .input-group {
      max-width: 500px;
      margin: 0 auto;
    }

    .newsletter-form .form-control {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      padding: 1rem;
    }

    .newsletter-form .form-control::placeholder {
      color: rgba(255, 255, 255, 0.6);
    }

    .newsletter-form .form-control:focus {
      background: rgba(255, 255, 255, 0.15);
      border-color: #bfa76a;
      box-shadow: 0 0 0 0.2rem rgba(191, 167, 106, 0.25);
      color: white;
    }

    .newsletter-note {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.7);
    }

    /* Load More Button */
    .btn-primary {
      background: linear-gradient(135deg, #bfa76a 0%, #8b7355 100%);
      border: none;
      padding: 1rem 2rem;
      border-radius: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(191, 167, 106, 0.4);
      background: linear-gradient(135deg, #8b7355 0%, #bfa76a 100%);
    }

    /* Comprehensive Mobile and Tablet Optimizations for Research Page */
    @media (max-width: 991px) {
      /* Tablet optimizations */
      .research-header-section {
        padding: 0 !important;
        height: 12px !important;
        background: #1E2875 !important;
      }

      .section-header {
        margin-bottom: 2rem !important;
      }

      .section-title {
        font-size: 2.25rem !important;
        padding: 0 15px;
      }

      .section-subtitle {
        font-size: 1rem !important;
        padding: 0 20px;
      }

      .trend-card {
        padding: 1.5rem !important;
      }

      .market-trends-section {
        padding: 50px 0 !important;
      }

      .table-description {
        font-size: 0.9rem !important;
        padding: 0 10px;
      }

      .performance-table,
      .risk-table,
      .correlation-table {
        font-size: 0.75rem !important;
      }

      .performance-table thead th,
      .risk-table thead th {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.75rem !important;
      }

      .performance-table tbody td,
      .risk-table tbody td {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.75rem !important;
      }

      .articles-section {
        padding: 50px 0 !important;
      }

      .article-card {
        margin-bottom: 1.5rem !important;
      }

      .newsletter-section {
        padding: 50px 0 !important;
      }

      .newsletter-card {
        padding: 2rem 1.5rem !important;
      }

      .newsletter-title {
        font-size: 1.75rem !important;
      }

      .newsletter-description {
        font-size: 1rem !important;
      }
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
      /* Risk & Sharpe: desktop/tablet only — hidden on mobile */
      section#risk-sharpe.risk-section {
        display: none !important;
      }

      .research-header-section {
        padding: 0 !important;
        height: 12px !important;
        background: #1E2875 !important;
      }

      .header-title {
        display: none !important;
      }

      .header-subtitle {
        font-size: 1.1rem !important;
      }

      .section-title {
        font-size: 2rem !important;
        padding: 0 15px;
      }

      .section-subtitle {
        font-size: 0.95rem !important;
        padding: 0 20px;
      }

      .trend-card {
        padding: 1.25rem !important;
      }

      .card-title {
        font-size: 1.1rem !important;
      }

      .market-name,
      .indicator-name,
      .sector-name {
        font-size: 0.85rem !important;
      }

      .market-value,
      .indicator-value {
        font-size: 0.9rem !important;
      }

      /* Performance Table Mobile Styles */
      .performance-table thead th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
      }

      .performance-table tbody td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
      }

      .risk-table thead th {
        padding: 0.7rem 0.4rem !important;
        font-size: 0.75rem !important;
      }

      .risk-table tbody td {
        padding: 0.7rem 0.4rem !important;
        font-size: 0.75rem !important;
      }

      .correlation-table {
        font-size: 0.7rem !important;
      }

      .correlation-table td {
        padding: 0.5rem !important;
      }

      .market-trends-section {
        padding: 40px 0 !important;
      }

      .table-description {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
        padding: 0 10px;
      }

      .articles-section {
        padding: 40px 0 !important;
      }

      .article-content {
        padding: 1.25rem !important;
      }

      .article-title {
        font-size: 1.1rem !important;
      }

      .newsletter-section {
        padding: 40px 0 !important;
      }

      .newsletter-card {
        padding: 1.75rem 1.25rem !important;
      }

      .newsletter-title {
        font-size: 1.5rem !important;
      }

      .newsletter-description {
        font-size: 0.95rem !important;
      }

      .instrument-name {
        font-size: 0.85rem;
      }

      .instrument-level {
        font-size: 0.85rem;
      }

      .performance {
        font-size: 0.8rem;
      }

      .percentile {
        font-size: 0.8rem;
      }

      .table-description {
        font-size: 0.85rem;
      }

      /* New Sections Mobile Styles */
      .correlation-legend {
        padding: 1rem;
      }

      .legend-items {
        grid-template-columns: 1fr;
        gap: 0.5rem;
      }

      .correlation-table thead th,
      .correlation-table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
      }

      .risk-table thead th,
      .risk-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
      }

      .calendar-table thead th,
      .calendar-table tbody td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
      }

      .chart-container {
        padding: 1rem !important;
      }
      
      /* Economic Calendar Mobile Optimizations */
      .calendar-section {
        padding: 40px 0 !important;
      }
      
      .calendar-table {
        font-size: 0.75rem !important;
      }
      
      .calendar-table thead th {
        padding: 0.7rem 0.4rem !important;
        font-size: 0.75rem !important;
      }
      
      .calendar-table tbody td {
        padding: 0.7rem 0.4rem !important;
        font-size: 0.75rem !important;
      }
      
      /* Better spacing for all sections on mobile */
      .market-trends-section,
      .articles-section,
      .calendar-section,
      .newsletter-section {
        padding: 40px 0 !important;
      }
      
      /* Improve container padding */
      .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
      }
      
      /* Better button sizing */
      .btn-primary,
      .btn-outline-primary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
      }
      
      /* Improve card spacing */
      .row.g-4 {
        --bs-gutter-y: 1.5rem !important;
        --bs-gutter-x: 1rem !important;
      }

      .chart-placeholder {
        padding: 2rem 1rem;
      }

      .chart-info h4 {
        font-size: 1.25rem;
      }

      .chart-features {
        max-width: 100%;
      }

      /* Trend Cards Mobile Styles */
      .trend-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }

      .trend-card-item {
        padding: 1rem;
        min-height: 70px;
      }

      .trend-icon {
        width: 40px;
        height: 40px;
      }

      .trend-icon i {
        font-size: 1.2rem;
      }

      .trend-title {
        font-size: 1rem;
      }

      .trend-arrow {
        font-size: 1rem;
      }

      /* Collapsible Content Mobile Styles */
      .trend-detail-card {
        padding: 1.5rem;
      }

      .trend-detail-card h4 {
        font-size: 1.25rem;
      }

      .trend-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
      }

      .stat-item {
        padding: 0.5rem;
      }

      .stat-label,
      .stat-value {
        font-size: 0.85rem;
      }

      .trend-description {
        font-size: 0.9rem;
      }

      .article-content {
        padding: 1.25rem;
      }

      .article-title {
        font-size: 1.1rem;
      }

      .newsletter-card {
        padding: 2rem 1.5rem;
      }

      .newsletter-title {
        font-size: 1.75rem;
      }

      .newsletter-description {
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      .research-header-section {
        padding: 0 !important;
        height: 12px !important;
        background: #1E2875 !important;
      }

      .header-title {
        display: none !important;
      }

      .header-subtitle {
        font-size: 1rem !important;
        padding: 0 15px;
      }

      .section-title {
        font-size: 1.75rem !important;
        padding: 0 10px;
      }

      .section-subtitle {
        font-size: 0.9rem !important;
        padding: 0 15px;
      }

      .market-trends-section {
        padding: 30px 0 !important;
      }

      .trend-card {
        padding: 1rem !important;
      }

      .card-title {
        font-size: 1rem !important;
      }

      .table-description {
        font-size: 0.8rem !important;
        padding: 0 10px;
      }

      .performance-table thead th {
        padding: 0.6rem 0.3rem !important;
        font-size: 0.7rem !important;
      }

      .performance-table tbody td {
        padding: 0.6rem 0.3rem !important;
        font-size: 0.7rem !important;
      }

      .risk-table thead th {
        padding: 0.6rem 0.3rem !important;
        font-size: 0.7rem !important;
      }

      .risk-table tbody td {
        padding: 0.6rem 0.3rem !important;
        font-size: 0.7rem !important;
      }

      .correlation-table {
        font-size: 0.65rem !important;
      }

      .correlation-table td {
        padding: 0.4rem !important;
      }

      .articles-section {
        padding: 30px 0 !important;
      }

      .article-content {
        padding: 1rem !important;
      }

      .article-title {
        font-size: 1rem !important;
      }

      .article-excerpt {
        font-size: 0.85rem !important;
      }

      .newsletter-section {
        padding: 30px 0 !important;
      }

      .newsletter-card {
        padding: 1.5rem 1rem !important;
      }

      .newsletter-title {
        font-size: 1.35rem !important;
      }

      .newsletter-description {
        font-size: 0.9rem !important;
      }

      .newsletter-form .form-control {
        font-size: 14px !important;
        padding: 0.875rem !important;
      }

      .btn-primary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
      }
      
      .section-title {
        font-size: 1.75rem !important;
        padding: 0 10px;
      }
      
      .section-subtitle {
        font-size: 0.85rem !important;
        padding: 0 15px;
      }

      .trend-card {
        padding: 1rem !important;
      }

      .article-content {
        padding: 1rem !important;
      }

      .newsletter-card {
        padding: 1.5rem 1rem !important;
      }

      .newsletter-title {
        font-size: 1.5rem !important;
      }
      
      .newsletter-description {
        font-size: 0.9rem !important;
      }
    }
    .reveal-item {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity .85s ease, transform .85s ease;
    }
    .reveal-item.reveal-in {
      opacity: 1;
      transform: translateY(0);
    }
