/*
Theme Name: 2GAMER Editorial News
Theme URI: https://www.2gamer.co.il/
Author: 2GAMER Digital Studio
Author URI: https://www.2gamer.co.il/
Description: תבנית מגזין וחדשות מודרנית, נקייה ומהירה לעברית (RTL), בהשראת חוויית הקריאה הנקייה של פורטלי חדשות עכשוויים. כוללת עמוד ראשי מודולרי, תבנית כתבה קבועה עם מסגרת תמונה ראשית מסודרת והדגשה ברורה של קישורי עוגן בכחול עם קו תחתון, ועיצוב קטגוריות אחיד וללא רכיבי מזג אוויר או מדדים פיננסיים.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 2gamer-editorial
Tags: rtl-language-support, news, blog, custom-logo, custom-menu, featured-images, accessibility-ready, threaded-comments
*/

:root {
  --bg-canvas: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-subtle: #eef2f9;
  --bg-chip: #edf3fe;
  --bg-chip-hover: #dce8fd;

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #5f6b7c;
  --text-on-brand: #ffffff;

  --brand-primary: #1558d6;
  --brand-hover: #0b46b5;
  --brand-soft: rgba(21, 88, 214, 0.09);
  --anchor-blue: #1558d6;
  --anchor-blue-hover: #0842a0;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.035);
  --shadow-card-hover: 0 6px 22px rgba(15, 23, 42, 0.085);
  --shadow-header: 0 1px 0 rgba(226, 232, 240, 0.95), 0 4px 12px rgba(15, 23, 42, 0.03);

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --container-max: 1240px;
  --article-max: 820px;

  --font-sans: 'Heebo', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Rubik', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Screen Reader & Skip Link */
.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  right: 20px;
  z-index: 100000;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(21, 88, 214, 0.35);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  color: #ffffff;
}

/* Layout Containers */
.gn-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-main {
  padding-block: 28px 56px;
  min-height: 65vh;
}

/* ==========================================================================
   HEADER (Google News Inspired Clean Editorial Bar - Zero Weather/Tickers)
   ========================================================================== */
.gn-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.2s ease;
}

.gn-site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.gn-header-top {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 540px) 1fr;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}

/* Never display any post/page publish date badges */
.entry-date,
.published,
.updated,
.post-date,
.wp-block-post-date {
  display: none !important;
}

/* Brand Identity */
.gn-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.gn-brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1558d6 0%, #2563eb 55%, #0ea5e9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(21, 88, 214, 0.24);
}

.gn-brand-emblem svg {
  width: 22px;
  height: 22px;
}

.gn-brand-custom-logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.gn-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.gn-brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gn-brand-subtitle {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Header Search Bar (Pill Shaped) */
.gn-header-search {
  width: 100%;
  justify-self: center;
}

.gn-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #f1f4f9;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 4px 16px 4px 8px;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gn-search-form:focus-within {
  background: #ffffff;
  border-color: rgba(21, 88, 214, 0.45);
  box-shadow: 0 2px 10px rgba(21, 88, 214, 0.12);
}

.gn-search-icon {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 10px;
}

.gn-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 7px 0;
  outline: none;
}

.gn-search-input::placeholder {
  color: var(--text-muted);
}

.gn-search-submit {
  border: 0;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.gn-search-submit:hover {
  background: var(--brand-hover);
}

/* Header Meta Actions (Editorial Date Only - NO Weather / NO Stocks / NO Dollar) */
.gn-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.gn-editorial-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-canvas);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

/* Mobile Menu Button */
.gn-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Topic Navigation Bar */
.gn-topic-bar {
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.gn-topic-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0;
}

.gn-topic-scroll::-webkit-scrollbar {
  display: none;
}

.gn-topic-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gn-topic-link:hover {
  color: var(--text-primary);
}

.gn-topic-link.is-active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 700;
}

/* Mobile Drawer */
.gn-mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 20px 22px;
}

.gn-mobile-drawer.is-open {
  display: block;
}

.gn-mobile-drawer .gn-search-form {
  margin-bottom: 14px;
}

.gn-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.gn-mobile-nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.gn-mobile-nav-list a:hover,
.gn-mobile-nav-list a.is-active {
  background: var(--bg-chip);
  color: var(--brand-primary);
}

/* ==========================================================================
   HOMEPAGE BRIEFING & MODULAR SECTIONS
   ========================================================================== */
.gn-briefing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.gn-briefing-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gn-briefing-sub {
  margin: 4px 0 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Elevated White Module Surface */
.gn-surface-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 28px;
}

