/* IndexCMS 2.0 Premium Design System - Redesigned for Titr Khabar (2026 UI/UX Upgrade) */
@import url('vazir.css');

:root {
    /* Color Palette */
    --primary: #0b132b;          /* Sleek Deep News Navy */
    --primary-rgb: 11, 19, 43;
    --accent: #a30000;           /* Authoritative Crimson News Accent */
    --accent-light: #c81010;
    --accent-rgb: 163, 0, 0;
    --accent-soft: rgba(163, 0, 0, 0.05);
    --bg: #f8fafc;               /* Warm ultra-soft light slate */
    --white: #ffffff;
    --border-color: #e2e8f0;      /* Slate 200 */
    --border-light: rgba(0, 0, 0, 0.04);
    
    /* Typography Slate */
    --text-dark: #0f172a;        /* Slate 900 (High contrast headlines) */
    --text-medium: #334155;      /* Slate 700 (Highly readable body text) */
    --text-light: #64748b;       /* Slate 500 (Metadata & dates) */
    --text-muted: #94a3b8;       /* Slate 400 */
    
    /* Design Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & setups */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}



html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body { 
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important; 
    background: var(--bg); 
    color: var(--text-medium); 
    line-height: 1.75; 
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}



input, button, select, textarea, a { 
    font-family: 'Vazirmatn', sans-serif !important; 
}

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

.container { 
    max-width: 1320px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

/* 1) HEADER REDESIGN */
header { 
    background: transparent;
    padding: 0;
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 72px; 
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

/* Brand & Logo */
.logo-box h1 { 
    font-size: 1.6rem; 
    font-weight: 900; 
    color: var(--white); 
    margin: 0; 
    letter-spacing: -0.5px;
}
.logo-box span { 
    color: var(--accent-light); 
}
.site-logo { 
    height: 60px; 
    width: auto; 
    max-width: 100%; 
    object-fit: contain; 
    display: block; 
    transition: var(--transition-smooth);
}
.site-logo:hover {
    transform: scale(1.03);
}

/* Menu Toggle Button */
.menu-btn { 
    background: rgba(255, 255, 255, 0.06); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px 18px; 
    border-radius: var(--radius-full); 
    color: var(--white); 
    transition: var(--transition-smooth); 
}
@media (min-width: 993px) {
    .menu-btn {
        display: none !important;
    }
}
.menu-btn:hover { 
    background: rgba(255, 255, 255, 0.12); 
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.menu-text { 
    font-weight: 700; 
    font-size: 0.85rem; 
}

/* Hamburger Icon animation base */
.ham-box { 
    width: 18px; 
    height: 12px; 
    position: relative; 
}
.ham-inner, .ham-inner::before, .ham-inner::after { 
    width: 18px; 
    height: 2px; 
    background: var(--white); 
    border-radius: 2px; 
    position: absolute; 
    transition: var(--transition-smooth); 
}
.ham-inner { 
    top: 50%; 
    transform: translateY(-50%); 
}
.ham-inner::before { 
    content: ""; 
    top: -5px; 
}
.ham-inner::after { 
    content: ""; 
    bottom: -5px; 
}

/* "What's New?" Badge Button */
.whats-new-btn { 
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); 
    color: var(--white); 
    border: none; 
    padding: 8px 20px; 
    border-radius: var(--radius-full); 
    font-weight: 700; 
    font-size: 0.85rem; 
    cursor: pointer; 
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3); 
    transition: var(--transition-smooth); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    animation: pulse-orange 2s infinite; 
}
.whats-new-btn:hover { 
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45); 
    transform: translateY(-2px); 
}
.whats-new-btn i {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* 2) EXPANDABLE SEARCH IN HEADER */
.search-box-header { 
    position: relative; 
}
.search-box-header input { 
    padding: 8px 16px 8px 40px; 
    border-radius: var(--radius-full); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    background: rgba(255, 255, 255, 0.08); 
    color: var(--white); 
    width: 200px; 
    outline: none; 
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.search-box-header input::placeholder { 
    color: rgba(255, 255, 255, 0.5); 
}
.search-box-header input:focus { 
    background: var(--white); 
    color: var(--text-dark); 
    width: 280px; 
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(163, 0, 0, 0.15);
}
.search-box-header button { 
    position: absolute; 
    left: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: rgba(255, 255, 255, 0.5); 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.search-box-header input:focus + button { 
    color: var(--accent); 
}
.search-box-header button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* 3) CREATIVE SIDEBAR DRAWER */
.side-menu { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100%; 
    z-index: 2000; 
    transition: 0.55s cubic-bezier(0.77, 0, 0.175, 1); 
    pointer-events: none; 
    visibility: hidden;
}
.side-menu.active { 
    right: 0; 
    pointer-events: all; 
    visibility: visible;
}
.side-menu-overlay { 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    opacity: 0; 
    transition: 0.5s ease; 
}
.side-menu.active .side-menu-overlay { 
    opacity: 1; 
}
.side-menu-content { 
    position: absolute; 
    top: 0; 
    right: -420px; 
    width: 420px; 
    height: 100%; 
    background: var(--white); 
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15); 
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); 
    display: flex; 
    flex-direction: column; 
}
.side-menu.active .side-menu-content { 
    right: 0; 
}

.side-menu-header { 
    padding: 24px 30px; 
    border-bottom: 1px solid #f1f5f9; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.side-logo { 
    font-size: 1.4rem; 
    font-weight: 900; 
    color: var(--primary); 
}
.menu-close { 
    background: #f1f5f9; 
    border: none; 
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; 
    color: var(--text-light); 
    cursor: pointer; 
    transition: var(--transition-smooth); 
}
.menu-close:hover { 
    color: var(--accent); 
    background: var(--accent-soft);
    transform: rotate(90deg); 
}

.side-nav { 
    list-style: none; 
    padding: 16px 0; 
    margin: 0; 
    flex: 1; 
    overflow-y: auto; 
    text-align: right; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2px;
}
.side-nav li { 
    border-bottom: 1px solid #f8fafc; 
}
.side-nav li a { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 14px 24px; 
    color: var(--text-medium); 
    font-weight: 600; 
    font-size: 0.9rem;
    transition: var(--transition-smooth); 
}
.side-nav li a:hover { 
    background: #f1f5f9; 
    color: var(--accent); 
    padding-right: 32px; 
}
.side-nav li i { 
    color: var(--primary); 
    width: 24px; 
    text-align: center; 
    font-size: 1.1rem; 
    opacity: 0.8; 
    transition: var(--transition-smooth);
}
.side-nav li a:hover i {
    color: var(--accent);
}
.side-nav li.full-width { 
    grid-column: span 2; 
    background: #f8fafc; 
}
.side-nav li.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 24px;
}
.side-menu-footer { 
    padding: 24px 30px; 
    border-top: 1px solid #f1f5f9; 
    font-size: 0.78rem; 
    color: var(--text-light); 
    background: #f8fafc;
}

