/*
Theme Name: ononet
Theme URI: https://ononet.co.il/
Author: ononet
Author URI: https://ononet.co.il/
Description: ערכת נושא פרימיום מהירה ונקייה עבור פורטל החדשות ononet (אונו נט). כוללת עמוד ראשי עם קטגוריות מאמרים, כתבה ראשית וטור מבזקים, תוכן עניינים אוטומטי (TOC) בראש כל פוסט והדגשה בולטת של קישורים.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ononet
Tags: news, newspaper, blog, rtl-language-support, grid-layout, custom-menu, featured-images
*/

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-family: 'Heebo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --border: #e2e8f0;
  --anchor-bg: #fef3c7;
  --anchor-border: #f59e0b;
  --anchor-text: #78350f;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family) !important;
  background-color: #ffffff;
  color: var(--slate-900);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.site-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.top-utility-bar {
  background-color: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.4rem 0;
  font-size: 0.775rem;
  color: var(--slate-600);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-badge {
  color: #047857;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   Main Header & Branding
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-main-row {
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--slate-900);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.brand-link:hover .brand-icon-box {
  background-color: var(--primary);
}

.brand-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.2s;
}

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

.brand-sub-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid #bfdbfe;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.brand-tagline {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

.header-search-form {
  position: relative;
  width: 260px;
  max-width: 100%;
}

.header-search-form input[type="search"] {
  width: 100%;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.825rem;
  font-family: var(--font-family);
  color: var(--slate-900);
  outline: none;
  transition: all 0.2s;
}

.header-search-form input[type="search"]:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.header-search-icon {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
  font-size: 0.85rem;
}

/* ==========================================================================
   Navigation Menu (Dark Navy Strip)
   ========================================================================== */
.main-navigation-bar {
  background-color: var(--slate-900);
  color: #ffffff;
  border-top: 1px solid var(--slate-800);
}

.main-navigation-bar .menu-items-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.4rem 0;
  margin: 0;
  scrollbar-width: none;
}

.main-navigation-bar .menu-items-list::-webkit-scrollbar {
  display: none;
}

.main-navigation-bar a {
  color: var(--slate-300);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-navigation-bar a:hover {
  background-color: var(--slate-800);
  color: #ffffff;
}

.main-navigation-bar .current-menu-item a,
.main-navigation-bar .active a {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

/* ==========================================================================
   1. Category Index Grid Box (ראש העמוד הראשי)
   ========================================================================== */
.category-index-box {
  background-color: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.category-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.category-index-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-index-subtitle {
  font-size: 0.775rem;
  color: var(--slate-500);
  font-weight: 500;
}

.category-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

.category-chip-btn {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  min-height: 84px;
}

.category-chip-btn:hover {
  border-color: var(--primary);
  background-color: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.category-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.category-chip-icon {
  width: 28px;
  height: 28px;
  background-color: var(--slate-100);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.category-chip-btn:hover .category-chip-icon {
  background-color: var(--primary);
  color: #ffffff;
}

.category-chip-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate-400);
}

.category-chip-btn:hover .category-chip-count {
  color: var(--primary);
}

.category-chip-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--slate-900);
  transition: color 0.2s;
}

.category-chip-btn:hover .category-chip-name {
  color: var(--primary);
}

/* ==========================================================================
   2. Lead Article + Side Columns (2-Column Hero)
   ========================================================================== */
.hero-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 992px) {
  .hero-layout-grid {
    grid-template-columns: 8fr 4fr;
  }
}

.lead-article-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.lead-article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.lead-article-img-wrap {
  position: relative;
  height: 320px;
  background-color: var(--slate-100);
  overflow: hidden;
}

.lead-article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lead-article-card:hover .lead-article-img-wrap img {
  transform: scale(1.025);
}

.lead-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 2;
}

.lead-article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.article-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.lead-article-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.lead-article-card:hover .lead-article-title {
  color: var(--primary);
}

.lead-article-excerpt {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  font-size: 0.775rem;
  color: var(--slate-500);
}

.read-more-link {
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.read-more-link:hover {
  gap: 0.45rem;
}

/* Side News Box (4 Columns) */
.side-news-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.side-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
}

.side-news-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--slate-900);
}

.side-news-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.side-news-item {
  display: block;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

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

.side-news-item:hover {
  background-color: var(--slate-50);
}

.side-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}

