/* ============================================================
   Aajtak News Clone — Main Stylesheet
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
    --red:        #e31e24;
    --red-dark:   #b31519;
    --navy:       #1e2d5a;
    --navy-dark:  #131f40;
    --white:      #ffffff;
    --gray-50:    #f8f9fa;
    --gray-100:   #f0f2f5;
    --gray-200:   #e4e6eb;
    --gray-400:   #9aa0ac;
    --gray-600:   #5a6270;
    --gray-800:   #222831;
    --text:       #1a1a2e;
    --text-light: #555f6b;
    --font-main:  'Noto Sans Devanagari', 'Inter', Arial, sans-serif;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --transition: 0.2s ease;
    --container:  1280px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
    background: var(--navy-dark);
    color: var(--gray-400);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.top-bar-left a {
    color: var(--gray-400);
    transition: color var(--transition);
    font-size: 12px;
}
.top-bar-left a:hover { color: var(--white); }
.top-divider { color: rgba(255,255,255,0.2); }
.top-date { color: #b0bec5; font-size: 11.5px; }
.top-bar-right { display: flex; align-items: center; gap: 10px; }
.btn-signin {
    background: var(--red);
    color: var(--white) !important;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background var(--transition);
}
.btn-signin:hover { background: var(--red-dark); }

/* ============================================================
   MAIN HEADER
============================================================ */
.main-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: box-shadow var(--transition);
}
.main-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { display: flex; align-items: center; }
.logo-shape {
    background: var(--red);
    border-radius: 12px 4px 12px 4px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    min-width: 68px;
    box-shadow: 0 3px 10px rgba(227,30,36,0.4);
}
.logo-text {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
}
.logo-text-small {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-icon {
    color: rgba(255,255,255,0.8);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
}
.header-icon:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.live-badge {
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Search bar */
.search-bar-wrapper {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
}
.search-form {
    display: flex;
    gap: 0;
    max-width: 600px;
}
.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
    font-family: var(--font-main);
}
.search-form input::placeholder { color: rgba(255,255,255,0.4); }
.search-form input:focus { background: rgba(255,255,255,0.15); }
.search-form button {
    padding: 10px 16px;
    background: var(--red);
    color: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    transition: background var(--transition);
}
.search-form button:hover { background: var(--red-dark); }

/* ============================================================
   BREAKING NEWS TICKER
============================================================ */
.breaking-bar {
    background: linear-gradient(90deg, #c0392b 0%, var(--red) 100%);
    padding: 10px 0;
    overflow: hidden;
}
.breaking-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
.breaking-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.25);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.breaking-ticker-wrap {
    flex: 1;
    overflow: hidden;
    padding: 0 16px;
}
.breaking-ticker {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: scrollTicker 35s linear infinite;
    white-space: nowrap;
}
.breaking-ticker:hover { animation-play-state: paused; }
@keyframes scrollTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.breaking-item {
    color: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity var(--transition);
}
.breaking-item:hover { opacity: 0.85; }
.breaking-sep { color: rgba(255,255,255,0.4); }
.breaking-close {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
    flex-shrink: 0;
}
.breaking-close:hover { color: var(--white); background: rgba(0,0,0,0.2); }

/* ============================================================
   TAG PILLS SLIDER
============================================================ */
.tag-pills-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0;
}
.tag-pills-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tag-pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
}
.tag-pills-scroll::-webkit-scrollbar { display: none; }
.tag-pill {
    padding: 5px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text-light);
    font-weight: 500;
    transition: all var(--transition);
    background: var(--white);
}
.tag-pill:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(227,30,36,0.04);
}
.pills-arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    line-height: 1;
    padding: 0;
}
.pills-arrow:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   MOBILE NAV OVERLAY
============================================================ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-panel {
    width: 300px;
    background: var(--navy);
    height: 100%;
    overflow-y: auto;
    padding: 0;
    animation: slideInLeft 0.3s ease;
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}
.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-close {
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    padding: 6px;
}
.mobile-nav-links { padding: 12px; }
.mobile-nav-links a {
    display: block;
    color: rgba(255,255,255,0.85);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
}
.mobile-nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* ============================================================
   HOMEPAGE
============================================================ */
.homepage { padding: 24px 0 40px; }

/* Hero Section */
.hero-section { margin-bottom: 40px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px 280px;
    gap: 20px;
    align-items: start;
}

