/* ============================================================
   OK NEWS — CSS Stylesheet with 3 Color Themes
   Based on oknews.day design, rebuilt on Bootstrap 5
   ============================================================ */

/* ---------- CSS Variables: 3 Color Schemes ---------- */

/* Light Theme (Default — warm beige, similar to original) */
[data-theme="light"] {
  --bg-body: #e2dbcb;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f8f5f0;
  --bg-topbar: #f0f0f0;
  --bg-header: #e2dbcb;
  --bg-footer: #1f2328;
  --bg-footer-bottom: #161a1e;
  --bg-nav: #168fd3;
  --bg-nav-hover: rgba(255,255,255,.12);
  --bg-section: #ffffff;
  --bg-widget: #ffffff;
  --bg-input: #ffffff;
  --bg-badge: #e30613;
  --bg-ticker: #c0392b;

  --text-body: #333333;
  --text-heading: #1a1a1a;
  --text-muted: #888888;
  --text-nav: #ffffff;
  --text-footer: #d0d6dc;
  --text-footer-heading: #ffffff;
  --text-link: #8b4513;
  --text-link-hover: #e30613;

  --border-color: #e6e6e6;
  --border-section: #e30613;
  --border-widget: #e8e8e8;

  --accent: #e30613;
  --accent-hover: #c00510;
  --nav-bg: #168fd3;
  --nav-active: rgba(255,255,255,.15);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --card-badge-bg: #e30613;
  --card-badge-text: #fff;
}

/* Dark Theme — modern dark */
[data-theme="dark"] {
  --bg-body: #0f1117;
  --bg-surface: #1a1d27;
  --bg-surface-alt: #22252f;
  --bg-topbar: #161920;
  --bg-header: #1a1d27;
  --bg-footer: #0d0f14;
  --bg-footer-bottom: #080a0e;
  --bg-nav: #1a1d27;
  --bg-nav-hover: rgba(255,255,255,.08);
  --bg-section: #1a1d27;
  --bg-widget: #1a1d27;
  --bg-input: #22252f;
  --bg-badge: #ff4757;
  --bg-ticker: #1a1d27;

  --text-body: #c8ccd6;
  --text-heading: #e8eaef;
  --text-muted: #6c7180;
  --text-nav: #c8ccd6;
  --text-footer: #888b96;
  --text-footer-heading: #e8eaef;
  --text-link: #74b9ff;
  --text-link-hover: #ff6b81;

  --border-color: #2a2d38;
  --border-section: #ff4757;
  --border-widget: #2a2d38;

  --accent: #ff4757;
  --accent-hover: #ff3344;
  --nav-bg: #1a1d27;
  --nav-active: rgba(255,255,255,.08);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 2px 8px rgba(0,0,0,.4);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.5);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --card-badge-bg: #ff4757;
  --card-badge-text: #fff;
}

/* Blue Professional Theme */
[data-theme="blue"] {
  --bg-body: #edf2f9;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f4f7fc;
  --bg-topbar: #1a3a5c;
  --bg-header: #ffffff;
  --bg-footer: #1a3a5c;
  --bg-footer-bottom: #0f2640;
  --bg-nav: #1e5490;
  --bg-nav-hover: rgba(255,255,255,.12);
  --bg-section: #ffffff;
  --bg-widget: #ffffff;
  --bg-input: #ffffff;
  --bg-badge: #1e5490;
  --bg-ticker: #c0392b;

  --text-body: #3a4454;
  --text-heading: #1a3a5c;
  --text-muted: #7b8698;
  --text-nav: #ffffff;
  --text-footer: #bcc8d8;
  --text-footer-heading: #ffffff;
  --text-link: #1e5490;
  --text-link-hover: #e30613;

  --border-color: #dbe3ee;
  --border-section: #1e5490;
  --border-widget: #e2e8f0;

  --accent: #1e5490;
  --accent-hover: #163d6b;
  --nav-bg: #1e5490;
  --nav-active: rgba(255,255,255,.15);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.08);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --card-badge-bg: #1e5490;
  --card-badge-text: #fff;
}

