/*
Theme Name: WP Goal 27
Theme URI: https://github.com/qais/wp-goal-27
Author: Antigravity
Author URI: https://deepmind.google
Description: قالب وردبريس احترافي متكامل ومتوافق مع SEO والموبايل ومصمم خصيصاً لموقع المباريات الرياضية المتوافق مع إضافة wp Goal plugin ومزود بـ Theme Options متكاملة.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-goal-27
Tags: sports, matches, rtl, responsive-layout, grid-layout, custom-menu, theme-options, seo-friendly
*/

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  --primary: #00C853;
  --primary-hover: #00E676;
  --primary-dark: #009624;
  --primary-glow: rgba(0, 200, 83, 0.25);
  
  --secondary: #0f172a;
  --bg-main: #f4f6f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --badge-live: #ef4444;
  --badge-scheduled: #3b82f6;
  --badge-finished: #64748b;

  --font-main: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-main: #0b0f19;
  --bg-card: #141c2e;
  --bg-glass: rgba(20, 28, 46, 0.85);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-color: #1e293b;
  --border-hover: #334155;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Layout Containers */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   Header Navbar & Mobile Nav
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
}

.logo-box span.highlight {
  color: var(--primary);
}

.logo-box img {
  max-height: 40px;
  object-fit: contain;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

/* Header Primary Navigation (WordPress Custom Menu - wp_nav_menu) */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav-ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav-ul li,
.main-nav-ul .menu-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.main-nav-ul li a,
.main-nav-ul .menu-item > a,
.nav-link {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav-ul li a:hover,
.main-nav-ul .menu-item > a:hover,
.main-nav-ul .current-menu-item > a,
.main-nav-ul .current-menu-ancestor > a,
.nav-link:hover,
.nav-link.active {
  color: #00C853;
  background-color: rgba(0, 200, 83, 0.1);
}

body.dark-mode .main-nav-ul li a:hover,
body.dark-mode .main-nav-ul .menu-item > a:hover,
body.dark-mode .main-nav-ul .current-menu-item > a {
  color: #00E676;
  background-color: rgba(0, 230, 118, 0.12);
}

/* Multi-level Dropdown Sub-menu Support */
.main-nav-ul li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.main-nav-ul li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

.main-nav-ul ul.sub-menu {
  list-style: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.main-nav-ul li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav-ul ul.sub-menu li {
  width: 100%;
}

.main-nav-ul ul.sub-menu li a {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.main-nav-ul ul.sub-menu li:last-child a {
  border-bottom: none;
}

.main-nav-ul ul.sub-menu li a:hover {
  background-color: var(--bg-main);
  color: #00C853;
  padding-right: 22px;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
}

.btn-search-toggle,
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  flex-shrink: 0;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-search-toggle:hover,
.theme-toggle-btn:hover {
  background: #00C853;
  color: #ffffff;
  border-color: #00C853;
  transform: translateY(-2px);
}

.btn-search-toggle svg,
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Header Search Overlay Bar */
.header-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 2px solid #00C853;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 990;
}

.header-search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.search-input-icon {
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.header-search-field {
  flex: 1;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.header-search-field:focus {
  border-color: #00C853;
}

.header-search-submit-btn {
  background: #00C853;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 10px 22px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.header-search-submit-btn:hover {
  background: #00E676;
}

.header-search-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.header-search-close-btn:hover {
  color: #ff3b30;
}
  background: #fef3c7;
  color: #d97706;
}

.btn-predictions:hover {
  background: #fde68a;
}

.btn-auth {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

/* ==========================================================================
   3-Column Main Layout Grid & Responsive Overrides
   ========================================================================== */
.main-wrapper {
  padding: 20px 0;
}

.layout-grid-3col {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1200px) {
  .layout-grid-3col {
    grid-template-columns: 250px 1fr 250px;
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .layout-grid-3col {
    grid-template-columns: 1fr 280px;
  }
  .col-news {
    order: 3;
    grid-column: span 2;
  }
  .main-nav {
    display: none;
  }
  .main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    background: var(--bg-card);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }
  .main-nav.mobile-active .main-nav-ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .main-nav.mobile-active .main-nav-ul li a {
    width: 100%;
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .layout-grid-3col {
    display: flex;
    flex-direction: column;
  }
  .col-main-content {
    order: 1;
    width: 100%;
  }
  .col-sidebar {
    order: 2;
    width: 100%;
  }
  .col-news {
    order: 3;
    width: 100%;
  }
  .header-actions .btn-predictions span {
    display: none;
  }
  .header-actions .btn-auth span {
    display: none;
  }
  .header-actions .btn-auth, .header-actions .btn-predictions {
    padding: 8px;
    border-radius: 50%;
  }
  .matches-control-bar {
    padding: 10px;
  }
  .date-picker-nav {
    flex-wrap: wrap;
  }
  .match-team span {
    font-size: 0.82rem;
  }
  .match-row-item {
    padding: 10px 8px;
  }
  .match-center-score {
    width: 85px;
  }
  .score-num {
    padding: 3px 8px;
    font-size: 0.85rem;
  }
}

/* Base Widget / Section Box */
.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.widget-title i {
  color: var(--primary);
}

/* ==========================================================================
   Right Column: Side Leagues & Countries Navigation
   ========================================================================== */
.leagues-list, .countries-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.league-item-link, .country-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.league-item-link:hover, .country-item-link:hover {
  background: var(--bg-main);
  color: var(--primary);
}

.league-item-link img, .country-item-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
}

.search-filter-box {
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==========================================================================
   Center Column: Matches Feed & Control Bar
   ========================================================================== */
.matches-control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.date-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-btn {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-btn:hover, .date-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.date-current-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.status-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.status-tab {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-tab.active {
  background: var(--primary);
  color: #ffffff;
}

/* Matches Grouped by League */
.league-group-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.league-group-header {
  background: var(--bg-main);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.league-title-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

.league-flag-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.matches-list {
  display: flex;
  flex-direction: column;
}

.match-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

.match-row-item:last-child {
  border-bottom: none;
}

.match-row-item:hover {
  background: rgba(0, 200, 83, 0.03);
}

.match-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.match-team.home {
  justify-content: flex-end;
  text-align: left;
}

.match-team.away {
  justify-content: flex-start;
  text-align: right;
}

.match-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.match-center-score {
  width: 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--bg-main);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.match-time-badge {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
}

.status-live {
  color: var(--badge-live);
  animation: pulse-live 1.5s infinite;
}

.status-scheduled {
  color: var(--badge-scheduled);
}

.status-finished {
  color: var(--badge-finished);
}

@keyframes pulse-live {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Left Column: News Cards Section (Grid & List View options)
   ========================================================================== */
.news-display-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.news-hero-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.news-hero-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.news-hero-content {
  padding: 10px 0;
}

.news-hero-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 4px;
}

.news-item-mini {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.news-item-mini:last-child {
  border-bottom: none;
}

.news-item-mini img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.news-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.news-date {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
  display: block;
}

/* Grid Layout for News when selected in Theme Options */
.news-layout-grid .news-display-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.news-layout-grid .news-item-mini {
  flex-direction: column;
  border-bottom: none;
  background: var(--bg-main);
  padding: 8px;
  border-radius: var(--radius-sm);
}
.news-layout-grid .news-item-mini img {
  width: 100%;
  height: 110px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 30px 0 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   WP Goal 27 - Custom Matches UI Stylesheet (Matching Image Design Exactly)
   ========================================================================== */

.wp-goal-matches-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.2s ease;
}

.matches-header-control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 10px;
}

.date-navigator-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-date-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-date-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.date-display-pill {
  position: relative;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hidden-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.status-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pill {
  border: none;
  background: var(--bg-main);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-pill:hover, .status-pill.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.league-card-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.league-dark-header {
  background: #f8fafc;
  color: #1e293b;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  direction: rtl;
  border-bottom: 1px solid var(--border-color);
}

body.dark-mode .league-dark-header {
  background: #0f172a;
  color: #ffffff;
}

.league-dark-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.league-dark-title-box:hover {
  opacity: 0.85;
}

.league-dark-header .l-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.league-dark-header .l-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.league-dark-header .l-icon {
  font-size: 1.1rem;
}

.league-standings-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 12px;
  border-radius: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

body.dark-mode .league-standings-link {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
}

.league-standings-link:hover {
  color: #ffffff;
  background: var(--primary);
}

.league-matches-rows {
  display: flex;
  flex-direction: column;
}

.match-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.match-card-row:hover {
  background: rgba(0, 200, 83, 0.04);
}

.match-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

.match-card-row:last-child {
  border-bottom: none;
}

.match-card-row:hover {
  background: rgba(0, 200, 83, 0.02);
}

.team-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.92rem;
}

.team-side.home {
  justify-content: flex-end;
  text-align: left;
}

.team-side.away {
  justify-content: flex-start;
  text-align: right;
}

.team-side .t-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.score-center-pill {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pill-time {
  background: #f1f5f9;
  color: #334155;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

body.dark-mode .pill-time {
  background: #1e293b;
  color: #f1f5f9;
}

.pill-score {
  background: #f1f5f9;
  color: #0f172a;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
}

body.dark-mode .pill-score {
  background: #1e293b;
  color: #f1f5f9;
}

.pill-badge {
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 3px;
  display: inline-block;
}

.pill-badge.pill-live {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
  animation: pulse-live 1.2s infinite ease-in-out;
}

@keyframes pulse-live {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.no-matches-found-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px 20px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Match Events Timeline — 3-Column Modern Clean Design
   ========================================================================== */
.events-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
}

.evt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

body.dark-mode .evt-row {
  border-bottom-color: #1e293b;
}

.evt-row:last-child {
  border-bottom: none;
}

.evt-col {
  flex: 1;
  display: flex;
  align-items: center;
}

.evt-col.evt-home {
  justify-content: flex-start;
  text-align: right;
  gap: 12px;
}

.evt-col.evt-away {
  justify-content: flex-end;
  text-align: left;
  gap: 12px;
}

.evt-col.evt-center {
  flex: 0 0 70px;
  justify-content: center;
}

/* Minute pill badge in center */
.evt-minute-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 800;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.dark-mode .evt-minute-badge {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.evt-added-min {
  position: absolute;
  top: -4px;
  right: 2px;
  font-size: 0.65rem;
  color: #ef4444;
  font-weight: 900;
}

/* Event details text */
.evt-details {
  display: flex;
  flex-direction: column;
}

.evt-player-main {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  line-height: 1.2;
}

body.dark-mode .evt-player-main {
  color: #f8fafc;
}

.evt-player-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

/* Icons styling */
.evt-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.evt-icon {
  font-size: 1.1rem;
  display: inline-block;
}

/* Yellow Card Icon */
.evt-card-yellow {
  width: 14px;
  height: 20px;
  background-color: #f59e0b;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

/* Red Card Icon */
.evt-card-red {
  width: 14px;
  height: 20px;
  background-color: #ef4444;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

/* Substitution Green/Red Arrows Icon */
}

.evt-sub-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

/* ==========================================================================
   Single Post & Page Layout Styles
   ========================================================================== */
.single-post-wrapper,
.single-page-wrapper {
  padding-top: 25px;
  padding-bottom: 40px;
}

.single-article-card {
  padding: 30px;
  margin-bottom: 25px;
  border-radius: var(--radius-lg);
}

/* Categories Badges */
.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-badge {
  background: rgba(0, 200, 83, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 200, 83, 0.25);
  transition: all 0.2s ease;
}

body.dark-mode .cat-badge {
  color: var(--primary-hover);
  background: rgba(0, 200, 83, 0.2);
}

.cat-badge:hover {
  background: var(--primary);
  color: #fff;
}

/* Main Article Title */
.article-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* Meta Header */
.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.author-avatar-mini img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-link {
  font-weight: 700;
  color: var(--text-main);
}

.author-link:hover {
  color: var(--primary);
}

.meta-icon {
  font-size: 1rem;
}

.date-updated {
  font-size: 0.8rem;
  color: var(--primary-dark);
  margin-right: 4px;
}

body.dark-mode .date-updated {
  color: var(--primary-hover);
}

.comments-scroll-link {
  color: var(--text-muted);
}

.comments-scroll-link:hover {
  color: var(--primary);
}

/* Featured Image */
.article-featured-image {
  margin-bottom: 25px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.featured-image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px;
  background: var(--bg-main);
}

/* Article Body Content & Typography */
.article-body-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-main);
  margin-bottom: 30px;
}

.article-body-content p {
  margin-bottom: 1.3rem;
}

.article-body-content h1,
.article-body-content h2,
.article-body-content h3,
.article-body-content h4,
.article-body-content h5,
.article-body-content h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.4;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.article-body-content h2 {
  font-size: 1.55rem;
  border-right: 4px solid var(--primary);
  padding-right: 12px;
}

.article-body-content h3 {
  font-size: 1.3rem;
}

.article-body-content blockquote {
  background: var(--bg-main);
  border-right: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-body-content ul,
.article-body-content ol {
  padding-right: 25px;
  margin-bottom: 1.3rem;
}

.article-body-content li {
  margin-bottom: 6px;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 15px 0;
}

/* Article Tags */
.article-tags-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 15px;
  margin-bottom: 25px;
  border-top: 1px dashed var(--border-color);
}

.tags-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: var(--bg-main);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.tag-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Social Share Buttons */
.social-share-box {
  background: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.share-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

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

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.share-whatsapp { background-color: #25D366; }
.share-facebook { background-color: #1877F2; }
.share-x        { background-color: #0f172a; }
.share-telegram { background-color: #229ED9; }
.share-linkedin { background-color: #0A66C2; }
.share-copy     { background-color: #64748b; }

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  align-items: center;
}

.author-bio-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.author-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.author-name a {
  color: var(--text-main);
}

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

.author-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.author-archive-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

body.dark-mode .author-archive-link {
  color: var(--primary-hover);
}

/* Related Posts Section */
.related-posts-section {
  padding: 25px;
  margin-bottom: 25px;
  border-radius: var(--radius-lg);
}

.related-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.related-post-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-thumb-link {
  display: block;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #cbd5e1;
}

.related-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-thumb-link img {
  transform: scale(1.05);
}

.related-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.2rem;
  background: var(--bg-main);
}

.related-post-info {
  padding: 12px 14px;
}

.related-date {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.related-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.related-post-title a:hover {
  color: var(--primary);
}

/* Comments Section */
.comments-section-container {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.comments-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.comments-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.comment-item {
  margin-bottom: 20px;
}

.comment-body-box {
  display: flex;
  gap: 15px;
  padding: 16px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content-area {
  flex: 1;
}

.comment-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author-name {
  font-weight: 700;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;

}

.comment-reply a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

body.dark-mode .comment-reply a {
  color: var(--primary-hover);
}

/* Comment Form */
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-submit-comment {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-main);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .single-article-card {
    padding: 18px;
  }
  
  .article-main-title {
    font-size: 1.5rem;
  }
  
  .article-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }
  
  .author-bio-card {
    flex-direction: column;
    text-align: center;
  }

  .comment-form-grid {
    grid-template-columns: 1fr;
  }
  
  .share-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   2-Column Layout & Image-Matching Custom Styles
   ========================================================================== */
.single-layout-grid.has-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 992px) {
  .single-layout-grid.has-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumbs Nav */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb-item:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* Green Category Badge */
.cat-badge-purple,
.cat-badge-green {
  background: #00C853;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.cat-badge-purple:hover,
.cat-badge-green:hover {
  opacity: 0.88;
  color: #ffffff;
}

/* Inline Meta Header */
.article-meta-header-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-meta-header-inline .meta-inline-item,
.article-meta-header-inline a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
}

.meta-inline-bullet {
  color: var(--text-light);
  margin: 0 2px;
}

/* Featured Image Box with Bottom Right Overlay Tag */
.article-featured-image-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 25px;
}

.article-featured-image-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.featured-image-tag-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Google News Banner */
.google-news-banner-box {
  margin: 30px 0 25px;
  text-align: center;
}

.google-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

body.dark-mode .google-news-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.google-news-btn:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

body.dark-mode .google-news-btn:hover {
  background: #334155;
}

/* Tag Pill Buttons */
.article-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tag-pill-btn {
  border: 1px solid #cbd5e1;
  color: #475569;
  background: transparent;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

body.dark-mode .tag-pill-btn {
  border-color: #334155;
  color: #94a3b8;
}

.tag-pill-btn:hover {
  border-color: #00C853;
  color: #00C853;
}

/* Bottom Share Bar */
.bottom-share-bar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 30px;
  background: var(--bg-card);
}

body.dark-mode .bottom-share-bar-card {
  border-color: #334155;
}

.share-bar-right-title {
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.share-bar-left-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bar-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-facebook  { background-color: #1877F2; }
.btn-x         { background-color: #000000; }
.btn-messenger { background-color: #0084FF; }
.btn-email     { background-color: #334155; }
.btn-print     { background-color: #475569; }

/* Left Sidebar Widgets Styling */
.single-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-accent-bar {
  color: #00C853;
  font-weight: 900;
  font-size: 1.2rem;
}

/* Newsletter Widget */
.newsletter-widget-box {
  text-align: center;
}

.newsletter-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.newsletter-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}

.newsletter-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-light);
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.newsletter-submit-btn {
  background: #00C853;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-main);
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-submit-btn:hover {
  background: #00E676;
}

/* Categories Sidebar List */
.sidebar-widget-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.categories-sidebar-list,
.pages-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.cat-sidebar-link:hover {
  color: #00C853;
}

.cat-count-badge {
  background: #00C853;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pages-sidebar-list li a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.pages-sidebar-list li a:hover {
  color: #00C853;
}

@media (max-width: 768px) {
  .bottom-share-bar-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Archive, Search, 404, Author & Footer Extended Styles
   ========================================================================== */

/* Archive Header Card */
.archive-header-card {
  padding: 25px 30px;
  margin-bottom: 25px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.archive-header-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: #00C853;
  margin-bottom: 6px;
}

.archive-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.archive-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Archive Posts Container (Grid vs List) */
.archive-posts-container.layout-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.archive-posts-container.layout-list-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.archive-post-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.layout-list-view .archive-post-card {
  flex-direction: row;
}

@media (max-width: 640px) {
  .layout-list-view .archive-post-card {
    flex-direction: column;
  }
}

.archive-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.archive-post-thumb-link {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-main);
}

.layout-list-view .archive-post-thumb-link {
  width: 220px;
  height: auto;
  min-height: 160px;
  flex-shrink: 0;
}

.archive-post-thumb-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.archive-post-card:hover .archive-post-thumb-link img {
  transform: scale(1.04);
}

.archive-placeholder-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--bg-main);
}

.archive-post-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-post-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.cat-name-mini a {
  color: #00C853;
  font-weight: 700;
}

.archive-post-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.archive-post-title a:hover {
  color: #00C853;
}

.archive-post-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.archive-post-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.read-more-btn {
  font-weight: 700;
  color: #00C853;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* Numeric Pagination */
.pagination-numeric-container {
  margin: 30px 0;
  text-align: center;
}

.pagination-numeric-container .nav-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pagination-numeric-container .page-numbers {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination-numeric-container .page-numbers.current,
.pagination-numeric-container .page-numbers:hover {
  background: #00C853;
  color: #ffffff;
  border-color: #00C853;
}

/* Search Page Header & Empty State */
.search-header-card {
  padding: 25px 30px;
  margin-bottom: 25px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.search-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.search-query-text {
  color: #00C853;
}

.search-page-form .search-input-wrapper {
  display: flex;
  gap: 10px;
  max-width: 650px;
}

.search-field-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.search-submit-btn {
  background: #00C853;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-main);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-submit-btn:hover {
  background: #00E676;
}

.no-results-card {
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
}

.no-results-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #00C853;
}

.no-results-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.no-results-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* 404 Error Page */
.error-404-wrapper {
  padding: 40px 0;
}

.error-404-card {
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  max-width: 950px;
  margin: 0 auto;
}

.error-404-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.error-number {
  font-size: 6rem;
  font-weight: 900;
  color: #00C853;
  line-height: 1;
}

.error-ball-icon {
  font-size: 4.5rem;
  color: #00C853;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.error-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.error-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.65;
}

.error-search-form {
  max-width: 550px;
  margin: 0 auto 30px;
}

.error-search-form .search-input-wrapper {
  display: flex;
  gap: 10px;
}

.error-action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-error-action {
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-error-action:hover {
  transform: translateY(-2px);
}

.btn-home {
  background: #334155;
  color: #ffffff;
}

.btn-competitions {
  background: #00C853;
  color: #ffffff;
}

/* Author Profile Header Card */
.author-profile-header-card {
  display: flex;
  gap: 25px;
  padding: 30px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  align-items: center;
}

@media (max-width: 640px) {
  .author-profile-header-card {
    flex-direction: column;
    text-align: center;
  }
}

.author-profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00C853;
}

.author-profile-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #00C853;
  margin-bottom: 4px;
}

.author-profile-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.author-profile-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-profile-stats {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.author-posts-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* 3-Column Footer Widgets Grid */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 50px;
  margin-top: 40px;
  border-top: 4px solid #00C853;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-about-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.footer-column-title,
.footer-widget-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

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

.footer-links-list li a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1e293b;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   SEO, CLS & Touch Target Optimization (Core Web Vitals)
   ========================================================================== */

/* Prevent Cumulative Layout Shift (CLS) on Images */
img {
  aspect-ratio: attr(width) / attr(height);
  height: auto;
  content-visibility: auto;
}

.article-featured-image-box img,
.archive-post-thumb-link img,
.related-thumb-link img {
  min-height: 120px;
}

/* Touch Targets Optimization for Mobile (>= 44px min touch area) */
@media (max-width: 768px) {
  .bar-btn,
  .share-btn,
  .tag-pill-btn,
  .cat-badge,
  .cat-badge-green,
  .pagination-numeric-container .page-numbers,
  .search-submit-btn,
  .newsletter-submit-btn,
  .mobile-menu-toggle,
  .theme-toggle-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link,
  .cat-sidebar-link,
  .footer-links-list li a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ==========================================================================
   SVG Vector Icons & Unified Visual Identity Styling
   ========================================================================== */

/* Universal SVG Vector Icon Rules */
svg.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

/* Align icons in flex containers */
.nav-link,
.btn-predictions,
.btn-auth,
.meta-inline-item,
.featured-image-tag-overlay,
.google-news-btn,
.share-bar-right-title,
.bar-btn,
.sidebar-widget-header,
.archive-header-badge,
.author-profile-badge,
.stat-badge,
.comments-title,
.related-title,
.footer-column-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.widget-accent-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00C853;
  margin-left: 6px;
}

body.dark-mode .widget-accent-bar {
  color: #00E676;
}

.meta-icon svg.icon-svg {
  color: #00C853;
}

body.dark-mode .meta-icon svg.icon-svg {
  color: #00E676;
}

.social-icon svg.icon-svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-btn svg.icon-svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

body.dark-mode .theme-toggle-btn svg.icon-svg {
  color: #38bdf8;
}

/* Eye-Friendly Visual Balance in Dark & Light Modes */
body {
  background-color: var(--bg-main, #f8fafc);
  color: var(--text-main, #0f172a);
}

body.dark-mode {
  --bg-main: #090d16;
  --bg-card: #131b2e;
  --bg-glass: rgba(19, 27, 46, 0.85);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
}

.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .card-box {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Flexible Layout Styles (Grid 2/3/4, List, Hero & Slider Blocks)
   ========================================================================== */

/* Grid Columns Variants */
.archive-posts-container.layout-grid_2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.archive-posts-container.layout-grid_3,
.archive-posts-container.layout-grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.archive-posts-container.layout-grid_4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.archive-posts-container.layout-list,
.archive-posts-container.layout-list-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .archive-posts-container.layout-grid_4,
  .archive-posts-container.layout-grid_3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .archive-posts-container.layout-grid_4,
  .archive-posts-container.layout-grid_3,
  .archive-posts-container.layout-grid_2 {
    grid-template-columns: 1fr;
  }
}

/* Card Overlay Badge & Hover Animations */
.card-overlay-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.grid-card-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* List Card View Styling */
.list-card-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.list-thumb-link {
  width: 200px;
  height: 130px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.list-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-content-box {
  padding: 0;
  flex: 1;
}

.list-post-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .list-card-item {
    flex-direction: column;
    align-items: stretch;
  }
  .list-thumb-link {
    width: 100%;
    height: 180px;
  }
}

/* Hero / Featured Block Grid Layout */
.hero-featured-block-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
}

.hero-main-post-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 340px;
}

.hero-main-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-main-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.hero-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0 8px;
  color: #ffffff;
}

.hero-main-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.hero-side-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-sub-post-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.hero-sub-post-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-sub-thumb-link {
  width: 100px;
  height: 75px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero-sub-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sub-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

@media (max-width: 850px) {
  .hero-featured-block-grid {
    grid-template-columns: 1fr;
  }
}

/* Slider / Carousel Block Styling */
.slider-carousel-section-container {
  padding: 20px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
}

.slider-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.slider-header-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.slider-nav-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: #00C853;
  color: #ffffff;
  border-color: #00C853;
}

.slider-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.slider-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.slider-carousel-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.slider-card-item {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.slider-thumb-link {
  display: block;
  height: 160px;
  position: relative;
}

.slider-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.slider-card-info {
  padding: 12px;
}

.slider-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slider-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 4px;
}

/* AJAX Load More Button Styling */
.btn-load-more {
  background: #00C853;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-load-more:hover {
  background: #00E676;
  transform: translateY(-2px);
}

.btn-load-more.loading {
  opacity: 0.7;
  cursor: wait;
}

/* ==========================================================================
   Universal Article HTML & Gutenberg Block Table Styling (Light & Dark Modes)
   ========================================================================== */

figure.wp-block-table,
.wp-block-table,
.entry-content table,
.article-body-content table {
  width: 100% !important;
  margin: 28px 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

/* Table Header (thead, tr:first-child, th) */
.wp-block-table table thead,
.wp-block-table table tr:first-child,
.entry-content table thead,
.entry-content table tr:first-child,
.article-body-content table thead,
.article-body-content table tr:first-child {
  background: #00C853 !important;
  color: #ffffff !important;
}

body.dark-mode .wp-block-table table thead,
body.dark-mode .wp-block-table table tr:first-child,
body.dark-mode .entry-content table thead,
body.dark-mode .entry-content table tr:first-child,
body.dark-mode .article-body-content table thead,
body.dark-mode .article-body-content table tr:first-child {
  background: #131b2e !important;
  color: #ffffff !important;
  border-bottom: 2px solid #00C853 !important;
}

/* Header Cells (th) */
.wp-block-table table th,
.entry-content table th,
.article-body-content table th,
.wp-block-table table tr:first-child td,
.entry-content table tr:first-child td,
.article-body-content table tr:first-child td {
  background: #00C853 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 14px 16px !important;
  text-align: center !important;
  border: none !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .wp-block-table table th,
body.dark-mode .entry-content table th,
body.dark-mode .article-body-content table th,
body.dark-mode .wp-block-table table tr:first-child td,
body.dark-mode .entry-content table tr:first-child td,
body.dark-mode .article-body-content table tr:first-child td {
  background: #131b2e !important;
  color: #00E676 !important;
  border-bottom: 2px solid #00C853 !important;
}

/* Table Data Cells (td) */
.wp-block-table table td,
.entry-content table td,
.article-body-content table td {
  padding: 12px 16px !important;
  font-size: 0.92rem !important;
  color: var(--text-main) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-left: 1px solid var(--border-color) !important;
  text-align: center !important;
  vertical-align: middle !important;
  transition: background-color 0.15s ease !important;
}

.wp-block-table table td:last-child,
.entry-content table td:last-child,
.article-body-content table td:last-child {
  border-left: none !important;
}

.wp-block-table table tr:last-child td,
.entry-content table tr:last-child td,
.article-body-content table tr:last-child td {
  border-bottom: none !important;
}

/* Alternate Row Colors (Stripes) */
.wp-block-table table tr:nth-child(even),
.entry-content table tr:nth-child(even),
.article-body-content table tr:nth-child(even) {
  background: var(--bg-main) !important;
}

.wp-block-table table tr:nth-child(odd),
.entry-content table tr:nth-child(odd),
.article-body-content table tr:nth-child(odd) {
  background: var(--bg-card) !important;
}

/* Hover Row Effect */
.wp-block-table table tr:hover td,
.entry-content table tr:hover td,
.article-body-content table tr:hover td {
  background: rgba(0, 200, 83, 0.06) !important;
}

body.dark-mode .wp-block-table table tr:hover td,
body.dark-mode .entry-content table tr:hover td,
body.dark-mode .article-body-content table tr:hover td {
  background: rgba(0, 230, 118, 0.1) !important;
}

/* Links inside tables */
.wp-block-table table a,
.entry-content table a,
.article-body-content table a {
  color: #00C853 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.wp-block-table table a:hover,
.entry-content table a:hover,
.article-body-content table a:hover {
  text-decoration: underline !important;
}

body.dark-mode .wp-block-table table a,
body.dark-mode .entry-content table a,
body.dark-mode .article-body-content table a {
  color: #00E676 !important;
}

/* Mobile Scroll Wrapper */
figure.wp-block-table,
.wp-block-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 768px) {
  figure.wp-block-table table,
  .wp-block-table table,
  .entry-content table,
  .article-body-content table {
    min-width: 550px !important;
  }
}