.gn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.gn-section-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gn-section-heading::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: var(--brand-primary);
}

.gn-section-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
}

.gn-section-more:hover {
  background: var(--bg-chip-hover);
  color: var(--brand-hover);
}

/* Top Briefing Asymmetric Grid */
.gn-top-briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gn-hero-story {
  display: flex;
  flex-direction: column;
}

.gn-hero-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 16px;
}

.gn-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gn-hero-story:hover .gn-hero-media img {
  transform: scale(1.025);
}

.gn-hero-title {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.1vw, 1.72rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--text-primary);
}

.gn-hero-title a:hover {
  color: var(--brand-primary);
}

.gn-hero-excerpt {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Secondary Compact Stack */
.gn-compact-stack {
  display: flex;
  flex-direction: column;
}

.gn-compact-item {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 14px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.gn-compact-item:first-child {
  padding-top: 0;
}

.gn-compact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.gn-compact-title {
  margin: 4px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-compact-title a:hover {
  color: var(--brand-primary);
}

.gn-compact-thumb {
  width: 92px;
  height: 76px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

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

.gn-compact-item:hover .gn-compact-thumb img {
  transform: scale(1.04);
}

/* Category & Meta Badges */
.gn-cat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-chip);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.gn-cat-pill:hover {
  background: var(--bg-chip-hover);
  color: var(--brand-hover);
}

.gn-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gn-meta-dot::before {
  content: "•";
  margin-left: 8px;
  opacity: 0.65;
}

/* Topic Columns Section (2-up / 3-up Category Cards like Google News Topics) */
.gn-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.gn-topic-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.gn-topic-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.gn-topic-box-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.gn-topic-box-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gn-topic-box-title a:hover {
  color: var(--brand-primary);
}

.gn-topic-lead-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 12px;
}

.gn-topic-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Stream + Sticky Sidebar Layout */
.gn-stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

/* Horizontal Story Card (Used in Home Stream, Category Archive, Search) */
.gn-story-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gn-story-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gn-story-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.gn-story-card-title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
}

.gn-story-card-title a:hover {
  color: var(--brand-primary);
}

.gn-story-card-excerpt {
  margin: 0 0 12px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-story-card-media {
  width: 210px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

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

.gn-story-card:hover .gn-story-card-media img {
  transform: scale(1.035);
}

/* Fallback Graphic Placeholder for Posts Without Images */
.gn-placeholder-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef4ff 0%, #dbeafe 50%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--brand-primary);
  padding: 12px;
  text-align: center;
}

.gn-placeholder-thumb svg {
  width: 28px;
  height: 28px;
  opacity: 0.82;
}

.gn-placeholder-thumb span {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

/* Sticky Editorial Sidebar */
.gn-sidebar {
  position: sticky;
  top: 132px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gn-widget-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.gn-widget-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gn-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gn-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-canvas);
}

.gn-cat-list a:hover {
  background: var(--bg-chip);
  color: var(--brand-primary);
}

.gn-cat-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: #ffffff;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CATEGORY & ARCHIVE FIXED DESIGN (עיצוב קבוע של קטגורית מאמרים)
   ========================================================================== */
.gn-archive-hero {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gn-archive-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gn-archive-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gn-archive-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-chip);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gn-archive-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 800;
  color: var(--text-primary);
}

.gn-archive-count-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-chip);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.gn-archive-desc {
  margin: 4px 0 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 780px;
}

/* Category Featured First Card */
.gn-category-lead-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.gn-category-lead-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
}

.gn-category-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.gn-breadcrumbs a {
  color: var(--text-muted);
  font-weight: 500;
}

.gn-breadcrumbs a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.gn-breadcrumb-sep {
  opacity: 0.55;
}

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

.gn-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gn-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gn-pagination .page-numbers:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

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

/* ==========================================================================
   SINGLE POST TEMPLATE (תבנית קבועה לעמודי הפוסטים)
   ========================================================================== */
.gn-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.gn-article-shell {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 4vw, 44px);
}

.gn-article-header {
  margin-bottom: 24px;
}

.gn-article-title {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.gn-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gn-article-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gn-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.gn-author-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-chip);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

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

.gn-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
}

.gn-share-btn:hover {
  background: var(--bg-chip);
  border-color: rgba(21, 88, 214, 0.35);
  color: var(--brand-primary);
}

/* Neat, Uniform Featured Image Slot (תמונה ראשית מסודרת) */
.gn-post-featured-figure {
  margin: 0 0 28px;
  padding: 0;
}

