/* Tabnak News Professional CSS Stylesheet - v4.5.4 */

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Global Responsive Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* =============================================================
   1. Base & Layout Grid
   ============================================================= */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.site-content {
  flex: 1;
  padding-top: 14px;
  padding-bottom: 24px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.homepage-layout-grid,
.single-post-layout-grid,
.archive-layout-grid,
.single-page-layout-grid,
.search-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.homepage-layout-grid > *,
.single-post-layout-grid > *,
.archive-layout-grid > *,
.single-page-layout-grid > *,
.search-layout-grid > *,
.portal-sidebar,
main#primary {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .homepage-layout-grid,
  .single-post-layout-grid,
  .archive-layout-grid,
  .single-page-layout-grid,
  .search-layout-grid {
    grid-template-columns: 8fr 4fr;
  }
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Breadcrumbs */
.tabnak-breadcrumbs {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.tabnak-breadcrumbs a {
  color: #4b5563;
}

.tabnak-breadcrumbs a:hover {
  color: var(--primary-color);
}

.tabnak-breadcrumbs .current {
  color: #111827;
  font-weight: 700;
}

/* =============================================================
   2. TopBar
   ============================================================= */
.tabnak-topbar {
  background: #ffffff;
  color: #374151;
  border-bottom: 1px solid #d1d5db;
  font-size: 11px;
}

.topbar-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 8px;
}

.topbar-right,
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-brief {
  display: none;
  color: #4b5563;
}

@media (min-width: 1024px) {
  .market-brief {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.sep {
  color: #9ca3af;
}

.font-resizer button {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
}

.font-resizer button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.weather-pill {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* =============================================================
   3. Main Header & Branding
   ============================================================= */
.tabnak-main-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  padding: 12px 0;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-color, #1e3a8a);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.brand-link:hover .brand-title {
  color: var(--primary-hover, #172554);
}

.brand-slogan {
  margin: 3px 0 0 0;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

.site-header-custom-logo,
.custom-logo {
  max-height: 48px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-search-wrap {
  flex: 1;
  max-width: 420px;
  min-width: 200px;
}

.search-form {
  position: relative;
  display: flex;
}

.search-field {
  width: 100%;
  padding: 7px 12px 7px 38px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.search-field:focus {
  background: #fff;
  border-color: var(--primary-color);
}

.search-submit {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 10px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-header-link.gold {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 34px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 7px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #1f2937;
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* Navigation Menu */
.main-navigation {
  background: var(--primary-color);
  color: #fff;
  border-bottom: 1px solid var(--primary-hover);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.current-menu-item > a {
  background: var(--primary-hover);
}

/* =============================================================
   Responsive Mobile & PWA Engine
   ============================================================= */
@media (max-width: 1023px) {
  .tabnak-topbar {
    padding: 2px 0;
  }
  .topbar-container {
    justify-content: space-between;
    font-size: 10px;
    gap: 4px;
  }
  .topbar-center.market-brief {
    display: none !important;
  }
  .topbar-right {
    gap: 6px;
    font-size: 10px;
  }
  .topbar-left {
    gap: 6px;
  }
  .tabnak-main-header {
    padding: 8px 0;
  }
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .site-branding {
    grid-column: 1;
  }
  .header-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .btn-header-link {
    font-size: 10px;
    padding: 4px 8px;
  }
  .header-search-wrap {
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
  }
  .main-navigation {
    display: none !important;
    position: relative;
    width: 100%;
    background: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
  .main-navigation.is-open {
    display: block !important;
    animation: slideDown 0.2s ease;
  }
  .nav-menu {
    flex-direction: column;
    padding: 6px 0;
  }
  .nav-menu li a {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .btn-header-link span:last-child {
    display: none;
  }
  .btn-header-link {
    padding: 6px 10px;
    font-size: 14px;
  }
  .ticker-counter {
    display: none !important;
  }
  .ticker-item-cat {
    display: none !important;
  }
  .ticker-item-time {
    margin-right: 2px !important;
  }
  .prayer-brief {
    display: none !important;
  }
  .brand-badge-logo {
    font-size: 16px;
    padding: 3px 8px;
  }
  .brand-title {
    font-size: 15px;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   4. Single Item Smooth News Ticker (یک خبر یک خبر به صورت متحرک و بی‌نهایت)
   ============================================================= */
.breaking-ticker-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: 1px solid #f1f5f9 !important;
  font-size: 12px !important;
  height: 38px !important;
  line-height: 38px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  display: block !important;
}

.ticker-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
  gap: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.ticker-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
  z-index: 2 !important;
  height: 24px !important;
  line-height: 18px !important;
}

.ticker-content {
  flex: 1 !important;
  height: 38px !important;
  line-height: 38px !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
}

.ticker-items-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  position: relative !important;
  display: block !important;
}

.ticker-item {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  height: 38px !important;
  line-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  opacity: 0 !important;
  transform: translateY(16px) !important;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}

.ticker-item.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.ticker-item.prev-exit {
  opacity: 0 !important;
  transform: translateY(-16px) !important;
}

.ticker-dot {
  color: #dc2626 !important;
  font-size: 8px !important;
  flex-shrink: 0 !important;
}

.ticker-item a {
  color: #1e293b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  transition: color 0.2s ease !important;
}

.ticker-item a:hover {
  color: var(--primary-color, #1e3a8a) !important;
  text-decoration: underline !important;
}

.ticker-item-time {
  background: #f1f5f9 !important;
  color: #64748b !important;
  padding: 1px 6px !important;
  border-radius: 3px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  flex-shrink: 0 !important;
  height: 18px !important;
  line-height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.ticker-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
}

.ticker-controls button {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border-radius: 3px !important;
  font-size: 10px !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

.ticker-controls button:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: #1e3a8a !important;
}

/* =============================================================
   5. Hero Carousel & Slider
   ============================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.hero-slider-wrap {
  position: relative;
  background: #111827;
  border-radius: 4px;
  overflow: hidden;
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

.hero-media {
  position: relative;
  aspect-ratio: 16/9;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2) 60%, transparent);
}

.hero-category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-red, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 2;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  color: #fff;
  z-index: 2;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
}

.hero-title a {
  color: #ffffff;
}

.hero-title a:hover {
  color: #fca5a5;
}

.hero-lead {
  font-size: 12px;
  color: #e5e7eb;
  margin: 0 0 8px;
  line-height: 1.5;
}

.hero-meta {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  gap: 12px;
}

.hero-carousel-nav {
  position: absolute;
  bottom: 8px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: var(--accent-red, #dc2626);
  border-color: var(--accent-red, #dc2626);
  transform: scale(1.15);
}

/* Numbered Dense Lists */
.dense-numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dense-numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.dense-numbered-list li:last-child {
  border-bottom: none;
}

.rank-badge {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
  border-radius: 3px;
  background: #e5e7eb;
  color: #374151;
  flex-shrink: 0;
}

.rank-badge.rank-1 { background: var(--primary-color); color: #fff; }
.rank-badge.rank-2 { background: var(--primary-hover); color: #fff; }
.rank-badge.rank-3 { background: #4b5563; color: #fff; }

.list-item-content h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.meta-comment {
  font-size: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

/* =============================================================
   6. Article Cards Grid
   ============================================================= */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card-item {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}

.card-thumbnail-box {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 3px;
  background: #e5e7eb;
  margin-bottom: 8px;
}

.card-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-category-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent-red, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
}

.card-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 11px;
  color: #4b5563;
  margin: 0 0 8px;
  line-height: 1.5;
  flex: 1;
}

.card-meta-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 6px;
}

.meta-stats {
  display: flex;
  gap: 8px;
}

/* Pagination */
.tabnak-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.tabnak-pagination .nav-links {
  display: flex;
  gap: 4px;
}

.tabnak-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.tabnak-pagination .page-numbers.current {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* =============================================================
   7. Editorial Section
   ============================================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.editorial-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 10px;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.author-avatar img {
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: block;
}

.author-name {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}

.author-title {
  font-size: 10px;
  color: #6b7280;
}

.editorial-heading {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
}

.editorial-heading a {
  color: #1f2937;
}

.editorial-heading a:hover {
  color: var(--primary-color);
}

.editorial-lead {
  font-size: 11px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* =============================================================
   7. Card System & Sidebar Container
   ============================================================= */
.tabnak-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tabnak-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}

.tabnak-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-color, #1e3a8a);
}

.portal-sidebar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .portal-sidebar {
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
  }
}

/* Badges */
.badge-blue {
  background: #eff6ff;
  color: var(--primary-color);
  border: 1px solid #bfdbfe;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.badge-accent {
  background: #fef2f2;
  color: var(--accent-red, #dc2626);
  border: 1px solid #fecaca;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

/* =============================================================
   8. Live Markets Widget
   ============================================================= */
.market-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-updated-time {
  font-size: 10px;
  color: #6b7280;
}

.btn-market-refresh {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.btn-market-refresh.spinning {
  opacity: 0.7;
}

.market-items-list {
  display: flex;
  flex-direction: column;
}

.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.market-row.flash-updated {
  background-color: #fef9c3;
}

.market-change.positive { color: #15803d; font-weight: bold; }
.market-change.negative { color: var(--accent-red, #dc2626); font-weight: bold; }

/* =============================================================
   9. Prayer Times Widget
   ============================================================= */
.prayer-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.prayer-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 6px 4px;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease;
}

.prayer-box.highlight {
  background: #fef3c7;
  border-color: #fcd34d;
}

.prayer-label {
  display: block;
  font-size: 10px;
  color: #6b7280;
}

.prayer-val {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}

.city-selector {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 4px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
}

.prayer-footer-note {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
}

/* =============================================================
   10. Newspaper Kiosk (پیش‌خوان روزنامه‌ها - اسلایدر و زوم)
   ============================================================= */
.kiosk-top-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.kiosk-select {
  flex: 1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
}

.kiosk-select:focus {
  border-color: var(--primary-color);
  background: #ffffff;
}

.kiosk-nav-arrows {
  display: flex;
  gap: 3px;
}

.btn-kiosk-arrow {
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s ease;
}

.btn-kiosk-arrow:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.widget-newspaper {
  overflow: hidden;
  box-sizing: border-box;
}

.newspaper-preview-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 8px;
  text-align: center;
  max-width: 290px;
  margin: 0 auto;
}

.newspaper-img-wrapper {
  position: relative;
  overflow: hidden;
  background: transparent;
  width: 100%;
  max-width: 240px;
  height: 310px;
  margin: 0 auto;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.kiosk-lightbox-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.newspaper-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.kiosk-lightbox-trigger:hover .newspaper-img {
  transform: scale(1.02);
}

.kiosk-zoom-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.kiosk-lightbox-trigger:hover .kiosk-zoom-overlay {
  opacity: 1;
  transform: translateY(0);
}

.newspaper-caption {
  padding: 8px 4px 2px 4px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
}

.caption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.paper-name {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 12.5px;
}

.paper-date {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 600;
}

.newspaper-headline-bar {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.headline-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-red, #dc2626);
  margin-bottom: 1px;
}

.headline-text {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newspaper-thumbs-strip {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  max-width: 100%;
}

.np-thumb-btn {
  border: 1.5px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px;
  cursor: pointer;
  width: 38px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.np-thumb-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.np-thumb-btn.active {
  border-color: var(--primary-color);
  background: #eff6ff;
  box-shadow: 0 0 0 1.5px rgba(30, 58, 138, 0.2);
}

.np-thumb-btn img {
  width: 100%;
  height: 28px;
  object-fit: cover;
  border-radius: 2px;
}

.np-thumb-btn small {
  font-size: 7.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  margin-top: 1px;
  color: #334155;
}

/* In-Theme Fullscreen Newspaper Lightbox Modal */
.tabnak-np-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.np-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
}

.np-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  z-index: 2;
  overflow: hidden;
  margin: auto;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.np-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.np-modal-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-color);
}

.np-modal-date {
  font-size: 10.5px;
  color: #64748b;
  margin-right: 8px;
}

.np-modal-close {
  background: #ef4444;
  color: #ffffff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.np-modal-close:hover {
  background: #dc2626;
}

.np-modal-body {
  padding: 8px;
  overflow-y: auto;
  text-align: center;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.np-modal-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .newspaper-img-wrapper {
    height: 270px;
    max-width: 200px;
  }
}

/* =============================================================
   11. League Standings Table
   ============================================================= */
.league-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-league-refresh {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.league-table-responsive {
  overflow-x: auto;
}

.dense-league-table {
  width: 100%;
  text-align: right;
  font-size: 11px;
  border-collapse: collapse;
}

.dense-league-table th {
  border-bottom: 1px solid #d1d5db;
  padding: 5px 4px;
  color: #6b7280;
}

.dense-league-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #f3f4f6;
}

.league-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-left: 4px;
}

.league-team-emoji {
  display: inline-block;
  margin-left: 3px;
  font-size: 12px;
}

.team-name-cell {
  font-weight: 600;
}

.badge-gold { background: #d97706; color: #fff; padding: 1px 5px; border-radius: 2px; font-weight: bold; }
.badge-silver { background: #64748b; color: #fff; padding: 1px 5px; border-radius: 2px; font-weight: bold; }
.badge-bronze { background: #b45309; color: #fff; padding: 1px 5px; border-radius: 2px; font-weight: bold; }

/* Timeline Stream Widget */
.sidebar-timeline-stream {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-timeline-stream li {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}

.time-stamp {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-color);
  background: #eff6ff;
  padding: 1px 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* =============================================================
   12. Multi-Poll Widget
   ============================================================= */
.poll-switcher-select {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
}

.poll-question {
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 10px;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.poll-option {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poll-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.poll-text {
  font-size: 11px;
}

.poll-result-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  height: 14px;
  overflow: hidden;
  position: relative;
}

.poll-bar-fill {
  background: var(--primary-color);
  height: 100%;
  transition: width 0.6s ease;
}

.poll-pct {
  position: absolute;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #111827;
}

.poll-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-votes {
  font-size: 10px;
  color: #6b7280;
}

.btn-vote {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  font-weight: bold;
}

.btn-vote:hover {
  background: var(--primary-hover);
}

.poll-msg {
  margin-top: 8px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
}

.poll-msg.success { background: #dcfce7; color: #166534; }
.poll-msg.error { background: #fee2e2; color: #991b1b; }

/* =============================================================
   13. Single Article View
   ============================================================= */
.single-article-card {
  padding: 16px;
}

.article-service-tag a {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #111827;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  color: #4b5563;
  margin-bottom: 16px;
  gap: 8px;
}

.meta-right,
.meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-action {
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}

.btn-action:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.entry-featured-image {
  margin: 0 0 16px;
}

.entry-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.entry-lead-box {
  background: #f8fafc;
  border-right: 4px solid var(--primary-color);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}

.article-body {
  font-size: 15px;
  line-height: 2.1;
  color: #1e293b;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body::after {
  content: "";
  display: table;
  clear: both;
}

.article-body p {
  margin-bottom: 20px;
  line-height: 2.1;
  text-align: justify;
  text-justify: inter-word;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 800;
  color: #0f172a;
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.5;
  border-right: 3px solid var(--primary-color);
  padding-right: 10px;
}

.article-body h2 { font-size: 18px; }
.article-body h3 { font-size: 16px; }
.article-body h4 { font-size: 14px; }

.article-body strong,
.article-body b {
  font-weight: 800;
  color: #0f172a;
}

.article-body em,
.article-body i {
  font-style: italic;
}

/* Image Alignments & Figures */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-body .alignright,
.article-body img.alignright,
.article-body figure.alignright,
.article-body .wp-caption.alignright {
  float: right;
  margin: 8px 0 18px 24px;
  max-width: 50%;
  clear: right;
  display: table;
}

.article-body .alignleft,
.article-body img.alignleft,
.article-body figure.alignleft,
.article-body .wp-caption.alignleft {
  float: left;
  margin: 8px 24px 18px 0;
  max-width: 50%;
  clear: left;
  display: table;
}

.article-body .aligncenter,
.article-body img.aligncenter,
.article-body figure.aligncenter,
.article-body .wp-caption.aligncenter {
  display: block;
  margin: 22px auto;
  clear: both;
  text-align: center;
  max-width: 100%;
}

.article-body .alignnone,
.article-body img.alignnone {
  display: block;
  margin: 16px 0;
  max-width: 100%;
}

.article-body figure,
.article-body .wp-block-image {
  margin: 18px 0;
}

.article-body figcaption,
.article-body .wp-caption-text {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-top: -4px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .article-body .alignright,
  .article-body img.alignright,
  .article-body figure.alignright,
  .article-body .alignleft,
  .article-body img.alignleft,
  .article-body figure.alignleft {
    float: none !important;
    display: block !important;
    margin: 16px auto !important;
    max-width: 100% !important;
    clear: both !important;
    width: 100% !important;
  }
}

/* Blockquotes & Callouts */
.article-body blockquote,
.article-body .wp-block-quote {
  background: #f8fafc;
  border-right: 4px solid var(--primary-color);
  padding: 16px 20px;
  margin: 22px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.9;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* Lists */
.article-body ul,
.article-body ol {
  padding-right: 24px;
  margin: 16px 0;
  line-height: 2;
}

.article-body ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.article-body ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 13px;
  overflow-x: auto;
  display: block;
}

.article-body table th,
.article-body table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

.article-body table th {
  background: #f1f5f9;
  font-weight: 800;
  color: #0f172a;
}

.article-body table tr:nth-child(even) {
  background: #f8fafc;
}

/* Media Player Shortcodes (html5_video, html5_audio, aparat) */
.tabnak-media-box {
  margin: 24px 0;
  width: 100%;
  clear: both;
}

.tabnak-video-box {
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tabnak-video-player {
  width: 100%;
  max-height: 520px;
  display: block;
  outline: none;
  background: #000000;
}

.tabnak-audio-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 12px;
  border-radius: 8px;
}

.tabnak-audio-player {
  width: 100%;
  outline: none;
}

.aparat-iframe-responsive {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: 8px;
}

.aparat-iframe-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.tags-title {
  font-weight: 700;
  font-size: 12px;
}

.tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tags-list li a {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: #4b5563;
}

.tags-list li a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.social-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  gap: 8px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-share {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.btn-share.telegram { background: #229ED9; }
.btn-share.eitaa { background: #ea580c; }
.btn-share.bale { background: #16a34a; }
.btn-share.whatsapp { background: #25D366; }

/* Author Biography Card (جعبه بیوگرافی نویسنده خبر) */
.author-bio-card {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-right: 4px solid var(--primary-color);
  padding: 16px;
}

.author-bio-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.author-avatar-wrap {
  flex-shrink: 0;
}

.author-bio-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  object-fit: cover;
  display: block;
}

.author-bio-content {
  flex: 1;
}

.author-bio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.author-bio-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.author-bio-name a {
  color: #0f172a;
  text-decoration: none;
}

.author-bio-name a:hover {
  color: var(--primary-color);
}

.author-posts-badge {
  background: #eff6ff;
  color: var(--primary-color);
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.author-bio-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 10px;
}

.btn-author-archive {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.btn-author-archive:hover {
  text-decoration: underline;
}

.meta-date-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
}

.meta-author {
  font-weight: 600;
  color: #1f2937;
}

/* Related News */
.related-news-section {
  margin-top: 16px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.related-item {
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  padding: 6px;
  background: #f9fafb;
}

.related-thumb-link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  margin-bottom: 6px;
}

.related-item h5 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* =============================================================
   14. Comments Area
   ============================================================= */
.comments-area {
  margin-top: 16px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.comment-list .comment {
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 0;
}

.comment-list .children {
  list-style: none;
  padding-right: 20px;
  border-right: 2px solid #e5e7eb;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author .avatar {
  border-radius: 50%;
  vertical-align: middle;
}

.comment-author .fn {
  font-weight: 800;
  font-size: 12px;
}

.comment-metadata {
  font-size: 10px;
  color: #9ca3af;
}

.comment-content {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.reply a {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .comment-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.btn-submit-comment {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.btn-submit-comment:hover {
  background: var(--primary-hover);
}

/* =============================================================
   15. 404 Page
   ============================================================= */
.not-found-card {
  padding: 40px 20px;
  max-width: 600px;
  margin: 40px auto;
}

.error-code {
  font-size: 72px;
  font-weight: 900;
  color: var(--accent-red, #dc2626);
  margin: 0 0 10px;
}

.error-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.error-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.btn-back-home {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 14px;
}

/* =============================================================
   16. Footer & Trust Badges
   ============================================================= */
.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 30px;
  border-top: 4px solid var(--primary-color);
  font-size: 12px;
}

.footer-top-strip {
  background: #1f2937;
  padding: 12px 0;
  border-bottom: 1px solid #374151;
}

.footer-top-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.footer-tagline {
  margin: 4px 0 0;
  font-size: 11px;
  color: #9ca3af;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icon {
  background: #374151;
  color: #e5e7eb;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 6px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 6px;
}

.footer-links-list li a {
  color: #9ca3af;
}

.footer-links-list li a:hover {
  color: #ffffff;
}

.footer-badges-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-badge {
  background: #1f2937;
  border: 1px solid #374151;
  padding: 8px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #e5e7eb;
}

.footer-custom-html-badges,
.footer-col .widget_custom_html .textwidget,
.footer-col .widget_block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-custom-html-badges a,
.footer-custom-html-badges img,
.footer-col .widget_custom_html img,
.footer-col .widget_block img {
  display: inline-block;
  max-width: 120px;
  height: auto;
  border-radius: 4px;
  background: #ffffff;
  padding: 4px;
  box-sizing: border-box;
}

.footer-bottom-bar {
  background: #0b0f19;
  padding: 12px 0;
  border-top: 1px solid #1f2937;
}

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

.back-to-top {
  color: #9ca3af;
  font-size: 11px;
}

.back-to-top:hover {
  color: #ffffff;
}

/* =============================================================
   17. Global Toast Notification
   ============================================================= */
.tabnak-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 12px;
  font-weight: bold;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tabnak-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =============================================================
   18. Custom Post Meta Styling (Over-title, Subtitle, Summary Box & Source)
   ============================================================= */
.article-overtitle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ba0000;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  line-height: 1.7;
  margin-top: 8px;
  margin-bottom: 14px;
}

.entry-lead-box.article-lead-summary,
.entry-lead-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-right: 4px solid #ba0000;
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 22px;
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #1e293b;
  font-weight: 500;
  text-align: justify;
}

.article-source-extra-box {
  margin-top: 28px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  direction: rtl;
  text-align: right;
}

.source-extra-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.source-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.source-label {
  font-weight: 600;
  color: #1e293b;
}

.source-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.source-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.source-text,
.sender-name {
  color: #334155;
  font-weight: 600;
}

.source-action-btn {
  margin-right: auto;
}

.btn-source-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ba0000;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-source-more:hover {
  background-color: #990000;
  color: #ffffff !important;
}

.hero-overtitle {
  display: inline-block;
  background: rgba(186, 0, 0, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.card-overtitle {
  display: block;
  color: #ba0000;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
}