/* Hero card */
.hero-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-card-link { display: block; }
.hero-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hero-card:hover .hero-img { transform: scale(1.03); }
.no-img { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); aspect-ratio: 16/9; }
.cat-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-content { padding: 16px 20px 20px; }
.hero-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 10px;
    transition: color var(--transition);
}
.hero-card:hover .hero-title { color: var(--red); }
.hero-summary { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.hero-meta { display: flex; gap: 16px; font-size: 12px; color: var(--gray-400); }
.meta-author, .meta-time { display: flex; align-items: center; gap: 4px; }

/* Sub articles grid below hero */
.hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
.sub-card { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.sub-card a { display: flex; gap: 0; }
.sub-card img, .sub-no-img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}
.sub-no-img { background: var(--gray-200); }
.sub-card-body { padding: 8px 10px; flex: 1; }
.sub-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sub-card-body h3 { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 4px 0; color: var(--text); }
.sub-card:hover h3 { color: var(--red); }
.sub-time { font-size: 11px; color: var(--gray-400); }

/* Superfast Feed */
.hero-feed {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.feed-header {
    background: var(--navy);
    padding: 12px 16px;
}
.superfast-badge {
    font-size: 15px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 1px;
    display: block;
}
.feed-sub { font-size: 11px; color: rgba(255,255,255,0.6); }
.feed-list { overflow-y: auto; max-height: 560px; }
.feed-item {
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 14px;
    transition: background var(--transition);
}
.feed-item:hover { background: var(--gray-50); }
.feed-item > a {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}
.feed-item img, .feed-no-img {
    width: 72px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.feed-no-img { background: var(--gray-200); }
.feed-text h4 { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.feed-item:hover h4 { color: var(--red); }
.feed-cat { font-size: 10px; font-weight: 700; display: block; margin-top: 3px; }
.feed-readmore {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
    display: block;
    text-align: right;
}

/* Sidebar */
.hero-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}
.widget-accent {
    width: 4px; height: 18px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}
.widget-header h3 { font-size: 14px; font-weight: 800; color: var(--text); }
.sidebar-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--gray-50); }
.sidebar-item a { display: flex; gap: 10px; align-items: flex-start; }
.sidebar-item img, .sidebar-no-img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.sidebar-no-img { background: var(--gray-200); }
.sidebar-item p { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.sidebar-item:hover p { color: var(--red); }
.sidebar-item.numbered a { align-items: center; }
.item-number {
    width: 24px; height: 24px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.meta-views { font-size: 11px; color: var(--gray-400); display: block; }

/* ============================================================
   CATEGORY SECTIONS
============================================================ */
.category-section { margin-bottom: 40px; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}
.section-title-wrap { display: flex; align-items: center; gap: 12px; }
.section-accent {
    width: 5px; height: 24px;
    background: var(--red);
    border-radius: 3px;
}
.section-title { font-size: 20px; font-weight: 800; color: var(--text); }
.section-more-link { font-size: 13px; font-weight: 600; transition: opacity var(--transition); }
.section-more-link:hover { opacity: 0.8; }

.cat-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cat-article-large { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.cat-article-large a { display: block; }
.cat-article-large img, .cat-no-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cat-no-img { background: var(--gray-200); }
.cat-article-info { padding: 14px 16px; }
.cat-article-info h3 { font-size: 16px; font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.cat-article-large:hover h3 { color: var(--red); }
.cat-article-info p { font-size: 13px; color: var(--text-light); line-height: 1.65; margin-bottom: 8px; }
.meta-time { font-size: 11.5px; color: var(--gray-400); }

.cat-articles-small { display: flex; flex-direction: column; gap: 12px; }
.cat-article-small { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.cat-article-small a { display: flex; gap: 0; }
.cat-article-small img, .cat-sm-no-img { width: 110px; height: 75px; object-fit: cover; flex-shrink: 0; }
.cat-sm-no-img { background: var(--gray-200); }
.cat-article-small div { padding: 10px 12px; flex: 1; }
.cat-article-small h4 { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 6px; }
.cat-article-small:hover h4 { color: var(--red); }

/* ============================================================
   ARTICLE PAGE
============================================================ */
.article-page { padding: 24px 0 48px; }
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.article-main { min-width: 0; }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray-400); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--red); }
.bc-sep { color: var(--gray-400); }
.bc-current { font-weight: 600; padding: 2px 8px; border-radius: 4px; color: var(--white) !important; }

/* Article header */
.article-header { background: var(--white); border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.article-title { font-size: 26px; font-weight: 800; line-height: 1.35; color: var(--text); margin-bottom: 12px; }
.article-summary { font-size: 15px; color: var(--text-light); line-height: 1.75; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.article-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.meta-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.meta-author, .meta-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); }
.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
    padding: 6px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    transition: all var(--transition);
}
.share-btn:hover { border-color: var(--red); color: var(--red); }

/* Featured image */
.article-figure { margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-img { width: 100%; max-height: 500px; object-fit: cover; }
.article-figure figcaption { background: var(--white); padding: 8px 16px; font-size: 12.5px; color: var(--gray-400); }

/* Article body */
.article-body {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 20px;
}
.article-body h2, .article-body h3 { margin: 24px 0 12px; font-weight: 800; }
.article-body p { margin-bottom: 16px; }
.article-body img { border-radius: var(--radius-sm); margin: 16px 0; }
.article-body a { color: var(--red); }
.article-body ul, .article-body ol { margin: 12px 0 16px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-left: 4px solid var(--red);
    padding: 12px 20px;
    background: var(--gray-50);
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; padding: 16px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.tags-label { font-size: 13px; font-weight: 700; color: var(--gray-600); }
.tag-link { font-size: 12.5px; padding: 4px 12px; border: 1.5px solid var(--gray-200); border-radius: 20px; color: var(--text-light); transition: all var(--transition); }
.tag-link:hover { border-color: var(--red); color: var(--red); }

/* Share row */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 24px; font-size: 13px; color: var(--text-light); }
.fb-btn { background: #1877f2; color: #fff; padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.tw-btn { background: #000; color: #fff; padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.wa-btn { background: #25d366; color: #fff; padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }

/* Related articles */
.related-section { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.related-card a { display: block; }
.related-card img, .related-no-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-no-img { background: var(--gray-200); }
.related-card h4 { font-size: 13px; font-weight: 700; padding: 10px 12px 6px; color: var(--text); line-height: 1.4; }
.related-card:hover h4 { color: var(--red); }
.related-card .meta-time { display: block; font-size: 11px; color: var(--gray-400); padding: 0 12px 10px; }

/* ============================================================
   ARTICLE SIDEBAR
============================================================ */
.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   CATEGORY PAGE
============================================================ */
.category-page { padding: 24px 0 48px; }
.category-hero { margin-bottom: 24px; padding: 16px 20px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.category-page-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.category-count { font-size: 13px; color: var(--gray-400); }
.category-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.category-main { min-width: 0; }
.category-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

/* Articles grid */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 24px; }
.article-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.article-card:hover { box-shadow: var(--shadow-md); }
.article-card-link { display: block; }
.article-card-img { aspect-ratio: 16/9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.card-no-img { width: 100%; aspect-ratio: 16/9; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.article-card-body { padding: 14px 16px; }
.card-cat-badge { font-size: 10px; font-weight: 700; color: var(--white); padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-card-title { font-size: 15px; font-weight: 800; line-height: 1.4; margin: 8px 0; color: var(--text); }
.article-card:hover .article-card-title { color: var(--red); }
.article-card-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.65; margin-bottom: 10px; }
.article-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-400); }

/* Pagination */
.pagination, .admin-pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); color: var(--text-light); font-size: 14px; transition: all var(--transition); background: var(--white); }
.page-btn:hover, .page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ============================================================
   SEARCH PAGE
============================================================ */
.search-page { padding: 24px 0 48px; }
.search-hero { background: var(--white); border-radius: var(--radius-md); padding: 32px 28px; margin-bottom: 28px; box-shadow: var(--shadow-sm); text-align: center; }
.search-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.search-hero-form { display: flex; max-width: 600px; margin: 0 auto; gap: 0; }
.search-hero-form input { flex: 1; padding: 12px 18px; border: 2px solid var(--gray-200); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 16px; font-family: var(--font-main); outline: none; transition: border-color var(--transition); }
.search-hero-form input:focus { border-color: var(--red); }
.search-hero-form button { padding: 12px 24px; background: var(--red); color: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; font-weight: 700; transition: background var(--transition); }
.search-hero-form button:hover { background: var(--red-dark); }
.search-results-header { margin-bottom: 20px; font-size: 15px; color: var(--text-light); }
.search-results-header strong { color: var(--text); }
.search-suggest { color: var(--gray-400); margin-top: 6px; }
.search-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.search-main { min-width: 0; }
.no-articles { padding: 48px 24px; text-align: center; color: var(--gray-400); }
.btn-back { display: inline-block; margin-top: 16px; color: var(--red); font-weight: 600; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); margin-top: 40px; }
.footer-top { padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr 240px; gap: 40px; }
.footer-brand { }
.footer-logo { margin-bottom: 14px; }
.footer-logo-shape { display: inline-flex; }
.footer-tagline { font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 10px; letter-spacing: 0.5px; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.footer-heading { font-size: 13px; font-weight: 800; color: var(--white); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--red); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all var(--transition); }
.social-btn:hover { background: var(--red); color: var(--white); }
.newsletter-form { display: flex; gap: 0; margin-bottom: 16px; }
.newsletter-form input { flex: 1; padding: 10px 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--white); font-size: 13px; font-family: var(--font-main); outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button { padding: 10px 14px; background: var(--red); color: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; font-weight: 600; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--red-dark); }
.footer-app-title { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.app-badge { font-size: 12px; padding: 8px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); color: rgba(255,255,255,0.7); transition: all var(--transition); }
.app-badge:hover { border-color: var(--red); color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr 260px 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr 240px; }
    .hero-sidebar { display: none; }
    .article-layout, .category-layout, .search-layout { grid-template-columns: 1fr; }
    .article-sidebar, .category-sidebar { position: static; }
    .cat-articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hamburger { display: flex; }
    .main-nav { display: none; }
}

@media (max-width: 680px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-feed { display: none; }
    .hero-title { font-size: 18px; }
    .hero-sub-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .cat-articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .article-title { font-size: 20px; }
    .article-body { padding: 18px; }
    .top-bar-left a:not(:first-child) { display: none; }
    .section-title { font-size: 16px; }
}

/* Utility classes */
.mt-2 { margin-top: 8px; }
