/* ═══════════════════════════════════════════════════════════════════
   QuickVarthe.com — Main Stylesheet
   Kannada News Platform — Editorial Magazine Aesthetic
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kannada:wght@300;400;500;600;700;800&family=Noto+Serif+Kannada:wght@400;600;700&family=Playfair+Display:wght@700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────────────── */
:root {
    --brand-red:    #C0392B;
    --brand-dark:   #1A1A1A;
    --brand-orange: #E67E22;
    --accent-gold:  #F39C12;
    --text-primary: #1C1C1C;
    --text-secondary:#4A4A4A;
    --text-muted:   #888;
    --bg-primary:   #FFFFFF;
    --bg-secondary: #F5F5F0;
    --bg-dark:      #111111;
    --border:       #E0E0E0;
    --border-light: #F0F0EC;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
    --shadow-md:    0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:    0 8px 40px rgba(0,0,0,.15);
    --font-kannada: 'Noto Sans Kannada', sans-serif;
    --font-serif:   'Noto Serif Kannada', serif;
    --font-display: 'Playfair Display', serif;
    --radius:       4px;
    --radius-lg:    8px;
    --transition:   0.2s ease;
    --max-width:    1280px;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-kannada);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ── Layout ─────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.content-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }

/* ── Breaking News Ticker ────────────────────────────────────────── */
.breaking-bar {
    background: var(--brand-red);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.breaking-bar .ticker-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.breaking-label {
    background: #8B0000;
    padding: 4px 16px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: .5px;
    flex-shrink: 0;
    margin-right: 20px;
    text-transform: uppercase;
}

.ticker-content {
    display: flex;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
    gap: 40px;
    font-size: 14px;
}

.ticker-content:hover { animation-play-state: paused; }
.ticker-content a { color: #fff; opacity: .9; }
.ticker-content a:hover { opacity: 1; }
.ticker-separator { color: rgba(255,255,255,.5); margin: 0 8px; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Top Bar ─────────────────────────────────────────────────────── */
.top-bar {
    background: var(--bg-dark);
    color: #aaa;
    padding: 6px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a { color: #aaa; }
.top-bar a:hover { color: #fff; }
.top-bar .social-links { display: flex; gap: 12px; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--brand-red);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: -1px;
}

.logo-main span { color: var(--brand-dark); }
.logo-tagline { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* Search Bar */
.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    width: 280px;
    transition: border-color var(--transition);
}

.header-search:focus-within { border-color: var(--brand-red); }

.header-search input {
    border: none;
    background: transparent;
    padding: 9px 16px;
    font-size: 14px;
    font-family: var(--font-kannada);
    width: 100%;
    outline: none;
    color: var(--text-primary);
}

.header-search button {
    background: var(--brand-red);
    border: none;
    color: #fff;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 15px;
    transition: background var(--transition);
}

.header-search button:hover { background: #a93226; }

/* Ad Banner Area */
.header-ad { text-align: center; }

/* ── Navigation ──────────────────────────────────────────────────── */
.main-nav {
    background: var(--brand-dark);
    position: relative;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list > li > a {
    display: block;
    padding: 13px 18px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3px;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-bottom-color: var(--brand-red);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 10px 16px;
}

/* ── Hero Section ────────────────────────────────────────────────── */
.hero-section { padding: 32px 0 24px; background: var(--bg-primary); }

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Feature Card — Big */
.card-feature {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    grid-row: 1 / 3;
}

.card-feature .card-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-feature:hover .card-img { transform: scale(1.03); }

.card-feature .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
    padding: 32px 24px 24px;
    color: #fff;
}

.card-feature .card-title {
    font-size: 22px;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 8px;
}

.card-feature .card-title a { color: #fff; }
.card-feature .card-title a:hover { color: #f8c471; }

/* Side Cards */
.card-side {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.card-side:last-child { border-bottom: none; padding-bottom: 0; }

.card-side .card-img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.card-side .card-title { font-size: 14px; line-height: 1.5; font-family: var(--font-kannada); font-weight: 600; }
.card-side .card-title a:hover { color: var(--brand-red); }

/* ── Category Badge ──────────────────────────────────────────────── */
.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    background: var(--brand-red);
    color: #fff;
}

.cat-badge:hover { background: #a93226; }
.cat-badge.orange { background: var(--brand-orange); }
.cat-badge.gold   { background: var(--accent-gold); }

/* ── Section Heading ─────────────────────────────────────────────── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-red);
}

.section-head h2 {
    font-size: 20px;
    font-family: var(--font-serif);
    position: relative;
}

.section-head .view-all {
    font-size: 13px;
    color: var(--brand-red);
    font-weight: 600;
}

.section-head .view-all:hover { text-decoration: underline; }

/* ── Article Card (Standard) ─────────────────────────────────────── */
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-card .card-img-wrap { position: relative; overflow: hidden; }
.article-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-img { transform: scale(1.05); }

.article-card .card-body { padding: 14px; }
.article-card .card-title {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
    font-family: var(--font-kannada);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
.card-meta .dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

/* ── List Article (Sidebar/Trending) ─────────────────────────────── */
.list-article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.list-article:first-child { padding-top: 0; }
.list-article:last-child { border-bottom: none; padding-bottom: 0; }

.list-article .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    font-family: var(--font-display);
}

.list-article .img-wrap {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.list-article .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.list-article .title { font-size: 13px; line-height: 1.5; font-weight: 600; }
.list-article .title a:hover { color: var(--brand-red); }
.list-article .meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Section Blocks ──────────────────────────────────────────────── */
.section-block { padding: 32px 0; }
.section-block.bg-light { background: var(--bg-secondary); }
.section-block.bg-dark { background: var(--bg-dark); }

/* ── Ad Blocks ───────────────────────────────────────────────────── */
.ad-block {
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 10px;
    min-height: 90px;
}

.ad-banner { height: 90px; margin: 16px 0; }
.ad-sidebar { height: 250px; margin-bottom: 24px; }
.ad-inline { height: 250px; margin: 24px 0; }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-family: var(--font-serif);
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--brand-red);
}

.category-list li { border-bottom: 1px solid var(--border-light); }
.category-list li:last-child { border-bottom: none; }
.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.category-list a:hover { color: var(--brand-red); padding-left: 4px; }
.category-list .count {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Article Page ────────────────────────────────────────────────── */
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb .sep { color: var(--border); }

.article-header { margin-bottom: 24px; }

.article-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-family: var(--font-serif);
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.article-meta strong { color: var(--text-secondary); }

.article-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body h2 { font-size: 22px; margin: 28px 0 12px; }
.article-body h3 { font-size: 19px; margin: 24px 0 10px; }
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: var(--radius); margin: 20px auto; }

.article-body blockquote {
    border-left: 4px solid var(--brand-red);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.share-label { font-weight: 600; font-size: 14px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity var(--transition);
    color: #fff;
    text-decoration: none;
}

.share-btn:hover { opacity: .85; color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25D366; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.copy { background: var(--text-secondary); }

/* Related Articles */
.related-section { padding: 28px 0; border-top: 2px solid var(--brand-red); margin-top: 8px; }
.related-section h3 { font-size: 20px; margin-bottom: 20px; }

/* ── Search Page ─────────────────────────────────────────────────── */
.search-bar-lg {
    display: flex;
    gap: 0;
    border: 2px solid var(--brand-red);
    border-radius: 4px;
    overflow: hidden;
    margin: 24px 0;
}

.search-bar-lg input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-family: var(--font-kannada);
    border: none;
    outline: none;
}

.search-bar-lg button {
    background: var(--brand-red);
    border: none;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    font-family: var(--font-kannada);
    font-weight: 600;
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination { margin: 32px 0; }

.pagination ul {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 48px 0 0;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-about .logo-main { font-size: 26px; color: var(--brand-red); margin-bottom: 12px; }
.footer-about p { font-size: 13px; line-height: 1.8; color: #888; }

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-red);
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: #888; }
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: #aaa;
    font-size: 14px;
    transition: all var(--transition);
}

.footer-social a:hover { background: var(--brand-red); color: #fff; }

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: #555;
}

/* ── Admin Panel ─────────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: #1a1f2e;
    color: #b0b7c9;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    padding: 20px 20px 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-red);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-logo span { color: #fff; font-size: 12px; font-weight: 400; display: block; margin-top: 2px; }

.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #8a93a8;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a:hover, .admin-nav a.active {
    color: #fff;
    background: rgba(255,255,255,.05);
    border-left-color: var(--brand-red);
}

.admin-content {
    flex: 1;
    background: #f0f2f5;
    overflow-y: auto;
}

.admin-topbar {
    background: #fff;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
}

.admin-topbar h1 { font-size: 20px; }
.admin-main { padding: 28px; }

.admin-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-card h2 { font-size: 17px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--brand-red);
}
.stat-card.green { border-top-color: #27ae60; }
.stat-card.blue  { border-top-color: #2980b9; }
.stat-card.orange{ border-top-color: var(--brand-orange); }
.stat-card .num  { font-size: 32px; font-weight: 800; color: var(--text-primary); }
.stat-card .label{ font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=email],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-kannada);
    outline: none;
    transition: border-color var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-kannada);
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: #a93226; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #1e8449; color: #fff; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-secondary:hover { background: #4b5563; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-outline { background: transparent; color: var(--brand-red); border: 1px solid var(--brand-red); }
.btn-outline:hover { background: var(--brand-red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #f9fafb; padding: 12px 14px; text-align: left; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid #e5e7eb; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }

/* Status Badge */
.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Login Page */
.login-page { min-height: 100vh; background: #1a1f2e; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-main { font-size: 28px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .content-sidebar { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .card-feature .card-img { height: 320px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-header { padding: 12px 0; }
    .logo-main { font-size: 24px; }
    .header-search { display: none; }
    .hamburger { display: block; }
    .nav-list { display: none; flex-direction: column; background: var(--brand-dark); }
    .nav-list.open { display: flex; }
    .nav-list > li > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .header-ad { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .article-title { font-size: 20px; }
    .article-body { font-size: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── Utilities ───────────────────────────────────────────────────── */
.text-red    { color: var(--brand-red); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.d-none  { display: none; }
.d-flex  { display: flex; }
.gap-12  { gap: 12px; }
.fw-600  { font-weight: 600; }
.fs-13   { font-size: 13px; }
.img-lazy { opacity: 0; transition: opacity .3s ease; }
.img-lazy.loaded { opacity: 1; }

/* ── Placeholder SVG fallback ────────────────────────────────────── */
.img-placeholder {
    background: linear-gradient(135deg, #f0f0ec 25%, #e8e8e0 50%, #f0f0ec 75%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
    .site-header, .main-nav, .breaking-bar, .top-bar,
    .sidebar, .site-footer, .ad-block, .article-share { display: none; }
    .content-sidebar { display: block; }
    .article-body { font-size: 12pt; }
}
