/*
Theme Name: 24 Times News
Theme URI: https://24timesnews.com/ht-theme
Author: Kaushal Nishad
Author URI: https://easystepstechnologies.com
Description: A fully responsive news/magazine WordPress theme inspired by Hindustan Times. Features breaking news ticker, sticky header, mega navigation, multi-column article grids, sidebar widgets, opinion section, and mobile-friendly hamburger menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ht-theme
Tags: news, magazine, responsive, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, blog

*/

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

:root {
  --red: #c8102e;
  --dark: #1a1a1a;
  --mid: #444;
  --muted: #767676;
  --border: #e0e0e0;
  --bg: #f5f5f5;
  --white: #fff;
  --teal: #006b8f;
  --gold: #c9973a;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--dark); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* ── UTILITY ──────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; background: var(--red); color: #fff; }
.badge.teal { background: var(--teal); }
.badge.live { background: var(--red); animation: livepulse 1.4s infinite; }
@keyframes livepulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-label::after { content: ''; flex: 1; height: 2px; background: var(--red); opacity: .2; }

/* ── TICKER ───────────────────────────────── */
.ticker-bar { background: var(--red); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; overflow: hidden; height: 32px; }
.ticker-label { background: #930e1f; padding: 0 16px; height: 100%; display: flex; align-items: center; white-space: nowrap; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; height: auto; position: relative; }
.ticker-inner { display: flex; gap: 60px; animation: ticker 30s linear infinite; white-space: nowrap; align-items: center; height: 100%; }
.ticker-inner span::before { content: '●'; margin-right: 8px; font-size: 8px; opacity: .7; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── TOP BAR ──────────────────────────────── */
.top-bar { background: #fff; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar-left { display: flex; gap: 16px; align-items: center; }
.top-bar-right { display: flex; gap: 12px; align-items: center; }
.top-bar a { color: var(--muted); }
.top-bar a:hover { color: var(--red); }
.epaper-btn { background: var(--dark); color: #fff !important; padding: 4px 12px; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.subscribe-btn-top { background: var(--red); color: #fff !important; padding: 4px 12px; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }

/* ── HEADER ───────────────────────────────── */
.site-header { background: #fff; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 10px 16px; max-width: 1280px; margin: 0 auto; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 1px; transition: all .3s; }
.site-branding { flex: 1; text-align: center; }
.site-title a, .custom-logo-link { font-family: var(--font-serif); font-size: 28px; font-weight: 900; color: var(--dark); letter-spacing: -.5px; }
.site-title a span { color: var(--red); }
.custom-logo { max-height: 48px; width: auto; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-search-btn { background: none; border: 1px solid var(--border); border-radius: 2px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--dark); display: flex; align-items: center; gap: 5px; transition: all .2s; }
.header-search-btn:hover { border-color: var(--red); color: var(--red); }
.header-subscribe-btn { background: var(--red); color: #fff; border: none; border-radius: 2px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: .03em; }

/* ── SEARCH FORM ──────────────────────────── */
.header-search-form { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 12px 16px; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.header-search-form.active { display: block; }
.header-search-form form { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.header-search-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 2px; font-size: 14px; font-family: var(--font-sans); }
.header-search-form button { background: var(--red); color: #fff; border: none; padding: 8px 16px; border-radius: 2px; font-weight: 700; cursor: pointer; }

/* ── PRIMARY NAV ──────────────────────────── */
.primary-nav { background: #fff; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav .nav-menu { display: flex; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.primary-nav .nav-menu > li { position: relative; }
.primary-nav .nav-menu > li > a { display: block; padding: 10px 14px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--dark); white-space: nowrap; border-bottom: 3px solid transparent; transition: all .2s; }
.primary-nav .nav-menu > li > a:hover,
.primary-nav .nav-menu > li.current-menu-item > a,
.primary-nav .nav-menu > li.current-menu-ancestor > a { color: var(--red); border-bottom-color: var(--red); }
.primary-nav .nav-menu > li:first-child > a { color: var(--red); border-bottom-color: var(--red); }
.primary-nav .nav-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red); min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200; }
.primary-nav .nav-menu li:hover > .sub-menu { display: block; }
.primary-nav .nav-menu .sub-menu li a { display: block; padding: 9px 16px; font-size: 13px; color: var(--dark); border-bottom: 1px solid var(--border); transition: background .15s; }
.primary-nav .nav-menu .sub-menu li:last-child a { border-bottom: none; }
.primary-nav .nav-menu .sub-menu li a:hover { background: var(--bg); color: var(--red); }

/* ── SECONDARY NAV ────────────────────────── */
.secondary-nav { background: var(--bg); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.secondary-nav::-webkit-scrollbar { display: none; }
.secondary-nav .nav-menu { display: flex; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.secondary-nav .nav-menu li a { display: block; padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s; }
.secondary-nav .nav-menu li a:hover { color: var(--red); }

/* ── MOBILE SIDEBAR ───────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1100; }
.sidebar-overlay.open { display: block; }
.mobile-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; background: #fff; z-index: 1200; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
.mobile-sidebar.open { transform: translateX(0); }
.sidebar-mob-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--red); color: #fff; }
.sidebar-mob-logo { font-family: var(--font-serif); font-weight: 900; font-size: 20px; }
.sidebar-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.sidebar-subscribe-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f8f8f8; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--teal); }
.sidebar-subscribe-bar .arrow { background: var(--teal); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mobile-nav-menu { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.mobile-nav-menu li a { display: block; padding: 13px 16px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--dark); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: color .2s; }
.mobile-nav-menu li:nth-child(even) a { border-right: none; }
.mobile-nav-menu li a:hover { color: var(--red); }

/* ── MAIN CONTENT ─────────────────────────── */
.main-content { padding: 20px 0 30px; }
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

/* ── FEATURED AREA ────────────────────────── */
.featured-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-story { grid-column: 1 / -1; }
.hero-story .hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; }
.hero-story .hero-tag { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 10px 0 6px; }
.hero-story h1 { font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.hero-story h1 a { color: var(--dark); transition: color .2s; }
.hero-story h1 a:hover { color: var(--red); }
.hero-story .hero-meta { font-size: 12px; color: var(--muted); }
.hero-story .hero-desc { font-size: 14px; color: var(--mid); margin-top: 8px; line-height: 1.6; }
.no-featured-image { background: #ddd; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 13px; font-weight: 600; }

.story-card { border-top: 1px solid var(--border); padding-top: 12px; }
.story-card .card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.story-card .card-tag { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; }
.story-card h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 700; line-height: 1.3; }
.story-card h3 a { color: var(--dark); transition: color .2s; }
.story-card h3 a:hover { color: var(--red); }
.story-card .card-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ── LIST STORIES ─────────────────────────── */
.story-list { margin-top: 16px; border-top: 2px solid var(--red); }
.story-list-title { padding: 10px 0 4px; font-size: 14px; font-weight: 700; color: var(--dark); }
.story-list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.story-list-item .sl-img { width: 100px; flex-shrink: 0; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.story-list-item .sl-no-img { width: 100px; flex-shrink: 0; aspect-ratio: 4/3; background: #ddd; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 10px; border-radius: 2px; }
.story-list-item .sl-tag { color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.story-list-item h4 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.3; }
.story-list-item h4 a { color: var(--dark); transition: color .2s; }
.story-list-item h4 a:hover { color: var(--red); }
.story-list-item .sl-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── CATEGORY SECTION ─────────────────────── */
.category-section { margin: 28px 0; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 14px; }
.cat-card .cat-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.cat-card .cat-no-img { aspect-ratio: 3/2; background: #ddd; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 11px; margin-bottom: 8px; }
.cat-card .cat-tag { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cat-card h4 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.3; }
.cat-card h4 a { color: var(--dark); transition: color .2s; }
.cat-card h4 a:hover { color: var(--red); }
.cat-card .cat-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── OPINION STRIP ────────────────────────── */
.opinion-strip { background: #fff; border-top: 3px solid var(--gold); border-bottom: 1px solid var(--border); padding: 20px 0; margin: 0 0 28px; }
.opinion-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 14px; }
.opinion-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); margin-bottom: 8px; }
.opinion-card .author-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.opinion-card .opinion-title { font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-top: 4px; }
.opinion-card .opinion-title:hover { color: var(--red); cursor: pointer; }

/* ── SIDEBAR WIDGETS ──────────────────────── */
.sidebar-area .widget { background: #fff; border: 1px solid var(--border); margin-bottom: 20px; border-radius: 2px; }
.sidebar-area .widget-title { background: var(--dark); color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-family: var(--font-sans); display: flex; align-items: center; justify-content: space-between; margin: 0; }
.sidebar-area .widget-title .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: livepulse 1s infinite; display: inline-block; }
.sidebar-area .widget ul { padding: 0; }
.sidebar-area .widget ul li { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.sidebar-area .widget ul li:last-child { border-bottom: none; }
.sidebar-area .widget ul li a { color: var(--dark); font-weight: 600; line-height: 1.35; transition: color .2s; }
.sidebar-area .widget ul li a:hover { color: var(--red); }
.sidebar-area .widget_recent_entries ul li, .sidebar-area .widget_categories ul li { padding: 8px 12px; }
.trending-widget ol { padding: 0; counter-reset: trend-counter; }
.trending-widget ol li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); counter-increment: trend-counter; }
.trending-widget ol li:last-child { border-bottom: none; }
.trending-widget ol li::before { content: counter(trend-counter, decimal-leading-zero); font-size: 22px; font-weight: 900; color: var(--border); font-family: var(--font-serif); flex-shrink: 0; line-height: 1; min-width: 28px; }
.trending-widget ol li a { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--dark); transition: color .2s; }
.trending-widget ol li a:hover { color: var(--red); }

/* ── SINGLE POST ──────────────────────────── */
.single-post-wrap { background: #fff; padding: 24px; border: 1px solid var(--border); border-radius: 2px; }
.single-post-header { margin-bottom: 20px; }
.post-category-badge { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.single-post-title { font-family: var(--font-serif); font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--dark); margin-bottom: 12px; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.post-meta-bar .author { font-weight: 600; color: var(--dark); }
.featured-image-wrap { margin-bottom: 20px; }
.featured-image-wrap img { width: 100%; border-radius: 2px; }
.post-content { font-size: 16px; line-height: 1.8; color: var(--mid); }
.post-content p { margin-bottom: 16px; }
.post-content h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--dark); margin: 24px 0 12px; }
.post-content h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--dark); margin: 20px 0 10px; }
.post-content blockquote { border-left: 4px solid var(--red); padding: 12px 20px; background: var(--bg); margin: 20px 0; font-style: italic; font-size: 17px; color: var(--dark); }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-tags strong { font-size: 13px; font-weight: 700; }
.post-tags a { background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 2px; font-size: 12px; color: var(--muted); transition: all .2s; }
.post-tags a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.post-author-box { display: flex; gap: 16px; background: var(--bg); border: 1px solid var(--border); padding: 16px; border-radius: 2px; margin-top: 24px; }
.post-author-box img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.post-author-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.post-author-box p { font-size: 13px; color: var(--muted); }

/* ── COMMENTS ─────────────────────────────── */
.comments-area { background: #fff; border: 1px solid var(--border); padding: 24px; border-radius: 2px; margin-top: 20px; }
.comments-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.comment-list { list-style: none; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comment-metadata { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-body p { font-size: 14px; color: var(--mid); }
.comment-respond { margin-top: 24px; }
.comment-reply-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 2px; font-family: var(--font-sans); font-size: 14px; margin-bottom: 12px; }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .submit { background: var(--red); color: #fff; border: none; padding: 10px 24px; border-radius: 2px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s; }
.comment-form .submit:hover { background: #a00e24; }

/* ── PAGINATION ───────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 2px; font-size: 13px; font-weight: 600; color: var(--dark); transition: all .2s; background: #fff; }
.pagination .page-numbers:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .page-numbers.dots { border: none; }

/* ── ARCHIVE / BLOG ───────────────────────── */
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.archive-card { background: #fff; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.archive-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.archive-card-body { padding: 14px; }
.archive-card .arc-tag { color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.archive-card h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.archive-card h2 a { color: var(--dark); transition: color .2s; }
.archive-card h2 a:hover { color: var(--red); }
.archive-card .arc-meta { font-size: 12px; color: var(--muted); }
.archive-card .arc-excerpt { font-size: 13px; color: var(--mid); margin-top: 8px; line-height: 1.6; }

/* ── 404 / SEARCH ─────────────────────────── */
.error-page, .search-page { background: #fff; padding: 48px 24px; border: 1px solid var(--border); text-align: center; border-radius: 2px; }
.error-page h1 { font-family: var(--font-serif); font-size: 80px; font-weight: 900; color: var(--red); line-height: 1; }
.error-page h2 { font-size: 24px; font-weight: 700; margin: 12px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 20px; }
.search-page .search-title { font-family: var(--font-serif); font-size: 28px; font-weight: 700; margin-bottom: 20px; text-align: left; }
.search-form-wrap { max-width: 500px; margin: 0 auto 28px; display: flex; gap: 8px; }
.search-form-wrap input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 2px; font-family: var(--font-sans); font-size: 15px; }
.search-form-wrap input:focus { outline: none; border-color: var(--red); }
.search-form-wrap button { background: var(--red); color: #fff; border: none; padding: 10px 20px; border-radius: 2px; font-weight: 700; cursor: pointer; }
.no-results-btn { display: inline-block; background: var(--red); color: #fff; padding: 10px 24px; border-radius: 2px; font-weight: 700; margin-top: 16px; transition: background .2s; }
.no-results-btn:hover { background: #a00e24; }

/* ── FOOTER ───────────────────────────────── */
.site-footer { background: var(--dark); color: #ccc; font-size: 13px; padding: 32px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 28px; }
.footer-col h6 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #444; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #aaa; font-size: 12px; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-logo-text span { color: var(--red); }
.footer-desc { font-size: 12px; color: #888; line-height: 1.6; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: #333; color: #aaa; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #666; }
.footer-bottom a { color: #888; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 16px; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .opinion-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .secondary-nav { display: none; }
  .top-bar .top-bar-right { display: none; }
  .featured-area { grid-template-columns: 1fr; }
  .hero-story { grid-column: 1; }
  .hero-story h1 { font-size: 22px; }
  .sidebar-area { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-post-title { font-size: 24px; }

  /* Primary nav on mobile → horizontal scrollable chip strip.
     Hamburger still opens the full sidebar; this strip is for quick-jump. */
  .primary-nav {
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
  }
  .primary-nav .nav-menu {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px 10px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .primary-nav .nav-menu::-webkit-scrollbar { display: none; }
  .primary-nav .nav-menu > li { flex: 0 0 auto; position: relative; }
  .primary-nav .nav-menu > li > a {
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    border-radius: 999px;
    background: #f5f5f5;
    color: var(--dark);
    transition: background .15s ease, color .15s ease;
  }
  .primary-nav .nav-menu > li > a:hover,
  .primary-nav .nav-menu > li.current-menu-item > a,
  .primary-nav .nav-menu > li.current-menu-ancestor > a {
    background: var(--red);
    border-bottom-color: transparent;
    color: #fff;
  }
  /* Suppress desktop hover dropdowns on mobile to prevent phantom tap areas */
  .primary-nav .nav-menu .sub-menu { display: none !important; }
}
@media (max-width: 480px) {
  .site-title a { font-size: 22px; }
  .category-grid { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
}


body {
  background: #f1f3f5;
  font-family: Arial, sans-serif;
}

/* CARD STYLE */
.news-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

/* LEFT SIDEBAR */
.latest-box {
  padding: 12px;
}

.latest-title {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid #d9d9d9;
  padding-bottom: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.latest-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.latest-item:last-child {
  border-bottom: none;
}

.category {
  font-size: 11px;
  font-weight: 700;
  color: #0080ff;
  text-transform: uppercase;
}

.item-title {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
  line-height: 1.3;
}

.meta {
  font-size: 11px;
  color: #888;
}

/* HERO SECTION */
.hero-box {
  padding: 15px;
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-meta {
  font-size: 12px;
  color: #777;
  margin: 6px 0 10px;
}

.hero-meta span {
  color: #007bff;
  font-weight: 600;
}

.hero-img {
  width: 100%;
  border-radius: 6px;
}

/* RIGHT SIDEBAR */
.ad-box img {
  width: 100%;
  border-radius: 6px;
}

.ad-label {
  font-size: 11px;
  text-align: center;
  color: #aaa;
  margin-bottom: 4px;
}

.premium-box {
  margin-top: 12px;
  padding: 12px;
}

.premium-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid #ddd;
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.premium-source {
  color: red;
  font-size: 12px;
  font-weight: 600;
}

.premium-text {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.ht-post-card img {
  object-fit: cover;
  height: 100%;
  min-height: 160px;
}

.live-badge {
  background: #e63946;
  color: #fff;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
}
.ht-content-body p {
  margin-bottom: 1rem;
}

.ht-content-body h2, 
.ht-content-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ht-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 576px) {
  .ht-single-breaking h1 {
    font-size: 22px !important;
  }
}
.ht-single-magazine {
  font-family: Georgia, serif;
}

.ht-content-body p {
  margin-bottom: 1.2rem;
}

.ht-content-body h2,
.ht-content-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.ht-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Title scaling for mobile */
@media (max-width: 576px) {
  .ht-single-magazine h1 {
    font-size: 26px !important;
  }
}

.ht-single-minimal {
  font-family: system-ui, -apple-system, sans-serif;
}

.ht-content-body p {
  margin-bottom: 1rem;
}

.ht-content-body h2,
.ht-content-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ht-content-body img {
  max-width: 100%;
  height: auto;
}

/* Mobile title scaling */
@media (max-width: 576px) {
  .ht-single-minimal h1 {
    font-size: 22px !important;
  }
}
.ht-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  height: 100%;
  z-index: 1;
}

.ht-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 320px;
  padding: 80px 0 40px;
  background: linear-gradient(to bottom, rgba(10,10,10,.5), rgba(10,10,10,.85));
}

/* Content styling */
.ht-content-body p {
  margin-bottom: 1.2rem;
}

.ht-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Mobile optimization */
@media (max-width: 576px) {
  .ht-hero-overlay {
    min-height: 220px;
    padding: 60px 15px 30px;
  }

  .ht-single-modern h1 {
    font-size: 24px !important;
  }
}