/*
Theme Name: Justice Online - פורטל המשפט ועורכי הדין בישראל
Theme URI: https://justiceonline.co.il/
Author: Digital Lions & Liga SEO
Author URI: https://justiceonline.co.il/
Description: תבנית עיתונאית יוקרתית לפורטל משפט, פסיקה ועורכי דין. משלבת את העיצוב העיתונאי של הניו יורק טיימס (The New York Times) עם היוקרה והסמכות המשפטית של משרד עורכי הדין פיטה ובאיונה (Pitta & Baione). מבוססת באופן בלעדי על גופן רוביק (Rubik) אחיד, תפריט ניווט דינמי של וורדפרס, הצגת פוסטים אחרונים וקטגוריות האתר, ועמודי פוסטים עם קישורי עוגן כחולים וקו תחתון.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: justiceonline
Domain Path: /languages
Tags: legal, news, editorial, rtl-support, law-firm, blog, right-to-left
*/

/* ==========================================================================
   STRICT SINGLE FONT: RUBIK ACROSS THE ENTIRE WEBSITE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
    /* STRICT UNIFORM FONT: RUBIK ONLY */
    --font-main: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Authority Colors (Pitta & Baione Navy & Gold) */
    --color-navy-dark: #0a192f;
    --color-navy: #0f1e36;
    --color-navy-light: #1b2a47;
    --color-navy-border: #233554;
    --color-gold: #c5a059;
    --color-gold-hover: #d4af37;
    --color-gold-light: #f7f3e9;
    --color-gold-border: rgba(197, 160, 89, 0.35);

    /* The New York Times Editorial Colors */
    --color-nyt-black: #121212;
    --color-nyt-dark: #222222;
    --color-nyt-gray: #4a5568;
    --color-nyt-muted: #718096;
    --color-nyt-rule: #e2e8f0;
    --color-nyt-dark-rule: #121212;
    --color-nyt-kicker: #990000;

    /* Mandatory Link Colors (STRICT USER REQUIREMENT: BLUE & UNDERLINE) */
    --color-anchor-link: #0b57d0;
    --color-anchor-link-hover: #003c8f;

    /* Backgrounds & Borders */
    --bg-page: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Layout & Shadows */
    --container-max: 1340px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 10px 25px rgba(10, 25, 47, 0.12);
}

/* ==========================================================================
   RESET & ENFORCE RUBIK ON ALL ELEMENTS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main) !important;
}

html {
    direction: rtl;
    text-align: right;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-page);
    color: var(--color-nyt-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, p, a, span, button, input, select, textarea {
    font-family: var(--font-main) !important;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

ul, ol {
    list-style: none;
}

.nyt-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER 1: NYT TOP BAR & LIVE NEWS TICKER
   ========================================================================== */
.nyt-top-bar {
    background-color: #fafbfc;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--color-nyt-gray);
    padding: 7px 0;
}

.nyt-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.top-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-nyt-black);
    font-weight: 600;
}

.top-edition-badge {
    background: var(--color-gold-light);
    color: #8c6b2d;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(197, 160, 89, 0.25);
}

.top-bar-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 15px;
}