.side-item-cat {
  color: var(--primary);
  font-weight: 800;
  background-color: var(--primary-light);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.side-item-date {
  color: var(--slate-400);
}

.side-item-title {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--slate-800);
  transition: color 0.2s;
}

.side-news-item:hover .side-item-title {
  color: var(--primary);
}

/* ==========================================================================
   3. Categories Showcase Grid (בלוקי מדורים)
   ========================================================================== */
.section-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: 0.65rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-accent-bar {
  width: 5px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

.categories-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.category-block-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.category-block-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.category-block-header {
  background-color: var(--slate-50);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-block-title {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--slate-900);
}

.category-block-all-link {
  font-size: 0.725rem;
  color: var(--primary);
  font-weight: 800;
}

.category-block-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.category-block-img {
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: var(--slate-100);
}

.category-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-block-article-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   4. Standard News Grid (רשת מאמרים כללית - 3 טורים)
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.news-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.news-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.news-card-img-wrap {
  position: relative;
  height: 190px;
  background-color: var(--slate-100);
  overflow: hidden;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.news-card:hover .news-card-title {
  color: var(--primary);
}

.news-card-excerpt {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ==========================================================================
   5. Single Post Page (מאמר מלא עם TOC והדגשת טקסט עוגן)
   ========================================================================== */
.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 1rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--slate-600);
  font-weight: 600;
}

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

.single-post-header {
  margin-bottom: 2rem;
}

.single-category-pill {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.single-post-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.single-author-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--slate-600);
}

.single-featured-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Standout Table of Contents (TOC) */
.toc-container {
  background-color: var(--slate-50);
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--slate-900);
}

.toc-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
}

.toc-list {
  list-style: decimal inside;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list li a {
  color: var(--slate-900);
  font-weight: 700;
  font-size: 0.925rem;
  transition: color 0.2s;
}

.toc-list li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.toc-list li.toc-level-h3 {
  margin-right: 1.5rem;
  font-weight: 500;
  color: var(--slate-600);
}

/* STANDOUT HIGHLIGHTED ANCHOR TEXT (הדגשת טקסט עוגן) */
.post-content {
  font-size: 1.075rem;
  line-height: 1.85;
  color: #1e293b;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--slate-900);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--slate-200);
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 1.5rem 0 0.75rem 0;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a,
.ononet-anchor-highlight {
  background-color: var(--anchor-bg) !important;
  color: var(--anchor-text) !important;
  border-bottom: 2px solid var(--anchor-border) !important;
  padding: 0.15rem 0.5rem !important;
  margin: 0 0.2rem !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(245, 158, 11, 0.7) !important;
  text-underline-offset: 3px !important;
  transition: all 0.2s ease-in-out !important;
  display: inline !important;
}

.post-content a:hover,
.ononet-anchor-highlight:hover {
  background-color: #fde68a !important;
  color: #451a03 !important;
  border-bottom-color: #d97706 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
}

/* Author Box */
.author-profile-box {
  background-color: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--slate-900);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ==========================================================================
   6. Footer & Partner Links & Quote
   ========================================================================== */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  border-top: 4px solid var(--primary);
  padding: 3.5rem 0 2rem 0;
  margin-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-right: 3px solid var(--primary);
  padding-right: 0.5rem;
}

.footer-partner-box {
  background-color: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-partner-link {
  display: block;
  text-decoration: none;
}

.footer-partner-name {
  color: #60a5fa;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-partner-desc {
  font-size: 0.725rem;
  color: var(--slate-400);
  margin-top: 0.2rem;
}

.footer-quote-strip {
  border-top: 1px solid var(--slate-800);
  padding: 1.5rem 0;
  text-align: center;
  color: #93c5fd;
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   7. Fixed Horizontal Pagination (תיקון מלא לתצוגת מספרי עמודים לרוחב)
   ========================================================================== */
.pagination,
.nav-links,
nav.navigation.pagination,
ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin: 3rem 0 1.5rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

ul.page-numbers li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 0.85rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: var(--slate-800) !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  transition: all 0.2s ease !important;
}

a.page-numbers:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-1px) !important;
}

.page-numbers.current,
span.page-numbers.current {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.screen-reader-text {
  display: none !important;
}