/* 4) WHAT'S NEW DRAWER PANEL */
.whats-new-panel { 
    position: fixed; 
    top: 90px; 
    left: -420px; 
    width: 380px; 
    background: var(--white); 
    z-index: 1500; 
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0; 
    box-shadow: 10px 10px 40px rgba(15, 23, 42, 0.12); 
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); 
    overflow: hidden; 
    border: 1px solid var(--border-color);
    visibility: hidden;
}
.whats-new-panel.active { 
    left: 0; 
    visibility: visible;
}
.wn-header { 
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); 
    color: var(--white); 
    padding: 16px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.wn-header h4 { 
    margin: 0; 
    font-size: 0.95rem; 
    font-weight: 800; 
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}
.wn-header button { 
    background: rgba(255, 255, 255, 0.2); 
    border: none; 
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white); 
    cursor: pointer; 
    font-size: 0.9rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.wn-header button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}
.wn-body { 
    padding: 20px; 
    max-height: 520px; 
    overflow-y: auto; 
    text-align: right; 
}
.wn-item { 
    margin-bottom: 20px; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 16px; 
}
.wn-item:last-child { 
    border-bottom: none; 
    padding-bottom: 0;
    margin-bottom: 0;
}
.wn-item h5 { 
    margin: 0 0 8px; 
    color: var(--primary); 
    font-size: 0.9rem; 
    font-weight: 700; 
    display: flex;
    align-items: center;
    gap: 6px;
}
.wn-item p { 
    font-size: 0.85rem; 
    line-height: 1.7; 
    color: var(--text-medium); 
    margin-bottom: 8px; 
}
.wn-item a { 
    color: #ea580c; 
    font-size: 0.78rem; 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wn-item a:hover {
    color: #c2410c;
}

/* 5) MODERN DECK SLIDER */
.modern-slider-wrap { 
    position: relative; 
    width: 100%; 
    height: 460px; 
    margin: 24px 0 40px 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    background: #060c1d; 
    border-radius: var(--radius-lg); 
    direction: ltr; 
    box-shadow: var(--shadow-lg);
}

.modern-slide { 
    position: absolute; 
    width: 65%; 
    height: 88%; 
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    opacity: 0; 
    transform: scale(0.7); 
    cursor: pointer; 
    z-index: 1; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modern-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.modern-slide.active { 
    opacity: 1; 
    z-index: 10; 
    transform: scale(1); 
}
.modern-slide.prev { 
    opacity: 0.45; 
    z-index: 5; 
    transform: translateX(40%) scale(0.8); 
    pointer-events: none;
}
.modern-slide.next { 
    opacity: 0.45; 
    z-index: 5; 
    transform: translateX(-40%) scale(0.8); 
    pointer-events: none;
}
.modern-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 1.2s ease;
}
.modern-slide.active:hover img {
    transform: scale(1.05);
}

.slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0;
    right: 0;
    width: 100%; 
    padding: 30px 40px 35px 40px; 
    direction: rtl; 
    text-align: right; 
    color: var(--white); 
    z-index: 5;
}
.slide-content h2 {
    color: var(--white);
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.45;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    transition: var(--transition-smooth);
}
.modern-slide.active:hover .slide-content h2 {
    color: #ffeb3b; /* Subtle highlight */
}

/* Glassmorphic Slider Buttons */
.slider-btn {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 20; 
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: var(--white); 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}
.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
#s-prev {
    right: 30px;
}
#s-next {
    left: 30px;
}
.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 6) MAIN PAGE GRID LAYOUT & SKELETON */
.main-layout { 
    display: grid; 
    grid-template-columns: 1fr 340px; 
    gap: 32px; 
    margin-bottom: 60px; 
    align-items: start;
}
.categories-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 28px; 
}

/* news list cards on homepage */
.cat-box { 
    background: var(--white); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--card-border); 
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.cat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.cat-head { 
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%); 
    color: var(--white); 
    padding: 16px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 800; 
    border-bottom: 3px solid var(--accent);
}
.cat-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 800;
}
.cat-head-title i {
    font-size: 1.1rem;
    color: var(--accent-light);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.cat-archive-btn {
    font-size: 0.75rem; 
    color: rgba(255, 255, 255, 0.9); 
    background: rgba(255, 255, 255, 0.1); 
    padding: 4px 12px; 
    border-radius: var(--radius-full); 
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    transition: var(--transition-smooth);
}
.cat-archive-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.05);
}

.cat-body {
    padding: 12px 0;
    flex: 1;
}

/* 7) NEWS ITEM ROW STYLE */
.news-item { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 0; 
    padding: 14px 20px; 
    border-bottom: 1px solid #f1f5f9; 
    align-items: flex-start; 
    text-align: right; 
    transition: var(--transition-fast);
}
.news-item:last-child { 
    border-bottom: none; 
}
.news-item:hover {
    background: #f8fafc;
}
.news-item-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}
.news-item-bullet {
    color: var(--accent);
    font-size: 0.4rem !important;
    margin-top: 8px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.news-item:hover .news-item-bullet {
    transform: scale(1.3);
    color: var(--accent-light);
}
.news-item a.news-link { 
    font-size: 0.9rem; 
    font-weight: 600; 
    line-height: 1.6; 
    color: var(--text-dark); 
    flex: 1;
}
.news-item a.news-link:hover { 
    color: var(--accent); 
}
.news-source-tag { 
    font-size: 0.72rem; 
    color: var(--accent-light); 
    background: rgba(163, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 700;
    margin-right: 14px; /* Align with title start */
}

/* 8) DESKTOP STICKY SIDEBAR */
.sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box { 
    background: var(--white); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}
.sidebar-box:hover {
    box-shadow: var(--shadow-lg);
}
.sidebar-box h3 { 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
    color: var(--primary); 
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 12px; 
    font-weight: 900; 
    text-align: right; 
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Tags & keywords */
.pill-wrap {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}
.tag-pill {
    background: #f1f5f9; 
    color: var(--text-medium); 
    padding: 6px 14px; 
    border-radius: var(--radius-full); 
    font-size: 0.78rem; 
    font-weight: 600;
    text-decoration: none; 
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.tag-pill:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(163, 0, 0, 0.15);
}
.hot-tag-pill {
    background: rgba(11, 19, 43, 0.05);
    color: var(--primary);
}
.hot-tag-pill:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(11, 19, 43, 0.15);
}

/* 9) CATEGORY AND ARCHIVE LIST PAGE */
.cat-page-header { 
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%); 
    padding: 30px 0; 
    color: var(--white); 
    margin-bottom: 30px; 
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.cat-page-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.cat-page-title { 
    font-size: 1.35rem; 
    font-weight: 900; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--white);
}
.cat-page-title i { 
    font-size: 1.2rem; 
    color: var(--accent-light);
}
.cat-page-back { 
    color: rgba(255, 255, 255, 0.85); 
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 700;
    transition: var(--transition-smooth); 
}
.cat-page-back:hover { 
    color: var(--primary); 
    background: var(--white);
    transform: translateX(-3px);
}

/* Category AI Smart Summary Card */
.ai-summary-card {
    background: var(--white); 
    padding: 24px 28px; 
    border-radius: var(--radius-lg); 
    margin-bottom: 28px; 
    border-right: 4px solid var(--accent); 
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--card-border);
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.ai-summary-card h4 {
    margin-top: 0; 
    color: var(--primary); 
    font-size: 0.95rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ai-summary-card h4 i {
    color: var(--accent-light);
}
.ai-summary-card p {
    margin: 0; 
    line-height: 1.8; 
    color: var(--text-medium); 
    font-size: 0.9rem;
}

/* Category Grid list view */
.news-list-card { 
    background: var(--white); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--card-border);
    overflow: hidden; 
    margin-bottom: 40px; 
}
.news-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0; 
}
.news-row { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    padding: 16px 24px; 
    border-bottom: 1px solid #f1f5f9; 
    transition: var(--transition-smooth); 
}
.news-row:hover { 
    background: #f8fafc; 
}
.news-row .bullet { 
    color: var(--accent); 
    margin-top: 8px; 
    font-size: 0.4rem; 
    flex-shrink: 0; 
    transition: var(--transition-fast);
}
.news-row:hover .bullet {
    transform: scale(1.3);
}
.news-row .news-title { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    line-height: 1.65; 
    flex: 1; 
}
.news-row .news-title:hover { 
    color: var(--accent); 
}
.news-row .news-date { 
    color: var(--text-light); 
    font-size: 0.75rem; 
    white-space: nowrap; 
    flex-shrink: 0; 
    margin-top: 3px; 
    font-weight: 600;
}

