/* ================================================================
   HaberSitesi — Ultra-Modern Frontend CSS
   ================================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
    --red:      #c8102e;
    --red-dark: #a00d24;
    --red-lite: #fff0f2;
    --dark:     #0d1117;
    --dark2:    #161b22;
    --gray:     #6e7681;
    --light:    #f6f8fa;
    --white:    #ffffff;
    --border:   #e9ecef;
    --radius:   10px;
    --radius-sm:6px;
    --shadow-sm:0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:   0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:0 12px 40px rgba(0,0,0,.14);
    --transition:.22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2328;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Reading Progress Bar ────────────────────────────────────── */
#reading-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .1s linear;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .76rem;
}
.topbar a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar .bi { font-size: .82rem; }
.topbar-divider {
    width: 1px; height: 14px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

/* ── Site Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}
.logo-brand { display: flex; align-items: center; gap: .7rem; }
.logo-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--red), #ff3a57);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900; color: var(--white);
    flex-shrink: 0; box-shadow: 0 4px 12px rgba(200,16,46,.35);
    letter-spacing: -.02em;
}
.logo-text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.45rem; font-weight: 900;
    color: var(--dark); line-height: 1;
    letter-spacing: -.03em;
}
.logo-sub {
    font-size: .58rem;
    color: var(--gray);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 2px;
}
.search-box .form-control {
    border-radius: 20px 0 0 20px;
    border-right: 0;
    font-size: .85rem;
    background: var(--light);
}
.search-box .btn {
    border-radius: 0 20px 20px 0;
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.search-box .btn:hover { background: var(--red-dark); }

/* ── Breaking News ───────────────────────────────────────────── */
.breaking-bar {
    background: var(--red);
    padding: .5rem 0;
    overflow: hidden;
}
.breaking-badge {
    background: var(--white);
    color: var(--red);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: .3em .7em;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex; align-items: center; gap: .3rem;
}
.breaking-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse-dot 1.2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
    display: flex;
    gap: 3rem;
    animation: ticker-move 40s linear infinite;
    white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
    color: var(--white);
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--transition);
}
.ticker-item:hover { opacity: .8; }
.ticker-sep { color: rgba(255,255,255,.35); }
@keyframes ticker-move {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Main Navbar ─────────────────────────────────────────────── */
#mainNav {
    background: var(--dark2);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 80px;
    z-index: 850;
}
#mainNav .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .7rem .85rem;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 50%; right: 50%;
    height: 3px;
    background: var(--red);
    transition: left var(--transition), right var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--white) !important; }
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { left: 0; right: 0; }

/* ── Section Titles ─────────────────────────────────────────── */
.sec-title {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.25rem;
}
.sec-title-text {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.sec-title-bar { flex: 1; height: 2px; background: var(--border); }
.sec-title-bar::before {
    content: '';
    display: block;
    width: 60px; height: 100%;
    background: var(--red);
}
.sec-title-link {
    font-size: .78rem;
    color: var(--red);
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition);
}
.sec-title-link:hover { color: var(--red-dark); }

/* ── Hero / Feature Cards ────────────────────────────────────── */
.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark);
}
.hero-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.hero-card:hover img { transform: scale(1.04); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 55%, transparent 100%);
}
.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
}
.hero-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem; font-weight: 900;
    line-height: 1.3; color: var(--white);
    margin-bottom: .4rem;
    transition: color var(--transition);
}
.hero-card:hover .hero-content h2 { color: #ffd0d6; }
.hero-content-sm h2 { font-size: 1.05rem; }
.hero-meta { color: rgba(255,255,255,.6); font-size: .78rem; }

/* ── News Cards ──────────────────────────────────────────────── */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.news-card .nc-img {
    overflow: hidden;
    background: var(--light);
}
.news-card .nc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.news-card:hover .nc-img img { transform: scale(1.06); }
.news-card .nc-body { padding: 1rem 1.1rem 1.1rem; }
.news-card .nc-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.news-card:hover .nc-title { color: var(--red); }
.news-card .nc-summary {
    font-size: .8rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: .4rem 0 .6rem;
}
.news-card .nc-meta { font-size: .74rem; color: var(--gray); }

/* ── Mini Card (horizontal) ──────────────────────────────────── */
.mini-card {
    display: flex; align-items: flex-start; gap: .8rem;
    padding: .75rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.mini-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}
.mini-card .mc-img {
    width: 88px; height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--light);
}
.mini-card .mc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.mini-card:hover .mc-img img { transform: scale(1.08); }
.mini-card .mc-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.mini-card:hover .mc-title { color: var(--red); }

