/*
Theme Name: ExpressNews
Theme URI: https://example.com
Author: ExpressNews
Author URI: https://example.com
Description: Новинний портал у стилі ТСН — для українських медіа
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expressnews
Tags: news, blog, ukrainian
*/

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: #f4f4f4;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6,
.site-logo,
.section-heading h2,
.post-title,
.hero-title,
.cat-page-header h1,
.widget-title {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
}
a { text-decoration: none; color: inherit; }
a:hover { color: #e8002d; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== VARIABLES ========== */
:root {
    --red: #e8002d;
    --dark: #1a1a1a;
    --gray: #6b6b6b;
    --light-gray: #f4f4f4;
    --border: #e0e0e0;
    --white: #ffffff;
    --container: 1240px;
}

/* ========== CONTAINER ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== TOPBAR ========== */
.topbar {
    background: #111;
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-date { color: #aaa; }
/* КУРС ВАЛЮТ */
.topbar-currency {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #333;
    padding-left: 14px;
    margin-left: 4px;
}
.currency-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.currency-item {
    display: flex;
    align-items: center;
    gap: 3px;
}
.currency-code {
    font-size: 10px;
    color: #777;
    font-weight: 600;
}
.currency-rate {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}
.currency-sign {
    font-size: 10px;
    color: #666;
}
.currency-date {
    font-size: 10px;
    color: #555;
}

.topbar-social {
    display: flex;
    gap: 10px;
    align-items: center;
}
.topbar-social a {
    color: #aaa;
    font-size: 13px;
    transition: color 0.2s;
}
.topbar-social a:hover { color: var(--red); }

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 24px;
}
.site-logo {
    background: var(--red);
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo a { color: var(--white); }

/* ========== NAVIGATION ========== */
.main-nav { flex: 1; overflow: hidden; }
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul li a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background: var(--red);
    color: var(--white);
}

.header-search {
    flex-shrink: 0;
}
.header-search form {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-search input {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    width: 160px;
    outline: none;
    transition: border-color 0.2s;
}
.header-search input:focus { border-color: var(--red); }
.header-search button {
    background: var(--red);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.header-search button:hover { background: #c40025; }

/* ========== BREAKING NEWS TICKER ========== */
.breaking-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
    overflow: hidden;
}
.breaking-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.breaking-label {
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.breaking-ticker {
    overflow: hidden;
    flex: 1;
}
.breaking-ticker ul {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
}
.breaking-ticker ul li a {
    font-size: 13px;
    color: var(--dark);
    white-space: nowrap;
}
.breaking-ticker ul li a:hover { color: var(--red); }
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    margin-bottom: 32px;
}
.hero-main {
    position: relative;
    height: 480px;
    overflow: hidden;
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 24px 24px;
    color: white;
}
.hero-category-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: white;
}
.hero-title a { color: white; }
.hero-title a:hover { color: #ffcdd2; }
.hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Hero sub-posts */
.hero-sub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #333;
}
.hero-sub-item {
    background: #222;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    transition: background 0.2s;
}
.hero-sub-item:hover { background: #2a2a2a; }
.hero-sub-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
}
.hero-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-sub-info { flex: 1; }
.hero-sub-cat {
    font-size: 10px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hero-sub-title {
    font-size: 13px;
    color: #ddd;
    line-height: 1.4;
    font-weight: 500;
}
.hero-sub-title a { color: #ddd; }
.hero-sub-title a:hover { color: #fff; }

/* ========== MAIN CONTENT LAYOUT ========== */
.content-area {
    padding-bottom: 40px;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* ========== SECTION HEADING ========== */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--red);
    padding-bottom: 10px;
}
.section-heading h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
}
.section-heading h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--red);
    margin-top: 4px;
}
.section-heading .all-link {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
    border: 1px solid var(--red);
    padding: 4px 12px;
    border-radius: 3px;
    transition: all 0.2s;
}
.section-heading .all-link:hover {
    background: var(--red);
    color: white;
}

/* ========== NEWS GRID ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.news-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--border);
}
.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.news-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-body { padding: 14px 16px 16px; }
.news-card-cat {
    font-size: 11px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.news-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark);
}
.news-card-title a:hover { color: var(--red); }
.news-card-excerpt {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    font-size: 12px;
    color: #aaa;
    display: flex;
    gap: 10px;
    align-items: center;
}
.news-card-meta .dot::before { content: '•'; }

/* Featured news card (first) */
.news-grid .news-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
}
.news-grid .news-card:first-child .news-card-thumb {
    aspect-ratio: auto;
    height: 220px;
}

/* ========== SIDEBAR ========== */
.sidebar { position: sticky; top: 72px; }

.widget {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}
.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    padding: 13px 16px;
    border-bottom: 3px solid var(--red);
    background: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======= ОСТАННІ ПУБЛІКАЦІЇ (стиль kyivcitynews) ======= */
.recent-list { padding: 0; }
.recent-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
    align-items: flex-start;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: #fafafa; }

.recent-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    border-radius: 5px;
    overflow: hidden;
    display: block;
}
.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.recent-item:hover .recent-thumb img { transform: scale(1.05); }