.load-more { 
    text-align: center; 
    padding: 24px; 
    border-top: 1px solid #f1f5f9; 
    background: #f8fafc;
}
.load-more button { 
    display: inline-block; 
    background: var(--primary); 
    color: var(--white); 
    padding: 10px 40px; 
    border: none; 
    border-radius: var(--radius-full); 
    font-size: 0.85rem; 
    font-weight: 700; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(11, 19, 43, 0.2);
    transition: var(--transition-smooth); 
    font-family: inherit; 
}
.load-more button:hover { 
    background: var(--accent); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 14px rgba(163, 0, 0, 0.25);
}
.load-more button:disabled { 
    background: #cbd5e1; 
    color: #94a3b8;
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none;
}

/* 10) ARTICLE DETAILS PAGE */
.breadcrumbs { 
    font-size: 0.78rem; 
    color: var(--text-light); 
    margin-bottom: 24px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.breadcrumbs a { 
    color: var(--text-light); 
    transition: var(--transition-fast);
}
.breadcrumbs a:hover { 
    color: var(--accent); 
}
.breadcrumbs i { 
    font-size: 0.6rem !important; 
    opacity: 0.6;
}

.article-content { 
    background: var(--white); 
    padding: 40px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--card-border);
}
.article-content h1 {
    font-size: clamp(1.2rem, 4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.45;
    margin: 20px 0;
    color: var(--text-dark);
}

.article-meta { 
    color: var(--text-light); 
    font-size: 0.82rem; 
    margin-bottom: 24px; 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    font-weight: 600;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-meta i {
    color: var(--accent);
}
.article-meta a {
    color: var(--text-medium);
}
.article-meta a:hover {
    color: var(--accent);
}

.article-body { 
    font-size: 1.05rem; 
    line-height: 1.85; 
    text-align: justify; 
    color: var(--text-medium);
}
.article-body p {
    margin-bottom: 20px;
}
.article-body img { 
    max-width: 100%; 
    border-radius: var(--radius-md); 
    margin: 24px 0;
    box-shadow: var(--shadow-md);
}

.tags { 
    margin-top: 32px; 
    border-top: 1px solid #f1f5f9; 
    padding-top: 24px; 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}
.tag { 
    background: #f1f5f9; 
    color: var(--text-medium);
    padding: 6px 16px; 
    border-radius: var(--radius-full); 
    font-size: 0.78rem; 
    font-weight: 600;
    transition: var(--transition-smooth); 
}
.tag:hover { 
    background: var(--accent); 
    color: var(--white); 
    box-shadow: 0 4px 8px rgba(163, 0, 0, 0.15);
}

.article-source-btn {
    display: inline-block; 
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%); 
    color: var(--white); 
    padding: 12px 36px; 
    border-radius: var(--radius-full); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(11, 19, 43, 0.2); 
    transition: var(--transition-smooth);
}
.article-source-btn:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 6px 18px rgba(163, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Related articles on detail page */
.related-grid { 
    display: flex; 
    flex-direction: column;
    gap: 0; 
}
.related-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 0; 
    border-bottom: 1px solid #f1f5f9; 
}
.related-item:last-child { 
    border-bottom: none; 
}
.related-item img { 
    width: 72px; 
    height: 52px; 
    object-fit: cover; 
    border-radius: var(--radius-sm); 
    flex-shrink: 0; 
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}
.related-item:hover img {
    transform: scale(1.04);
}
.related-item .ri-title { 
    font-size: 0.82rem; 
    font-weight: 600; 
    line-height: 1.55; 
    color: var(--text-dark);
}
.related-item .ri-title:hover { 
    color: var(--accent); 
}

/* 11) MODERN INTERACTIVE REACTIONS */
.article-reactions { 
    display: flex; 
    gap: 12px; 
    margin: 35px 0; 
    padding: 20px 24px; 
    background: #f8fafc; 
    border-radius: var(--radius-lg); 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #f1f5f9;
}
.reaction-btn { 
    background: var(--white); 
    border: 1px solid #e2e8f0; 
    padding: 8px 24px; 
    border-radius: var(--radius-full); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: var(--transition-smooth); 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: var(--text-medium);
}
.reaction-btn:hover { 
    border-color: var(--accent); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
.reaction-btn.active { 
    background: var(--primary); 
    color: var(--white); 
    border-color: var(--primary); 
}
.reaction-btn.btn-like i { 
    color: #2e7d32; 
    font-size: 1.1rem;
}
.reaction-btn.btn-dislike i { 
    color: #c62828; 
    font-size: 1.1rem;
}
.reaction-btn.active i { 
    color: var(--white) !important; 
}
.reaction-btn:active {
    transform: translateY(0) scale(0.95);
}

/* 12) FOOTER REDESIGN */
footer { 
    background: #060c1d; 
    color: var(--white); 
    padding: 60px 0 30px; 
    margin-top: 60px; 
    border-top: 4px solid var(--accent);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 48px; 
    margin-bottom: 40px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    padding-bottom: 40px; 
}
.footer-col h3 { 
    font-size: 1.1rem; 
    margin-bottom: 24px; 
    color: var(--accent-light); 
    position: relative; 
    padding-bottom: 8px; 
    text-align: right; 
    font-weight: 800; 
}
.footer-col h3::after { 
    content: ''; 
    position: absolute; 
    right: 0; 
    bottom: 0; 
    width: 32px; 
    height: 2px; 
    background: var(--accent-light); 
}
.footer-col p { 
    line-height: 1.85; 
    opacity: 0.75; 
    font-size: 0.88rem; 
    text-align: right; 
}
.footer-col ul { 
    list-style: none; 
    padding: 0; 
    text-align: right; 
}
.footer-col ul li { 
    margin-bottom: 12px; 
}
.footer-col ul li a { 
    color: var(--white); 
    opacity: 0.75; 
    font-size: 0.88rem; 
    font-weight: 600;
    transition: var(--transition-fast);
}
.footer-col ul li a:hover { 
    color: var(--accent-light); 
    opacity: 1; 
    padding-right: 8px; 
}
.social-links { 
    display: flex; 
    gap: 12px; 
    justify-content: flex-end; 
}
.social-links a { 
    width: 40px; 
    height: 40px; 
    background: rgba(255, 255, 255, 0.06); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    color: var(--white); 
    font-size: 1.1rem; 
    transition: var(--transition-smooth); 
}
.social-links a:hover { 
    background: var(--accent); 
    border-color: var(--accent);
    transform: translateY(-4px); 
    box-shadow: 0 4px 12px rgba(163, 0, 0, 0.3);
}
.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* 13) HORIZONTAL MOBILE MENU SCROLL */
.mobile-categories-bar {
    display: none;
    background: #0b132b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.mobile-categories-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for clean look */
}
.mobile-categories-bar .container {
    display: flex;
    gap: 14px;
    padding: 0 20px;
}
.mobile-cat-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}
.mobile-cat-link:hover, .mobile-cat-link.active {
    color: var(--white);
    background: var(--accent);
}