/* ---------- BASE STYLES ---------- */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--text-link-hover);
}

img { max-width: 100%; height: auto; }

.breadcrumb a {
	padding-right: 4px;
	padding-left: 4px;
}

/* ---------- THEME SWITCHER ---------- */
.theme-switcher {
  position: fixed;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface);
  border-radius: 25px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.theme-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227,6,19,.25);
}

@media (max-width: 991.98px) {
  .theme-switcher {
    flex-direction: row;
    top: auto;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 500;
}
.topbar .container {
  min-height: 0;
}
.topbar-left a {
  color: var(--text-muted);
  margin-right: 18px;
}
.topbar-left a:hover {
  color: var(--accent);
}
.topbar-right { gap: 1rem; }
.weather-badge, .currency-badge {
  font-weight: 600;
  font-size: 0.8rem;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--bg-header);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}
.site-logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}
.logo-text {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -1px;
  line-height: 1;
}
[data-theme="dark"] .logo-text { color: #e8eaef; }
.logo-accent {
  color: var(--accent);
  font-weight: 800;
}
.logo-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 2px;
}

.header-stats {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}
.stat-item {
  text-align: right;
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-change {
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- BREAKING NEWS ---------- */
.breaking-news {
  background: var(--bg-ticker);
  color: #fff;
  padding: 7px 0;
  overflow: hidden;
}
.breaking-badge {
  background: #fff;
  color: #c0392b;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 3px;
  margin-right: 15px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
}
.ticker {
  display: flex;
  gap: 30px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 0.85rem;
  font-weight: 500;
}
.ticker-sep {
  color: rgba(255,255,255,.4);
  font-weight: 300;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- MAIN NAVIGATION ---------- */
.main-nav {
  background: var(--nav-bg) !important;
  padding: 0 !important;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.main-nav .navbar-toggler {
  border-color: rgba(255,255,255,.3);
  margin: 8px 0;
}
.main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.main-nav .nav-link {
  color: var(--text-nav) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 14px 16px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: var(--bg-nav-hover);
}
.main-nav .nav-link.active {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.search-form .form-control {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 0.85rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.search-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.search-form .form-control:focus {
  background: rgba(255,255,255,.25);
  box-shadow: none;
  border-color: rgba(255,255,255,.4);
}
.btn-search {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.btn-search:hover {
  background: rgba(255,255,255,.35);
  color: #fff;
}

@media (max-width: 991.98px) {
  .main-nav .collapse {
    padding: 10px 0;
  }
  .main-nav .nav-link {
    padding: 10px 16px !important;
  }
  .search-form {
    margin: 8px 0 12px;
  }
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  background: var(--bg-body);
  min-height: 60vh;
}

/* ---------- NEWS SECTION ---------- */
.news-section {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--border-section);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}
.section-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.section-all:hover {
  gap: 8px;
  color: var(--accent-hover);
}

/* ---------- CARDS ---------- */
.big-card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
}
.big-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.big-card:hover .card-img-wrap img {
  transform: scale(1.04);
}
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--card-badge-bg);
  color: var(--card-badge-text);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.card-title-lg {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
.card-title-lg a {
  color: var(--text-heading);
}
.card-title-lg a:hover {
  color: var(--text-link-hover);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-meta i { margin-right: 3px; }
.card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small Posts */
.small-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.small-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: background 0.2s, box-shadow 0.2s;
}
.small-card:hover {
  background: var(--bg-surface-alt);
  box-shadow: var(--shadow-sm);
}
.small-card + .small-card {
  border-top: 1px solid var(--border-color);
}
.small-card-img {
  flex: 0 0 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.small-card-img img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  transition: transform 0.3s;
}
.small-card:hover .small-card-img img {
  transform: scale(1.06);
}
.small-card-body {
  flex: 1;
  min-width: 0;
}
.small-card-body h4 {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.small-card-body h4 a {
  color: var(--text-heading);
}
.small-card-body h4 a:hover {
  color: var(--text-link-hover);
}

/* Medium Posts */
.medium-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.madium-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: background 0.2s, box-shadow 0.2s;
}
.medium-card:hover {
  background: var(--bg-surface-alt);
  box-shadow: var(--shadow-sm);
}
.medium-card + .medium-card {
  border-top: 1px solid var(--border-color);
}
.medium-card-img {
  flex: 0 0 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.medium-card-img img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  transition: transform 0.3s;
}
.medium-card:hover .small-card-img img {
  transform: scale(1.06);
}
.medium-card-body {
  flex: 1;
  min-width: 0;
}
.medium-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.medium-card-body h4 a {
  color: var(--text-heading);
}
.medium-card-body h4 a:hover {
  color: var(--text-link-hover);
}

.card-body .meta-data {
	margin-bottom: 0;
}

/* ---------- LOAD MORE ---------- */
.btn-load-more {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 32px;
  border-radius: 50px;
  transition: all 0.2s;
}
.btn-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-surface-alt);
}

/* ---------- SIDEBAR ---------- */
.sidebar-widget {
  background: var(--bg-widget);
  border: 1px solid var(--border-widget);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  background: var(--nav-bg);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 13px 18px;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Latest News List */
.latest-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-news-list li {
  border-bottom: 1px solid var(--border-color);
  padding: 11px 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: background 0.15s;
}
.latest-news-list li:last-child {
  border-bottom: none;
}
.latest-news-list li:hover {
  background: var(--bg-surface-alt);
}
.latest-news-list li a {
  color: var(--text-body);
}
.latest-news-list li a:hover {
  color: var(--text-link-hover);
}
.ln-date {
  display: inline-block;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 6px;
  min-width: 42px;
  text-align: center;
}

/* Calendar Widget */
.calendar-widget {
  padding: 16px;
}
.calendar-header, .monthselect-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-heading);
}
.cal-nav, .monthlink {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.15s;
}
.cal-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.calendar { width: 100%; text-align: center; }
.calendar tr td, .calendar tr th { padding: 3px; }
	.calendar tr td a { color: inherit; font-weight: bold; }
	.calendar tr td { padding: 5px 3px; }
	.calendar tr td.weekday { color: #ea5f24; }
	.calendar tr th { background-color: #fff; font-weight: bold; text-transform: uppercase; }
	.calendar tr th.weekday { background-color: #ea5f24; color: #fff; }
	.calendar tr th.monthselect { background-color: transparent; color: #b8b8b8; padding-bottom: 15px; }
	.calendar tr th.monthselect a { color: #b8b8b8; }

.calendar-table {
  width: 100%;
  text-align: center;
  font-size: 13px;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #ededed;
  padding: 8px 4px;
}

.calendar-table td.active {
  background: #168fd3;
  color: #fff;
  font-weight: 700;
}

/* Tags Cloud */
.tags-cloud {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--bg-surface-alt);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.article-tags-section a, .tags-cloud a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--bg-surface-alt);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.article-tags-section a:hover, .tags-cloud a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* Newsletter */
.newsletter-widget .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-color: var(--border-color);
  font-size: 0.85rem;
}
.newsletter-widget .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(227,6,19,.15);
  border-color: var(--accent);
}
.btn-subscribe {
  background: var(--accent);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border: none;
}
.btn-subscribe:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ---------- FOOTER ---------- */
.site-footer {
  color: var(--text-footer);
}
.site-footer a {
  color: var(--text-footer);
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-top {
  background: var(--bg-footer);
  padding: 48px 0 28px;
}
.footer-top h5 {
  color: var(--text-footer-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-top p {
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-bottom {
  background: var(--bg-footer-bottom);
  padding: 16px 0;
  font-size: 0.8rem;
}

/* ---------- SCROLL TO TOP ---------- */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .big-card .card-img-wrap img {
    height: 200px;
  }
  .card-title-lg {
    font-size: 1.05rem;
  }
  .small-card {
    flex-direction: row;
  }
  .small-card-img {
    flex: 0 0 90px;
  }
  .small-card-img img {
    width: 90px;
    height: 65px;
  }
  .header-stats {
    display: none;
  }
  .site-logo .logo-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  .news-section {
    padding: 14px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 12px;
  }
  .big-card .card-img-wrap img {
    height: 180px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .card-text {
    -webkit-line-clamp: 2;
  }
  .btn-scroll-top {
    bottom: 80px;
    right: 16px;
  }
  .card-meta {
    gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    padding: 10px 0;
  }
  .logo-text {
    font-size: 1.5rem !important;
  }
  .breaking-news {
    padding: 5px 0;
  }
  .breaking-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-right: 8px;
  }
  .ticker-item {
    font-size: 0.75rem;
  }
  .big-card .card-img-wrap img {
    height: 160px;
  }
  .card-title-lg {
    font-size: 0.95rem;
  }
  .small-card-img {
    flex: 0 0 75px;
  }
  .small-card-img img {
    width: 75px;
    height: 55px;
  }
  .small-card-body h4 {
    font-size: 0.78rem;
  }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.news-section {
  animation: fadeInUp 0.5s ease both;
}
.news-section:nth-child(2) { animation-delay: 0.1s; }
.news-section:nth-child(3) { animation-delay: 0.2s; }
.news-section:nth-child(4) { animation-delay: 0.3s; }
.news-section:nth-child(5) { animation-delay: 0.4s; }

/* ============================================================
   ARTICLE PAGE STYLES
   ============================================================ */

/* Breadcrumbs */
.article-breadcrumbs {
  margin-bottom: 18px;
}
.article-breadcrumbs .breadcrumb {
  background: var(--bg-surface);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  margin: 0;
}
.article-breadcrumbs .breadcrumb-item a {
  color: var(--text-muted);
}
.article-breadcrumbs .breadcrumb-item a:hover {
  color: var(--accent);
}
.article-breadcrumbs .breadcrumb-item.active {
  color: var(--text-body);
  font-weight: 500;
}

/* Article Full Container */
.article-full {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* Article Header */
.article-category {
  display: inline-block;
  background: var(--card-badge-bg);
  color: var(--card-badge-text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.article-lead {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Article Meta */
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* padding: 14px 0; */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  /* margin-bottom: 16px; */
}
.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-heading);
}
.author-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--border-color);
}
.article-reading-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Share Bar */
.article-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.share-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.share-telegram:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-vk:hover { background: #0077ff; color: #fff; border-color: #0077ff; }
.share-twitter:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-copy:hover { background: var(--bg-surface-alt); color: var(--accent); border-color: var(--accent); }
.share-bookmark i { font-size: 1.1rem; }
.share-bookmark:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Featured Image */
.article-featured-image {
  margin-bottom: 24px;
}
.article-featured-image img {
  width: 100%;
  border-radius: var(--radius-md);
 /* max-height: 800px; */
  object-fit: cover;
}
.article-featured-image figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* Article Body */
.article-body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--text-body);
}

.article-body p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--text-body);
}
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 24px 0 10px;
}
.article-body ul,
.article-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.article-body li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-body);
}
.article-body strong {
  color: var(--text-heading);
}

/* Blockquote */
.article-quote {
  background: var(--bg-surface-alt);
  border-left: 5px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-quote p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 10px;
  color: var(--text-heading);
}
.article-quote cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

/* Info Box */
.article-info-box {
  display: flex;
  gap: 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
}
.info-box-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-box-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-heading);
}
.info-box-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Article Table */
.article-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0;
}
.article-table thead {
  background: var(--nav-bg);
  color: #fff;
}
.article-table thead th {
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.article-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  font-variant-numeric: tabular-nums;
}
.article-table tbody tr:hover {
  background: var(--bg-surface-alt);
}
.article-table tbody tr:last-child td {
  border-bottom: none;
}
/* Article video tag */
.dleplyrplayer video { width: 100%; max-width: 790px; height: auto; }

