/* ==========================================
   JANTA UNMUTED - Award-Winning Design System
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

/* --- CSS Variables (Light + Dark Mode) --- */
:root {
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-elevated: #F0F0F0;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent: #7B1417;
    --accent-hover: #5e0f11;
    --accent-light: rgba(123, 20, 23, 0.08);
    --border: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --container: 1200px;
    --nav-height: 72px;
}

[data-theme="dark"] {
    --bg: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-elevated: #252525;
    --text-primary: #F5F5F5;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;
    --border: rgba(255,255,255,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.6);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}
[data-theme="dark"] .navbar {
    background: rgba(13,13,13,0.9);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
}
.logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition);
}
.nav-logo:hover .logo-img {
    transform: scale(1.05);
}
.nav-links {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 24px;
}
.nav-links a {
    padding: 8px 18px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-light);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-toggle {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.theme-toggle:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-spacer { height: calc(var(--nav-height) + 44px); }

/* ==========================================
   CATEGORY NAVIGATION BAR
   ========================================== */
.category-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    transition: all var(--transition);
}
[data-theme="dark"] .category-nav {
    background: var(--bg-card);
}
.category-nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.cat-nav-item:hover {
    color: var(--accent);
    background: var(--accent-light);
}
.cat-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border-radius: 24px;
    padding: 6px 16px;
    border: 1px solid var(--border);
}
.cat-search-form input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    width: 180px;
    outline: none;
    font-family: inherit;
}
.cat-search-form button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color var(--transition);
}
.cat-search-form button:hover {
    color: var(--accent);
}
.cat-nav-item.active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

/* ==========================================
   BREAKING NEWS TICKER
   ========================================== */
.ticker {
    background: var(--accent);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.ticker-label {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: #B71C1C;
    padding: 0 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    align-items: center;
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 0; bottom: 0;
    width: 32px;
    background: #B71C1C;
    clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%);
}
.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 40s linear infinite;
    padding-left: 200px;
    margin-top: 6px; /* Optical adjustment to reduce bottom gap illusion */
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
    white-space: nowrap;
    padding: 0 40px;
    font-size: 14px;
    font-weight: 500;
}
.ticker-item::before {
    content: '●';
    margin-right: 12px;
    opacity: 0.5;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding: 40px 0 0 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    min-height: 520px;
}

/* Main Hero Card */
.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.hero-main .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-main:hover .hero-img {
    transform: scale(1.04);
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 48px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
}
.hero-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: white;
}
.hero-meta {
    font-size: 13px;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-meta i { margin-right: 4px; }

/* Side Cards */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hero-side-card {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.hero-side-card .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-side-card:hover .hero-img { transform: scale(1.05); }
.hero-side-card .hero-overlay {
    padding: 24px;
}

/* ==========================================
   PAGE HERO (Blog, Category, Search)
   ========================================== */
.page-hero {
    padding: 80px 0 40px;
    background-color: var(--accent);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    margin-bottom: 40px;
    text-align: center;
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}
.page-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   BLOG LAYOUT & SIDEBAR
   ========================================== */
.blog-layout {
    padding-bottom: 80px;
}
.blog-grid-sidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.blog-main {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}
.articles-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}
.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height) + 60px);
}
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
}
.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title i { color: var(--accent); }

/* Search Widget */
.search-form {
    display: flex;
}
.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg);
    color: var(--text-primary);
    outline: none;
}
.search-form button {
    padding: 0 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: background var(--transition);
}
.search-form button:hover { background: var(--accent-hover); }

/* Most Read Widget */
.widget-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.widget-post {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.widget-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget-rank {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
}
.widget-post-info h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color var(--transition);
}
.widget-post:hover .widget-post-info h4 { color: var(--accent); }
.widget-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Widget */
.widget-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.widget-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.widget-cat-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.widget-cat-count {
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-muted);
}
.card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.card-meta i, .article-meta i, .hero-meta i, .widget-meta i {
    color: var(--accent);
}
[data-theme="dark"] .widget-cat-count {
    background: var(--bg-card);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.page-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==========================================
   SINGLE ARTICLE
   ========================================== */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
}
.article-category {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.article-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}
.article-author-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.article-featured-img {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.article-content {
    max-width: 760px;
    margin: 0 auto 60px;
    font-size: 19px;
    line-height: 1.85;
    color: var(--text-secondary);
}
.article-content p { margin-bottom: 28px; }
.article-content h2, .article-content h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin: 56px 0 24px;
    line-height: 1.3;
}
.article-content h2 { font-size: 32px; }
.article-content h3 { font-size: 26px; }
.article-content img {
    border-radius: var(--radius-md) !important;
    margin: 32px 0 !important;
    display: block !important;
    width: 100% !important;
    max-height: 450px !important;
    object-fit: cover !important;
}
.article-content blockquote {
    font-style: italic;
    font-size: 24px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent);
    padding: 20px 0 20px 30px;
    margin: 40px 0;
    background: var(--bg-elevated);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-share {
    max-width: 760px;
    margin: 0 auto 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}
