/*
Theme Name: Today's Forex News Clean
Theme URI: https://todaysforexnews.com/
Author: Balian Web Dev Co.
Description: A clean, dependency-free editorial theme reconstructed from the latest intact Today's Forex News design.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: todaysforex-clean
*/

:root {
  --gold: #fbb03b;
  --gold-bright: #fcb900;
  --black: #000;
  --ink: #15151d;
  --muted: #6c6d76;
  --line: #e7e7e9;
  --paper: #fff;
  --soft: #f5f5f6;
  --container: 1068px;
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--display); line-height: 1.2; }
p { margin: 0 0 1.5em; }

.site-container { width: var(--container); max-width: calc(100% - 40px); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}
.screen-reader-text:focus, .skip-link:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  z-index: 10000;
}
.skip-link { position: fixed; top: -100px; left: 10px; }
.skip-link:focus { top: 10px; }

/* Header */
.site-header { position: relative; z-index: 50; }
.utility-bar { min-height: 42px; background: #000; color: #fff; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.utility-bar time, .utility-menu a { font-size: 14px; line-height: 42px; }
.utility-menu { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.utility-menu a:hover { color: var(--gold); }

.brand-bar {
  position: relative;
  overflow: visible;
  min-height: 90px;
  background:
    linear-gradient(100deg, rgba(0, 104, 108, .45), transparent 30%),
    linear-gradient(110deg, #07171b 0%, #171f20 48%, #291d0c 100%);
}
.brand-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px);
}
.brand-bar__inner { position: relative; display: flex; align-items: center; min-height: 90px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 236px; color: #fff; }
.brand:hover { color: #fff; }
.brand .custom-logo-link { display: flex; align-items: center; }
.brand .custom-logo { width: auto; max-width: 236px; max-height: 58px; }
.brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 57px;
  height: 58px;
  margin-right: 8px;
  color: white;
  font: 800 58px/.9 Arial, sans-serif;
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  border-top: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 17px solid var(--gold);
  transform: rotate(180deg);
}
.brand__words { display: flex; flex-direction: column; }
.brand__words strong { font: 700 28px/.9 var(--display); letter-spacing: -1.5px; }
.brand__words strong span { color: var(--gold); }
.brand__words small { align-self: flex-end; margin-top: 5px; color: #fff; font: 10px/1 var(--display); }

.primary-nav { margin-left: auto; }
.primary-menu { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 90px;
  padding: 0 15px;
  color: #fff;
  font: 400 16px/1 var(--display);
  text-transform: capitalize;
  transition: color .2s ease, background .2s ease;
}
.primary-menu > li:hover > a, .primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a { color: var(--gold); }
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  background: #0b0b0b;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: .18s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: 10px 18px; color: #fff; font: 400 15px/1.4 var(--display); }
.primary-menu .sub-menu a:hover { color: var(--gold); }
.search-toggle, .nav-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.search-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-toggle:hover { color: var(--gold); }
.nav-toggle { display: none; }
.header-search { position: absolute; top: 100%; right: 0; left: 0; padding: 18px 0; background: rgba(0,0,0,.96); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.header-search[hidden] { display: none; }
.search-form { display: flex; width: min(100%, 620px); }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 46px; padding: 0 15px; border: 1px solid #d6d6d6; border-radius: 0; background: #fff; color: #111; }
.search-submit, .button { padding: 0 22px; border: 0; background: var(--gold); color: #111; font-family: var(--display); font-weight: 600; cursor: pointer; }
.search-submit:hover, .button:hover { background: #000; color: #fff; }

/* Homepage */
.breadcrumbs { padding-top: 18px; padding-bottom: 12px; color: #8a8a91; font-size: 12px; }
.breadcrumbs a { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.hero-card { position: relative; overflow: hidden; height: 300px; background: #151515; }
.hero-card__image, .hero-card__image img, .hero-card__image .image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.tfn-preview-media { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #111820; isolation: isolate; }
.tfn-preview-backdrop, .tfn-preview-foreground { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.tfn-preview-backdrop { z-index: 0; object-fit: cover; filter: blur(15px) brightness(.38) saturate(.8); transform: scale(1.13); }
.tfn-preview-foreground { z-index: 1; object-fit: contain; }
.hero-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 24%, transparent 78%); }
.hero-card__content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 20px; color: #fff; }
.hero-card h2 { margin-bottom: 9px; font-size: 16px; line-height: 22px; font-weight: 600; }
.hero-card h2 a:hover { color: rgba(255,255,255,.72); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0; color: #72737e; font-size: 12px; text-transform: capitalize; }
.post-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px; border-radius: 50%; background: #b3b3b3; }
.post-meta a { font-weight: 600; }
.hero-card .post-meta { color: #f3f3f3; }

.content-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; padding-top: 34px; padding-bottom: 54px; }
.main-column, .home-sidebar { min-width: 0; }
.section-title { margin: 0 0 20px; font-size: 24px; font-weight: 700; }
.brokers-section { margin-bottom: 42px; }
.broker-table-wrap { overflow-x: auto; border-top: 3px solid var(--gold); box-shadow: 0 8px 24px rgba(10,10,20,.06); }
.broker-table { width: 100%; border-collapse: collapse; background: #fff; }
.broker-table th { padding: 12px 14px; background: #111; color: #fff; text-align: left; font: 600 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.broker-table td { height: 66px; padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.broker-table tr:last-child td { border-bottom: 0; }
.broker-table tbody tr:hover { background: #fafafa; }
.broker-rank { width: 55px; color: var(--gold); font: 600 17px/1 var(--display); }
.broker-name { width: 44%; }
.broker-name a { display: flex; align-items: center; gap: 12px; }
.broker-name img, .broker-monogram { width: 92px; height: 42px; object-fit: contain; }
.broker-monogram { display: inline-grid; place-items: center; background: #121722; color: #fff; font: 700 16px/1 var(--display); }
.broker-name strong { font-family: var(--display); font-size: 13px; }
.stars { --percent: calc(var(--rating) / 5 * 100%); position: relative; display: inline-block; color: #d9d9dc; font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; overflow: hidden; width: var(--percent); color: var(--gold); }
.review-link { color: var(--gold); font-family: var(--display); font-weight: 600; white-space: nowrap; }

.more-posts { padding-top: 2px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-card { min-width: 0; }
.post-card__image { display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--soft); }
.post-card__image .image-placeholder { width: 100%; height: 100%; }
.post-card__content { padding-top: 10px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 5px; }
.category-pills a { display: inline-block; padding: 3px 7px; border-radius: 2px; background: #000; color: #fff; font-size: 12px; line-height: 20px; }
.category-pills a:hover { background: var(--gold-bright); color: #111; }
.post-card h3 { margin-top: 6px; font-size: 19px; line-height: 1.3; font-weight: 500; }
.post-card h3 a:hover { color: var(--gold-bright); }
.image-placeholder { display: grid; place-items: center; background: linear-gradient(140deg, #07171b, #263338); color: rgba(255,255,255,.7); }
.image-placeholder span { font: 700 28px/1 var(--display); letter-spacing: .08em; }

.pagination { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 35px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 8px 14px; border-radius: 2px; background: #000; color: #fff; font: 600 14px/1 var(--display); }
.pagination .current, .pagination .page-numbers:hover { background: var(--gold-bright); color: #111; }
.nav-links { display: flex; flex-wrap: wrap; gap: 5px; }

.home-sidebar { padding-top: 2px; }
.section-tab { display: flex; margin: 0 0 20px; border-bottom: 2px solid var(--gold-bright); font-size: 20px; font-weight: 700; }
.section-tab span { display: inline-block; padding: 7px 13px 6px; background: var(--gold-bright); color: #fff; }
.sidebar-story { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 24px; }
.sidebar-story__image { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.sidebar-story__image .image-placeholder { width: 100%; height: 100%; }
.sidebar-story .image-placeholder span { font-size: 16px; }
.sidebar-story h3 { font-size: 15px; line-height: 1.35; font-weight: 500; }
.sidebar-story h3 a:hover { color: var(--gold-bright); }

/* Listings and articles */
.listing-main, .page-main, .article-layout { padding-top: 46px; padding-bottom: 64px; }
.listing-header { margin-bottom: 30px; padding-bottom: 15px; border-bottom: 3px solid var(--gold); }
.listing-header h1, .page-article > h1 { font-size: clamp(28px, 4vw, 42px); }
.listing-header > div { max-width: 720px; margin-top: 8px; color: var(--muted); }
.listing-main .post-grid { row-gap: 42px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; }
.article h1 { max-width: 820px; margin: 10px 0 13px; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }
.article > .post-meta { margin-bottom: 25px; }
.article__hero { margin: 0 0 30px; }
.article__hero .tfn-preview-media { aspect-ratio: 16/9; }
.entry-content { color: #28282f; font-size: 16px; line-height: 1.75; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.6em 0 .65em; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 23px; }
.entry-content a { color: #c87a00; text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote { margin: 2em 0; padding: 5px 0 5px 24px; border-left: 4px solid var(--gold); color: #484852; font-family: var(--body); font-size: 18px; }
.entry-content figure { max-width: 100%; margin: 1.8em 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); }
.post-navigation { margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { color: var(--gold); font-family: var(--display); font-weight: 600; }
.article-sidebar { padding-top: 5px; }
.simple-story { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 500; line-height: 1.35; }
.page-article { max-width: 790px; margin-inline: auto; }
.page-article > h1 { margin-bottom: 25px; }
.not-found { min-height: 58vh; padding-top: 80px; padding-bottom: 80px; text-align: center; }
.not-found__code { margin: 0; color: var(--gold); font: 800 clamp(82px, 16vw, 180px)/.85 var(--display); }
.not-found h1 { margin: 18px 0 12px; font-size: clamp(28px, 5vw, 46px); }
.not-found .search-form { margin: 28px auto; }
.not-found .button { display: inline-block; padding: 13px 22px; }

/* Footer */
.site-footer { background: var(--gold); color: #fff; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.footer-menu, .site-footer .utility-menu { display: flex; flex-wrap: wrap; gap: 25px; margin: 0; padding: 0; list-style: none; }
.footer-menu a, .site-footer .utility-menu a { color: #fff; }
.footer-menu a:hover, .site-footer .utility-menu a:hover { color: rgba(255,255,255,.78); }
.site-footer p { margin: 0; }

@media (max-width: 1140px) {
  :root { --container: 980px; }
  .primary-menu > li > a { padding-inline: 10px; font-size: 15px; }
  .content-layout, .article-layout { gap: 40px; }
}

@media (max-width: 1018px) {
  :root { --container: 740px; }
  .utility-menu { gap: 15px; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; }
  .nav-toggle span:not(.screen-reader-text) { display: block; width: 23px; height: 2px; background: currentColor; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(370px, 88vw);
    padding: 84px 28px 35px;
    background: rgba(0,0,0,.97);
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -20px 0 45px rgba(0,0,0,.3);
  }
  .primary-nav.is-open { transform: none; }
  .primary-menu { display: block; }
  .primary-menu > li > a { min-height: 52px; padding: 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 18px; }
  .primary-menu .sub-menu { position: static; display: block; visibility: visible; min-width: 0; padding: 0 0 7px 18px; background: transparent; opacity: 1; transform: none; box-shadow: none; }
  .primary-menu .sub-menu a { padding: 7px 0; color: #bbb; }
  .nav-toggle[aria-expanded="true"] { position: fixed; top: 21px; right: 27px; z-index: 101; }
  .hero-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .home-sidebar .section-tab { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { display: none; }
}

@media (max-width: 767px) {
  .site-container { width: 100%; max-width: none; padding-right: 20px; padding-left: 20px; }
  .utility-bar { display: none; }
  .brand-bar, .brand-bar__inner { min-height: 74px; }
  .brand { min-width: 0; }
  .brand .custom-logo { max-width: 190px; max-height: 48px; }
  .brand__mark { width: 46px; height: 46px; font-size: 46px; }
  .brand__words strong { font-size: 22px; }
  .brand__words small { font-size: 8px; }
  .search-toggle { margin-left: 0; }
  .breadcrumbs { padding-top: 13px; padding-bottom: 9px; }
  .hero-grid, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { height: 285px; }
  .content-layout { gap: 42px; padding-top: 27px; }
  .section-title { font-size: 22px; }
  .broker-table th:nth-child(3), .broker-table td:nth-child(3) { display: none; }
  .broker-table th, .broker-table td { padding-inline: 9px; }
  .broker-name img, .broker-monogram { width: 66px; height: 36px; }
  .broker-name strong { display: none; }
  .review-link { font-size: 12px; }
  .home-sidebar { display: block; }
  .sidebar-story { grid-template-columns: 32% minmax(0, 1fr); }
  .listing-main, .page-main, .article-layout { padding-top: 30px; padding-bottom: 48px; }
  .entry-content { font-size: 15px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 19px; padding-bottom: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
