/*
Theme Name: optionbouse
Description: RTL financial blog theme for Option Bourse.
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: optionbourse
*/
@font-face {
  font-family: "IRANSansWeb";
  src: url("assets/fonts/iransans/woff2/IRANSansWeb_UltraLight.woff2")
    format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansWeb";
  src: url("assets/fonts/iransans/woff2/IRANSansWeb_Light.woff2")
    format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansWeb";
  src: url("assets/fonts/iransans/woff2/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansWeb";
  src: url("assets/fonts/iransans/woff2/IRANSansWeb_Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansWeb";
  src: url("assets/fonts/iransans/woff2/IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansWeb";
  src: url("assets/fonts/iransans/woff2/IRANSansWeb_Black.woff2")
    format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --module-buy: #ddddff;
  --module-sale: #ffdddd;
  --divider: rgba(0, 0, 0, 0.12);
  --primary: #e3f4f4;
  --primary-dark: #50a1a1;
  --primary-light: #c4dfdf;
  --primary-contrast: #000;
  --secondary: #3a7d8c;
  --secondary-light: #87b9c4;
  --secondary-lightest: #71d0f450;
  --secondary-contrast: #fff;
  --info: #c4dfdf;
  --info-secondary: #2f3e53;
  --info-lightest: #0f99fa40;
  --info-light: #939dac;
  --success: #27a17c;
  --error: #ff3547;
  --warning: #ff9d00;
  --grey-30: #ddd;
  --grey-50: #939dac;
  --grey-100: #717781;
  --grey-200: #9a9a9a;
  --navy: var(--secondary);
  --navy2: var(--primary-dark);
  --teal: var(--secondary);
  --teal-soft: var(--primary);
  --ink: #000;
  --muted: var(--grey-100);
  --line: var(--divider);
  /* --surface: var(--primary-light); */
  --surface: #ffffff;
  --surface2: var(--primary);
  --bg: var(--primary);
  --shadow: 0 14px 40px rgba(58, 125, 140, 0.14);
  --category-bg: #d8f3ef;
  --category-text: #155e59;
  --category-border: #78c8bf;
}
[data-theme="dark"] {
  --module-buy: #8181b5;
  --module-sale: #c18a8a;
  --divider: rgba(250, 250, 250, 0.1);
  --primary: #182634;
  --primary-dark: #202328;
  --primary-light: #114559;
  --primary-contrast: #fff;
  --secondary: #c4dfdf;
  --secondary-light: #87b9c4;
  --secondary-lightest: #71d0f450;
  --secondary-contrast: #182634;
  --info: #114559;
  --info-secondary: #2f3e53;
  --info-lightest: #0f99fa40;
  --info-light: #939dac;
  --success: #27a17c;
  --error: #ff3547;
  --warning: #ff9d00;
  --navy: var(--primary);
  --navy2: var(--primary-light);
  --teal: var(--secondary);
  --teal-soft: var(--info);
  --ink: #fff;
  --muted: var(--info-light);
  --line: var(--divider);
  --surface: var(--primary-light);
  --surface2: var(--primary-dark);
  --bg: var(--primary);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  --category-bg: #1b535c;
  --category-text: #baf8ee;
  --category-border: #59c7bb;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "IRANSansWeb", "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary-light);
  box-shadow: 0 4px 10px rgba(10, 62, 86, 0.1);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-logo {
  width: 120px;
  height: 38px;
  object-fit: contain;
}
.dark-logo,
.mobile-logo {
  display: none;
}
[data-theme="dark"] .light-logo {
  display: none;
}
[data-theme="dark"] .desktop-logo.dark-logo {
  display: block;
}
.brand-mark {
  direction: ltr;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -1px;
  color: #062451;
  white-space: nowrap;
}
.brand-mark span {
  display: block;
  color: var(--teal);
  font-size: 14px;
  letter-spacing: 3.7px;
  line-height: 0.8;
}
[data-theme="dark"] .brand-mark {
  color: #eaf1f8;
}
.nav-links {
  flex: 1;
}
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 24px 0 24px;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  color: #000000;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  min-height: 38px;
  min-width: 90px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: rgba(58, 125, 140, 0.5);
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
.nav-links a:hover::after {
  width: 90%;
}
.nav-links a.active::after,
.nav-links .active a::after,
.nav-links .current-menu-item a::after {
  width: 90%;
}
.nav-links a.active::after,
.nav-links .active a::after,
.nav-links .current-menu-item a::after {
  background-color: #3a7d8c;
}
[data-theme="dark"] .nav-links a {
  color: #ffffff;
}
[data-theme="dark"] .nav-links a::after {
  background-color: rgba(196, 223, 223, 0.5);
}
[data-theme="dark"] .nav-links .current-menu-item a::after,
[data-theme="dark"] .nav-links a.active::after,
[data-theme="dark"] .nav-links .active a::after {
  background-color: rgb(196, 223, 223);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-toggle {
  width: 40px;
  height: 40px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: none;
  align-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.icon-btn:hover {
  transform: translateY(-1px);
  color: var(--teal);
}
.theme-switch {
  width: 58px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}
.theme-switch-track {
  display: block;
  position: relative;
  width: 42px;
  height: 18px;
  padding: 1px;
  border-radius: 999px;
  background: #aab4be;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.theme-switch-thumb {
  display: grid;
  position: absolute;
  top: -5px;
  left: -1px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #001e3c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.theme-switch-icon {
  display: block;
  width: 17px;
  height: 17px;
}
.theme-switch-icon.moon {
  display: none;
}
.theme-switch:hover .theme-switch-track {
  border-color: var(--secondary-light);
}
[data-theme="dark"] .theme-switch-track {
  background: #8796a5;
}
[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(18px);
  background: #003892;
}
[data-theme="dark"] .theme-switch-icon.sun {
  display: none;
}
[data-theme="dark"] .theme-switch-icon.moon {
  display: block;
}
.hero {
  padding: 48px 0 26px;
}
.hero-slider-shell {
  background: linear-gradient(135deg, #011b43 0%, #06295b 63%, #064c66 100%);
  color: #fff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-slider-shell:after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 187, 167, 0.25), transparent 70%);
  left: -70px;
  top: -100px;
}
.hero-slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #9ef0e4;
}
.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fe1ca;
  box-shadow: 0 0 0 5px rgba(47, 225, 202, 0.12);
}
.hero h1 {
  font-size: 31px;
  line-height: 1.4;
  margin: 10px 0 8px;
}
.hero p {
  margin: 0;
  color: #d9e6f4;
  max-width: 760px;
}
.hero-slides {
  position: relative;
  z-index: 2;
}
.hero-slide {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  animation: fade 0.4s;
}
.hero-slide.active {
  display: grid;
}
@keyframes fade {
  from {
    opacity: 0.2;
    transform: translateY(5px);
  }
}
.hero-article {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 190px;
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
}
.hero-visual {
  position: relative;
  min-height: 190px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(0, 187, 167, 0.05)
  );
  overflow: hidden;
}
.hero-visual:after {
  content: "";
  position: absolute;
  inset: 40% 8% 25%;
  border-top: 3px solid var(--teal);
  transform: skewY(-12deg);
  box-shadow: 55px -12px 0 -1px #9bded7;
}
.hero-visual .pill {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}
.visual-symbol {
  position: absolute;
  direction: ltr;
  left: 15px;
  bottom: 6px;
  font-size: 32px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.1);
}
.hero-article-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-article-body .meta {
  color: #c7d7e9;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.hero-article-body h2 {
  font-size: 17px;
  line-height: 1.65;
  margin: 8px 0 6px;
}
.hero-article-description {
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 14px;
  color: #d9e6f4;
}
.hero-article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-article-body a {
  color: #8ceadd;
  font-weight: 900;
  font-size: 12px;
}
.hero-article-actions a {
  margin-right: auto;
}
.hero-dots {
  display: flex;
  gap: 7px;
  direction: ltr;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  padding: 0;
}
.hero-dot.active {
  width: 24px;
  background: #31d7c3;
}
.articles-section {
  padding-bottom: 88px;
}
.content-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.content-head h2 {
  font-size: 24px;
  margin: 0 0 4px;
}
.content-head p,
.content-head > span {
  margin: 0;
  color: var(--muted);
}
.search-row {
  margin-top: 17px;
  background: var(--primary-light);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(1, 27, 67, 0.04);
}
.searchbox {
  position: relative;
}
.searchbox > span {
  position: absolute;
  right: 14px;
  top: -4px;
  color: var(--muted);
  font-size: 32px;
}
.searchbox input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--primary);
  color: var(--ink);
  padding: 0 43px 0 14px;
  outline: none;
}
.searchbox input:focus {
  border-color: #7edace;
  box-shadow: 0 0 0 3px rgba(0, 187, 167, 0.1);
}
.filter-btn {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--primary);
  color: var(--ink);
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.count {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 99px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.topic-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
  padding: 14px 0 18px;
}
.topic-chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 700;
}
.topic-chip:hover,
.topic-chip.active {
  background: var(--teal-soft);
  color: var(--teal);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 345px;
}
[data-theme="dark"] .card {
  background: var(--surface);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c7eae5;
}
.card-cover {
  height: 155px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #edf4f8, #f8fbfc);
  display: block;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
}
.cover-symbol {
  position: absolute;
  left: 18px;
  bottom: 8px;
  font-size: 52px;
  font-weight: 900;
  color: rgba(1, 27, 67, 0.09);
  direction: ltr;
}
.chart-line {
  position: absolute;
  right: 8%;
  left: 8%;
  top: 56%;
  height: 3px;
  background: linear-gradient(
    100deg,
    #103b70 0 20%,
    transparent 20% 24%,
    var(--teal) 24% 48%,
    transparent 48% 52%,
    #103b70 52% 70%,
    transparent 70% 74%,
    var(--teal) 74%
  );
  transform: skewY(-7deg);
}
.card-topbadges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pill.teal {
  background: var(--teal-soft);
  color: var(--teal);
  /* border-color: #c7efe9; */
}
.category-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--category-border);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--category-bg);
  color: var(--category-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}
