/*
Theme Name: indexweb.co.il
Theme URI: https://indexweb.co.il
Author: Antigravity Digital
Description: פורטל תוכן, חדשות ומגזין דיגיטלי מתקדם לאינדקסווב. עיצוב עשיר ומודרני, הצגה מלאה של כל הפוסטים באתר, גריד כתבות ראשיות, סרגל צד חכם, התאמת נגישות WCAG 2.1 ומובייל מושלם.
Version: 3.0.0
Text Domain: indexweb-co-il
*/

:root {
    --font-primary: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Palette: Premium Navy, Slate, Electric Cyan & Warm Gold */
    --color-primary: #034078;
    --color-primary-light: #0077b6;
    --color-primary-dark: #001f54;
    --color-accent: #00b4d8;
    --color-accent-subtle: #e0f2fe;
    --color-gold: #f59e0b;
    --color-gold-light: #fef3c7;
    --color-danger: #ef4444;
    --color-success: #10b981;

    /* Neutrals */
    --color-dark: #0f172a;
    --color-dark-surface: #1e293b;
    --color-dark-card: #091322;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-subtle: #f1f5f9;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.12);

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max: 1260px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Mandatory Global Post Anchor Link Style */
.entry-content a,
.post-content a,
.single-post-body a,
.rich-text a {
    color: #1a73e8 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    text-underline-offset: 3px !important;
    transition: color 0.2s ease;
}

.entry-content a:hover,
.post-content a:hover,
.single-post-body a:hover,
.rich-text a:hover {
    color: #0b57d0 !important;
}

/* Pulse Animation */
.pulse-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 180, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

/* ==========================================================================
   Top Bar (Hebrew Date & Quick Links)
   ========================================================================== */
.site-top-bar {
    background: #001f54;
    color: #cbd5e1;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-start {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

.top-badge-news {
    background: rgba(0, 180, 216, 0.18);
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.top-bar-end {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-link {
    color: #94a3b8;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.site-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

/* Brand */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-box {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #001f54 0%, #0077b6 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.35);
}

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

.brand-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.brand-title span {
    color: #0077b6;
}

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

/* Header Navigation */
.primary-nav {
    display: flex;
    align-items: center;
}

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

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: #0077b6;
    background-color: var(--color-accent-subtle);
}

/* Header Search & Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    width: 220px;
    transition: var(--transition);
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
    width: 260px;
}

.header-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--color-text);
    width: 100%;
}

.header-search-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-header-ad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #001f54 0%, #0077b6 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-header-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-text);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-dark);
}

.mobile-drawer-title span {
    color: #0077b6;
}

.mobile-drawer-close {
    background: var(--color-border-subtle);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.mobile-nav-menu {
    list-style: none;
    padding: 15px 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-search-wrap {
    padding: 20px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Breaking News Ticker Ribbon
   ========================================================================== */
.ticker-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.ticker-text {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-text a:hover {
    color: #0077b6;
}

/* ==========================================================================
   1. HERO MAGAZINE GRID (Featured Top Stories)
   ========================================================================== */
.hero-magazine-section {
    padding: 30px 0 25px;
}

.hero-magazine-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
}

/* Lead Feature Card */
.lead-story-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px 30px;
    background: #001f54;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.lead-story-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.lead-story-card:hover .lead-story-bg {
    transform: scale(1.04);
}

.lead-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.15) 0%, rgba(10, 17, 40, 0.7) 45%, rgba(10, 17, 40, 0.96) 100%);
    z-index: 2;
}

.lead-story-content {
    position: relative;
    z-index: 3;
    max-width: 660px;
}

.story-category-badge {
    display: inline-block;
    background: #00b4d8;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.lead-story-title {
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 1.28;
    margin-bottom: 12px;
    color: #ffffff;
}

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

.lead-story-excerpt {
    font-size: 0.96rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 16px;
}

.story-meta-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.84rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.story-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Secondary Stories Column (3 cards stacked) */
.secondary-stories-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.secondary-story-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.secondary-story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.secondary-thumb-box {
    width: 125px;
    height: 95px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #001f54;
    position: relative;
}

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

.secondary-story-card:hover .secondary-thumb-img {
    transform: scale(1.06);
}

.secondary-content {
    flex: 1;
}

.secondary-category {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0077b6;
    margin-bottom: 4px;
    display: inline-block;
}

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

.secondary-title a:hover {
    color: #0077b6;
}

.secondary-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   2. MAIN CONTENT + SIDEBAR LAYOUT
   ========================================================================== */
.main-portal-section {
    padding: 35px 0 65px;
}

.portal-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
    align-items: start;
}

/* Section Header */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.feed-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #0077b6;
}

.feed-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-count-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Articles Feed Grid */
.articles-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feed-article-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.feed-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #93c5fd;
}

.card-media-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #001f54;
}

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

.feed-article-card:hover .card-thumb-img {
    transform: scale(1.05);
}

.media-category-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 31, 84, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

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

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

.card-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}

.card-title a:hover {
    color: #0077b6;
}

.card-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.card-footer {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0077b6;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover {
    color: #001f54;
    transform: translateX(-4px);
}

.card-author-name {
    font-size: 0.8rem;
    color: #64748b;
}

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

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.pagination-wrapper a.page-numbers,
.pagination-wrapper span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--color-border);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-dark);
    transition: var(--transition);
}

