/*
Theme Name: pgames - המאמרים של המקצוענים
Theme URI: https://pgames.co.il/
Author: pgames Media Group
Author URI: https://pgames.co.il/
Description: תבנית פורטל חדשות ומאמרים מקצועי מהשורה הראשונה למגזין "המאמרים של המקצוענים" (pgames), המציגה את כל הקטגוריות בעמוד הראשי, עיצוב מגזיני עשיר, חלון עוגיות ותוסף נגישות מובנה מלא.
Version: 1.0.0
Text Domain: pgames
*/

/* ==========================================================================
   1. CSS RESET & DESIGN TOKENS
   ========================================================================== */
:root {
    --font-main: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Primary Colors */
    --navy-950: #040711;
    --navy-900: #0a0f1d;
    --navy-850: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;

    /* Category Distinctive Accent Colors */
    --cat-gaming: #8b5cf6;
    --cat-ai: #06b6d4;
    --cat-marketing: #f59e0b;
    --cat-business: #3b82f6;
    --cat-finance: #10b981;
    --cat-design: #f43f5e;

    /* Neutrals */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-subtle: #cbd5e1;

    /* Gradients */
    --grad-pro-blue: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #06b6d4 100%);
    --grad-gaming: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    --grad-ai: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
    --grad-dark-overlay: linear-gradient(180deg, rgba(10, 15, 29, 0) 0%, rgba(10, 15, 29, 0.7) 40%, rgba(10, 15, 29, 0.96) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.09), 0 4px 10px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 40px rgba(10, 15, 29, 0.16);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
}

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

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

body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* ==========================================================================
   2. HEADER & BREAKING NEWS TICKER
   ========================================================================== */
.site-news-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Top Utility Bar */
.header-top-bar {
    background: var(--navy-950);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-date-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-badge-live {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    display: inline-block;
}

.current-date-text {
    color: #cbd5e1;
}

/* Breaking Ticker */
.top-breaking-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    max-width: 600px;
    overflow: hidden;
}

.ticker-tag-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    white-space: nowrap;
}

.ticker-pulse-red {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseTicker 1.8s infinite;
}

@keyframes pulseTicker {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ticker-headlines-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #cbd5e1;
}

.ticker-story-item {
    font-size: 0.82rem;
}

.ticker-sep {
    color: #64748b;
}

/* Trending Tags */
.top-trending-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-lbl {
    color: #64748b;
    font-size: 0.8rem;
}

.trend-pill {
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
}

.trend-pill:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Main Brand Bar */
.header-main-brand {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.brand-bar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-crest-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-900);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.crest-letter {
    font-size: 1.8rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1;
}

.crest-dot {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.logo-words {
    display: flex;
    flex-direction: column;
}

.logo-english-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.accent-dot {
    color: #2563eb;
}

.logo-hebrew-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Search Bar */
.header-search-wrap {
    flex-grow: 1;
    max-width: 480px;
}

.portal-search-form {
    position: relative;
    width: 100%;
}

.search-input-field {
    width: 100%;
    padding: 11px 44px 11px 16px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.search-input-field:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-submit-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    color: #2563eb;
}

/* Action Area */
.header-action-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-subscribe-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-900);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.25s ease;
}

.btn-subscribe-pill:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.mobile-menu-trigger {
    display: none;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-trigger span {
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    transition: all 0.25s;
}

/* Categories Ribbon Bar */
.categories-ribbon-nav {
    background: #ffffff;
    border-bottom: 2px solid var(--border-light);
}

.categories-nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 0;
}

.categories-nav-list::-webkit-scrollbar {
    display: none;
}

.cat-nav-item {
    white-space: nowrap;
}

.cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-800);
    transition: all 0.2s ease;
}

.cat-nav-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.cat-nav-item.active .cat-nav-link {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.highlight-ribbon {
    background: #0f172a;
    color: #ffffff !important;
}

.highlight-ribbon:hover {
    background: #2563eb;
    color: #ffffff !important;
}

/* ==========================================================================
   3. HERO NEWS MAGAZINE SHOWCASE SECTION
   ========================================================================== */
.portal-hero-showcase {
    padding: 32px 0 44px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.hero-magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1.25fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Main Lead Story */
.lead-story-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-900);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
}

.lead-thumb-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-story-card:hover .lead-thumb-wrap img {
    transform: scale(1.04);
}