/* 14) LOADING SKELETON LOADER ANIMATION */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive breakdowns */
@media (max-width: 1024px) {
    .main-layout { 
        grid-template-columns: 1fr; 
    }
    .hero-slider { 
        height: 340px; 
    }
    .side-menu-content { 
        width: 380px; 
    }
    .footer-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-flex { 
        min-height: 64px; 
    }
    .site-logo { 
        height: 48px; 
    }
    .menu-text { 
        display: none; 
    }
    .whats-new-panel { 
        width: 92%; 
        top: 80px; 
        border-radius: 0; 
    }
    .side-menu-content { 
        width: 100%; 
    }
    .side-nav { 
        grid-template-columns: 1fr; 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 32px;
    }
    .footer-col h3, .footer-col p, .footer-col ul { 
        text-align: center; 
    }
    .footer-col h3::after { 
        right: 50%; 
        transform: translateX(50%); 
    }
    .social-links { 
        justify-content: center; 
    }
    
    /* Search box adjusts in header on mobile */
    .search-box-header { 
        display: none; /* Handled in overlay or sidebar for mobile */
    }
    
    /* Horizontal Bar shows on mobile */
    .mobile-categories-bar {
        display: block;
    }
    
    /* Slider heights */
    .modern-slider-wrap {
        height: 280px;
        margin: 16px 0 24px 0;
    }
    .modern-slide {
        width: 85%;
        height: 90%;
    }
    .modern-slide.prev, .modern-slide.next {
        display: none; /* Hide card deck offsets on small mobile */
    }
    .slide-content {
        padding: 15px 20px 20px 20px;
    }
    #s-prev {
        right: 10px;
    }
    #s-next {
        left: 10px;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    /* Category grids fold to 1 column */
    .categories-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-row {
        padding: 12px 16px;
    }
    
    /* Article Detail Page Padding */
    .article-content {
        padding: 24px 20px;
    }
    .article-meta {
        gap: 12px;
    }
}

/* 15) SEARCH RESULTS SPECIFICS */
.search-header {
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%);
    padding: 30px 0;
    color: var(--white);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.search-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-page-title {
    font-size: 1.35rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.search-page-title i {
    color: var(--accent-light);
}
.search-back {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: var(--transition-smooth);
}
.search-back:hover {
    color: var(--primary);
    background: var(--white);
    transform: translateX(-3px);
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* 16) TAGS PAGE SPECIFICS */
.listing-header {
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%);
    padding: 30px 0;
    color: var(--white);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.listing-header .container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.listing-title { 
    font-size: 1.35rem; 
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.listing-title i {
    color: var(--accent-light);
}
.listing-back { 
    color: rgba(255, 255, 255, 0.85); 
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: var(--transition-smooth);
}
.listing-back:hover { 
    color: var(--primary); 
    background: var(--white);
    transform: translateX(-3px);
}

.section-title {
    font-size: 1.15rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin-bottom: 24px;
    border-right: 4px solid var(--accent); 
    padding-right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i {
    color: var(--accent-light);
}

.cat-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-bottom: 40px;
}
.cat-card {
    background: var(--white); 
    border-radius: var(--radius-md); 
    padding: 18px 24px;
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--card-border);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: var(--transition-smooth);
}
.cat-card:hover { 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-2px); 
}
.cat-card-name { 
    font-weight: 700; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--text-dark);
}
.cat-card-name i { 
    color: var(--accent-light); 
}
.cat-card-count { 
    background: var(--accent-soft); 
    color: var(--accent); 
    padding: 4px 12px; 
    border-radius: var(--radius-full); 
    font-size: 0.78rem; 
    font-weight: 700; 
}

.tags-cloud {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 40px;
}
.tag-chip {
    background: var(--white); 
    border: 1px solid var(--border-color); 
    padding: 8px 20px; 
    border-radius: var(--radius-full);
    font-size: 0.85rem; 
    color: var(--text-medium); 
    transition: var(--transition-smooth); 
    font-weight: 600;
}
.tag-chip:hover { 
    background: var(--accent); 
    color: var(--white); 
    border-color: var(--accent); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(163, 0, 0, 0.15);
}

/* Tag Specific Listing */
.tag-page-header { 
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%); 
    padding: 30px 0; 
    color: var(--white); 
    margin-bottom: 30px; 
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.tag-page-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.tag-page-title { 
    font-size: 1.35rem; 
    font-weight: 900; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--white);
}
.tag-page-title i { 
    color: var(--accent-light);
}
.tag-count { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-light);
    opacity: 0.9; 
}
.tag-page-back { 
    color: rgba(255, 255, 255, 0.85); 
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 700;
    transition: var(--transition-smooth); 
}
.tag-page-back:hover { 
    color: var(--primary); 
    background: var(--white);
    transform: translateX(-3px);
}

/* 17) SOURCE PAGE SPECIFICS */
.source-page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #152244 100%);
    padding: 30px 0;
    color: var(--white);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.source-page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.source-page-title {
    font-size: 1.35rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.source-page-title i {
    color: var(--accent-light);
}
.source-page-back {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: var(--transition-smooth);
}
.source-page-back:hover {
    color: var(--primary);
    background: var(--white);
    transform: translateX(-3px);
}

/* 18) LIVE AI TERMINAL SPECIFICS */
.wn-page-body {
    background: #020617; /* Deepest space slate blue */
    color: #f8fafc;
    font-family: 'Vazirmatn', -apple-system, sans-serif !important;
    overflow-x: hidden;
}
.wn-page-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 24px;
}
.wn-page-header {
    text-align: center;
    margin-bottom: 50px;
}
.wn-page-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 900;
    color: #f97316; /* Premium orange accent */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
.wn-page-header p {
    font-size: 1.05rem;
    color: #94a3b8;
    font-weight: 500;
}