.ticker-label {
    background-color: var(--color-nyt-kicker);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ticker-text {
    color: var(--color-nyt-dark);
    font-weight: 500;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-text a:hover {
    color: var(--color-anchor-link);
    text-decoration: underline;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-action-btn {
    background: none;
    border: none;
    color: var(--color-nyt-gray);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.top-action-btn:hover {
    background-color: #edf2f7;
    color: var(--color-navy-dark);
}

/* ==========================================================================
   HEADER 2: NYT MASTHEAD
   ========================================================================== */
.nyt-masthead {
    background-color: #ffffff;
    padding: 22px 0 16px 0;
    text-align: center;
}

.masthead-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.masthead-logo-link {
    display: inline-block;
    color: var(--color-nyt-black);
    text-decoration: none;
}

.masthead-english-kicker {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
}

.masthead-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--color-navy-dark);
    margin: 0;
}

.masthead-tagline {
    font-size: 1rem;
    color: var(--color-nyt-muted);
    margin-top: 6px;
    font-weight: 500;
}

.masthead-double-rule {
    width: 100%;
    border-top: 3px double var(--color-nyt-dark-rule);
    margin-top: 14px;
    margin-bottom: 0;
}

/* ==========================================================================
   HEADER 3: WORDPRESS DYNAMIC NAVIGATION BAR (PITTA & BAIONE STYLE)
   ========================================================================== */
.pb-nav-bar {
    background-color: var(--color-navy-dark);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.25);
    border-top: 2px solid var(--color-gold);
    border-bottom: 1px solid var(--color-navy-border);
}

.pb-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* WordPress Nav Menu Ul */
.nav-menu-primary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu-primary > li {
    position: relative;
}

.nav-menu-primary > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu-primary > li:hover > a,
.nav-menu-primary > li.current-menu-item > a,
.nav-menu-primary > li.current_page_item > a {
    color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: var(--color-gold);
}

/* Dropdown Menu */
.nav-menu-primary ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-navy);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-navy-border);
    border-top: 2px solid var(--color-gold);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

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

.nav-menu-primary ul.sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, color 0.15s ease;
}

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

.nav-menu-primary ul.sub-menu li a:hover {
    background-color: var(--color-navy-light);
    color: var(--color-gold);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-btn {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}

.nav-search-btn:hover {
    color: var(--color-gold);
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
    color: #0a192f !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.45);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.nyt-breadcrumbs {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--color-nyt-muted);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.nyt-breadcrumbs a {
    color: var(--color-nyt-gray);
    font-weight: 500;
}

.nyt-breadcrumbs a:hover {
    color: var(--color-anchor-link);
    text-decoration: underline;
}

.nyt-breadcrumbs .sep {
    margin: 0 8px;
    color: #a0aec0;
}

.nyt-breadcrumbs .current {
    color: var(--color-navy-dark);
    font-weight: 600;
}

/* ==========================================================================
   FRONT PAGE: HERO EDITORIAL GRID (NYT STYLE)
   ========================================================================== */
.nyt-front-hero {
    padding: 24px 0 36px 0;
    border-bottom: 1px solid var(--color-nyt-rule);
}

.nyt-hero-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1fr;
    gap: 30px;
}

/* Lead Column (Col 1) */
.hero-lead-col {
    padding-left: 20px;
    border-left: 1px solid var(--border-light);
}

.hero-lead-card .lead-media {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-lead-card .lead-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-lead-card:hover .lead-media img {
    transform: scale(1.02);
}

.lead-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: var(--color-navy-dark);
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--color-gold-border);
}

.article-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-nyt-kicker);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.hero-lead-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-nyt-black);
    margin-bottom: 12px;
}

.hero-lead-title a:hover {
    color: var(--color-anchor-link);
}

.hero-lead-deck {
    font-size: 1.05rem;
    color: var(--color-nyt-gray);
    line-height: 1.6;
    margin-bottom: 14px;
}

.nyt-byline-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-nyt-muted);
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
}

.nyt-byline-bar strong {
    color: var(--color-nyt-dark);
}

/* Secondary Breaking News Column (Col 2) */
.hero-secondary-col {
    padding-left: 20px;
    border-left: 1px solid var(--border-light);
}

.column-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    border-bottom: 2px solid var(--color-navy-dark);
    padding-bottom: 8px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-section-title a {
    font-size: 0.8rem;
    color: var(--color-anchor-link);
    font-weight: 600;
}

.secondary-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.secondary-news-item {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.secondary-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.secondary-news-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-nyt-kicker);
    margin-bottom: 4px;
    display: block;
}

.secondary-news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-nyt-black);
    margin-bottom: 6px;
}

.secondary-news-title a:hover {
    color: var(--color-anchor-link);
}

.secondary-news-excerpt {
    font-size: 0.88rem;
    color: var(--color-nyt-muted);
    line-height: 1.5;
}