.pagination-wrapper a.page-numbers:hover {
    background: var(--color-accent-subtle);
    color: #0077b6;
    border-color: #93c5fd;
}

.pagination-wrapper span.page-numbers.current {
    background: #0077b6;
    color: #ffffff;
    border-color: #0077b6;
}

/* ==========================================================================
   3. SIDEBAR WIDGETS
   ========================================================================== */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: #0077b6;
}

/* Sidebar Trending List */
.sidebar-trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trending-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
    min-width: 24px;
}

.trending-num.top-rank {
    color: #0077b6;
}

.trending-item-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.trending-item-content h4 a:hover {
    color: #0077b6;
}

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

/* Category Pills Cloud */
.categories-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.category-pill-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    transition: var(--transition);
}

.category-pill-item a:hover {
    background: #0077b6;
    color: #ffffff;
    border-color: #0077b6;
}

/* About Widget */
.about-portal-widget {
    background: linear-gradient(135deg, #001f54 0%, #034078 100%);
    color: #ffffff;
    border: none;
}

.about-portal-widget .widget-title {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.about-portal-widget .widget-title::after {
    background: #00b4d8;
}

.about-portal-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 18px;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    padding: 10px;
    background: #00b4d8;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-cta-btn:hover {
    background: #0096c7;
}

/* ==========================================================================
   4. SINGLE POST & PAGE TEMPLATE
   ========================================================================== */
.single-post-header {
    background: linear-gradient(135deg, #001f54 0%, #0a1128 60%, #034078 100%);
    color: #ffffff;
    padding: 45px 0 50px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #cbd5e1;
}

.breadcrumbs a:hover {
    color: #38bdf8;
}

.single-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.single-meta-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.9rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.single-article-wrapper {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

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

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

.single-post-body {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #334155;
}

.single-post-body p {
    margin-bottom: 22px;
}

.single-post-body h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 35px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent-subtle);
}

.single-post-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 28px 0 14px;
}

.single-post-body ul, 
.single-post-body ol {
    margin: 0 24px 24px 0;
    padding-right: 15px;
}

.single-post-body li {
    margin-bottom: 8px;
}

/* Single Author Box */
.single-author-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 35px 0 25px;
}

.author-avatar-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #001f54 0%, #0077b6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-bio-content h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.author-bio-content p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer {
    background: #001f54;
    color: #cbd5e1;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 3px;
    background: #00b4d8;
    border-radius: var(--radius-full);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li a {
    color: #94a3b8;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links-list li a:hover {
    color: #38bdf8;
    transform: translateX(-4px);
}

/* Mandatory Partner SEO Links Bottom Bar */
.footer-seo-bar {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #64748b;
}

.footer-seo-anchors {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-seo-anchors a {
    color: #94a3b8;
    font-weight: 600;
    transition: var(--transition);
}

.footer-seo-anchors a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   6. ACCESSIBILITY FLOATING WIDGET (WCAG 2.1 AA)
   ========================================================================== */
.accessibility-trigger-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0077b6;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.accessibility-trigger-btn:hover {
    transform: scale(1.08);
    background: #001f54;
}

.accessibility-panel {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 320px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.accessibility-panel.active {
    display: block;
}

.acc-panel-header {
    background: #001f54;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acc-panel-title {
    font-size: 1rem;
    font-weight: 700;
}

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

.acc-panel-body {
    padding: 18px;
}

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

.acc-tool-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.acc-tool-btn:hover {
    background: #e2e8f0;
}

.acc-tool-btn.active {
    background: #0077b6;
    color: #ffffff;
    border-color: #0077b6;
}

.acc-reset-btn {
    width: 100%;
    padding: 9px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

/* Accessibility Modes */
body.acc-font-lg { font-size: 120% !important; }
body.acc-font-sm { font-size: 90% !important; }
body.acc-high-contrast { background-color: #000000 !important; color: #ffffff !important; }
body.acc-high-contrast * { background-color: #000000 !important; color: #ffff00 !important; border-color: #ffff00 !important; }
body.acc-grayscale { filter: grayscale(100%) !important; }
body.acc-invert { filter: invert(100%) !important; }
body.acc-underline-links a { text-decoration: underline !important; }

/* ==========================================================================
   7. COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-consent-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 440px;
    background: #001f54;
    color: #ffffff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9998;
    display: none;
}

.cookie-content {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-accept-btn {
    background: #00b4d8;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.cookie-decline-btn {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .primary-nav,
    .btn-header-ad {
        display: none;
    }

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

    .hero-magazine-grid {
        grid-template-columns: 1fr;
    }

    .lead-story-card {
        min-height: 380px;
    }

    .portal-layout-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 68px;
    }

    .header-search-form {
        display: none;
    }

    .lead-story-card {
        min-height: 320px;
        padding: 24px 18px;
    }

    .lead-story-title {
        font-size: 1.5rem;
    }

    .articles-feed-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-title {
        font-size: 1.85rem;
    }

    .single-article-wrapper {
        padding: 24px 18px;
    }

    .cookie-consent-bar {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}