.recent-info { flex: 1; min-width: 0; }
.recent-cat {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--red);
    background: #fff0f3;
    border: 1px solid #ffd6dc;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 5px;
}
.recent-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-title a:hover { color: var(--red); }
.recent-date {
    font-size: 11px;
    color: #bbb;
    font-family: 'Inter', sans-serif;
}

/* ======= РУБРИКИ ======= */
.widget-cats .widget-title { }
.cats-list { padding: 8px 0; }
.cats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
}
.cats-item:last-child { border-bottom: none; }
.cats-item:hover { background: #fafafa; }
.cats-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cats-link::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}
.cats-link:hover { color: var(--red); }
.cats-count {
    font-size: 11px;
    background: #f4f4f4;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ======= ПОПУЛЯРНЕ ======= */
.popular-list { }
.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f4;
    align-items: flex-start;
    transition: background 0.15s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: #fafafa; }
.popular-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #ebebeb;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.popular-body { flex: 1; }
.popular-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 4px;
}
.popular-title a:hover { color: var(--red); }
.popular-date {
    font-size: 11px;
    color: #bbb;
    font-family: 'Inter', sans-serif;
}

/* Ticker (for home page sidebar) */
.ticker-list { }
.ticker-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
}
.ticker-item:last-child { border-bottom: none; }
.ticker-item:hover { background: #fafafa; }
.ticker-item-time {
    font-size: 11px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}
.ticker-item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
}
.ticker-item-title a:hover { color: var(--red); }

/* ========== CATEGORY SECTION ========== */
.category-section { margin-bottom: 36px; }

/* ========== SINGLE POST ========== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 24px 0 48px;
}
.post-article {
    background: white;
    border-radius: 8px;
    padding: 32px 36px;
    border: 1px solid var(--border);
}

/* Header */
.post-header { margin-bottom: 28px; }
.post-category-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

