/* ============================================
   EcoEghtesad News Portal — Professional Theme
   ============================================ */

:root {
  --primary: #0a6e4f;
  --primary-dark: #084d38;
  --primary-light: #1ba876;
  --accent: #d4a24e;
  --accent-dark: #b8862e;
  --red: #c41e3a;
  --blue: #1d4e89;
  --dark: #1a2332;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --bg: #ffffff;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-lg: 16px;
  --trans: .25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

a { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.5; }
ul { margin: 0; padding: 0; list-style: none; }

/* Reading Progress */
.reading-progress {
  position: fixed; top: 0; right: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width .1s linear;
}

/* ============ A) TOP BAR ============ */
.top-bar {
  background: linear-gradient(135deg, var(--dark), #0f1b2d);
  color: #e8eef5;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 38px;
  display: flex; align-items: center;
}
.top-bar-inner {
  display: flex; align-items: center; gap: 16px;
  height: 38px;
}
.top-bar-left { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.datetime { color: #cfd8e3; font-size: 12.5px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  color: #cfd8e3;
  transition: all var(--trans);
  margin-inline-start: 4px;
}
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.ticker-wrapper {
  flex: 1;
  display: flex; align-items: center;
  overflow: hidden;
  border-inline-start: 1px solid rgba(255,255,255,.1);
  padding-inline-start: 14px;
}
.ticker-label {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-inline-end: 12px;
  white-space: nowrap;
}
.ticker { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: tickerScroll 60s linear infinite;
  white-space: nowrap;
  padding-inline-start: 100%;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.ticker-item strong { color: #fff; }
.ticker-item .val { font-weight: 700; }
.ticker-item .change { font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.change.up { background: rgba(16,185,129,.2); color: #6ee7b7; }
.change.down { background: rgba(239,68,68,.2); color: #fca5a5; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.btn-prices {
  background: var(--primary); color: #fff;
  border: none; border-radius: 6px;
  padding: 5px 10px; font-size: 12.5px; font-weight: 600;
}

/* ============ B) MAIN HEADER ============ */
.main-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.main-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  min-height: 110px;
}

.brand-fa {
  display: flex; align-items: center; gap: 12px;
}
.logo-mark {
  filter: drop-shadow(0 4px 10px rgba(10,110,79,.25));
}
.brand-text {
  display: flex; flex-direction: column;
  line-height: 1;
}
.brand-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -.5px;
}
.brand-sub {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.ad-banner-header {
  justify-self: center;
}
.ad-placeholder {
  position: relative;
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #fafafa 0 10px, #f3f4f6 10px 20px);
  min-height: 90px;
  width: 728px; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
}
.ad-tag {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--gray-900);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.ad-content { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ad-content i { font-size: 26px; color: var(--accent); }

.ad-strip-inner {
  width: 100%; min-height: 70px;
  font-size: 13px;
}

.ad-vertical {
  width: 100%; min-height: 250px;
  margin-top: 20px;
}

.brand-en {
  display: flex; align-items: center; gap: 10px;
}
.brand-en-text {
  display: flex; flex-direction: column; text-align: left; line-height: 1;
  font-family: Georgia, serif;
}
.en-title { font-size: 22px; font-weight: 700; color: var(--gray-900); letter-spacing: .5px; }
.en-sub { font-size: 11px; color: var(--gray-500); margin-top: 3px; letter-spacing: 1px; }
.brand-en-mark {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(212,162,78,.4);
}
.brand-en-mark small { font-size: 14px; }

/* ============ C) NAVIGATION ============ */
.main-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-top: 3px solid var(--accent);
  position: sticky; top: 0;
  z-index: 500;
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.nav-row {
  display: flex; align-items: center;
  min-height: 52px;
  gap: 10px;
}
.nav-menu {
  flex: 1;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 14px;
  position: relative;
  transition: all var(--trans);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(0,0,0,.2);
  color: #fff;
}
.nav-menu li a.active::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: var(--accent);
}

.nav-search {
  position: relative;
  margin-inline-start: auto;
}
.nav-search input {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 8px 40px 8px 14px;
  border-radius: 24px;
  width: 220px;
  font-size: 13.5px;
  transition: all var(--trans);
}
.nav-search input::placeholder { color: rgba(255,255,255,.65); }
.nav-search input:focus {
  outline: none;
  background: #fff; color: var(--gray-900);
  width: 280px;
}
.nav-search input:focus::placeholder { color: var(--gray-500); }
.nav-search button {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--trans);
}
.nav-search button:hover { background: var(--accent-dark); transform: translateY(-50%) scale(1.05); }

.nav-toggle {
  background: transparent; border: none; color: #fff;
  font-size: 22px; padding: 8px 12px;
}
.nav-mobile-title { color: #fff; font-weight: 600; font-size: 15px; }

/* ============ Breaking News ============ */
.breaking-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breaking-inner {
  display: flex; align-items: center; gap: 12px;
}
.breaking-label {
  background: linear-gradient(135deg, var(--red), #a01830);
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(196,30,58,.5); }
  50% { box-shadow: 0 0 0 8px rgba(196,30,58,0); }
}
.breaking-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.breaking-items {
  display: inline-flex;
  gap: 40px;
  animation: tickerScroll 45s linear infinite;
  padding-inline-start: 100%;
}
.breaking-track:hover .breaking-items { animation-play-state: paused; }
.breaking-items a {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
  padding-inline-start: 18px;
}
.breaking-items a::before {
  content: '';
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.breaking-items a:hover { color: var(--primary); }

/* ============ D) HERO ============ */
.hero-section { padding: 24px 0; }

.hero-swiper {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-swiper .swiper-slide {
  height: 100%;
}
.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #fff;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 10%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.slide-cat {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}
.slide-cat.cat-red { background: var(--red); }
.slide-cat.cat-blue { background: var(--blue); }
.slide-body {
  position: relative;
  z-index: 2;
  max-width: 92%;
}
.slide-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.slide-lead {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 12px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-meta {
  display: flex; gap: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

.hero-swiper .swiper-pagination-bullet {
  background: #fff; opacity: .5; width: 10px; height: 10px;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent); opacity: 1; width: 28px; border-radius: 5px;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(0,0,0,.4);
  width: 44px; height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: all var(--trans);
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: var(--primary);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { font-size: 16px; font-weight: 700; }

/* side news */
.side-news {
  display: flex; flex-direction: column;
  gap: 10px;
  height: 100%;
}
.side-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--trans);
  flex: 1;
  align-items: center;
}
.side-item:hover {
  transform: translateX(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.side-thumb {
  flex-shrink: 0;
  width: 100px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.side-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.side-item:hover .side-thumb img { transform: scale(1.1); }
.side-body { flex: 1; min-width: 0; }
.side-body h3 {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cta-more {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.cta-more:hover { color: var(--accent-dark); }
.cta-more i { font-size: 10px; transition: transform var(--trans); }
.cta-more:hover i { transform: translateX(-3px); }

/* ============ E) CATEGORY BOXES ============ */
.main-content { padding: 24px 0 40px; }

.cat-box {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
  display: flex; flex-direction: column;
  transition: all var(--trans);
}
.cat-box:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cat-header {
  background: linear-gradient(135deg, var(--cat-color, var(--primary)), var(--cat-color-dark, var(--primary-dark)));
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
  position: relative;
}
.cat-box[data-color="#0a6e4f"] { --cat-color: #0a6e4f; --cat-color-dark: #084d38; }
.cat-box[data-color="#c41e3a"] { --cat-color: #c41e3a; --cat-color-dark: #8b1528; }
.cat-box[data-color="#1d4e89"] { --cat-color: #1d4e89; --cat-color-dark: #123461; }
.cat-box[data-color="#d4a24e"] { --cat-color: #d4a24e; --cat-color-dark: #a07422; }

.cat-title {
  font-size: 17px;
  font-weight: 800;
  display: flex; align-items: center; gap: 10px;
  margin: 0;
}
.cat-title .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.cat-more {
  color: #fff;
  font-size: 12.5px;
  opacity: .9;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.cat-more:hover { opacity: 1; color: var(--accent); }

.cat-lead {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.cat-lead-img {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 16/9;
}
.cat-lead-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.cat-lead:hover .cat-lead-img img { transform: scale(1.05); }
.cat-lead-body h3 {
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.cat-lead-body h3 a:hover { color: var(--cat-color); }
.cat-lead-body p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-list {
  padding: 10px 16px 18px;
  flex: 1;
}
.cat-list li {
  position: relative;
  padding: 10px 22px 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  line-height: 1.7;
  transition: all var(--trans);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li::before {
  content: '';
  position: absolute;
  top: 17px; right: 0;
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 3px;
  transition: all var(--trans);
}
.cat-list li:hover { padding-right: 26px; }
.cat-list li:hover::before { background: var(--cat-color); transform: rotate(45deg); }
.cat-list li a { font-weight: 500; }
.cat-list li a:hover { color: var(--cat-color); }

/* ============ Sidebar ============ */
.sidebar-sticky {
  position: sticky; top: 70px;
}
.widget {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-head {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.widget-head h3 {
  font-size: 15.5px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 8px;
}

.widget-tabs .nav-tabs {
  border-bottom: 2px solid var(--border);
  margin: 0;
  padding: 0;
  background: var(--gray-50);
}
.widget-tabs .nav-tabs .nav-link {
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  flex: 1;
  border-radius: 0;
  position: relative;
}
.widget-tabs .nav-tabs .nav-link.active {
  color: var(--primary);
  background: #fff;
}
.widget-tabs .nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0; left: 0;
  height: 2px;
  background: var(--primary);
}

.news-list-ranked {
  counter-reset: news;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}
.news-list-ranked li {
  counter-increment: news;
  padding: 12px 50px 12px 16px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
  line-height: 1.7;
}
.news-list-ranked li:last-child { border-bottom: none; }
.news-list-ranked li::before {
  content: counter(news);
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  transition: all var(--trans);
}
.news-list-ranked li:hover::before { background: var(--primary); color: #fff; }
.news-list-ranked li:nth-child(-n+3)::before {
  background: var(--accent); color: #fff;
}
.news-list-ranked.popular li:nth-child(-n+3)::before { background: var(--red); }

/* specials */
.specials {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 14px;
}
.special-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}
.special-item:first-child { grid-column: span 2; aspect-ratio: 16/8; }
.special-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.special-item:hover img { transform: scale(1.08); }
.special-item span {
  position: absolute; inset: auto 0 0 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ============ Section heads ============ */
.section-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  display: flex; align-items: center; gap: 10px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -14px;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-head h2 i { color: var(--accent); }
.section-sub { color: var(--gray-500); font-size: 13.5px; margin: 0; }
.head-tabs {
  display: flex; gap: 4px;
  margin-inline-start: auto;
}
.head-tabs button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--trans);
  font-family: inherit;
}
.head-tabs button.active,
.head-tabs button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ Multimedia ============ */
.multimedia-section {
  padding: 40px 0;
  background: linear-gradient(180deg, #fff, var(--gray-50));
}
.mm-hero {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}
.mm-hero img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.mm-hero:hover img { transform: scale(1.05); }
.mm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff;
}
.mm-type {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  align-self: flex-start;
  margin-bottom: 12px;
}
.mm-overlay h3 { font-size: 20px; line-height: 1.5; margin-bottom: 8px; }
.mm-duration { font-size: 13px; opacity: .85; }

.mm-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 190px;
}
.mm-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.mm-card:hover img { transform: scale(1.08); }
.mm-card .mm-type {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.mm-card h4 {
  position: absolute; inset: auto 0 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ Opinions (notes/interview/article) ============ */
.opinions-section { padding: 40px 0; }
.op-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.op-head {
  padding: 14px 18px;
  background: var(--gray-50);
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: space-between;
}
.op-head h2 {
  font-size: 16px;
  color: var(--primary);
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.op-head a { color: var(--gray-500); font-size: 12.5px; font-weight: 600; }
.op-featured {
  padding: 16px;
  display: flex; gap: 14px;
  border-bottom: 1px dashed var(--border);
}
.op-featured img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}
.op-featured .author {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.op-featured h3 { font-size: 15px; line-height: 1.7; }
.op-list { padding: 12px 18px 18px; }
.op-list li {
  padding: 10px 0;
  font-size: 13.5px;
  line-height: 1.7;
  border-bottom: 1px dashed var(--border);
  position: relative;
  padding-right: 16px;
}
.op-list li:last-child { border: none; }
.op-list li::before {
  content: '\203A';
  position: absolute;
  right: 0; top: 8px;
  color: var(--accent);
  font-weight: bold;
}

/* ============ Academy ============ */
.academy-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #0a6e4f08, #d4a24e10);
}
.academy-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--trans);
}
.academy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.academy-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .5s;
}
.academy-card:hover img { transform: scale(1.05); }
.academy-body { padding: 16px; }
.academy-body .tag {
  display: inline-block;
  background: #0a6e4f15;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.academy-body h3 {
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.academy-body .meta {
  display: flex; gap: 14px;
  font-size: 12.5px;
  color: var(--gray-500);
}
.academy-body .meta i { color: var(--accent); margin-inline-end: 4px; }

/* ============ Newsletter ============ */
.newsletter-section { padding: 20px 0 50px; }
.newsletter-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,162,78,.25), transparent 70%);
  pointer-events: none;
}
.newsletter-box h3 { font-size: 22px; margin-bottom: 6px; }
.newsletter-box p { margin: 0; opacity: .9; }
.newsletter-form {
  display: flex; gap: 8px;
  flex: 1; min-width: 280px;
  max-width: 500px;
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
  font-family: inherit;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(135deg, var(--dark), #0a1220);
  color: #cfd8e3;
  padding: 50px 0 0;
  margin-top: 20px;
}
.footer-brand {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 18px;
}
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 3px; }
.footer-brand span { font-size: 12px; color: var(--accent); font-family: Georgia, serif; }
.footer-desc { font-size: 13.5px; line-height: 1.9; color: #a3b1c6; margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-contact i { color: var(--accent); width: 20px; }

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.site-footer ul li {
  padding: 6px 0;
  font-size: 13.5px;
}
.site-footer ul li a:hover { color: var(--accent); padding-right: 6px; }
.site-footer ul li a { transition: all .2s; }

.footer-popular li a::before {
  content: '\203A';
  margin-left: 6px;
  color: var(--accent);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.social-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 10.5px;
  color: #cfd8e3;
  transition: all var(--trans);
}
.social-grid a:hover {
  background: var(--c, var(--primary));
  color: #fff;
  transform: translateY(-3px);
  border-color: transparent;
}
.social-grid a i { font-size: 18px; }

.footer-tools {
  display: flex; gap: 6px;
  flex-wrap: wrap;
}
.footer-tools button {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #cfd8e3;
  padding: 8px 4px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans);
  font-family: inherit;
}
.footer-tools button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12.5px;
  color: #8a9bb5;
}

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10,110,79,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--trans);
  z-index: 900;
  font-size: 18px;
}
.to-top.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.to-top:hover { transform: translateY(-4px); }

/* ============ Offcanvas ============ */
.mobile-menu { width: 300px; }
.mobile-menu .offcanvas-header {
  background: var(--primary);
  color: #fff;
}
.mobile-menu .btn-close { filter: invert(1); }
.mobile-search {
  position: relative;
  margin-bottom: 16px;
}
.mobile-search input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.mobile-search button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 6px;
}
.mobile-nav li a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14.5px;
  transition: all var(--trans);
}
.mobile-nav li a:hover {
  background: var(--primary);
  color: #fff;
  padding-right: 20px;
}

.prices-canvas { height: auto; max-height: 70vh; }
.prices-canvas .offcanvas-header { background: var(--primary); color: #fff; }
.prices-canvas .btn-close { filter: invert(1); }
.prices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.price-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.price-card .label { font-size: 12px; color: var(--gray-500); }
.price-card .val { font-size: 16px; font-weight: 700; color: var(--dark); }
.price-card .chg { font-size: 12px; font-weight: 600; }
.price-card .chg.up { color: var(--success); }
.price-card .chg.down { color: var(--red); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1199.98px) {
  .nav-menu li a { padding: 14px 10px; font-size: 13.5px; }
  .nav-search input { width: 180px; }
  .nav-search input:focus { width: 220px; }
}

@media (max-width: 991.98px) {
  .main-header-row {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 14px 0;
  }
  .ad-banner-header { display: none !important; }
  .brand-title { font-size: 22px; }
  .brand-sub { font-size: 11px; }
  .logo-mark svg { width: 44px; height: 44px; }
  .nav-row { justify-content: space-between; }
  .nav-search input { width: 160px; }

  .hero-swiper { height: 380px; }
  .slide-title { font-size: 22px; }
  .side-news { margin-top: 16px; }

  .sidebar-sticky { position: static; }
  .section-head h2 { font-size: 18px; }
  .mm-hero { min-height: 300px; }
}

@media (max-width: 767.98px) {
  body { font-size: 14px; }
  .top-bar { font-size: 12px; height: 42px; }
  .top-bar-inner { height: 42px; }
  .ticker-wrapper { padding-inline-start: 0; border: none; }
  .ticker-label { display: none; }
  .datetime { font-size: 11px; }

  .main-header-row { padding: 10px 0; gap: 10px; }
  .brand-title { font-size: 19px; }
  .brand-en { display: none !important; }
  .logo-mark svg { width: 40px; height: 40px; }

  .nav-search { display: none; }
  .nav-row { min-height: 48px; }

  .breaking-inner { font-size: 13px; }
  .breaking-label { padding: 5px 10px; font-size: 12px; }

  .hero-swiper { height: 300px; border-radius: var(--radius); }
  .hero-slide { padding: 18px; }
  .slide-title { font-size: 17px; }
  .slide-lead { display: none; }
  .slide-cat { font-size: 11px; padding: 4px 10px; }

  .side-item { flex-direction: row; padding: 8px; }
  .side-thumb { width: 80px; height: 64px; }
  .side-body h3 { font-size: 13.5px; }

  .cat-title { font-size: 15px; }
  .cat-lead-body h3 { font-size: 15px; }
  .cat-list li { font-size: 13px; }

  .section-head { gap: 10px; }
  .section-head h2 { font-size: 16px; }
  .head-tabs { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .head-tabs button { font-size: 12px; padding: 5px 10px; flex-shrink: 0; }

  .mm-hero { min-height: 220px; }
  .mm-overlay h3 { font-size: 15px; }
  .mm-card { height: 140px; }
  .mm-card h4 { font-size: 12px; }

  .newsletter-box { padding: 22px; text-align: center; }
  .newsletter-box h3 { font-size: 18px; }
  .newsletter-form { flex-direction: column; }

  .social-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .to-top { bottom: 16px; left: 16px; width: 40px; height: 40px; }
}

@media (max-width: 575.98px) {
  .top-bar-left .socials { display: none !important; }
  .hero-swiper { height: 260px; }
  .slide-title { font-size: 15.5px; line-height: 1.5; }
  .slide-meta { font-size: 11.5px; gap: 10px; }
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next { width: 36px; height: 36px; }

  .brand-text .brand-sub { display: none; }
  .cat-header { padding: 10px 14px; }
  .cat-lead { padding: 12px; }
  .cat-list { padding: 6px 12px 14px; }

  .social-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .social-grid a span { font-size: 10px; }
  .social-grid a i { font-size: 16px; }
}

/* ============ Print ============ */
@media print {
  .top-bar, .main-nav, .breaking-bar, .ad-placeholder, .to-top,
  .newsletter-section, .site-footer, .swiper-button-next, .swiper-button-prev,
  .sidebar-sticky, .footer-tools { display: none !important; }
  body { background: #fff; color: #000; }
  .cat-box, .academy-card { break-inside: avoid; box-shadow: none; }
}