.story-category-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tag-ai { background: var(--cat-ai); }
.tag-gaming { background: var(--cat-gaming); }
.tag-marketing { background: var(--cat-marketing); }
.tag-business { background: var(--cat-business); }
.tag-finance { background: var(--cat-finance); }
.tag-design { background: var(--cat-design); }

.lead-story-overlay {
    position: relative;
    z-index: 3;
    padding: 40px 32px 32px;
    background: var(--grad-dark-overlay);
    color: #ffffff;
}

.story-meta-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.story-meta-inline.small-meta {
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.meta-sep {
    color: #475569;
}

.lead-story-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #ffffff;
}

.lead-story-title a {
    color: #ffffff;
}

.lead-story-title a:hover {
    color: #38bdf8;
}

.lead-story-excerpt {
    font-size: 0.96rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 640px;
}

.btn-read-lead {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-pro-blue);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-read-lead:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

/* Side Featured Stack */
.side-featured-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-story-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.side-story-thumb {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
}

.side-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.side-story-card:hover .side-story-thumb img {
    transform: scale(1.05);
}

.side-story-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.side-story-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.35;
    margin-bottom: 8px;
}

.side-story-title a {
    color: var(--navy-900);
}

.side-story-title a:hover {
    color: #2563eb;
}

.side-story-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Trending Column */
.hero-trending-column {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.trending-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 18px;
}

.trending-fire-icon {
    font-size: 1.3rem;
}

.trending-heading {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--navy-900);
}

.trending-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranked-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

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

.rank-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #94a3b8;
    line-height: 1;
    min-width: 30px;
    letter-spacing: -1px;
}