/* Third Daily Column / Editorial (Col 3) */
.hero-tertiary-col {
    background-color: var(--bg-subtle);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.editorial-note-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
    border-right: 3px solid var(--color-gold);
}

.editorial-note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.editorial-note-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-gold-light);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.editorial-note-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy-dark);
}

.editorial-note-role {
    font-size: 0.75rem;
    color: var(--color-nyt-muted);
}

.editorial-note-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-nyt-black);
    line-height: 1.35;
}

.editorial-note-title a:hover {
    color: var(--color-anchor-link);
}

/* ==========================================================================
   FRONT PAGE: SITE CATEGORIES SECTION (רק הקטגוריות שקיימות באתר)
   ========================================================================== */
.all-categories-section {
    padding: 40px 0;
    background-color: #fafbfc;
    border-bottom: 1px solid var(--border-light);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-nyt-dark);
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--color-nyt-muted);
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--color-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold-border);
}

.category-card:hover::before {
    opacity: 1;
}

.cat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--color-gold-light);
    color: #8c6b2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cat-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    line-height: 1.3;
}

.cat-card-desc {
    font-size: 0.85rem;
    color: var(--color-nyt-gray);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-anchor-link);
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
}

.cat-count {
    background-color: #edf2f7;
    color: var(--color-nyt-dark);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* ==========================================================================
   FRONT PAGE: RECENT POSTS SECTION (מפנה ישירות לפוסטים שעלו!)
   ========================================================================== */
.recent-articles-section {
    padding: 45px 0;
    border-bottom: 1px solid var(--border-light);
}

.articles-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.nyt-article-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    transition: transform 0.2s ease;
}

.nyt-article-card:hover {
    transform: translateY(-2px);
}

.nyt-article-card .card-media {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.nyt-article-card .card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nyt-article-card:hover .card-media img {
    transform: scale(1.03);
}

.card-category-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-anchor-link);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-nyt-black);
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-title a:hover {
    color: var(--color-anchor-link);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-nyt-gray);
    line-height: 1.55;
    margin-bottom: 12px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-nyt-muted);
    border-top: 1px solid #edf2f7;
    padding-top: 8px;
}

/* ==========================================================================
   PITTA & BAIONE LAWYER CONSULTATION BANNER
   ========================================================================== */
.pb-consultation-banner {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, #0d1f3b 100%);
    color: #ffffff;
    padding: 55px 0;
    border-top: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    margin: 40px 0;
}

.consultation-banner-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 45px;
    align-items: center;
}

.consultation-info-col h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.consultation-info-col h2 span {
    color: var(--color-gold);
}

.consultation-info-col p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.trust-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge-icon {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.trust-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.consultation-form-card {
    background: #ffffff;
    color: var(--color-nyt-dark);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gold-border);
}

.form-header-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin-bottom: 6px;
}

.form-header-sub {
    font-size: 0.85rem;
    color: var(--color-nyt-muted);
    margin-bottom: 18px;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: #fafbfc;
    transition: all 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-navy-dark);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1);
}

.form-submit-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
    color: #0a192f;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(197, 160, 89, 0.35);
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.45);
}

.form-privacy-note {
    font-size: 0.75rem;
    color: var(--color-nyt-muted);
    text-align: center;
    margin-top: 6px;
}

/* ==========================================================================
   CATEGORY & ARCHIVE TEMPLATE
   ========================================================================== */
.category-page-header {
    background: #ffffff;
    border-bottom: 2px solid var(--color-nyt-dark);
    padding: 30px 0 24px 0;
    margin-bottom: 30px;
}

.cat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cat-header-badge {
    background-color: var(--color-gold-light);
    color: #8c6b2d;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-main-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-navy-dark);
    line-height: 1.15;
    margin-bottom: 10px;
}

.category-description-text {
    font-size: 1.1rem;
    color: var(--color-nyt-gray);
    line-height: 1.6;
    max-width: 850px;
}

.category-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 36px;
    margin-bottom: 50px;
}

.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.nyt-pagination {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nyt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-nyt-dark);
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

.nyt-pagination .page-numbers:hover {
    background-color: #f1f5f9;
    border-color: var(--border-strong);
}