.ai-terminal {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.ai-entry {
    margin-bottom: 40px;
    border-right: 3px solid #f97316;
    padding-right: 24px;
    position: relative;
}
.ai-entry h2 {
    font-size: 1.25rem;
    color: #f97316;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}
.ai-entry h2::before {
    content: '>';
    color: var(--white);
    opacity: 0.35;
    font-family: monospace;
}
.ai-entry h2 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}
.ai-entry h2 a:hover {
    color: var(--white);
}

.typewriter {
    line-height: 1.95;
    font-size: 1.02rem;
    color: #cbd5e1;
    min-height: 50px;
    text-align: justify;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: #f97316;
    margin-right: 6px;
    animation: wn_blink 1s infinite;
    vertical-align: middle;
}
@keyframes wn_blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    color: #94a3b8;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
}
.btn-back:hover {
    color: #f97316;
    transform: translateX(-4px);
}

/* Chat & search widget inside terminal */
.ai-chat-box {
    margin-top: 40px;
    background: rgba(15, 23, 42, 0.4);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ai-chat-box p {
    text-align: center;
    color: #f97316;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.ai-chat-input-wrap {
    display: flex;
    gap: 12px;
}
.ai-chat-input-wrap input {
    flex: 1;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.ai-chat-input-wrap input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}
.ai-chat-input-wrap button {
    background: #f97316;
    color: var(--white);
    border: none;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-chat-input-wrap button:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.load-more-ai-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.load-more-ai-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

@media (max-width: 768px) {
    .wn-page-container {
        margin: 30px auto;
        padding: 16px;
    }
    .ai-terminal {
        padding: 24px;
    }
    .ai-chat-input-wrap {
        flex-direction: column;
    }
    .ai-chat-input-wrap button {
        padding: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   IVNA-STYLE REDESIGN ADDITIONS - IndexCMS 2.0
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOP SOCIAL BAR ─────────────────────────────────────── */
.top-social-bar {
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 7px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.tsb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.tsb-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.tsb-date {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.tsb-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.tsb-social {
    color: rgba(255,255,255,0.55);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.tsb-social:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* News ticker */
.news-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.ticker-label {
    background: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ticker-track-outer {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.ticker-track {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 35s linear infinite;
    white-space: nowrap;
}
.ticker-track a {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.ticker-track a:hover { color: var(--white); }
.ticker-track-outer:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── UPDATED HEADER (adjusted for 3-row) ────────────────── */
header {
    background: rgba(11, 19, 43, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
}
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 24px;
}
.wn-text { font-size: 0.82rem; }

/* ─── CATEGORY NAV BAR ───────────────────────────────────── */
.cat-nav-bar {
    background: rgba(11,19,43,0.92);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 108px;
    z-index: 999;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-nav-bar::-webkit-scrollbar { display: none; }
.cat-nav-inner {
    display: flex;
    gap: 0;
    padding: 0;
}
.cat-nav-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.cat-nav-link:hover, .cat-nav-link.active {
    color: var(--white);
    border-bottom-color: var(--accent-light);
    background: rgba(255,255,255,0.05);
}

/* ─── AD ZONES ───────────────────────────────────────────── */
.ad-strip-wrap {
    padding: 12px 0;
    background: #f0f4f8;
    border-bottom: 1px solid #e2e8f0;
}
.ad-strip-banner {
    text-align: center;
}
.ad-strip-banner img, .ad-editorial-banner img, .ad-footer-banner img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.ad-editorial-banner {
    margin: 24px 0;
    text-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.ad-sidebar {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 4px;
}
.ad-sidebar img { width: 100%; display: block; }
.ad-sidebar-2 { margin-top: 4px; }
.ad-between-cats {
    grid-column: 1 / -1;
    text-align: center;
    margin: 8px 0;
}
.ad-footer-banner {
    margin: 32px 0 16px;
    text-align: center;
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin: 20px 0 24px;
    align-items: start;
}

/* ─── IVNA SLIDER ────────────────────────────────────────── */
.ivna-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ivna-slide-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #060c1d;
    aspect-ratio: 16/7; /* better desktop ratio */
}
@media (max-width: 768px) {
    .ivna-slide-main {
        aspect-ratio: 4/3; /* better mobile ratio */
    }
}
.ivna-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease; /* fast simple fade, no jumping */
    pointer-events: none;
}
.ivna-slide.active {
    opacity: 1;
    pointer-events: all;
}
.ivna-slide.prev { opacity: 0; }
.ivna-slide a { display: block; width: 100%; height: 100%; }
.ivna-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* removed slow zoom animation */
}
.ivna-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 2;
    direction: rtl;
    text-align: right;
}
.slide-cat-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.ivna-slide-overlay h2 {
    color: white;
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.slide-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    margin: 0 0 10px;
    line-height: 1.6;
}
.slide-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
}
/* Slider nav buttons */
.ivna-prev, .ivna-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}
.ivna-prev { right: 14px; }
.ivna-next { left: 14px; }
.ivna-prev:hover, .ivna-next:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.4);
}
/* Dots */
.ivna-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.ivna-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}
.ivna-dot.active {
    background: white;
    width: 22px;
    border-radius: 4px;
}
/* Thumb row */
.ivna-slide-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ivna-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    background: #1a1a1a;
}
.ivna-thumb:hover, .ivna-thumb.active { border-color: var(--accent); }
.ivna-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivna-thumb-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 16px 6px 5px;
    line-height: 1.4;
    direction: rtl;
    text-align: right;
}

/* ─── HERO SIDEBAR (Director + Editor Picks) ─────────────── */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Director's Message Box */
.director-box {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.director-img-wrap img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.director-body {
    padding: 14px 16px;
}
.director-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.director-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 6px;
}
.director-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.director-title:hover { color: var(--accent); }
.director-excerpt {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}
.director-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 12px;
    border-radius: 4px;
    transition: var(--transition-fast);
}
.director-read-btn:hover {
    background: var(--accent);
    color: white;
}

/* Editor Picks Box */
.editor-picks-box {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.ep-head {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2f70 100%);
    color: white;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--accent);
}
.ep-head i { color: #f97316; }
.ep-more {
    margin-right: auto;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}
.ep-more:hover { color: white; }
.ep-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ep-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.ep-list li:last-child { border-bottom: none; }
.ep-list li:hover { background: #f8fafc; }
.ep-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: white;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.ep-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.55;
    transition: color 0.2s;
}
.ep-link:hover { color: var(--accent); }

/* ─── TRENDING BAR ───────────────────────────────────────── */
.trending-bar {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin: 0 0 24px;
}
.trending-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.trending-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border-left: 2px solid var(--border-color);
    padding-left: 14px;
}
.trending-label i { color: var(--accent); }
.trending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: var(--text-medium);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}
.trend-pill:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(11,19,43,0.15);
}
.trend-pill.hot {
    background: rgba(249,115,22,0.08);
    color: #c2410c;
    border-color: rgba(249,115,22,0.15);
}
.trend-pill.hot:hover {
    background: #f97316;
    color: white;
    border-color: #f97316;
}
.trend-pill i { font-size: 0.65rem; }