.article-share span { font-weight: 700; color: var(--text-primary); }
.share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform var(--transition);
}
.share-btn:hover { transform: translateY(-3px); }
.share-fb, .share-tw, .share-wa { background: var(--accent); }

/* Author Bio Box */
.author-box {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 60px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}
.author-info h4 {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-display);
}
.author-info p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}
.author-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.author-link:hover {
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .blog-grid-sidebar { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .articles-grid.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .article-title { font-size: 32px; }
    .article-content img { width: 100% !important; margin: 24px 0 !important; }
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .article-meta { flex-direction: column; gap: 12px; }
    .article-content { font-size: 16px; }
    .article-content blockquote { font-size: 20px; }
}
.hero-side-card .hero-title {
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 700;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-top: 56px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    position: relative;
    padding-left: 18px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px; bottom: 4px;
    width: 4px;
    background: var(--accent);
    border-radius: 4px;
}
.section-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}
.section-link:hover { gap: 10px; }

/* ==========================================
   ARTICLE CARDS
   ========================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-category {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.article-card:hover .card-title { color: var(--accent); }
.card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}
.card-footer i { margin-right: 4px; }
.card-views { display: flex; align-items: center; gap: 4px; }

/* ==========================================
   CATEGORY HORIZONTAL SCROLL
   ========================================== */
.category-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.category-row::-webkit-scrollbar { height: 4px; }
.category-row::-webkit-scrollbar-track { background: var(--bg-elevated); border-radius: 4px; }
.category-row::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.category-card {
    min-width: 300px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.category-card .card-img-wrap { height: 170px; }
.category-card .card-body { padding: 16px; }
.category-card .card-title { font-size: 15px; }

/* ==========================================
   NEWSLETTER CTA
   ========================================== */
.newsletter-section {
    padding: 60px 0 20px;
    margin-top: 40px;
}
.newsletter-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    border-radius: 50%;
}
.newsletter-box::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    border-radius: 50%;
}
.newsletter-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.newsletter-subtitle {
    font-size: 16px;
    opacity: 0.75;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.12);
    color: white;
    backdrop-filter: blur(10px);
    outline: none;
    transition: background var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { background: rgba(255,255,255,0.2); }
.newsletter-form button {
    padding: 14px 28px;
    background: white;
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.newsletter-form button:hover {
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #222222;
    color: white;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.footer-logo .logo-img {
    max-height: 50px;
    object-fit: contain;
}
.footer-about {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}
.contact-social {
    display: flex; gap: 12px;
}
.contact-social a {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition);
}
.contact-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}
.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all var(--transition);
}
.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}
.footer-contact li i {
    color: var(--accent);
    width: 16px;
}
.footer-bottom-strip {
    background-color: var(--accent);
    color: rgba(255, 255, 255, 0.8);
}
.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.footer-bottom a {
    color: white;
    font-weight: 700;
}
.footer-bottom i {
    color: white;
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 40px; height: 40px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(123, 20, 23, 0.4);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-main { height: 400px; }
    .hero-side { flex-direction: row; }
    .hero-side-card { height: 240px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .category-nav .container {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 0;
        padding-right: 0;
    }
    .category-nav-inner {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 24px 8px 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-nav-inner::-webkit-scrollbar {
        display: none;
    }
    .cat-search-form {
        margin: 0 24px;
    }
    .cat-search-form input {
        width: 100%;
    }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .hero-grid { gap: 12px; }
    .hero-main { height: 320px; }
    .hero-title { font-size: 24px; }
    .hero-overlay { padding: 24px 20px; }
    .hero-side { flex-direction: column; }
    .hero-side-card { height: 200px; }
    .hero-side-card .hero-title { font-size: 16px; }
    .articles-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 22px; }
    .newsletter-box { padding: 40px 24px; }
    .newsletter-title { font-size: 26px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .ticker-label { display: none; }
    .ticker-content { padding-left: 0; }
    .nav-slogan { display: none; }
}