/* Article Tags Section */
.article-tags-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
  margin-bottom: 24px;
}
.tags-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 18px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
}
.author-box-avatar {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid var(--border-color);
  flex-shrink: 0;
}
.author-box-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.author-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.author-box-info p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 10px;
}
.author-social {
  display: flex;
  gap: 8px;
}
.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.author-social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Rating Section */
.article-rating-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}
.rating-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
}
.rating-stars {
  display: flex;
  gap: 3px;
}
.rating-stars i {
  font-size: 1.3rem;
  color: #f39c12;
  cursor: pointer;
  transition: transform 0.15s;
}
.rating-stars i:hover {
  transform: scale(1.2);
}
.rating-stars i.bi-star-fill {
  color: #f39c12;
}
.rating-stars i.bi-star {
  color: #ccc;
}
[data-theme="dark"] .rating-stars i.bi-star {
  color: #444;
}
.rating-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Related Cards */
.related-card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-card .card-img-wrap img {
  height: 160px;
  object-fit: cover;
}
.related-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.related-title a {
  color: var(--text-heading);
}
.related-title a:hover {
  color: var(--text-link-hover);
}

/* Comments Section */
.comment-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 28px;
  height: 24px;
  border-radius: 12px;
  padding: 0 8px;
  margin-left: 4px;
}

