:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --max-w: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name, .slide-title, .article-title, .news-card-title, .panel-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* Top Utility Bar */
.topbar {
    background: var(--navy);
    color: #cbd5e1;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 0;
}
.topbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-links a:hover { color: #ffffff; }

/* Main Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-mark {
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--navy);
}
.brand-sub {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.header-search {
    display: flex;
    align-items: center;
    flex: 0 1 320px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 6px 4px 14px;
}
.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text);
}
.header-search button {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.header-search button:hover { background: var(--red); }

.menu-toggle {
    display: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    color: var(--navy);
}

/* Category Navigation */
.main-nav {
    background: var(--navy-light);
    color: #fff;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
    display: block;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: #e2e8f0;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
}
.nav-list a:hover, .nav-list a.active {
    color: #fff;
    border-bottom-color: var(--red);
    background: rgba(255,255,255,0.06);
}

/* Breaking News Ticker */
.ticker-bar {
    background: #111827;
    color: #fff;
    border-bottom: 2px solid var(--red);
}
.ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 40px;
    overflow: hidden;
}
.ticker-label {
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.ticker-track-wrap {
    overflow: hidden;
    flex: 1;
    position: relative;
}
.ticker-track {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    animation: ticker 45s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    font-size: 13.5px;
    font-weight: 500;
    color: #f1f5f9;
}
.ticker-item:hover { color: #fca5a5; text-decoration: underline; }
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Content */
.page-main { padding: 24px 0 48px; }

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    margin-bottom: 28px;
    align-items: start;
}
.hero-grid > *, .news-grid > *, .authors-grid > *, .cat-blocks > *, .detail-layout > * {
    min-width: 0;
}
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Poll Widget */
.poll-question {
    margin: 0 0 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}
.poll-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.poll-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.poll-option:hover { border-color: var(--red); background: #fff; }
.poll-option input { accent-color: var(--red); margin: 0; }
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.poll-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 4px;
}
.poll-bar-meta strong { color: var(--navy); }
.poll-bar-track {
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ef4444);
    border-radius: 999px;
}
.poll-total {
    font-size: 12px;
    color: #64748b;
    text-align: right;
    margin-top: 2px;
}

.slider-card {
    background: var(--navy);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.slider-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.94) 0%, rgba(2,6,23,0.45) 45%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}
.slide-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.2;
}
.slide-spot {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    padding: 10px 14px;
    gap: 8px;
    overflow-x: auto;
}
.slider-nums {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.slider-num {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.slider-num.active, .slider-num:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Side Panel */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.panel-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.side-list li {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.side-list li:last-child { border-bottom: none; padding-bottom: 0; }
.side-rank {
    font-weight: 900;
    font-size: 18px;
    color: var(--red);
    min-width: 24px;
    line-height: 1.2;
}
.side-list a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}
.side-list a:hover { color: var(--red); }

/* Section Heading */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
}
.section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-head h2::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--red);
    border-radius: 3px;
}
.section-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}
.section-more:hover { text-decoration: underline; }

/* News Card Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.news-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
}
.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.news-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-title {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
}
.news-card:hover .news-card-title { color: var(--red); }
.news-card-spot {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* Authors Strip */
.authors-section {
    margin-bottom: 32px;
}
.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.author-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.author-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.author-info { min-width: 0; flex: 1; }
.author-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--red);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.author-article {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* Category Columns */
.cat-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.cat-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-block-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cat-block-list li:last-child { border-bottom: none; }
.cat-block-list a { font-size: 14px; font-weight: 600; }
.cat-block-list a:hover { color: var(--red); }

/* Article Detail */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.article-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--red); }
.article-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--navy);
}
.article-spot {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 500;
    color: #334155;
    line-height: 1.5;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    font-size: 13.5px;
    color: var(--muted);
}
.article-hero {
    margin: 0 0 22px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f172a;
}
.article-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #1e293b;
    overflow-wrap: break-word;
}
.article-content img {
    margin: 18px auto;
    border-radius: 8px;
}
.article-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--navy);
    cursor: pointer;
    transition: all 0.15s;
}
.btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Comments */
.comments-box { margin-top: 24px; }
.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}
.comment-author { font-weight: 800; color: var(--navy); }
.comment-date { color: var(--muted); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--navy); }
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
}
.pagination .current {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 40px 0 24px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-title { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .detail-layout { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .authors-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-blocks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-search { display: none; }
    .menu-toggle { display: inline-flex; }
    .news-grid, .news-grid-3, .authors-grid, .footer-grid { grid-template-columns: 1fr; }
    .article-box { padding: 18px; }
}
@media print {
    .topbar, .site-header, .ticker-bar, .site-footer, .detail-sidebar, .article-actions, .comments-box { display: none !important; }
    .detail-layout { display: block; }
    .article-box { border: none; box-shadow: none; padding: 0; }
}


/* ================= HOMEPAGE v3 (Professional Layout) ================= */
.page-main { padding-top: 20px; }

.section-head { border-bottom: 1px solid var(--border); position: relative; padding-bottom: 10px; }
.section-head::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 72px; height: 3px; background: var(--red);
}
.section-head h2 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.01em; }
.section-head h2::before { display: none; }