/* ─── HOME MAIN LAYOUT ───────────────────────────────────── */
.home-main-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}
.home-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.home-sidebar {
    position: sticky;
    top: 160px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ─── CATEGORY SECTIONS ──────────────────────────────────── */
.cat-section {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.cat-section-head {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2f70 100%);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent);
}
.cat-section-title {
    color: white;
    font-size: 0.92rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.cat-section-title:hover { color: rgba(255,255,255,0.85); }
.cat-section-title i { color: var(--accent-light); font-size: 1rem; }
.cat-section-more {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    transition: color 0.2s;
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 3px;
}
.cat-section-more:hover { color: white; background: rgba(255,255,255,0.15); }
.cat-section-body {
    padding: 0;
}
/* Featured big news inside category */
.cat-featured {
    position: relative;
    overflow: hidden;
}
.cat-featured-link {
    display: block;
    position: relative;
}
.cat-featured-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.cat-featured:hover .cat-featured-link img { transform: scale(1.03); }
.cat-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    direction: rtl;
    text-align: right;
}
.cat-featured-source {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 5px;
}
.cat-featured-overlay h3 {
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
/* Rest of category news list */
.cat-news-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}
.cat-news-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.cat-news-item:last-child { border-bottom: none; }
.cat-news-item:hover { background: #f8fafc; }
.cat-bullet {
    color: var(--accent);
    font-size: 0.35rem !important;
    margin-top: 8px;
    flex-shrink: 0;
}
.cat-news-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    flex: 1;
    transition: color 0.2s;
}
.cat-news-link:hover { color: var(--accent); }
.cat-news-source {
    font-size: 0.68rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
    margin-top: 2px;
}

/* ─── SIDEBAR BOXES ──────────────────────────────────────── */
.sb-title {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
}
.sb-title i { color: var(--accent); }
.sb-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
.sb-news-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.sb-news-item:last-child { border-bottom: none; }
.sb-bullet { color: var(--accent); font-size: 0.32rem !important; margin-top: 8px; flex-shrink: 0; }
.sb-news-link {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.55;
    transition: color 0.2s;
}
.sb-news-link:hover { color: var(--accent); }
.sb-source {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 2px;
    display: block;
}

/* ─── SECTION DIVIDER LINE ───────────────────────────────── */
.section-divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 12px 0 32px;
}
.section-head-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-head-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 4px solid var(--accent);
    padding-right: 12px;
}
.section-head-title i { color: var(--accent); }
.section-head-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.section-head-more:hover { color: var(--accent); }

/* ─── VIDEO GRID ─────────────────────────────────────────── */
.multimedia-section {
    margin-bottom: 40px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    height: 100%;
}
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 4;
}
.video-card:hover .video-play-btn {
    background: #a30000;
    border-color: #a30000;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 5;
    direction: ltr;
}
.video-title {
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    text-align: right;
    direction: rtl;
    flex: 1;
}

/* ─── ARTICLE PAGE: SSR-AWARE + IMPROVED ────────────────── */
.article-content { border: 1px solid var(--border-color); }

/* ─── RESPONSIVE: GENERAL BASE OVERRIDES ───────────────── */
@media (max-width: 1200px) {
    .container { padding: 0 16px; }
}

/* ═══ IVNA PREMIUM THEME DESIGN SYSTEM (ADDITIONS) ═══ */

/* ─── HEADER ROW 1 ─── */
.top-social-bar {
    background: #06122d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 42px;
}
.tsb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.tsb-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.tsb-date {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}
.tsb-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tsb-nav-link {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition-fast);
}
.tsb-nav-link:hover, .tsb-nav-link.active {
    color: #f8fafc;
    border-bottom: 2px solid #a30000;
}
.tsb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tsb-social {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.tsb-social:hover {
    color: #f8fafc;
}

/* ─── HEADER ROW 2 ─── */
.main-header {
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
}
.site-logo {
    max-height: 52px;
    object-fit: contain;
}
.site-logo-fallback {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.logo-main-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #06122d;
    letter-spacing: -0.5px;
}
.logo-sub-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #a30000;
    letter-spacing: 0.5px;
    margin-top: -2px;
}
.search-box-header form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 4px 16px;
    width: 280px;
    transition: var(--transition-fast);
}
.search-box-header form:focus-within {
    border-color: #a30000;
    box-shadow: 0 0 0 3px rgba(163, 0, 0, 0.08);
}
.search-box-header input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--text-dark);
    flex: 1;
}
.search-box-header button {
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.search-box-header button:hover {
    color: #a30000;
}

/* ─── HEADER ROW 3 ─── */
.news-ticker-bar {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    height: 40px;
}
.ntb-inner {
    display: flex;
    align-items: center;
    height: 100%;
}
.ntb-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #5c2494; /* Elegant royal purple */
    color: var(--white);
    height: 100%;
    padding: 0 16px;
    font-weight: 700;
    font-size: 0.82rem;
    position: relative;
    z-index: 10;
}
.ntb-label-wrap::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: #5c2494;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.ntb-time {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.ntb-track-outer {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.ntb-single-ticker {
    position: relative;
    height: 100%;
    width: 100%;
}
.ntb-ticker-item {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: #0b1120;
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    padding-right: 15px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ntb-ticker-item.active {
    opacity: 1;
    visibility: visible;
}
.ntb-ticker-item:hover {
    color: #a30000;
}

/* ─── HERO & SLIDER LAYOUT ─── */
.hero-section {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    margin: 0 0 20px 0;
}
.hero-main {
    width: 100%;
    overflow: hidden;
}
.ivna-slider {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.ivna-slide-main {
    position: relative;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}
.ivna-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}
.ivna-slide.active {
    opacity: 1;
    z-index: 2;
}
.ivna-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ivna-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 30px;
    color: var(--white);
    direction: rtl;
    text-align: right;
}
.slide-cat-badge {
    background: #a30000;
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}
.ivna-slide-overlay h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.4;
}
.slide-excerpt {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.7;
}
.slide-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition-fast);
}
.slide-read-btn:hover {
    background: var(--white);
    color: #06122d;
    border-color: var(--white);
}

.ivna-slide-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #0f172a;
    padding: 10px;
}
.ivna-thumb {
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    position: relative;
    aspect-ratio: 16/10;
    width: 100%;
    transition: var(--transition-fast);
}
@media (min-width: 769px) {
    .ivna-thumb {
        height: 110px;
    }
}
.ivna-thumb.active {
    border-color: #a30000;
    box-shadow: 0 0 10px rgba(163, 0, 0, 0.4);
}
.ivna-thumb img, .ivna-thumb .branded-fallback {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1;
}
.ivna-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 2;
    transition: var(--transition-fast);
}
.ivna-thumb.active::after {
    background: linear-gradient(to top, rgba(163, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 80%);
}
.ivna-thumb-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    line-height: 1.4;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    transition: var(--transition-fast);
}
.ivna-thumb.active .ivna-thumb-title {
    color: var(--white);
    font-weight: 800;
}

