/*
Theme Name: NewsGTA
Theme URI: https://newsgta.com
Author: NewsGTA
Description: Light, fast Yahoo-style news portal theme for newsgta.com — GTA 6 news, cheat codes and guides. Auto-creates categories, pages, menu and demo articles on activation.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsgta
Tags: news, magazine, light, responsive, block-styles
*/

/* ================= RESET & TOKENS ================= */
@font-face {
        font-family: 'Anton';
        src: url('assets/fonts/anton-latin.woff2') format('woff2');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
        --accent: #e0004d;
        --accent-dark: #b8003f;
        --purple: #8b2bff;
        --grad: linear-gradient(120deg, #ff2d78 0%, #8b2bff 100%);
        --ink: #16181d;
        --ink-2: #33363f;
        --muted: #6b7080;
        --line: #e6e8ee;
        --soft: #f7f8fa;
        --radius: 8px;
        --radius-lg: 12px;
        --shadow: 0 4px 16px rgba(22, 24, 29, 0.10);
        --c-news: #e0004d;
        --c-cheat: #00a67e;
        --c-gtav: #0e8de0;
        --c-guides: #ef8f00;
        --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background: #fff;
        color: var(--ink);
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { font-family: inherit; }

::selection { background: #ffd3e2; color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.skip-link {
        position: absolute; left: -9999px; top: 0; z-index: 2000;
        background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Reading progress (single posts) */
.progress-bar {
        position: fixed; top: 0; left: 0; height: 3px; width: 0;
        background: var(--grad); z-index: 1600; transition: width 0.08s linear;
}

/* ================= HEADER ================= */
.site-header {
        position: sticky; top: 0; background: #fff;
        border-bottom: 1px solid var(--line); z-index: 1000;
}

.main-nav {
        padding: 0 24px; display: flex; align-items: center; gap: 16px;
        height: 64px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.brand-icon {
        width: 40px; height: 40px; border-radius: 10px;
        background: var(--grad);
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
        font-family: var(--font-display);
}

.brand-text {
        font-family: var(--font-display);
        font-size: 24px; letter-spacing: 1px; color: var(--ink);
        line-height: 1; display: inline-flex; align-items: baseline;
        text-transform: uppercase;
}
.brand-text .gta {
        background: var(--grad);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: var(--accent);
}

.custom-logo { max-height: 44px; width: auto; }

.search-box { position: relative; display: flex; align-items: center; margin-left: auto; flex-shrink: 0; }

.search-box form { display: flex; align-items: center; position: relative; }

.search-box input {
        width: 230px; padding: 9px 44px 9px 16px;
        border: 1px solid var(--line); border-radius: 22px;
        font-size: 13.5px; outline: none; font-family: inherit; background: var(--soft);
        transition: all 0.2s ease;
}
.search-box input:focus { border-color: var(--accent); background: #fff; width: 290px; box-shadow: 0 0 0 3px rgba(224, 0, 77, 0.08); }

.search-box .search-submit {
        position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
        background: var(--accent); border: none; width: 30px; height: 30px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        transition: background 0.2s ease;
}
.search-box .search-submit:hover { background: var(--accent-dark); }
.search-box .search-submit svg { width: 15px; height: 15px; }
.search-box .search-submit svg circle, .search-box .search-submit svg line { stroke: #fff; fill: none; }

.search-toggle {
        display: none; background: none; border: none; cursor: pointer;
        padding: 8px; color: var(--ink); border-radius: 50%; transition: background 0.2s ease;
}
.search-toggle:hover { background: var(--soft); }
.search-toggle svg { width: 20px; height: 20px; display: block; }
.search-toggle svg circle, .search-toggle svg path { stroke: currentColor; fill: none; }

/* Category navigation */
.category-nav { background: #fff; padding: 0 24px; border-bottom: 1px solid var(--line); }

.category-nav ul {
        display: flex; list-style: none; gap: 0; height: 44px;
        align-items: center; margin: 0; padding: 0;
}

.category-nav li { height: 100%; display: flex; align-items: center; flex-shrink: 0; }

.category-nav li a {
        display: flex; align-items: center; padding: 0 16px; height: 100%;
        color: var(--ink); font-size: 14px; font-weight: 500;
        border-bottom: 3px solid transparent; transition: all 0.2s ease;
}
.category-nav li a:hover,
.category-nav li.current-menu-item > a,
.category-nav li.current_page_item > a {
        color: var(--accent); border-bottom-color: var(--accent); text-decoration: none;
}

/* ================= SITE MAIN ================= */
.site-main { max-width: 1400px; margin: 0 auto; padding: 28px 20px 8px; min-height: 46vh; }

/* ================= HERO ================= */
.hero-section { margin-bottom: 34px; }

.hero-card {
        display: grid; grid-template-columns: 1.08fr 1fr; gap: 28px;
        background: #fff; border-radius: var(--radius); overflow: hidden;
        align-items: center;
}

.hero-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.hero-card:hover .hero-image img { transform: scale(1.02); }

.hero-content { display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }

.badge {
        display: inline-block; color: #fff; padding: 4px 12px; border-radius: 4px;
        font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
        margin-bottom: 14px; width: fit-content; text-decoration: none;
}
.badge:hover { opacity: 0.88; color: #fff; text-decoration: none; }

.badge-news { background: var(--c-news); }
.badge-cheat-codes { background: var(--c-cheat); }
.badge-gta-v { background: var(--c-gtav); }
.badge-guides { background: var(--c-guides); }
.badge-gta-6 { background: var(--grad); }

.hero-title { font-size: 33px; font-weight: 800; line-height: 1.22; margin-bottom: 14px; letter-spacing: -0.4px; }
.hero-title a { color: var(--ink); text-decoration: none; }
.hero-title a:hover { color: var(--accent); text-decoration: none; }

.hero-excerpt { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.news-source { font-size: 13px; color: #9aa0ae; }
.news-source span, .news-source .src { font-weight: 600; color: var(--ink-2); }
.news-source a { color: var(--ink-2); font-weight: 600; }
.news-source a:hover { color: var(--accent); }

/* ================= TRENDING WIDGET ================= */
.trending-section {
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
        margin-bottom: 34px; overflow: hidden;
}

.trending-header { padding: 20px 20px 0; }

.trending-title { font-size: 18px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.trending-title svg { width: 20px; height: 20px; flex-shrink: 0; }
.trending-title svg path { fill: var(--accent); }

.trending-categories {
        display: flex; gap: 8px; padding: 16px 20px; overflow-x: auto;
        border-bottom: 1px solid var(--soft); scrollbar-width: thin;
}
.trending-categories::-webkit-scrollbar { height: 4px; }
.trending-categories::-webkit-scrollbar-track { background: var(--soft); }
.trending-categories::-webkit-scrollbar-thumb { background: #d5d8e0; border-radius: 2px; }

.category-tab {
        padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px;
        background: #fff; color: var(--ink); font-size: 13px; font-weight: 500;
        cursor: pointer; white-space: nowrap; transition: all 0.2s ease;
}
.category-tab:hover { background: var(--soft); border-color: var(--accent); }
.category-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.trending-grid { padding: 16px 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }

.trending-card { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); transition: background 0.2s ease; }
.trending-card:hover { background: var(--soft); }

.trending-card-content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }

.trending-source { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.source-icon {
        width: 20px; height: 20px; background: var(--accent); border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 10px; font-weight: 700; flex-shrink: 0;
}

.trending-headline {
        font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trending-headline a { color: inherit; text-decoration: none; }
.trending-headline a:hover { color: var(--accent); text-decoration: none; }

.trending-time { font-size: 11px; color: #9aa0ae; }

.trending-thumb { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ================= FEATURED GRID ================= */
.featured-grid {
        display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
        margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--line);
}

.featured-card { display: flex; flex-direction: column; gap: 10px; }

.card-image { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.featured-card:hover .card-image img, .related-card:hover .card-image img { transform: scale(1.04); }

.card-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); }
.card-category:hover { color: var(--accent-dark); }

.featured-card .card-title {
        font-size: 14.5px; font-weight: 700; line-height: 1.42; color: var(--ink);
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card .card-title a { color: inherit; text-decoration: none; }
.featured-card .card-title a:hover, .related-card .card-title a:hover { color: var(--accent); text-decoration: none; }

.card-source { font-size: 12px; color: #9aa0ae; }
/* ================= NEWS FEED ================= */
.news-feed { display: flex; flex-direction: column; gap: 22px; }

.news-item {
        display: grid; grid-template-columns: 170px 1fr; gap: 18px;
        padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; padding-bottom: 6px; }

.news-item .item-image { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.news-item .item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.news-item:hover .item-image img { transform: scale(1.04); }

.news-item .item-content { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }

.news-item .item-category { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.news-item .item-category:hover { color: var(--accent-dark); }

.news-item .item-title {
        font-size: 18.5px; font-weight: 700; line-height: 1.38; color: var(--ink); letter-spacing: -0.2px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .item-title a { color: inherit; text-decoration: none; }
.news-item .item-title a:hover { color: var(--accent); text-decoration: none; }

.news-item .item-excerpt {
        font-size: 14px; color: var(--muted); line-height: 1.55;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.news-item .item-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9aa0ae; }
.news-item .item-meta .source, .news-item .item-meta .src { font-weight: 600; color: var(--ink-2); }
.news-item .item-meta a { color: var(--ink-2); font-weight: 600; }
.news-item .item-meta a:hover { color: var(--accent); }

.feed-empty { padding: 48px 0; text-align: center; color: var(--muted); font-size: 15px; }

/* ================= LOAD MORE ================= */
.load-more-container { display: flex; justify-content: center; padding: 30px 20px 44px; }

.load-more-button {
        display: inline-flex; align-items: center; justify-content: center; gap: 10px;
        padding: 13px 46px; background: #fff; color: var(--ink);
        border: 2px solid var(--ink); border-radius: 50px;
        font-size: 15px; font-weight: 700; cursor: pointer;
        transition: all 0.25s ease; min-height: 50px; min-width: 220px; user-select: none;
        -webkit-tap-highlight-color: transparent;
}
.load-more-button:hover {
        background: var(--ink); color: #fff; transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(22, 24, 29, 0.18); text-decoration: none;
}
.load-more-button:disabled, .load-more-button.loading { cursor: not-allowed; opacity: 0.75; pointer-events: none; }

.load-more-spinner { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.load-more-spinner svg { animation: ngta-spin 0.8s linear infinite; }
@keyframes ngta-spin { to { transform: rotate(360deg); } }

/* ================= PAGINATION ================= */
.pagination {
        display: flex; justify-content: center; align-items: center; gap: 8px;
        padding: 30px 0 40px; flex-wrap: wrap;
}
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pagination .page-numbers {
        min-width: 40px; height: 40px; padding: 0 10px; border-radius: 50%;
        border: 1px solid var(--line); background: #fff; color: var(--ink);
        font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
        transition: all 0.2s ease; text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; }
.pagination .page-numbers.prev, .pagination .page-numbers.next { min-width: auto; padding: 0 18px; border-radius: 20px; }

/* ================= ARCHIVE / SEARCH HEADER ================= */
.archive-header { padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }

.archive-kicker {
        display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px;
}

.archive-header h1 { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.4px; line-height: 1.2; }
.archive-header .archive-desc { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 760px; }

/* ================= SINGLE ARTICLE ================= */
.article-container { max-width: 820px; margin: 0 auto; padding: 10px 16px 0; }

.article-badge {
        display: inline-block; color: #fff; padding: 5px 14px; border-radius: 4px;
        font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
        margin-bottom: 18px; text-decoration: none;
}
.article-badge:hover { opacity: 0.88; color: #fff; text-decoration: none; }
.article-badge.badge-news { background: var(--c-news); }
.article-badge.badge-cheat-codes { background: var(--c-cheat); }
.article-badge.badge-gta-v { background: var(--c-gtav); }
.article-badge.badge-guides { background: var(--c-guides); }
.article-badge.badge-gta-6 { background: var(--grad); }

.article-title {
        font-size: 40px; font-weight: 800; line-height: 1.18; margin-bottom: 20px;
        color: var(--ink); letter-spacing: -0.6px;
}

.article-standfirst { font-size: 18px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }

.article-meta {
        display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
        font-size: 14px; color: var(--muted);
        margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}

.article-author { display: flex; align-items: center; gap: 8px; }

.author-avatar {
        width: 34px; height: 34px; border-radius: 50%;
        background: var(--grad); display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.5px; flex-shrink: 0;
        overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name { font-weight: 700; color: var(--ink); }
.author-name a { color: var(--ink); }
.author-name a:hover { color: var(--accent); text-decoration: none; }

.article-date, .read-time { display: flex; align-items: center; gap: 6px; }
.article-date svg, .read-time svg { width: 15px; height: 15px; flex-shrink: 0; }
.article-date svg *, .read-time svg * { stroke: #9aa0ae; fill: none; }

/* Hero image — always 16:9, large */
.article-hero { margin-bottom: 8px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }

.article-caption {
        padding: 12px 16px; font-size: 13px; color: var(--muted);
        background: var(--soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        margin-bottom: 20px;
}

/* Share buttons under the image */
.share-below { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.share-below .share-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-right: 4px; }

.share-below-btn {
        display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
        border-radius: var(--radius); font-size: 14px; font-weight: 600; color: #fff;
        transition: all 0.2s ease;
}
.share-below-btn:hover { text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.share-below-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.share-below-btn svg path { fill: currentColor; }

.share-wa { background: #25d366; }
.share-wa:hover { background: #1da851; }
.share-fb { background: #1877f2; }
.share-fb:hover { background: #1465d0; }
.share-x { background: #000; }
.share-x:hover { background: #222; }
.share-tg { background: #229ed9; }
.share-tg:hover { background: #1c88b8; }

/* Article body typography */
.article-body { font-size: 18px; line-height: 1.72; color: #20232b; }

.article-body p { margin-bottom: 22px; }
.article-body p.lead { font-size: 20px; font-weight: 500; color: var(--ink); }

.article-body h2 { font-size: 26px; font-weight: 800; margin: 34px 0 16px; color: var(--ink); letter-spacing: -0.3px; }
.article-body h3 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; color: var(--ink); }
.article-body h4 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }

.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-dark); }

.article-body blockquote {
        margin: 30px 0; padding: 22px 26px; background: var(--soft);
        border-left: 4px solid var(--accent); font-style: italic; color: var(--ink-2);
        border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--ink); }

.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 24px auto; }
.article-body figure { margin: 26px 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; }

.article-body table {
        width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px;
        border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.article-body table th, .article-body table td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.article-body table th { background: var(--soft); font-weight: 700; color: var(--ink); }
.article-body table tr:nth-child(even) { background: #fbfbfd; }

.article-body code {
        background: var(--soft); border: 1px solid var(--line); border-radius: 6px;
        padding: 2px 8px; font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        color: var(--accent-dark); font-weight: 600;
}

.article-body pre {
        background: #14161c; color: #e8eaf2; border-radius: var(--radius);
        padding: 20px; overflow-x: auto; margin: 26px 0; font-size: 14.5px; line-height: 1.6;
}
.article-body pre code { background: none; border: none; color: inherit; padding: 0; font-weight: 400; }

/* Non-affiliation note at article end */
.article-note {
        margin: 34px 0 0; padding: 14px 18px; background: var(--soft);
        border: 1px solid var(--line); border-radius: var(--radius);
        font-size: 13px; color: var(--muted); line-height: 1.6;
}
.article-note strong { color: var(--ink-2); }

/* Prev / next */
.post-navigation {
        display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
        margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line);
}

.post-nav-item {
        display: flex; flex-direction: column; gap: 8px; padding: 20px 22px;
        background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
        color: var(--ink); transition: all 0.2s ease; min-height: 92px; justify-content: center;
}
.post-nav-item:hover {
        background: #fff; border-color: var(--accent); transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(224, 0, 77, 0.08); text-decoration: none;
}
.post-nav-next { text-align: right; align-items: flex-end; }
.post-nav-disabled { background: transparent; border: 1px dashed var(--line); pointer-events: none; }

.post-nav-direction {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.6px;
}
.post-nav-direction svg { width: 14px; height: 14px; }
.post-nav-direction svg path { stroke: currentColor; fill: none; }

.post-nav-title {
        font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--ink);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav-item:hover .post-nav-title { color: var(--accent); }

/* Related */
.related-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-title { font-size: 19px; font-weight: 800; margin-bottom: 22px; color: var(--ink); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: flex; flex-direction: column; gap: 10px; }

.related-card .card-title {
        font-size: 14.5px; font-weight: 700; line-height: 1.42; color: var(--ink);
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.related-card .card-title a { color: inherit; text-decoration: none; }
/* ================= STATIC PAGES ================= */
.page-container { max-width: 820px; margin: 0 auto; padding: 26px 16px 0; }

.page-kicker {
        display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px;
}

.page-title { font-size: 36px; font-weight: 800; color: var(--ink); margin-bottom: 22px; line-height: 1.2; letter-spacing: -0.5px; }

.entry-content { font-size: 17px; line-height: 1.75; color: #20232b; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2 { font-size: 26px; font-weight: 800; margin: 30px 0 14px; color: var(--ink); }
.entry-content h3 { font-size: 21px; font-weight: 700; margin: 24px 0 12px; color: var(--ink); }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 26px; }
.entry-content li { margin-bottom: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.entry-content table th, .entry-content table td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content table th { background: var(--soft); }

/* Disclosure box (About / Disclaimer) */
.disc-box {
        margin: 26px 0 6px; padding: 18px 22px; background: #fff4f7;
        border: 1px solid #ffd3e2; border-left: 4px solid var(--accent);
        border-radius: var(--radius); font-size: 15px; line-height: 1.65; color: var(--ink-2);
}
.disc-box strong { color: var(--ink); }

/* About value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 10px; }
.value-card {
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
        padding: 20px; transition: all 0.2s ease;
}
.value-card:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(224, 0, 77, 0.07); }
.value-card h3 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; color: var(--ink); }
.value-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.value-card .ic { font-size: 22px; }

/* ================= CONTACT ================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; padding-bottom: 30px; }

.contact-info h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.contact-info > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

.contact-method {
        display: flex; gap: 12px; align-items: flex-start;
        padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
        background: var(--soft); margin-bottom: 12px;
}
.contact-method .ci {
        width: 38px; height: 38px; border-radius: 10px; background: var(--grad);
        display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.contact-method .ci svg { width: 18px; height: 18px; }
.contact-method .ci svg * { stroke: #fff; fill: none; }
.contact-method .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.contact-method .v { font-size: 14.5px; color: var(--ink); font-weight: 600; word-break: break-all; }
.contact-method .v a { color: var(--accent); }

.contact-form {
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
        padding: 26px; box-shadow: 0 2px 12px rgba(22, 24, 29, 0.04);
}
.contact-form h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--ink); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.contact-form label .req { color: var(--accent); }

.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
        width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
        font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--soft);
        transition: all 0.2s ease; outline: none; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
        border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(224, 0, 77, 0.08);
}

.contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-submit {
        display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
        padding: 12px 30px; background: var(--accent); color: #fff; border: none; border-radius: 24px;
        font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.contact-submit:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(224, 0, 77, 0.3); }

.form-notice {
        padding: 13px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; font-weight: 600;
}
.form-notice.ok { background: #e9fbf3; color: #067a4e; border: 1px solid #b5ecd4; }
.form-notice.err { background: #fff0f3; color: #b00037; border: 1px solid #ffc9d6; }

/* ================= COMMENTS ================= */
.comments-area { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.comments-title { font-size: 19px; font-weight: 800; margin-bottom: 18px; color: var(--ink); }

.comment-list { list-style: none; }
.comment-list .comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.comment-list .children { list-style: none; margin-top: 14px; padding-left: 20px; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.comment-author img { width: 32px; height: 32px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--ink); font-style: normal; }
.comment-content { font-size: 15px; color: var(--ink-2); }
.comment-content p { margin-bottom: 8px; }
.reply a { font-size: 13px; font-weight: 700; color: var(--accent); }

.comment-respond { margin-top: 22px; }
.comment-reply-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
        width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius);
        font-size: 14px; font-family: inherit; background: var(--soft); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); background: #fff; }
.comment-form .submit {
        background: var(--accent); color: #fff; border: none; border-radius: 22px;
        padding: 11px 26px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); }
.comment-notes { font-size: 13px; color: var(--muted); }

/* ================= FOOTER ================= */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 20px 0; margin-top: 48px; text-align: center; }

.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-icon { width: 36px; height: 36px; font-size: 14px; }
.footer-brand .brand-text { font-size: 21px; }

.footer-about { max-width: 640px; margin: 0 auto 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }

.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.footer-social-btn {
        display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px;
        background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
        font-size: 13.5px; font-weight: 600; transition: all 0.2s ease;
}
.footer-social-btn:hover {
        border-color: var(--accent); color: var(--accent); transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(224, 0, 77, 0.12); text-decoration: none;
}
.footer-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-social-btn svg path { fill: currentColor; }

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.footer-links a { color: var(--muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-disclaimer { max-width: 760px; margin: 18px auto 0; font-size: 12.5px; color: #9aa0ae; line-height: 1.65; }
.footer-disclaimer strong { color: var(--muted); }

.footer-bottom { padding: 16px 0 22px; font-size: 13px; color: #9aa0ae; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* Back to top */
.to-top {
        position: fixed; right: 22px; bottom: 22px; z-index: 900;
        width: 46px; height: 46px; border-radius: 50%;
        background: var(--ink); color: #fff; border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden; transform: translateY(12px);
        transition: all 0.25s ease; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ================= 404 ================= */
.error-404 { max-width: 640px; margin: 0 auto; text-align: center; padding: 60px 16px 40px; }
.error-code {
        font-family: var(--font-display); font-size: 110px; line-height: 1;
        background: var(--grad); -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
.error-404 h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.error-404 p { color: var(--muted); margin-bottom: 24px; }
.error-404 .btn-home {
        display: inline-flex; padding: 12px 30px; background: var(--ink); color: #fff;
        border-radius: 24px; font-weight: 700; font-size: 14px; transition: all 0.2s ease;
}
.error-404 .btn-home:hover { background: var(--accent); color: #fff; text-decoration: none; transform: translateY(-2px); }

/* ================= UTILITIES ================= */
.screen-reader-text {
        border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
        height: 1px; width: 1px; margin: -1px; overflow: hidden;
        padding: 0; position: absolute !important; word-wrap: normal !important;
}

/* Image fallback block (no featured image yet) */
.cover-fallback {
        width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
        background:
                radial-gradient(120% 140% at 15% 10%, rgba(255, 45, 120, 0.32) 0%, rgba(255, 45, 120, 0) 55%),
                radial-gradient(130% 150% at 85% 90%, rgba(139, 43, 255, 0.30) 0%, rgba(139, 43, 255, 0) 55%),
                linear-gradient(160deg, #1b1d26 0%, #101218 100%);
}
.cover-fallback span {
        font-family: var(--font-display); font-size: clamp(20px, 4vw, 42px);
        letter-spacing: 2px; color: #fff; text-transform: uppercase; opacity: 0.92;
}

/* Post tags */
.tags-row { margin-top: 26px; }
.tags-row a {
        display: inline-block; margin: 0 8px 8px 0; padding: 6px 14px;
        background: var(--soft); border: 1px solid var(--line); border-radius: 16px;
        font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: all 0.2s ease;
}
.tags-row a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.no-comments { font-size: 14px; color: var(--muted); }

/* Standalone search form (404 / empty search) */
.search-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 10px; }
.search-form input[type="search"] {
        flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 24px;
        font-size: 14px; font-family: inherit; background: var(--soft); outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--accent); background: #fff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
        .featured-grid { grid-template-columns: repeat(3, 1fr); }
        .hero-card { grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
        .hero-content { padding: 0; }
        .hero-title { font-size: 28px; }
        .value-grid { grid-template-columns: 1fr; }
        .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
        .main-nav { flex-wrap: nowrap; padding: 12px 16px; height: auto; min-height: 58px; }
        .search-box { margin-left: auto; }
        .search-box form { display: none; }
        .search-toggle { display: flex; }
        .search-box.search-open form {
                display: flex; position: absolute; right: 0; top: calc(100% + 6px);
                background: #fff; border-radius: 12px; padding: 8px;
                box-shadow: var(--shadow); border: 1px solid var(--line); z-index: 100;
        }
        .search-box.search-open input { width: 210px; }

        .category-nav { padding: 0 8px; }
        .category-nav ul { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
        .category-nav ul::-webkit-scrollbar { display: none; }
        .category-nav li a { padding: 0 12px; white-space: nowrap; }

        .site-main { padding: 20px 14px 6px; }
        .trending-grid { grid-template-columns: 1fr; }
        .featured-grid { grid-template-columns: repeat(2, 1fr); }
        .news-item { grid-template-columns: 124px 1fr; gap: 14px; }
        .news-item .item-title { font-size: 16.5px; }
        .hero-title { font-size: 24px; }
        .hero-excerpt { font-size: 15px; }

        .article-container { padding: 6px 14px 0; }
        .article-title { font-size: 28px; }
        .article-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
        .article-body { font-size: 16.5px; }
        .related-grid { grid-template-columns: 1fr; }
        .post-navigation { grid-template-columns: 1fr; }
        .post-nav-next { text-align: left; align-items: flex-start; }
        .share-below-btn span { display: none; }
        .share-below-btn { padding: 9px 13px; }
        .form-row { grid-template-columns: 1fr; }

        .page-title { font-size: 28px; }
}

@media (max-width: 480px) {
        .featured-grid { grid-template-columns: 1fr; }
        .news-item { grid-template-columns: 104px 1fr; }
        .brand-text { font-size: 20px; }
        .brand-icon { width: 34px; height: 34px; font-size: 13px; }
        .article-title { font-size: 24px; }
        .article-body { font-size: 16px; }
        .load-more-button { width: 100%; max-width: 320px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