.gn-post-featured-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.gn-post-featured-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gn-post-featured-caption {
  margin-top: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
}

/* Article Body Typography */
.entry-content {
  font-size: 1.09rem;
  line-height: 1.82;
  color: #1e293b;
  word-wrap: break-word;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 1.35em;
}

.entry-content h2 {
  margin: 1.85em 0 0.65em;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.1vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2f9;
}

.entry-content h3 {
  margin: 1.5em 0 0.55em;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.32rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.entry-content h4 {
  margin: 1.3em 0 0.5em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.45em;
  padding-right: 1.5em;
  padding-left: 0;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--bg-canvas);
  border-right: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  font-style: normal;
  color: var(--text-secondary);
}

.entry-content img,
.entry-content figure {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-block: 1.5em;
}

.entry-content figure {
  margin-inline: 0;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Tables inside posts */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  text-align: right;
}

.entry-content th,
.entry-content thead td {
  background: var(--bg-chip);
  color: var(--text-primary);
  font-weight: 700;
}

.entry-content tr:nth-child(even) td {
  background: #fafbfe;
}

/* ==========================================================================
   MANDATORY ANCHOR TEXT LINK STYLING IN POST PAGES
   בולט בצבע כחול עם קו תחתון ברור בכל עמודי הפוסטים
   ========================================================================== */
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn),
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn):visited,
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn) span,
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn) strong,
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn) b,
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn) em,
.page .entry-content a:not(.wp-block-button__link) {
  color: var(--anchor-blue) !important;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-color: var(--anchor-blue) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  font-weight: 600;
  padding-inline: 1px;
  border-radius: 3px;
  transition: color 0.15s ease, background-color 0.15s ease, text-decoration-color 0.15s ease;
}

.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn):hover,
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn):focus-visible,
.single-post .entry-content a:not(.wp-block-button__link):not(.gn-share-btn):hover span,
.page .entry-content a:not(.wp-block-button__link):hover {
  color: var(--anchor-blue-hover) !important;
  text-decoration-color: var(--anchor-blue-hover) !important;
  background-color: rgba(21, 88, 214, 0.1);
}

/* Prevent underline box under purely image-wrapping links */
.single-post .entry-content a:has(> img:only-child) {
  text-decoration: none !important;
  background: transparent !important;
  padding: 0;
}

/* Post Tags & Post Footer Navigation */
.gn-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.gn-tag-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.gn-tag-chip:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.gn-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gn-post-nav-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.gn-post-nav-card:hover {
  border-color: var(--brand-primary);
}

.gn-post-nav-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gn-post-nav-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Posts Grid */
.gn-related-section {
  margin-top: 32px;
}

.gn-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gn-grid-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gn-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.gn-grid-card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  overflow: hidden;
}

.gn-grid-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gn-grid-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gn-grid-card-title {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-grid-card-title a:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.gn-site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding-block: 44px 28px;
  margin-top: 40px;
}

.gn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.gn-footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gn-footer-about {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.7;
}

.gn-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gn-footer-links a,
.gn-footer-cookie-btn {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: right;
}

.gn-footer-links a:hover,
.gn-footer-cookie-btn:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.gn-footer-disclaimer {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--bg-canvas);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.gn-footer-disclaimer p {
  margin: 0 0 6px;
}

.gn-footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.gn-footer-disclaimer a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 600;
}

.gn-footer-bottom {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.gn-footer-partner-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gn-footer-partner-links a {
  color: var(--text-muted);
}

.gn-footer-partner-links a:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1040px) {
  .gn-topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gn-stream-layout,
  .gn-single-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gn-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .gn-header-top {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .gn-header-search,
  .gn-editorial-date {
    display: none;
  }
  .gn-mobile-toggle {
    display: inline-flex;
  }
  .gn-top-briefing-grid,
  .gn-category-lead-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .gn-related-grid,
  .gn-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gn-post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .gn-container {
    padding-inline: 14px;
  }
  .gn-surface-card,
  .gn-article-shell,
  .gn-archive-hero {
    padding: 18px;
    border-radius: 16px;
  }
  .gn-topics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gn-story-card {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 14px;
    padding: 15px;
  }
  .gn-story-card-media {
    width: 108px;
    aspect-ratio: 1 / 1;
  }
  .gn-story-card-excerpt {
    display: none;
  }
  .gn-story-card-title {
    font-size: 1.02rem;
  }
}