/* ─── HERO SIDEBAR CARDS ─── */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 1) Message from Director */
.director-card {
    background: #0b1120; /* Dark Navy from Mockup */
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.director-badge {
    background: #a30000;
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 8px 14px;
    text-align: center;
}
.director-card-body {
    padding: 20px 16px;
    text-align: center;
}
.director-avatar-wrap {
    width: 150px;
    height: 190px;
    margin: 0 auto 15px auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.15);
}
.director-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.director-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}
.director-role {
    font-size: 0.8rem;
    color: #bbbbbb;
    font-weight: 700;
    margin-bottom: 12px;
}
.director-desc {
    font-size: 0.8rem;
    color: #dddddd;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: justify;
}
.director-btn {
    display: block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.director-btn:hover {
    background: #a30000;
    border-color: #a30000;
}

/* 2) Editor's Suggestion Card */
.editor-picks-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.ep-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #06122d;
    border-bottom: 2px solid #a30000;
    padding-bottom: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-card-title i {
    color: #a30000;
}
.ep-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ep-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.ep-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ep-number-badge {
    background: #a30000;
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ep-item-img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.ep-item-link {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ep-item-link:hover {
    color: #a30000;
}

/* ─── BANNER AD STRIPS ─── */
.ad-strip-banner {
    display: block;
    width: 100%;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: #f8fafc;
    min-height: 80px;
    max-height: 120px;
    text-align: center;
}
.ad-strip-banner a {
    display: block;
    width: 100%;
    height: 100%;
}
.ad-strip-banner img,
.ad-strip-banner a img {
    width: 100%;
    max-height: 120px;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ─── THREE-COLUMN MAIN GRID ─── */
/* ─── TOP AD WRAPPER ─── */
.ivna-top-ad-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
.ivna-top-ad-wrap .ad-strip-banner {
    margin: 10px 0 16px 0;
}

.ivna-middle-grid {
    display: grid;
    grid-template-columns: 280px 330px 1fr;
    gap: 20px;
    margin: 20px 0;
}

/* ─── MIDDLE GRID: LEFT COLUMN (Utilities) ─── */
.ivna-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ad-kmc-slot {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.ad-kmc-slot img {
    width: 100%;
    display: block;
}
.ivna-newsletter-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.newsletter-title {
    font-size: 1rem;
    font-weight: 900;
    color: #06122d;
    margin-bottom: 6px;
}
.newsletter-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.newsletter-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-align: center;
    outline: none;
}
.newsletter-form input:focus {
    border-color: #a30000;
}
.newsletter-submit-btn {
    width: 100%;
    background: #a30000;
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}
.newsletter-submit-btn:hover {
    background: #c81010;
}
.ivna-social-follow-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.social-follow-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #06122d;
    margin-bottom: 12px;
}
.social-follow-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.social-follow-bubble {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}
.social-follow-bubble:hover {
    background: #a30000;
    color: var(--white);
    border-color: #a30000;
}

/* ─── MIDDLE GRID: MIDDLE COLUMN (Note of the Day) ─── */
.ivna-mid-col {
    display: flex;
    flex-direction: column;
}
.note-of-the-day-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: auto;
}
.notd-badge {
    background: #06122d;
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px;
    text-align: center;
    border-bottom: 2px solid #a30000;
}
.notd-body {
    padding: 15px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.notd-avatar {
    width: calc(100% + 40px) !important;
    max-width: none !important;
    height: 140px;
    margin: -15px -20px 15px -20px;
    border-radius: 0;
    object-fit: cover;
    border: none;
    box-shadow: none;
}
.notd-headline {
    font-size: 1.15rem;
    font-weight: 900;
    color: #06122d;
    line-height: 1.5;
    margin-bottom: 12px;
}
.notd-headline:hover {
    color: #a30000;
}
.notd-excerpt {
    font-size: 0.8rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
    flex: 1;
}
.notd-author {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}
.notd-btn {
    display: block;
    border: 1px solid #06122d;
    color: #06122d;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.notd-btn:hover {
    background: #06122d;
    color: var(--white);
}

/* ─── MIDDLE GRID: RIGHT COLUMN (Analysis Grid + Most Visited) ─── */
.ivna-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Columnists Section */
.columnists-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.columnists-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #a30000;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.columnists-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #06122d;
}
.columnists-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
}
.columnists-more:hover {
    color: #a30000;
}
.columnists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.columnist-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.columnist-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}
.col-card-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.col-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.col-meta-box {
    display: flex;
    flex-direction: column;
}
.col-card-name {
    font-size: 0.82rem;
    font-weight: 900;
    color: #06122d;
}
.col-card-tagtime {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1px;
}
.col-tag-accent {
    color: #a30000;
    font-weight: 700;
}
.col-card-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.col-card-title:hover {
    color: #a30000;
}