.pill.level {
  background: #fff7e8;
  color: #a66d09;
  border-color: #f4e1b8;
}
.card-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 11.5px;
  flex-wrap: wrap;
}
.meta-separator {
  margin: 0 2px;
}
.card h3 {
  font-size: 16px;
  line-height: 1.65;
  margin: 7px 0 8px;
}
.card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.read-link {
  color: var(--teal);
  font-weight: 900;
  font-size: 12px;
}
.empty {
  grid-column: 1/-1;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  padding: 42px;
  color: var(--muted);
  display: none;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 46px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.page-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.footer {
  background: var(--primary-light);
  padding: 24px 0;
  color: var(--muted);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.footer-title {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: 18px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a {
  color: var(--primary-contrast);
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--secondary);
}
.footer-divider {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--secondary);
}
.footer-copyright {
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-size: 16px;
  color: var(--primary-contrast);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 17, 34, 0.36);
  z-index: 70;
  display: none;
}
.drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(390px, 92vw);
  background: var(--primary);
  z-index: 80;
  transform: translateX(-100%);
  transition: 0.25s;
  padding: 24px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
}
.drawer.open {
  transform: none;
}
.drawer-backdrop.open {
  display: block;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-group {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.filter-group h4 {
  margin: 0;
  color: var(--ink);
}
.filter-group input {
  accent-color: var(--teal);
}
.drawer-actions {
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-primary,
.btn-secondary {
  height: 44px;
  border-radius: 11px;
  font-weight: 900;
}
.btn-primary {
  border: 0;
  background: var(--navy);
  color: #fff;
}
.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.fallback-content {
  min-height: 65vh;
  padding-block: 48px;
}
.entry {
  background: var(--surface);
  padding: 30px;
  border-radius: 18px;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-article {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 125px;
  }
  .nav {
    gap: 18px;
    justify-content: space-between;
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: block;
  }
  .nav-links ul {
    display: grid;
    gap: 3px;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 14px;
  }
  .menu-toggle {
    display: grid;
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1240px);
  }
  .articles-section {
    padding-bottom: 64px;
  }
  .nav {
    min-height: 64px;
    gap: 12px;
    justify-content: space-between;
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .nav-links.open {
    display: block;
  }
  .nav-links ul {
    display: grid;
    gap: 3px;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 14px;
  }
  .menu-toggle {
    display: grid;
  }
  .theme-logo {
    width: 44px;
    height: 44px;
  }
  .desktop-logo,
  [data-theme="dark"] .desktop-logo.dark-logo {
    display: none;
  }
  .mobile-logo.light-logo {
    display: block;
  }
  [data-theme="dark"] .mobile-logo.light-logo {
    display: none;
  }
  [data-theme="dark"] .mobile-logo.dark-logo {
    display: block;
  }
  .hero {
    padding-top: 26px;
  }
  .hero-slider-shell {
    padding: 23px;
  }
  .hero-slider-head {
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 25px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
  }
  .hero-article {
    grid-template-columns: 38% 1fr;
  }
  .hero-visual {
    min-height: 155px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .content-head p {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .hero-article {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 120px;
  }
  .hero-slider-head {
    display: block;
  }
  .hero-dots {
    margin-top: 16px;
  }
  .content-head > span {
    display: none;
  }
  .search-row {
    grid-template-columns: 1fr;
  }
}

/* MUI palette integration */
.hero-slider-shell {
  background: linear-gradient(135deg, #011b43 0%, #06295b 63%, #064c66 100%);
}
.hero-slider-shell:after {
  background: radial-gradient(
    circle,
    var(--secondary-lightest),
    transparent 70%
  );
}
[data-theme="dark"] .hero-slider-shell {
  background: linear-gradient(135deg, #011b43 0%, #06295b 63%, #064c66 100%);
}
.eyebrow,
.hero-article-body a {
  color: var(--secondary-contrast);
}
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .hero-article-body a {
  color: var(--secondary);
}
.eyebrow:before,
.hero-dot.active {
  background: var(--secondary-light);
}
.eyebrow:before {
  box-shadow: 0 0 0 5px var(--secondary-lightest);
}
.hero p,
.hero-article-body .meta {
  color: var(--secondary-contrast);
  opacity: 0.82;
}
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero-article-body .meta {
  color: var(--primary-contrast);
}
.hero-visual {
  background: linear-gradient(145deg, var(--secondary-lightest), transparent);
}

.hero-visual .category-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 22;
}
.hero-visual:after {
  border-color: var(--secondary-light);
  box-shadow: 55px -12px 0 -1px var(--secondary);
}
.brand-mark {
  color: var(--secondary);
}
[data-theme="dark"] .brand-mark {
  color: var(--primary-contrast);
}
.icon-btn:hover,
.card:hover {
  border-color: var(--secondary-light);
}
.searchbox input:focus {
  border-color: var(--secondary-light);
  box-shadow: 0 0 0 3px var(--secondary-lightest);
}
.pill.teal {
  border-color: var(--secondary-light);
}
.pill.level {
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 35%, transparent);
}
.card-cover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
[data-theme="dark"] .card-cover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
}
.cover-symbol {
  color: color-mix(in srgb, var(--secondary) 18%, transparent);
}
.chart-line {
  background: linear-gradient(
    100deg,
    var(--secondary) 0 20%,
    transparent 20% 24%,
    var(--primary-dark) 24% 48%,
    transparent 48% 52%,
    var(--secondary) 52% 70%,
    transparent 70% 74%,
    var(--primary-dark) 74%
  );
}
.drawer-backdrop {
  background: color-mix(in srgb, var(--primary-dark) 48%, transparent);
}
.empty.visible {
  display: block;
}
.pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--primary-contrast);
}

/* Single article */
.read-progress {
  position: fixed;
  z-index: 60;
  top: 60px;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: width 0.08s linear;
}
.article-page {
  padding: 30px 0 58px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a:hover {
  color: var(--teal);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 800;
}
.breadcrumb-separator {
  color: var(--grey-200);
}
.article-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #011b43 0%, #06295b 63%, #064c66 100%);
  box-shadow: var(--shadow);
}
.article-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}
.article-hero-copy::after {
  content: "";
  position: absolute;
  top: -90px;
  left: -75px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(135, 238, 224, 0.16),
    transparent 70%
  );
}
.article-hero-copy > * {
  position: relative;
  z-index: 1;
}
.article-hero .eyebrow {
  color: #b8fff4;
}
.article-hero h1 {
  margin: 0 0 15px;
  font-size: 34px;
  line-height: 1.5;
}
.article-hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--secondary-contrast);
  font-size: 15px;
  opacity: 0.86;
}
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--secondary-contrast);
  font-size: 12px;
  opacity: 0.78;
}
.article-hero-art {
  position: relative;
  overflow: hidden;
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.04);
}
.article-hero-art svg,
.article-hero-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.article-hero-featured-image {
  display: block;
  object-fit: cover;
}
.article-hero-art.has-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 27, 67, 0.16),
    rgba(1, 27, 67, 0.03)
  );
  pointer-events: none;
}
.article-hero-tag {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 22px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 26px;
  margin-top: 26px;
}
.article-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(1, 27, 67, 0.035);
}
.article-card p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15px;
}
.article-card .article-lead {
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
  opacity: 0.8;
}
.article-content h2 {
  margin: 38px 0 14px;
  font-size: 23px;
  line-height: 1.55;
  scroll-margin-top: 105px;
}
.article-content h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  scroll-margin-top: 105px;
}
.article-content a {
  color: var(--teal);
  font-weight: 800;
  border-bottom: 1px dashed var(--secondary-light);
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.article-content blockquote {
  margin: 24px 0;
  padding: 17px 19px;
  border: 1px solid var(--secondary-light);
  border-right: 4px solid var(--teal);
  border-radius: 16px;
  background: var(--teal-soft);
}
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-right: 24px;
}
.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-spacing: 0;
}
.article-content th,
.article-content td {
  min-width: 130px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.article-content th {
  background: var(--surface2);
}
.article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.article-tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface2);
  font-size: 11px;
}
.article-back-link {
  color: var(--teal);
  font-weight: 900;
  white-space: nowrap;
}
.article-side {
  position: sticky;
  top: 96px;
}
.article-side-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.article-side-card h2 {
  margin: 0 0 13px;
  font-size: 14px;
}
.article-toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.article-toc a {
  padding: 8px 10px;
  border-right: 2px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.article-toc a:hover,
.article-toc a.active {
  border-right-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}
.article-share-row {
  display: flex;
  position: relative;
  gap: 8px;
}
.article-share-btn {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font-weight: 800;
}
.article-share-btn:hover {
  border-color: var(--secondary-light);
  color: var(--teal);
}
.article-share {
  position: relative;
}
.article-share-popover {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(10, 30, 50, 0.14);
}
.article-share-popover p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
}
.article-share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.article-share-options a {
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.article-share-options a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}
.related-articles {
  margin-top: 30px;
}
.related-articles-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.related-articles-head h2 {
  margin: 0;
  font-size: 22px;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.related-article-cover {
  display: block;
  position: relative;
  height: 110px;
  overflow: hidden;
  color: var(--secondary);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.related-article-cover svg,
.related-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-article-body {
  padding: 14px;
}
.related-article-body h3 {
  margin: 6px 0 9px;
  font-size: 14px;
  line-height: 1.65;
}
.related-article-body p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}
@media (max-width: 1000px) {
  .article-hero {
    grid-template-columns: 1fr;
  }
  .article-hero-art {
    min-height: 210px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-side {
    display: none;
  }
}
@media (max-width: 760px) {
  .read-progress {
    top: 64px;
  }
  .article-page {
    padding-top: 22px;
  }
  .article-hero-copy {
    padding: 26px;
  }
  .article-hero h1 {
    font-size: 27px;
  }
  .article-card {
    padding: 23px;
  }
  .article-end {
    flex-direction: column;
    align-items: flex-start;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .article-hero-summary {
  color: #f5fbff;
  opacity: 0.95;
}
[data-theme="dark"] .article-hero-meta {
  color: #e4f0fa;
  opacity: 0.9;
}
[data-theme="dark"] .article-hero {
  /* background: linear-gradient(135deg, #102b3d, #164d5b 63%, #176270); */
  background: linear-gradient(135deg, #011b43 0%, #06295b 63%, #064c66 100%);
}
[data-theme="dark"] .article-hero .eyebrow {
  color: #a9f5e9;
}
[data-theme="dark"] .article-toc a {
  color: #c5d3e0;
}
[data-theme="dark"] .article-toc a:hover {
  color: #ffffff;
  background: #1c5160;
  border-right-color: #7fe1d5;
}
[data-theme="dark"] .article-toc a.active {
  color: #ffffff;
  background: #246d73;
  border-right-color: #a4f1e7;
  box-shadow: inset 0 0 0 1px rgba(164, 241, 231, 0.18);
}