.nyt-pagination .page-numbers.current {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    border-color: var(--color-navy-dark);
}

/* Sidebar */
.editorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
    min-width: 24px;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-nyt-black);
    line-height: 1.35;
}

.sidebar-post-title a:hover {
    color: var(--color-anchor-link);
}

.sidebar-categories-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-nyt-gray);
    transition: color 0.15s ease;
}

.sidebar-categories-list li a:hover {
    color: var(--color-anchor-link);
    padding-right: 4px;
}

/* ==========================================================================
   SINGLE POST TEMPLATE (עיצוב עמודי הפוסטים)
   ========================================================================== */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to left, var(--color-gold), var(--color-anchor-link));
    transition: width 0.1s linear;
}

.single-post-wrapper {
    padding-bottom: 60px;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 40px;
}

.single-post-main {
    background: #ffffff;
}

.single-post-header {
    margin-bottom: 24px;
}

.single-post-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.22;
    color: var(--color-nyt-black);
    margin: 10px 0 14px 0;
}

.single-post-deck {
    font-size: 1.2rem;
    color: var(--color-nyt-gray);
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 400;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.single-featured-image {
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.nyt-image-caption {
    font-size: 0.82rem;
    color: var(--color-nyt-muted);
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.5;
}

/* Table of Contents */
.article-toc-box {
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-right: 4px solid var(--color-navy-dark);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    position: relative;
    padding-right: 22px;
    font-size: 0.95rem;
}

.toc-list li::before {
    content: counter(toc-counter) '.';
    position: absolute;
    right: 0;
    font-weight: 700;
    color: var(--color-gold);
}

.toc-list li a {
    color: var(--color-nyt-dark);
    font-weight: 500;
    transition: color 0.15s ease;
}

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

/* ==========================================================================
   CRITICAL REQUIREMENT: ANCHOR LINKS IN POST BODY (BLUE & UNDERLINE)
   ========================================================================== */
.entry-content,
.single-post-content,
.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1f2937;
}

/* Every anchor text link inside the post content MUST be blue with underline */
.entry-content a,
.single-post-content a,
.article-body a,
.post-content a {
    color: #0b57d0 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1.5px !important;
    text-decoration-color: #0b57d0 !important;
    font-weight: 600 !important;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.entry-content a:hover,
.single-post-content a:hover,
.article-body a:hover,
.post-content a:hover {
    color: #003c8f !important;
    text-decoration: underline !important;
    text-decoration-color: #003c8f !important;
}

.entry-content p,
.single-post-content p {
    margin-bottom: 22px;
}

.entry-content h2,
.single-post-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    margin: 36px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.3;
}

.entry-content h3,
.single-post-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-nyt-black);
    margin: 28px 0 12px 0;
}

.entry-content ul,
.single-post-content ul {
    list-style: disc;
    margin: 16px 28px 24px 0;
}

.entry-content ol,
.single-post-content ol {
    list-style: decimal;
    margin: 16px 28px 24px 0;
}

.entry-content li,
.single-post-content li {
    margin-bottom: 8px;
}

.court-verdict-box {
    background: #faf7f2;
    border: 1px solid var(--color-gold-border);
    border-right: 4px solid var(--color-gold);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 28px 0;
}

.verdict-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: #8c6b2d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verdict-citation {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin-bottom: 6px;
}

.verdict-body {
    font-size: 0.95rem;
    color: var(--color-nyt-dark);
    font-style: italic;
    line-height: 1.6;
}

/* Author Box - STRICTLY 'מערכת האתר' */
.author-bio-card {
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 40px 0 30px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-bio-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-navy-dark);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 2px solid var(--color-gold);
}

.author-bio-details h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    margin-bottom: 4px;
}