/* Comment Form */
.comment-form-wrap {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}
.comment-form-wrap h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}
.comment-form .form-control {
  border-color: var(--border-color);
  background: var(--bg-input);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
}
.comment-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(227,6,19,.12);
}
.comment-form .form-check-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.btn-submit-comment {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s;
}
.btn-submit-comment:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Comment Items */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.comment-item:hover {
  background: var(--bg-surface-alt);
}
.comment-avatar {
  flex-shrink: 0;
}
.comment-avatar img {
  border-radius: 50%;
  border: 2px solid var(--border-color);
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.comment-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
}
.author-badge-sm {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 4px;
  text-transform: uppercase;
}
.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.comment-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text-body);
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.comment-reply-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s;
}
.comment-reply-btn:hover {
  color: var(--accent);
}
.comment-likes,
.comment-dislikes {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}
.comment-likes:hover { color: #27ae60; }
.comment-dislikes:hover { color: #e74c3c; }

/* Nested Reply */
.comment-reply {
  margin-top: 12px;
  margin-left: 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-surface-alt);
}

/* Toast */
.toast-container {
  z-index: 9999;
}

/* ---------- RESPONSIVE ARTICLE ---------- */
@media (max-width: 991.98px) {
  .article-full {
    padding: 18px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .article-lead {
    font-size: 0.95rem;
  }
  .article-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-meta-info {
    gap: 10px;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-social {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .article-full {
    padding: 14px;
  }
  .article-title {
    font-size: 1.3rem;
  }
  .article-body p {
    font-size: 0.93rem;
  }
  .article-body h2 {
    font-size: 1.15rem;
  }
  .article-share-bar {
    gap: 5px;
  }
  .share-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .share-label {
    width: 100%;
    margin-bottom: 4px;
  }
  .comment-item {
    flex-direction: column;
  }
  .comment-reply {
    margin-left: 10px;
  }
  .related-card .card-img-wrap img {
    height: 130px;
  }
}

@media (max-width: 575.98px) {
  .article-title {
    font-size: 1.15rem;
  }
  .article-lead {
    font-size: 0.88rem;
    padding-left: 14px;
  }
  .article-meta-info {
    font-size: 0.75rem;
    gap: 8px;
  }
  .author-avatar {
    width: 32px;
    height: 32px;
  }
  .author-box-avatar {
    width: 80px;
    height: 80px;
  }
  .share-btn {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .main-nav, .topbar, .breaking-news, .theme-switcher,
  .btn-scroll-top, .sidebar-area, .site-footer {
    display: none !important;
  }
  .content-area {
    width: 100% !important;
  }
}


/* Navigation */
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Блок со стрелками (prev / next) */
.page_next-prev {
  display: flex;
  gap: 0.5rem;
}

/* Общие стили для кнопок-стрелок (как .page-link в Bootstrap 4.6) */
.page_prev,
.page_next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0.5rem 0.75rem;
  margin: 0;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.25;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Предыдущая страница (disabled) */
/*
.page_prev {
  color: #6c757d;
  pointer-events: none;
  opacity: 0.65;
  background-color: #fff;
  border-color: #dee2e6;
}
*/

/* Следующая страница — обёртка <a> */
.page_next a, .page_prev a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* SVG-иконки (под Bootstrap) */
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

/* Блок с номерами страниц */
.pages {
  display: flex;
  align-items: center;
  gap: 0; /* границы будут перекрываться */
  padding: 0;
  margin: 0;
}

/* Все элементы внутри .pages (как .page-item .page-link) */
.pages > span,
.pages > a,
.pages > .nav_ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0.5rem 0.75rem;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.25;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Перекрытие границ (как в Bootstrap 4.6) */
.pages > *:not(:first-child) {
  margin-left: -1px;
}

/* Активная страница (текущая) */
.pages > span:not(.nav_ext) {
  z-index: 3;
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
  pointer-events: none;
}

/* Многоточие (...) */
.pages > .nav_ext {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  pointer-events: none;
  padding: 0.5rem 0.5rem;
}

/* Hover-эффекты (как в Bootstrap) */
.pages > a:hover,
.page_next a:hover {
  z-index: 2;
  color: #0056b3;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* Скругление углов первой и последней кнопки в списке страниц */
.pages > *:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.pages > *:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Дополнительно: если нужно, можно отключить скругление у стрелок, чтобы они выглядели частью общей полосы */
.page_prev,
.page_next {
  border-radius: 0.25rem;
}

#searchsuggestions {
	z-index: 2200;
	width: 23.15em;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 8px 40px -10px rgba(0,0,0,0.3);
	border: 1px solid #ddd; border-color: rgba(0,0,0,0.2);
	background-clip: padding-box;
	font-size: .9em;
	-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
	}
	#searchsuggestions a, #searchsuggestions span.notfound { padding: 15px 25px; display: block; text-decoration: none; border-bottom: 1px solid #e5e5e5; }
	#searchsuggestions a { color: inherit; }
	#searchsuggestions a:hover { background-color: #f7f7f7; }
	#searchsuggestions a span { display: block; cursor: pointer; }
	#searchsuggestions span.searchheading { display: block; font-weight: bold; margin-bottom: .2em; }
	#searchsuggestions span.seperator { display: block; }
	#searchsuggestions span.seperator a { padding: 10px 0; text-align: center; border: 0 none; background-color: transparent; color: #919191; }
	#searchsuggestions span.notfound { padding: 15px 25px; display: block; }
	#searchsuggestions .break { display: none; }

#searchtable legend {
	font-size: 1rem;
}

.post-meta {
  color: #888;
  font-size: 12px;
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 4px solid #168fd3;
  background: #f7fafc;
  padding: 14px 18px;
  font-style: italic;
  color: #555;
}

.quote { padding: 10px; background: #fff; border: 1px solid #dde4ea; }
.quote { border-left: 2px solid #e85319; background-color:beige;}
blockquote { border-left: 2px solid #e85319; background-color:beige; padding-left: .9rem; padding-top: .9rem; padding-right: .5rem; padding-bottom: .9rem}
.quote_block {margin-bottom: .7rem;padding-left: 1rem;}