/* ВЕЛИКИЙ ЗАГОЛОВОК у стилі TSN */
.post-title {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 900;
    line-height: 1.18;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* Лід-абзац */
.post-lead {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #444;
    border-left: 4px solid var(--red);
    padding: 10px 18px;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
    margin-bottom: 18px;
    font-style: italic;
}

/* Мета-рядок */
.post-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--gray);
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}
.post-meta svg { vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.post-meta-author {
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-reading { display: flex; align-items: center; gap: 4px; }

/* SHARE BUTTONS */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.share-bar--bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.share-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 5px;
    color: white;
    transition: opacity 0.2s, transform 0.15s;
    font-family: 'Montserrat', sans-serif;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: white; }
.share-fb { background: #1877f2; }
.share-tg { background: #26a5e4; }
.share-tw { background: #000; }
.share-vb { background: #7360f2; }
.share-btn svg { flex-shrink: 0; }

/* Головне фото статті */
.post-featured-image {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.post-img-caption {
    font-size: 12px;
    color: #999;
    padding: 8px 12px;
    background: #fafafa;
    font-style: italic;
    text-align: center;
}

/* Текст статті — Merriweather для кращої читабельності */
.post-content {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 17px;
    line-height: 1.85;
    color: #222;
}
.post-content p { margin-bottom: 22px; }
.post-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 36px 0 14px;
    color: var(--dark);
    line-height: 1.25;
}
.post-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--dark);
}
.post-content blockquote {
    border-left: 5px solid var(--red);
    padding: 16px 24px;
    background: #fafafa;
    margin: 28px 0;
    font-style: italic;
    color: #444;
    border-radius: 0 6px 6px 0;
    font-size: 18px;
    line-height: 1.7;
}
.post-content a { color: var(--red); text-decoration: underline; }
.post-content ul, .post-content ol {
    margin: 0 0 22px 28px;
}
.post-content li { margin-bottom: 8px; }
.post-content img {
    border-radius: 6px;
    margin: 16px 0;
}

/* Теги */
.post-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.post-tags-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-tag {
    background: var(--light-gray);
    color: var(--gray);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.post-tag:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* Related posts */
.related-posts { margin-top: 36px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ========== CATEGORY PAGE ========== */
.cat-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 28px 0;
}
.cat-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--red);
}
.cat-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}
.cat-page-header .cat-badge {
    background: var(--red);
    color: white;
    width: 8px;
    height: 30px;
    border-radius: 2px;
    display: inline-block;
}
.cat-posts-list { display: flex; flex-direction: column; gap: 20px; }
.cat-post-card {
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.cat-post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.cat-post-thumb { overflow: hidden; }
.cat-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-post-body { padding: 16px 20px; }
.cat-post-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 8px;
}
.cat-post-title a:hover { color: var(--red); }
.cat-post-excerpt {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-post-meta { font-size: 12px; color: #aaa; }
.read-more-btn {
    display: inline-block;
    margin-top: 12px;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    transition: background 0.2s;
}
.read-more-btn:hover { background: #c40025; color: white; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 28px 0 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
    transition: all 0.2s;
}
.pagination .current,
.pagination a:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ========== 404 ========== */
.error-404-page {
    text-align: center;
    padding: 80px 20px;
}
.error-404-page h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}
.error-404-page h2 { font-size: 28px; margin-bottom: 12px; }
.error-404-page p { font-size: 16px; color: var(--gray); margin-bottom: 24px; }
.btn-home {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}
.btn-home:hover { background: #c40025; color: white; }

/* ========== SEARCH PAGE ========== */
.search-header {
    margin-bottom: 24px;
    padding: 20px 0;
    border-bottom: 3px solid var(--red);
}
.search-header h1 { font-size: 22px; font-weight: 800; }
.search-header span { color: var(--red); }

/* ========== FOOTER ========== */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 40px 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
}
.footer-logo {
    background: var(--red);
    color: white;
    font-size: 20px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 14px;
}
.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    background: #222;
    color: #aaa;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #555;
}
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #888; }

/* ========== NO THUMBNAIL ========== */
.no-thumb {
    background: linear-gradient(135deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 40px;
    width: 100%;
    height: 100%;
    min-height: 160px;
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    font-size: 13px;
    color: var(--gray);
    padding: 10px 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: #ccc; }
.breadcrumbs .current { color: var(--dark); font-weight: 600; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .content-grid,
    .single-layout,
    .cat-page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-sub { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-grid .news-card:first-child { grid-template-columns: 1fr; }
    .news-grid .news-card:first-child .news-card-thumb { height: 220px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .cat-post-card { grid-template-columns: 1fr; }
    .cat-post-thumb { height: 200px; }
    .header-search { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar { display: none; }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}