.author-bio-details .author-title {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.author-bio-details p {
    font-size: 0.9rem;
    color: var(--color-nyt-gray);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Share Bar */
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 28px 0;
}

.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-nyt-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.share-btn-wa {
    background-color: #25d366;
    color: #ffffff !important;
}

.share-btn-fb {
    background-color: #1877f2;
    color: #ffffff !important;
}

.share-btn-copy {
    background-color: #f1f5f9;
    color: var(--color-nyt-dark) !important;
    border: 1px solid var(--border-strong);
    cursor: pointer;
}

/* Related Articles */
.related-articles-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--color-nyt-dark);
}

.related-articles-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy-dark);
    margin-bottom: 20px;
}

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

/* ==========================================================================
   FOOTER (STRICT USER REQUIREMENTS FOR LINKS)
   ========================================================================== */
.site-footer {
    background-color: var(--color-navy-dark);
    color: #e2e8f0;
    margin-top: auto;
    border-top: 3px solid var(--color-gold);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 50px 0 35px 0;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 14px;
}

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

.footer-links li a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: color 0.15s ease, padding 0.15s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--color-gold);
    padding-right: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-contact-item a {
    color: #ffffff;
    font-weight: 600;
}

.footer-contact-item a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.footer-disclaimer-bar {
    background-color: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
    text-align: justify;
}

/* MANDATORY FOOTER LEGAL LINKS */
.footer-legal-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.footer-legal-bar a {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-legal-bar a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.footer-legal-bar .sep {
    color: #64748b;
}

/* BOTTOM-MOST SECTION (STRICT AGENCY LINKS & COPYRIGHT) */
.footer-bottom-bar {
    padding: 18px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-credits-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-credits-links a {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.15s ease;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credits-links a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   FLOATING ACTIONS & ACCESSIBILITY WIDGET
   ========================================================================== */
.wa-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    z-index: 9998;
    transition: transform 0.2s ease;
}

.wa-floating-btn:hover {
    transform: scale(1.08);
}

.acc-floating-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--color-navy-dark);
    color: #ffffff;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.2s ease;
}

.acc-floating-btn:hover {
    transform: scale(1.08);
}

.acc-modal-drawer {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--color-gold);
}

.acc-modal-drawer.active {
    left: 0;
}

.acc-drawer-header {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.acc-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.acc-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.acc-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.acc-tool-btn {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-nyt-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.acc-tool-btn:hover,
.acc-tool-btn.active {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    border-color: var(--color-navy-dark);
}

.acc-reset-btn {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid var(--border-strong);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

body.acc-font-lg {
    font-size: 19px !important;
}

body.acc-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.acc-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.acc-grayscale {
    filter: grayscale(100%) !important;
}

body.acc-underline-links a {
    text-decoration: underline !important;
    font-weight: 700 !important;
}

/* Search Modal */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal-backdrop.active {
    display: flex;
}

.search-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gold-border);
    position: relative;
}

.search-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-nyt-muted);
    cursor: pointer;
}

.search-modal-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.search-modal-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1.1rem;
    border: 2px solid var(--color-navy-dark);
    border-radius: var(--radius-sm);
}

.search-modal-submit {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    border: none;
    padding: 0 24px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1080px) {
    .nyt-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-tertiary-col {
        grid-column: span 2;
    }
    .hero-lead-col {
        border-left: none;
    }
    .articles-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .consultation-banner-inner {
        grid-template-columns: 1fr;
    }
    .category-layout,
    .single-post-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .masthead-title {
        font-size: 2.2rem;
    }
    .masthead-english-kicker {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    .nyt-top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .top-bar-ticker {
        margin: 6px 0;
        width: 100%;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .nav-menu-primary {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--color-navy-dark);
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--color-navy-border);
        box-shadow: var(--shadow-lg);
    }
    .nav-menu-primary.active {
        display: flex;
    }
    .nav-menu-primary > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-menu-primary ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--color-navy);
        padding-right: 20px;
    }
    .nyt-hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-lead-col,
    .hero-secondary-col {
        border-left: none;
        padding-left: 0;
    }
    .hero-tertiary-col {
        grid-column: span 1;
    }
    .articles-grid-3col,
    .category-articles-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .single-post-title {
        font-size: 1.85rem;
    }
    .single-post-deck {
        font-size: 1.05rem;
    }
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
}
