/*
Theme Name: IRA Israel
Theme URI: https://ira.org.il/
Author: DLions Digital & Ligateam
Author URI: https://dlions.co.il/
Description: תבנית פורטל חדשות וכלכלה בהשראת מעריב עבור אתר IRA.org.il - המרכז הישראלי לקופות גמל וקרנות השתלמות בניהול אישי (IRA), שוק ההון, תכנון פנסיוני ומיסוי חכם. תפריט וורדפרס דינמי מלא, מבזקים וגריד חדשותי, נגישות WCAG מובנית, עמודי פוסטים מותאמים עם קישורי עוגן כחולים ומודגשים, ללא תאריכים וללא טופסי יצירת קשר.
Version: 1.0.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ira
*/

:root {
    --news-red: #d90429;
    --news-red-dark: #b8001f;
    --news-navy: #0f172a;
    --news-blue: #1e3a8a;
    --news-blue-light: #3b82f6;
    --news-gold: #b45309;

    /* Anchor text link colors in posts */
    --anchor-blue: #2563eb;
    --anchor-blue-hover: #1d4ed8;

    --bg-dark: #0a0f1d;
    --bg-card: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-ticker: #1e293b;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --text-soft: #e2e8f0;

    --border-light: #e2e8f0;
    --border-dark: #334155;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

    --font-heading: 'Rubik', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Heebo', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -50px;
    right: 20px;
    background: var(--news-red);
    color: #fff;
    padding: 10px 18px;
    z-index: 99999;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.skip-link:focus {
    top: 20px;
}

/* =========================================
   MAARIV INSPIRATION: TICKER & TOP BAR
   ========================================= */
.news-ticker-bar {
    background: var(--bg-ticker);
    color: #fff;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-dark);
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 42px;
}

.ticker-badge-live {
    background: var(--news-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(0.9); }
}

.ticker-items-scroll {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
    color: #e2e8f0;
    font-weight: 600;
}

.ticker-items-scroll span {
    margin-left: 24px;
}

.ticker-market-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.stat-up {
    color: #10b981;
}

.stat-down {
    color: #f43f5e;
}

/* =========================================
   HEADER & DYNAMIC WORDPRESS MENU
   ========================================= */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid var(--news-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-symbol {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--news-navy) 0%, var(--news-blue) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    border-bottom: 3px solid var(--news-red);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--news-navy);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: var(--news-red);
}

.brand-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* WORDPRESS DYNAMIC NAVIGATION */
.primary-nav-menu {
    display: flex;
    align-items: center;
}

.main-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-menu-list li {
    position: relative;
}

.main-menu-list li a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--news-navy);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    display: block;
    transition: all 0.2s ease;
}

.main-menu-list li a:hover,
.main-menu-list li.current-menu-item > a,
.main-menu-list li.active > a {
    color: var(--news-red);
    background: #fef2f2;
}

/* Dropdown Support */
.main-menu-list li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-top: 2px solid var(--news-red);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
}

.main-menu-list li:hover > .sub-menu {
    display: block;
}

.main-menu-list .sub-menu li a {
    padding: 9px 18px;
    border-radius: 0;
    color: var(--text-main);
    font-size: 0.92rem;
}

.main-menu-list .sub-menu li a:hover {
    background: #f8fafc;
    color: var(--news-red);
}

.header-side-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-finance-verified {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--news-navy);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--news-navy);
}

/* =========================================
   MAARIV INSPIRATION: HERO NEWS GRID
   ========================================= */
.news-hero-section {
    padding: 35px 0 45px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.news-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

/* Main Spotlight Story */
.spotlight-main-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spotlight-main-card:hover {
    box-shadow: var(--shadow-md);
}

.spotlight-img-frame {
    height: 380px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.spotlight-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spotlight-main-card:hover .spotlight-img-frame img {
    transform: scale(1.04);
}

.spotlight-tag-red {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--news-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.4);
}

.spotlight-content {
    padding: 28px 30px;
}

.spotlight-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--news-navy);
    line-height: 1.25;
    margin-bottom: 14px;
}

.spotlight-title a:hover {
    color: var(--news-red);
}

.spotlight-excerpt {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--news-blue);
}

/* Secondary Editorial Cards (Left / Side Column) */
.secondary-stories-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-story-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: all 0.25s ease;
}

.sub-story-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.sub-story-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}

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

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

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

.sub-story-tag {
    color: var(--news-red);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.sub-story-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--news-navy);
    line-height: 1.35;
    margin-bottom: 8px;
}

.sub-story-title a:hover {
    color: var(--news-red);
}

.sub-story-meta {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--news-blue);
}

/* =========================================
   MARKET PULSE / FINANCIAL SUMMARY BAR
   ========================================= */
.market-pulse-strip {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 24px 0;
    margin-bottom: 50px;
}

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

.pulse-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pulse-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.pulse-desc {
    font-size: 0.78rem;
    color: #94a3b8;
}

.pulse-stat-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #10b981;
    text-align: left;
}

/* =========================================
   HOMEPAGE ALL CATEGORIES & ARTICLES SECTION
   ========================================= */
.all-categories-section {
    padding: 40px 0 80px;
}

.single-category-block {
    margin-bottom: 60px;
}

.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--news-navy);
}

.category-block-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--news-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-block-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--news-red);
    border-radius: 2px;
}