.ranked-item:nth-child(1) .rank-num { color: #ef4444; }
.ranked-item:nth-child(2) .rank-num { color: #f59e0b; }
.ranked-item:nth-child(3) .rank-num { color: #3b82f6; }

.rank-info {
    flex-grow: 1;
}

.rank-cat {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.rank-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.4;
}

.rank-title a {
    color: var(--navy-900);
}

.rank-title a:hover {
    color: #2563eb;
}

/* ==========================================================================
   4. CATEGORY SECTIONS COMMON STYLES
   ========================================================================== */
.portal-category-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--border-light);
}

.portal-category-section.bg-alt-light {
    background: #f1f5f9;
}

.portal-category-section.bg-dark-slate {
    background: var(--navy-950);
    color: #ffffff;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
}

.cat-title-with-pill {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cat-badge-square {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
}

.gaming-bg { background: var(--grad-gaming); }
.ai-bg { background: var(--grad-ai); }
.marketing-bg { background: linear-gradient(135deg, #d97706, #f59e0b); }
.business-bg { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.finance-bg { background: linear-gradient(135deg, #047857, #10b981); }
.design-bg { background: linear-gradient(135deg, #be123c, #f43f5e); }

.cat-title-text {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1.15;
}

.cat-subtitle-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cat-view-all-link {
    font-size: 0.9rem;
    font-weight: 800;
    color: #2563eb;
}

.cat-view-all-link:hover {
    color: var(--navy-900);
    text-decoration: underline;
}

/* Standard News Cards Grid */
.category-cards-grid {
    display: grid;
    gap: 26px;
}

.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.news-card-standard {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card-standard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-thumb {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
}

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

.news-card-standard:hover .news-card-thumb img {
    transform: scale(1.06);
}

.card-badge-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--navy-900);
}

.news-card-title a:hover {
    color: #2563eb;
}

.news-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   5. AI CATEGORY SPECIAL MAGAZINE LAYOUT
   ========================================================================== */
.ai-magazine-highlight-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.ai-major-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.ai-major-thumb {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
}

.ai-major-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ai-major-card:hover .ai-major-thumb img {
    transform: scale(1.05);
}

.ai-major-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ai-major-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1.35;
    margin-bottom: 12px;
}

.ai-major-title a {
    color: var(--navy-900);
}

.ai-major-title a:hover {
    color: var(--cat-ai);
}

.ai-major-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.story-more-link {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--cat-ai);
    margin-top: auto;
}

/* Compact AI Sub Cards */
.ai-sub-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card-compact {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    padding: 14px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.compact-thumb {
    width: 110px;
    height: 85px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.compact-cat-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cat-ai);
    margin-bottom: 4px;
}

.compact-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.35;
    margin-bottom: 6px;
}

.compact-title a {
    color: var(--navy-900);
}

.compact-title a:hover {
    color: #2563eb;
}

.compact-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. SPLIT CATEGORIES SECTION (BUSINESS & FINANCE)
   ========================================================================== */
.split-categories-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.split-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-split-horizontal {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    padding: 16px;
    display: flex;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.news-card-split-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.split-card-thumb {
    width: 150px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.split-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.split-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.35;
    margin-bottom: 6px;
}

.split-title a {
    color: var(--navy-900);
}

.split-title a:hover {
    color: #2563eb;
}

.split-excerpt {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   7. COMPLETE ALL CATEGORIES DIRECTORY EXPLORER
   CRITICAL REQUIREMENT: ויציג את כל הקטגוריות שיש באתר בעמוד הראשי
   ========================================================================== */
.all-categories-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.category-directory-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.category-directory-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

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

.dir-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dir-count-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.dir-cat-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.dir-cat-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.dir-cat-link {
    font-size: 0.9rem;
    font-weight: 800;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dir-cat-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.section-title-wrap {
    margin-bottom: 40px;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-muted-light { color: #94a3b8 !important; }

.section-label-pill {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 14px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.section-main-title {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-desc-lead {
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ==========================================================================
   8. PRO NEWSLETTER SECTION
   ========================================================================== */
.portal-newsletter-section {
    padding: 70px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.newsletter-card-inner {
    background: var(--navy-900);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    color: #ffffff;
    box-shadow: var(--shadow-xl);
}

.newsletter-tag-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.newsletter-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.25;
}

.newsletter-desc {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.7;
}

.form-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-email-input {
    flex-grow: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.newsletter-email-input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.newsletter-submit-btn {
    background: var(--grad-pro-blue);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: all 0.25s;
}

.newsletter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.newsletter-privacy-note {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ==========================================================================
   9. CRITICAL REQUIREMENT: SINGLE POST & BOLD BLUE ANCHOR LINKS
   ========================================================================== */
.single-article-view {
    padding: 44px 0 80px;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-breadcrumbs a {
    color: var(--text-muted);
}

.article-breadcrumbs a:hover {
    color: #2563eb;
}

.crumb-sep {
    color: #94a3b8;
}

.crumb-current {
    color: var(--navy-900);
    font-weight: 700;
}

.single-article-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    max-width: 920px;
    margin: 0 auto;
}

.single-article-header {
    margin-bottom: 32px;
}

.single-cat-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.single-article-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.single-article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.author-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy-900);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.author-name-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy-900);
    display: block;
}

.author-role-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.date-reading-group {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.single-featured-image-box {
    margin: 32px 0 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* MANDATORY ANCHOR TEXT STYLING:
   "כל פעם שיש טקסט שהוא עוגן של קישור חשוב מאוד שהוא יהיה מודגש ובצבע כחול שיראו שזה טקטס עוגן" */
.single-post-content,
.entry-content {
    font-size: 1.12rem;
    line-height: 1.95;
    color: #1e293b;
}

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

.single-post-content h2,
.entry-content h2 {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--navy-900);
    margin: 40px 0 16px;
    border-right: 4px solid #2563eb;
    padding-right: 14px;
}

.single-post-content h3,
.entry-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-800);
    margin: 30px 0 14px;
}

.single-post-content ul,
.entry-content ul {
    margin-bottom: 24px;
    padding-right: 24px;
}

.single-post-content ul li,
.entry-content ul li {
    list-style: disc;
    margin-bottom: 10px;
}

/* ENFORCED BOLD & BLUE ANCHOR TEXT */
.single-post-content a,
.entry-content a {
    color: #2563eb !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.single-post-content a:hover,
.entry-content a:hover {
    color: #1d4ed8 !important;
}

/* Author Box */
.article-author-bio-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 48px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.bio-avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy-900);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    flex-shrink: 0;
}

.bio-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.bio-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Pro Articles */
.related-articles-section {
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid var(--border-light);
}

.related-section-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 24px;
}

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

.related-card-item {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.rel-cat {
    font-size: 0.75rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 6px;
    display: block;
}

.rel-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.4;
}

.rel-title a:hover {
    color: #2563eb;
}

/* ==========================================================================
   10. SITE FOOTER & MANDATORY 3 LINKS
   ========================================================================== */
.site-news-footer {
    background: var(--navy-950);
    color: #94a3b8;
    padding-top: 70px;
    border-top: 3px solid var(--border-light);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.footer-logo-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
}

.dot-accent {
    color: #38bdf8;
}

.footer-logo-sub {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.footer-portal-desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #94a3b8;
    margin-bottom: 20px;
}

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

.social-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.footer-col-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 2px;
    background: #38bdf8;
}

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

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

.footer-links-list a:hover {
    color: #38bdf8;
}

.footer-contact-text {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 16px;
}

.contact-email-line {
    display: block;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 14px;
    direction: ltr;
    text-align: right;
}

.btn-footer-publish {
    display: inline-flex;
    align-items: center;
    background: var(--grad-pro-blue);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
}

.footer-middle-links-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-legal-inline {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal-inline a:hover {
    color: #cbd5e1;
}

/* MANDATORY 3 FOOTER CREDITS BAR */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
}

.footer-copyright-text {
    color: #64748b;
}

.footer-mandatory-credits {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.footer-mandatory-credits a {
    color: #cbd5e1;
    transition: color 0.2s;
}

.footer-mandatory-credits a:hover {
    color: #38bdf8;
}

.credit-divider {
    color: #475569;
}

/* ==========================================================================
   11. COOKIE CONSENT BANNER POPUP
   ========================================================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    max-width: 580px;
    margin: 0 auto;
    z-index: 99999;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.cookie-consent-banner.banner-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #ffffff;
}

.cookie-banner-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-banner-text strong {
    font-size: 1rem;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.cookie-banner-text p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--grad-pro-blue);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
}

.cookie-privacy-link {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: underline;
}

/* ==========================================================================
   12. ACCESSIBILITY TOOLBAR WIDGET
   ========================================================================== */
.a11y-widget-wrap {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99998;
}

.a11y-toggle-btn {
    width: 50px;
    height: 50px;
    background: var(--navy-900);
    color: #ffffff;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s;
}

.a11y-toggle-btn:hover {
    transform: scale(1.08);
}

.a11y-popup-panel {
    position: absolute;
    bottom: 62px;
    left: 0;
    width: 300px;
    background: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    padding: 18px;
    color: #ffffff;
    z-index: 99999;
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.a11y-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #38bdf8;
}

.a11y-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.a11y-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.a11y-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #cbd5e1;
    padding: 9px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.a11y-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.a11y-btn.active {
    background: #2563eb;
    border-color: #38bdf8;
    color: #ffffff;
}

.a11y-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
}

.a11y-reset-action {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 700;
}

.a11y-stmt-link {
    color: #94a3b8;
    text-decoration: underline;
}

/* Accessibility root modifiers */
html.a11y-font-large { font-size: 19px !important; }
html.a11y-font-small { font-size: 14px !important; }
html.a11y-grayscale { filter: grayscale(100%) !important; }
html.a11y-high-contrast { background: #000000 !important; color: #ffff00 !important; }
html.a11y-high-contrast * { background-color: #000000 !important; color: #ffff00 !important; border-color: #ffff00 !important; }
html.a11y-negative-contrast { filter: invert(100%) hue-rotate(180deg) !important; }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-readable-font * { font-family: Arial, sans-serif !important; }
html.a11y-highlight-titles h1,
html.a11y-highlight-titles h2,
html.a11y-highlight-titles h3,
html.a11y-highlight-titles h4 {
    outline: 2px dashed #eab308 !important;
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-magazine-grid {
        grid-template-columns: 1.6fr 1fr;
    }
    .hero-trending-column {
        grid-column: span 2;
    }
    .all-categories-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-search-wrap {
        display: none;
    }
    .mobile-menu-trigger {
        display: flex;
    }
    .categories-ribbon-nav {
        display: none;
    }
    .categories-ribbon-nav.mobile-ribbon-open {
        display: block;
    }
    .categories-nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }
    .cat-nav-link {
        width: 100%;
    }
    .hero-magazine-grid {
        grid-template-columns: 1fr;
    }
    .hero-trending-column {
        grid-column: span 1;
    }
    .split-categories-row {
        grid-template-columns: 1fr;
    }
    .ai-magazine-highlight-grid {
        grid-template-columns: 1fr;
    }
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-card-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    .btn-subscribe-pill {
        display: none;
    }
    .grid-4-cols,
    .grid-3-cols {
        grid-template-columns: 1fr;
    }
    .all-categories-directory-grid {
        grid-template-columns: 1fr;
    }
    .news-card-split-horizontal {
        flex-direction: column;
    }
    .split-card-thumb {
        width: 100%;
        height: 180px;
    }
    .news-card-compact {
        flex-direction: column;
    }
    .compact-thumb {
        width: 100%;
        height: 160px;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner-actions {
        align-items: stretch;
    }
    .btn-cookie-accept {
        text-align: center;
    }
    .related-cards-grid {
        grid-template-columns: 1fr;
    }
}