/* Hero */
.hp-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.hp-hero .slider-card { border-radius: 12px; }
.hp-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
.overlay-card {
    position: relative; display: block; border-radius: 12px; overflow: hidden;
    background: var(--navy); min-height: 180px; box-shadow: var(--shadow-md);
}
.overlay-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s ease;
}
.overlay-card:hover img { transform: scale(1.05); }
.overlay-card-body {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 16px; color: #fff;
    background: linear-gradient(to top, rgba(2,6,23,0.92) 0%, rgba(2,6,23,0.35) 55%, transparent 100%);
}
.overlay-card-body h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }

/* Authors strip */
.authors-section { margin-bottom: 36px; }
.authors-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.author-tile {
    scroll-snap-align: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 14px 16px; text-align: center; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.author-tile:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-md); }
.author-tile .author-avatar { width: 64px; height: 64px; border: 3px solid #fee2e2; margin-bottom: 4px; }
.author-tile .author-name { white-space: normal; font-size: 13px; margin: 0; }
.author-tile .author-article { font-size: 13.5px; -webkit-line-clamp: 2; }

/* Main + sidebar */
.hp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.hp-section { margin-bottom: 36px; }
.hp-main .news-grid { margin-bottom: 0; }
.hp-side { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 18px; }

/* Category rows */
.cat-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.cat-lead { display: block; }
.cat-lead-media { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e2e8f0; margin-bottom: 12px; }
.cat-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cat-lead:hover img { transform: scale(1.04); }
.cat-lead h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.cat-lead:hover h3 { color: var(--red); }
.cat-lead p {
    margin: 0; font-size: 14px; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:first-child a { padding-top: 0; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; gap: 12px; padding: 11px 0; align-items: flex-start; }
.cat-list img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #e2e8f0; }
.cat-list span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-list strong {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--navy);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-list a:hover strong { color: var(--red); }
.cat-list small { font-size: 12px; color: #64748b; }

/* Card polish */
.news-card { border-radius: 12px; }
.news-card-title { font-size: 15px; }
.panel { border-radius: 12px; }
.panel-title { font-size: 15px; border-bottom: 1px solid var(--border); position: relative; }
.panel-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; background: var(--red); }

@media (max-width: 1024px) {
    .hp-hero, .hp-layout { grid-template-columns: 1fr; }
    .hp-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .hp-side { position: static; }
}
@media (max-width: 640px) {
    .hp-hero-side, .cat-row { grid-template-columns: 1fr; }
    .hp-main .news-grid-3 { grid-template-columns: 1fr; }
    .authors-strip { grid-auto-columns: 70%; }
}


/* ================= SLIDER ARROWS, PROPORTIONS & MOBILE MENU FIX ================= */
.hp-hero {
    align-items: stretch;
}
.hp-hero .slider-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hp-hero .slider-stage {
    aspect-ratio: 16 / 9;
    flex: 1;
    touch-action: pan-y;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.slider-arrow:hover {
    background: var(--red);
    border-color: var(--red);
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-controls {
    padding: 10px 12px;
    background: var(--navy);
}
.slider-nums {
    display: flex;
    width: 100%;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.slider-nums::-webkit-scrollbar { display: none; }
.slider-num {
    flex: 1 0 28px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
}
.slider-num.active, .slider-num:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.hp-hero-side {
    height: 100%;
}
.overlay-card {
    min-height: 0;
    height: 100%;
}

/* Mobile Menu Fix */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
    }
    .main-nav {
        display: none;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav.open .nav-list {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        padding: 8px 0 12px;
    }
    .main-nav.open .nav-list a {
        padding: 11px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .hp-hero .slider-stage {
        aspect-ratio: 16 / 10;
    }
    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
    .overlay-card {
        min-height: 180px;
    }
}