/* ── Category Badge ──────────────────────────────────────────── */
.cat-badge {
    display: inline-block;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .22em .65em;
    border-radius: 4px;
    background: var(--red);
    color: var(--white);
    transition: background var(--transition);
}
.cat-badge:hover { background: var(--red-dark); color: var(--white); }
.cat-badge.outline {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
}
.cat-badge.outline:hover { background: var(--red); color: var(--white); }

/* ── Breaking Badge ──────────────────────────────────────────── */
.badge-breaking {
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .08em;
    background: #ff3a57;
    color: var(--white);
    padding: .2em .55em;
    border-radius: 3px;
    animation: blink-break 2s infinite;
}
@keyframes blink-break {
    0%,100% { opacity: 1; }
    50% { opacity: .7; }
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sw {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.sw-head {
    background: var(--dark2);
    color: var(--white);
    padding: .7rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex; align-items: center; gap: .5rem;
    border-left: 4px solid var(--red);
}
.sw-head i { color: var(--red); }
.mr-item {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.mr-item:last-child { border-bottom: 0; }
.mr-item:hover { background: var(--light); }
.mr-num {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem; font-weight: 900;
    line-height: 1;
    color: #dde0e5;
    min-width: 26px;
    flex-shrink: 0;
}
.mr-num.top1 { color: var(--red); }
.mr-num.top2 { color: #fd7e14; }
.mr-num.top3 { color: #ffc107; }
.mr-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.mr-item:hover .mr-title { color: var(--red); }
.mr-meta { font-size: .72rem; color: var(--gray); margin-top: .25rem; }

/* ── Ad Block ────────────────────────────────────────────────── */
.ad-block {
    background: var(--light);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #bbb; font-size: .78rem; gap: .4rem;
    text-align: center; min-height: 90px;
}
.ad-block i { font-size: 1.8rem; color: #d0d5dd; }

/* ── Article Page ────────────────────────────────────────────── */
.article-wrap {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem 2.5rem;
}
@media (max-width: 576px) { .article-wrap { padding: 1.25rem 1.1rem; } }
.article-title {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem; font-weight: 900;
    line-height: 1.3; color: var(--dark);
}
.article-lead {
    font-size: 1.1rem; font-weight: 500;
    color: #444; line-height: 1.7;
    border-left: 4px solid var(--red);
    padding-left: 1rem;
    background: var(--red-lite);
    padding: .75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-hero {
    border-radius: var(--radius);
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2d333b;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body h2,
.article-body h3 {
    font-family: 'Merriweather', serif;
    font-weight: 800; margin: 2rem 0 .8rem;
    color: var(--dark);
}
.article-body h2 { font-size: 1.4rem; border-bottom: 2px solid var(--border); padding-bottom: .5rem; }
.article-body h3 { font-size: 1.15rem; }
.article-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 1rem auto; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body blockquote {
    border-left: 4px solid var(--red);
    padding: 1rem 1.25rem;
    background: var(--red-lite);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: #555;
    margin: 1.5rem 0;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .4rem; }
.article-body pre {
    background: #f6f8fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: .88rem;
}
.article-body table {
    width: 100%; border-collapse: collapse; margin: 1rem 0;
    font-size: .9rem;
}
.article-body table th, .article-body table td {
    border: 1px solid var(--border); padding: .5rem .75rem;
}
.article-body table th { background: var(--light); font-weight: 700; }

/* ── YouTube Embed ───────────────────────────────────────────── */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
    margin: 1rem 0 1.5rem;
}
.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── Share Buttons ───────────────────────────────────────────── */
.share-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .85rem;
    border-radius: 20px;
    font-size: .78rem; font-weight: 600;
    border: 1.5px solid;
    transition: all var(--transition);
    cursor: pointer;
}
.share-fb  { border-color: #1877f2; color: #1877f2; }
.share-fb:hover  { background: #1877f2; color: var(--white); }
.share-tw  { border-color: #14171a; color: #14171a; }
.share-tw:hover  { background: #14171a; color: var(--white); }
.share-wa  { border-color: #25d366; color: #25d366; }
.share-wa:hover  { background: #25d366; color: var(--white); }
.share-cp    { border-color: var(--gray); color: var(--gray); background: transparent; }
.share-cp:hover  { background: var(--gray); color: var(--white); }
.share-print { border-color: #4f46e5; color: #4f46e5; background: transparent; }
.share-print:hover { background: #4f46e5; color: var(--white); }

/* ── Share Counter ───────────────────────────────────────────── */
.share-counter {
    font-size: .76rem; color: var(--gray);
    display: inline-flex; align-items: center; gap: .25rem;
}

/* ── Article Image Lightbox (CSS-only + JS-enhanced) ─────────── */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.92);
    align-items: center; justify-content: center;
    cursor: zoom-out;
    padding: 1rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    cursor: default;
    object-fit: contain;
}
.lightbox-close {
    position: fixed; top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    border-radius: 50%; border: 2px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer;
    transition: all var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.article-body img { cursor: zoom-in; }

/* ── Print Styles ────────────────────────────────────────────── */
@media print {
    .topbar, .navbar, .breaking-bar, .sidebar, .comment-form,
    .share-btn, .share-counter, footer, #back-top, #reading-progress,
    .ad-block, .related-news, .lightbox-overlay { display: none !important; }
    .article-wrap { max-width: 100%; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: inherit; text-decoration: none; }
    .article-hero { max-height: 300px; object-fit: cover; }
}

/* ── Reading time & meta ─────────────────────────────────────── */
.article-meta-bar {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
    font-size: .8rem; color: var(--gray);
}
.article-meta-bar strong { color: var(--dark); }

/* ── Author Box ──────────────────────────────────────────────── */
.author-box {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--light);
    border: 1px solid var(--border);
}
.author-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.author-avatar-initials {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #ff6b6b);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900;
    flex-shrink: 0;
}

/* ── Comments ────────────────────────────────────────────────── */
.comment-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 700;
    flex-shrink: 0;
}
.comment-form .form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}

/* ── Newsletter ──────────────────────────────────────────────── */
.newsletter-sec {
    background: linear-gradient(135deg, #0d1117 0%, #1f2937 60%, #1a0a10 100%);
    position: relative;
    overflow: hidden;
}
.newsletter-sec::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(200,16,46,.25), transparent 70%);
    pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: #0a0c10;
    color: rgba(255,255,255,.55);
    padding-top: 3rem;
}
.site-footer h6 {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: .4rem;
}
.site-footer h6::before {
    content: '';
    width: 3px; height: 14px;
    background: var(--red);
    border-radius: 2px;
    display: inline-block;
}
.site-footer a {
    color: rgba(255,255,255,.5);
    font-size: .83rem;
    transition: color var(--transition);
}
.site-footer a:hover { color: var(--white); }
.footer-social a {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1rem 0;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
}

/* ── Category Page Header ────────────────────────────────────── */
.cat-header {
    background: linear-gradient(135deg, var(--dark2), #1a0a10);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 5px solid var(--red);
    margin-bottom: 1.5rem;
}
.cat-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem; font-weight: 900;
    color: var(--white); margin: 0;
}

/* ── Author Page ─────────────────────────────────────────────── */
.author-page-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}
.author-page-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    margin: 0 auto 1rem;
}
.author-page-initials {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #ff6b6b);
    color: var(--white);
    font-size: 2.5rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(200,16,46,.35);
}

/* ── Popup ───────────────────────────────────────────────────── */
.popup-modal .modal-content {
    border: 0; border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.popup-close {
    position: absolute; top: 10px; right: 10px;
    z-index: 10;
    width: 32px; height: 32px;
    background: rgba(0,0,0,.5);
    color: var(--white);
    border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
    transition: background var(--transition);
}
.popup-close:hover { background: var(--red); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { font-size: .78rem; }
.breadcrumb-item a { color: var(--red); }
.breadcrumb-item.active { color: var(--gray); }

/* ── Search Page ─────────────────────────────────────────────── */
.search-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination .page-link {
    color: var(--red);
    border-color: var(--border);
    border-radius: 8px !important;
    margin: 0 2px;
    font-size: .84rem;
    transition: all var(--transition);
}
.pagination .page-link:hover {
    background: var(--red-lite);
    border-color: var(--red);
}
.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    font-weight: 700;
}
.pagination .page-item.disabled .page-link { color: #ccc; }

/* ── Back to Top ─────────────────────────────────────────────── */
#back-top {
    position: fixed;
    bottom: 2rem; right: 1.5rem;
    z-index: 999;
    width: 42px; height: 42px;
    background: var(--red);
    color: var(--white);
    border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: 0 4px 16px rgba(200,16,46,.4);
    cursor: pointer;
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); }

/* ── Utils ───────────────────────────────────────────────────── */
.text-red { color: var(--red); }
.text-sm  { font-size: .82rem; }
.text-xs  { font-size: .74rem; }
.fw-800   { font-weight: 800; }
.fw-900   { font-weight: 900; }
.rounded-10 { border-radius: var(--radius) !important; }
.sticky-sidebar { position: sticky; top: 160px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    #mainNav { top: 0; }
    .site-header { position: relative; }
    .sticky-sidebar { position: static; }
}
@media (max-width: 575.98px) {
    .hero-content h2 { font-size: 1.1rem; }
    .article-title { font-size: 1.45rem; }
    .article-wrap { padding: 1rem; }
    .logo-text { font-size: 1.2rem; }
}