/* Most Visited Card */
.most-visited-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.mv-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #06122d;
    border-bottom: 2px solid #a30000;
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mv-title i {
    color: #a30000;
}
.mv-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mv-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f1f5f9;
}
.mv-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mv-number {
    background: #a30000;
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mv-link {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mv-link:hover {
    color: #a30000;
}

/* ─── HORIZONTAL 5-ICON STATUS BAR ─── */
.ivna-status-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.status-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.status-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}
.sc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.sc-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.status-card:nth-child(1) .sc-icon-wrap { background: #ffebee; color: #d32f2f; }
.status-card:nth-child(2) .sc-icon-wrap { background: #fff3e0; color: #f57c00; }
.status-card:nth-child(3) .sc-icon-wrap { background: #e8f5e9; color: #2e7d32; }
.status-card:nth-child(4) .sc-icon-wrap { background: #e3f2fd; color: #1976d2; }
.status-card:nth-child(5) .sc-icon-wrap { background: #f3e5f5; color: #7b1fa2; }
.sc-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #06122d;
}
.sc-text {
    font-size: 0.72rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-time {
    font-size: 0.62rem;
    color: var(--text-light);
    font-weight: 600;
    display: block;
}

/* ─── BOTTOM TWO-COLUMN MULTIMEDIA SECTION ─── */
.multimedia-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin: 20px 0;
}
.multimedia-main {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.ad-fiber-slot {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.ad-fiber-slot img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ─── DESKTOP RTL GRID OVERRIDES (Mapped to mock UI) ─── */
@media (min-width: 1201px) {
    .hero-section {
        grid-template-columns: 1fr 300px;
    }
    .hero-main { grid-column: 1; grid-row: 1; }
    .hero-sidebar { grid-column: 2; grid-row: 1; }

    .ivna-middle-grid {
        grid-template-columns: 1fr 330px 280px; 
    }
    .ivna-right-col { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 24px; }
    .ivna-mid-col { grid-column: 2; grid-row: 1; }
    .ivna-left-col { grid-column: 3; grid-row: 1; }
    .most-visited-card { width: 100% !important; margin: 0; }

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

    .multimedia-layout {
        grid-template-columns: 280px 1fr;
    }
    .ad-fiber-slot { grid-column: 1; grid-row: 1; }
    .multimedia-main { grid-column: 2; grid-row: 1; }
}

/* ─── BRANDED IMAGE FALLBACK ─── */
.branded-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.branded-fallback img {
    width: 50% !important;
    height: auto !important;
    max-height: 50% !important;
    object-fit: contain !important;
    opacity: 0.6;
    filter: grayscale(100%) contrast(1.2);
}
.ep-item-img.branded-fallback, .ivna-slide-img.branded-fallback {
    border-radius: var(--radius-sm);
    aspect-ratio: 16/9;
}


/* ─── NEW IVNA MOCKUP HEADER ─── */
.ivna-main-header {
    background: #0b1120;
    color: var(--white);
    padding: 0;
    border-bottom: 2px solid #a30000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.ivna-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.ivna-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}
.logo-box {
    background: transparent !important;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin: 0;
}
.logo-box a {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo-box .logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0b1120;
    white-space: nowrap;
}
.logo-box .site-logo {
    height: 48px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block;
}
.ivna-desktop-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 5px;
}
.ivna-desktop-nav .nav-item {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.ivna-desktop-nav .nav-item:hover, .ivna-desktop-nav .nav-item.active {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    border-bottom: 3px solid #a30000;
}
.whats-new-link {
    color: #ffca28 !important;
}

.ivna-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}
.header-search-icon {
    display: flex;
    align-items: center;
}
.search-form-mini {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    padding: 2px 10px;
}
.search-input-mini {
    background: transparent;
    border: none;
    color: white;
    width: 80px;
    font-size: 0.8rem;
    outline: none;
    transition: 0.3s;
}
.search-input-mini:focus {
    width: 150px;
}
.search-input-mini::placeholder {
    color: #999;
}
.search-form-mini button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}
.header-date {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 700;
}
.header-socials {
    display: flex;
    gap: 12px;
}
.header-socials a {
    color: #eeeeee;
    font-size: 1.1rem;
    transition: 0.2s;
}
.header-socials a:hover {
    color: #a30000;
}
/* Hide top-social-bar and main-header if any leftover exists */
.top-social-bar, .main-header { display: none !important; }

/* ─── RESPONSIVE: GRID & COLUMN ADAPTATIONS ─── */
@media (max-width: 1200px) {
    .ivna-middle-grid {
        grid-template-columns: 260px 300px 1fr;
        gap: 16px;
    }
}
@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .ivna-middle-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ivna-left-col {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .ivna-status-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    .multimedia-layout {
        grid-template-columns: 1fr;
    }
    .ad-fiber-slot {
        display: none;
    }
}
@media (max-width: 992px) {
    .ivna-desktop-nav {
        display: none; /* Hide main nav items on tablet/mobile */
    }
    .ivna-header-flex {
        padding: 0 15px;
    }
}
@media (max-width: 768px) {
    .hero-sidebar {
        grid-template-columns: 1fr;
        order: 2; /* Move sidebar below hero on mobile */
    }
    .hero-main {
        order: 1;
    }
    .hero-section {
        display: flex;
        flex-direction: column;
    }
    .ivna-middle-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .ivna-left-col {
        grid-column: span 1;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .columnists-grid {
        grid-template-columns: 1fr;
    }
    .ivna-status-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-box-header, .header-search-icon, .header-date {
        display: none; /* Hide extra elements to prevent overflow */
    }
    .ivna-header-right {
        gap: 10px;
    }
    .ivna-header-left {
        gap: 10px;
    }
    .most-visited-card {
        width: 100% !important;
        margin: 0 !important;
    }
    .ad-strip-banner img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    .ivna-slide-overlay {
        padding: 15px !important;
    }
    .ivna-slide-overlay h2 {
        font-size: 1.3rem !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }
    .slide-excerpt {
        display: none !important;
    }
    .slide-read-btn {
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
    }
}
@media (max-width: 480px) {
    .ivna-status-bar {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .ivna-slide-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    .ivna-header-flex {
        padding: 0 10px;
    }
    .logo-box .logo-text {
        font-size: 1.2rem;
    }
}

/* ─── NEW 3-ROW HEADER OVERRIDES ─── */
.ivna-header-row-1 {
    background: #0b1120;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
}
.ivna-row-1-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.row-1-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.row-1-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* "چه خبر" Button Badge design */
.whats-new-btn-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
    animation: orangePulse 2s infinite ease-in-out;
    height: 32px;
    white-space: nowrap;
    font-family: inherit;
    transition: 0.2s;
    text-decoration: none !important;
}
.whats-new-btn-badge:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-1px);
}
@keyframes orangePulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(249, 115, 22, 0.7);
        transform: scale(1.03);
    }
}

.ivna-header-row-2 {
    background: #0f172a;
    border-bottom: 2px solid #a30000;
}
.ivna-row-2-flex {
    display: flex;
    justify-content: center;
}
.ivna-row-2-flex .ivna-desktop-nav {
    height: 48px;
    display: flex;
    gap: 10px;
}
.ivna-row-2-flex .nav-item {
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1;
    padding: 0 18px;
}
.ivna-row-2-flex .nav-item:hover,
.ivna-row-2-flex .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 3px solid #a30000;
}

/* ─── BANNER AD REDUCTION OVERRIDES ─── */
.ad-strip-banner {
    max-height: 120px;
    overflow: hidden;
    margin: 12px 0 16px 0;
}
.ad-strip-banner img,
.ad-strip-banner a img {
    max-height: 120px;
    object-fit: contain;
}

/* ─── SIMPLIFIED FOOTER OVERRIDES ─── */
.ivna-simple-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    border-top: 1px solid #1e293b;
    text-align: center;
}
.footer-logo-wrap {
    margin-bottom: 10px;
    text-align: center;
}
.footer-logo {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}
.footer-content-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: #cbd5e1;
}
.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-links-row a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}
.footer-links-row a:hover {
    color: #ffffff;
}
.footer-links-row .sep {
    color: #334155;
    font-size: 0.8rem;
}
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.footer-social-icons a {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: 0.2s;
}
.footer-social-icons a:hover {
    color: #ffffff;
}
.footer-copyright p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* ─── RESPONSIVE OVERRIDES FOR HEADER & ADS ─── */
@media (max-width: 768px) {
    .ivna-header-row-1 {
        padding: 8px 0;
    }
    .row-1-left .header-socials,
    .row-1-left .header-search-icon,
    .row-1-left .header-date {
        display: none !important;
    }
    .ivna-header-row-2 {
        display: none !important;
    }
    .row-1-left {
        gap: 10px;
    }
    .whats-new-btn-badge {
        padding: 4px 10px;
        font-size: 0.76rem;
        height: 28px;
    }
    .ad-strip-banner {
        height: 55px !important;
        max-height: 55px !important;
    }
    .ad-strip-banner img,
    .ad-strip-banner a img {
        height: 55px !important;
        max-height: 55px !important;
        object-fit: contain !important;
    }
}

/* ─── FINAL OVERRIDES: ELIMINATE WHITE GAP ─── */
/* Ensure no white space between header and content */
.ivna-main-header + * {
    margin-top: 0 !important;
}
body > .ivna-top-ad-wrap,
body > .container:first-of-type {
    margin-top: 0;
}
/* Header rows fill parent without gaps */
.ivna-header-row-1,
.ivna-header-row-2,
.news-ticker-bar {
    display: block;
    width: 100%;
}
/* Ensure ticker bar text is visible and correctly colored */
.news-ticker-bar {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