.category-see-all-link {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--news-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-see-all-link:hover {
    color: var(--news-red);
    gap: 9px;
}

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

.article-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.article-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

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

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

.article-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--news-red);
}

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

.article-title {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--news-navy);
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-title a:hover {
    color: var(--news-red);
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.article-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--news-blue);
}

/* =========================================================================
   CRITICAL REQUIREMENT: SINGLE POST STYLING (ZERO DATES + BLUE UNDERLINED ANCHORS)
   ========================================================================= */
.single-post-wrapper {
    padding: 55px 0 85px;
    background: #fff;
}

.post-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 45px;
    align-items: start;
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 900;
    color: var(--news-navy);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.single-post-featured-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.single-post-featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #1e293b;
}

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

.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--news-navy);
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--news-red);
    margin: 30px 0 14px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 24px 24px 0;
}

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

.entry-content ol li {
    list-style-type: decimal;
    margin-bottom: 10px;
}

.entry-content blockquote {
    background: #f8fafc;
    border-right: 5px solid var(--news-red);
    padding: 22px 28px;
    border-radius: var(--radius-sm);
    font-style: italic;
    font-size: 1.15rem;
    margin: 30px 0;
    color: var(--news-navy);
}

/* MANDATORY ANCHOR TEXT RULE: BLUE WITH UNDERLINE */
.entry-content a,
.single-post-wrapper .entry-content a,
.post-main-content .entry-content a {
    color: #2563eb !important;
    text-decoration: underline !important;
    text-underline-offset: 3.5px;
    text-decoration-thickness: 1.5px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover,
.single-post-wrapper .entry-content a:hover,
.post-main-content .entry-content a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
    text-decoration-color: #1d4ed8 !important;
}

/* SIDEBAR STYLING */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 140px;
}

.sidebar-widget {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 26px;
    border: 1px solid var(--border-light);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--news-navy);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--news-red);
}

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

.sidebar-post-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
}

.sidebar-post-item a {
    color: var(--text-main);
}

.sidebar-post-item a:hover {
    color: var(--news-red);
}

/* =========================================
   FOOTER (EXACT 3 UPPER COLS + DLIONS BUTTON)
   ========================================= */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 65px 0 35px;
    border-top: 3px solid var(--news-red);
}

.footer-top-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--news-red);
    border-radius: var(--radius-full);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

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

.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--news-red);
    transform: translateX(-5px);
}

.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 35px;
    text-align: center;
}

.credit-btn-dlions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--news-red) 0%, #b8001f 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 34px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.3);
    transition: all 0.3s ease;
}

.credit-btn-dlions:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.5);
}

.footer-copyright {
    font-size: 0.88rem;
    color: #64748b;
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.ira-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 560px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 4px solid var(--news-red);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 9999;
}

.cookie-banner-text {
    font-size: 0.92rem;
    color: #f1f5f9;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #fca5a5;
    text-decoration: underline;
}

.cookie-accept-btn {
    background: var(--news-red);
    color: #fff;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cookie-accept-btn:hover {
    background: var(--news-red-dark);
}

/* =========================================
   WCAG ACCESSIBILITY COMPONENT
   ========================================= */
.wcag-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--news-navy);
    color: #fff;
    font-size: 1.5rem;
    border: 2px solid var(--news-red);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wcag-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--news-red);
    border-color: #fff;
}

.wcag-panel {
    position: fixed;
    bottom: 94px;
    right: 30px;
    width: 300px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--news-navy);
    padding: 20px;
    z-index: 99991;
    display: none;
}

.wcag-panel.open {
    display: block;
    animation: wcagSlideIn 0.3s ease;
}

@keyframes wcagSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wcag-panel-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--news-navy);
    margin-bottom: 14px;
    text-align: center;
    border-bottom: 1.5px solid var(--border-light);
    padding-bottom: 8px;
}

.wcag-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wcag-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--news-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcag-btn:hover,
.wcag-btn.active {
    background: var(--news-navy);
    color: #fff;
    border-color: var(--news-navy);
}

/* WCAG Active Modes */
body.wcag-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
body.wcag-contrast .site-header,
body.wcag-contrast .article-card,
body.wcag-contrast .spotlight-main-card,
body.wcag-contrast .sub-story-card {
    background: #111 !important;
    color: #fff !important;
    border-color: #ffd700 !important;
}
body.wcag-contrast a {
    color: #ffff00 !important;
}
body.wcag-grayscale {
    filter: grayscale(100%) !important;
}
body.wcag-font-large,
body.wcag-large-font {
    font-size: 120% !important;
}
body.wcag-readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}
body.wcag-highlight-links a {
    background-color: #ffeb3b !important;
    color: #000 !important;
    text-decoration: underline !important;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .news-hero-grid,
    .post-layout-grid {
        grid-template-columns: 1fr;
    }

    .pulse-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .primary-nav-menu {
        display: none;
        position: absolute;
        top: 86px;
        right: 0;
        left: 0;
        background: #ffffff;
        padding: 20px 24px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        border-top: 2px solid var(--news-red);
    }

    .primary-nav-menu.open,
    .primary-nav-menu.active {
        display: block;
    }

    .main-menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-menu-list li {
        width: 100%;
    }

    .main-menu-list li a {
        width: 100%;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .pulse-grid,
    .articles-grid,
    .footer-top-columns {
        grid-template-columns: 1fr;
    }

    .spotlight-title {
        font-size: 1.7rem;
    }

    .spotlight-img-frame {
        height: 250px;
    }
}
