/*
Theme Name: NewsWave
Theme URI: https://example.com/newswave
Author: NewsWave Team
Author URI: https://example.com
Description: A modern, fast, and responsive news blog WordPress theme. Perfect for news portals, magazines, and online publications.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newswave
Tags: news, magazine, blog, responsive, custom-menu, featured-images, two-columns, three-columns, left-sidebar, right-sidebar, custom-logo, custom-header, editor-style, translation-ready
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --primary:     #C0392B;
  --primary-dark:#922B21;
  --secondary:   #1A1A2E;
  --accent:      #E74C3C;
  --bg:          #F5F5F5;
  --bg-white:    #FFFFFF;
  --text-dark:   #1A1A1A;
  --text-gray:   #555555;
  --text-light:  #888888;
  --border:      #E0E0E0;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-hover:  0 8px 32px rgba(0,0,0,0.14);
  --font-heading:'Playfair Display', Georgia, serif;
  --font-body:   'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      4px;
  --transition:  0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; }

/* =========================================
   LAYOUT CONTAINERS
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  flex: 1;
  padding: 30px 0;
}

/* Main + Sidebar Layout */
.main-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* =========================================
   BREAKING NEWS TICKER
   ========================================= */
.breaking-news-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}

.breaking-news-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breaking-label {
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  white-space: nowrap;
  border-radius: 2px;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-size: 0.85rem;
}

.ticker-content a { color: #fff; }
.ticker-content a:hover { text-decoration: underline; }

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

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-logo img { height: 48px; width: auto; }

.site-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.site-title span { color: var(--secondary); }

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Search Box */
.header-search { position: relative; }

.header-search input {
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 8px 40px 8px 16px;
  font-size: 0.9rem;
  width: 220px;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  width: 260px;
}

.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-gray);
}

/* =========================================
   NAVIGATION
   ========================================= */
.primary-nav {
  background: var(--secondary);
}

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

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

.nav-menu > li > a {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 16px;
  transition: background var(--transition), color var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  background: var(--primary);
  color: #fff;
}

/* Dropdown */
.nav-menu .menu-item-has-children { position: relative; }

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 200px;
  box-shadow: var(--card-hover);
  border-top: 3px solid var(--primary);
  z-index: 999;
}

.nav-menu .menu-item-has-children:hover .sub-menu { display: block; }

.nav-menu .sub-menu li a {
  display: block;
  color: var(--text-dark);
  font-size: 0.85rem;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-menu .sub-menu li a:hover { background: var(--bg); color: var(--primary); }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  font-size: 1.4rem;
}

/* =========================================
   HERO / FEATURED POSTS SLIDER
   ========================================= */
.hero-section { margin: 24px 0; }

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

.hero-main {
  grid-row: span 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary);
}

.hero-main img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.hero-main:hover img { opacity: 0.75; }

.hero-main .post-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
}

.hero-main .post-info .cat-badge { margin-bottom: 8px; }

.hero-main .post-info h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
}

.hero-main .post-info h2 a { color: #fff; }
.hero-main .post-info h2 a:hover { color: var(--accent); }

.hero-small {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary);
}

.hero-small img {
  width: 100%;
  height: 218px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.hero-small:hover img { opacity: 0.75; }

.hero-small .post-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.hero-small .post-info h3 {
  color: #fff;
  font-size: 1rem;
}

.hero-small .post-info h3 a { color: #fff; }
.hero-small .post-info h3 a:hover { color: var(--accent); }

/* =========================================
   CATEGORY BADGE
   ========================================= */
.cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.cat-badge:hover { background: var(--primary-dark); color: #fff; }

/* =========================================
   POST META
   ========================================= */
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-meta .meta-item svg { width: 13px; height: 13px; }

/* =========================================
   SECTION HEADING
   ========================================= */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 10px;
}

.section-heading h2, .section-heading h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.section-heading .see-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   CARD GRID
   ========================================= */
.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.posts-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Post Card */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-3px);
}

.post-card .card-thumb {
  position: relative;
  overflow: hidden;
}

.post-card .card-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.post-card .card-thumb .cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.post-card .card-body { padding: 16px; }

.post-card .card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card .card-body h3 a { color: var(--text-dark); }
.post-card .card-body h3 a:hover { color: var(--primary); }

.post-card .card-excerpt {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List-style Card */
.post-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.post-list-item .list-thumb img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.post-list-item .list-body { flex: 1; }

.post-list-item h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.post-list-item h4 a { color: var(--text-dark); }
.post-list-item h4 a:hover { color: var(--primary); }

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.popular-post-item .num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--border);
  font-family: var(--font-heading);
  line-height: 1;
  min-width: 28px;
}

.popular-post-item h4 {
  font-size: 0.85rem;
  line-height: 1.4;
}

.popular-post-item h4 a { color: var(--text-dark); }
.popular-post-item h4 a:hover { color: var(--primary); }

/* Tag Cloud Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-cloud a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Newsletter Widget */
.newsletter-widget { background: var(--secondary); color: #fff; }
.newsletter-widget .widget-title { color: #fff; border-color: var(--primary); }
.newsletter-widget p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 14px; }

.newsletter-form input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.newsletter-form input:focus { outline: 2px solid var(--primary); }

.newsletter-form button {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--transition);
  font-family: var(--font-body);
}

.newsletter-form button:hover { background: var(--accent); }

/* =========================================
   SINGLE POST
   ========================================= */
.single-post-wrap { background: var(--bg-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--card-shadow); }

.post-header { margin-bottom: 24px; }
.post-header .cat-badge { margin-bottom: 12px; }
.post-header h1 { margin-bottom: 14px; }
.post-header .post-meta { margin-bottom: 14px; }

.post-feature-img { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.post-feature-img img { width: 100%; max-height: 480px; object-fit: cover; }
.post-feature-img figcaption { font-size: 0.8rem; color: var(--text-light); padding: 8px 0; font-style: italic; }

.post-content h2 { margin: 2em 0 0.8em; border-left: 4px solid var(--primary); padding-left: 14px; }
.post-content h3 { margin: 1.6em 0 0.6em; }
.post-content p { margin-bottom: 1.4em; }
.post-content ul, .post-content ol { padding-left: 20px; margin-bottom: 1.4em; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 5px solid var(--primary);
  margin: 2em 0;
  padding: 16px 20px;
  background: var(--bg);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags span { font-weight: 700; font-size: 0.85rem; margin-right: 8px; }

/* Share Box */
.share-box { margin: 24px 0; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.share-box h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 4px; font-size: 0.82rem; font-weight: 700;
  color: #fff; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em;
}
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter  { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }

/* Author Box */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg); border-radius: var(--radius);
  padding: 24px; margin: 24px 0; border: 1px solid var(--border);
}
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-info h4 { margin-bottom: 6px; }
.author-info p { font-size: 0.88rem; color: var(--text-gray); margin: 0; }

/* Comments */
.comments-section { margin-top: 32px; }
.comments-section h3 { margin-bottom: 20px; }

.comment-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.comment-body .commenter-name { font-weight: 700; font-size: 0.9rem; }
.comment-body .comment-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; }
.comment-body p { font-size: 0.9rem; margin: 0; }

/* Comment Form */
.comment-form { margin-top: 28px; }
.comment-form h4 { margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 130px; resize: vertical; }
.btn-submit {
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
  padding: 12px 28px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-body);
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); }

/* =========================================
   CATEGORY / ARCHIVE PAGE
   ========================================= */
.page-header-banner {
  background: var(--secondary);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.page-header-banner .cat-badge { margin-bottom: 10px; }
.page-header-banner h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.page-header-banner p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.9rem; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin: 32px 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  border: 2px solid var(--border); color: var(--text-dark);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  margin-top: 40px;
}

.footer-top { padding: 48px 0 32px; }

.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-widget h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.footer-widget p { font-size: 0.87rem; line-height: 1.7; }

.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.7); }
.footer-widget ul li a:hover { color: var(--primary); }

.footer-about-logo { margin-bottom: 14px; }
.footer-about-logo .site-title { font-size: 1.5rem; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 0.9rem; transition: background var(--transition);
}
.social-links a:hover { background: var(--primary); }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  font-size: 0.82rem;
}

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

.footer-bottom a { color: var(--primary); }

/* =========================================
   UTILITIES
   ========================================= */
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.text-red { color: var(--primary); }

.wp-post-image { display: block; }

.screen-reader-text {
  position: absolute;
  clip: rect(1px,1px,1px,1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .main-sidebar-wrap { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .hero-main img { height: 280px; }
  .hero-small img { height: 180px; }
  .posts-grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--secondary); z-index: 999; }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }
  .primary-nav .container { position: relative; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .posts-grid-3, .posts-grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-search input { width: 100%; }
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .author-box { flex-direction: column; }
}

/* ===========================================
   CUSTOM SECTIONS CSS
   Added: Slider, Trending, Editor's Picks,
          News Tabs, Multimedia, Opinion
   =========================================== */

/* ── General Section Wrapper ─────────────── */
.nw-section { margin-bottom: 40px; }
.nw-section-title { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.nw-icon { font-style: normal; }
.nw-section-subtitle { font-size: 0.8rem; color: var(--text-light); font-style: italic; }
.nw-view-all {
  display: inline-block; margin-top: 14px; font-size: 0.82rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em;
}
.nw-view-all:hover { text-decoration: underline; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 1: HERO SLIDER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nw-slider-section { margin-bottom: 0; }

.nw-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--secondary);
  height: 540px;
}

.nw-slides-track { position: relative; width: 100%; height: 100%; }

/* Each slide: hidden by default */
.nw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}

/* Active slide */
.nw-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Background image layer */
.nw-slide-bg { position: absolute; inset: 0; }

.nw-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.nw-slide.active .nw-slide-img { transform: scale(1.04); }

.nw-slide-placeholder {
  width: 100%; height: 100%; background: var(--secondary);
}

.nw-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.10) 100%
  );
}

/* Content over slide */
.nw-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 0 60px;
}

.nw-slide-inner { max-width: 760px; }

.nw-slide-inner .cat-badge { margin-bottom: 12px; }

.nw-slide-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}

.nw-slide-title a { color: #fff; }
.nw-slide-title a:hover { color: var(--accent); }

.nw-slide-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
  max-width: 580px;
}

.nw-slide-meta { margin-bottom: 18px; }
.nw-slide-meta .post-meta { color: rgba(255,255,255,0.7); }

.nw-slide-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.nw-slide-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Arrow buttons */
.nw-prev, .nw-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.nw-prev { left: 20px; }
.nw-next { right: 20px; }
.nw-prev:hover, .nw-next:hover { background: var(--primary); border-color: var(--primary); }

/* Dots */
.nw-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.nw-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.nw-dot.active {
  background: var(--primary);
  width: 26px;
  border-radius: 5px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 2: TRENDING NOW
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nw-trending-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.nw-flame { font-style: normal; }

.nw-trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Big trending card */
.nw-trending-big { }

.nw-trend-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.nw-trend-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nw-trending-big:hover .nw-trend-thumb img { transform: scale(1.04); }

.nw-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 2px;
}

.nw-trend-body .cat-badge { margin-bottom: 8px; display: block; }
.nw-trend-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.nw-trend-body h3 a { color: var(--text-dark); }
.nw-trend-body h3 a:hover { color: var(--primary); }

/* Trending list */
.nw-trending-list { display: flex; flex-direction: column; gap: 0; }

.nw-trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nw-trending-item:last-child { border-bottom: none; }

.nw-rank-num {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--border);
  min-width: 32px;
  line-height: 1;
}

.nw-trend-list-thumb img {
  width: 80px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius);
}

.nw-trend-list-body h4 { font-size: 0.88rem; line-height: 1.4; margin-bottom: 4px; }
.nw-trend-list-body h4 a { color: var(--text-dark); }
.nw-trend-list-body h4 a:hover { color: var(--primary); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 4: EDITOR'S PICKS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nw-editors-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.nw-editors-section .section-heading { border-bottom-color: var(--primary); }
.nw-editors-section .nw-section-title { color: #fff; }
.nw-editors-section .nw-section-subtitle { color: rgba(255,255,255,0.5); }

.nw-editors-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Lead story */
.nw-editors-lead-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.nw-editors-lead-inner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.nw-editors-lead:hover .nw-editors-lead-inner img { opacity: 0.85; }

.nw-editors-lead-body {
  padding: 20px;
}

.nw-pick-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.nw-editors-lead-body .cat-badge { margin-bottom: 10px; }
.nw-editors-lead-body h2 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.nw-editors-lead-body h2 a { color: #fff; }
.nw-editors-lead-body h2 a:hover { color: var(--accent); }
.nw-editors-lead-body p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.nw-editors-lead-body .post-meta { color: rgba(255,255,255,0.55); }

/* Side items */
.nw-editors-side { display: flex; flex-direction: column; gap: 14px; }

.nw-editors-side-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nw-editors-side-item:hover { background: rgba(255,255,255,0.1); }

.nw-editors-side-thumb img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.nw-editors-side-body .cat-badge { margin-bottom: 6px; font-size: 0.62rem; }
.nw-editors-side-body h4 { font-size: 0.87rem; line-height: 1.4; margin-bottom: 4px; }
.nw-editors-side-body h4 a { color: rgba(255,255,255,0.9); }
.nw-editors-side-body h4 a:hover { color: var(--accent); }
.nw-editors-side-body .post-meta { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 5: NEWS TABS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nw-tabs-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* Tab buttons row */
.nw-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.nw-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-gray);
  padding: 10px 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

.nw-tab-btn:hover { color: var(--primary); }

.nw-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Tab panels */
.nw-tab-panel { display: none; }
.nw-tab-panel.active { display: block; }

.nw-tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.nw-tab-big-card .card-thumb img { height: 240px; }

.nw-tab-list { display: flex; flex-direction: column; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 6: MULTIMEDIA / VIDEO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nw-multimedia-section {
  background: #0D0D0D;
  border-radius: var(--radius);
  padding: 28px;
}

.nw-multimedia-section .section-heading { border-bottom-color: var(--primary); }
.nw-multimedia-section .nw-section-title { color: #fff; }
.nw-multimedia-section .see-all { color: var(--primary); }

.nw-multimedia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nw-media-card { background: rgba(255,255,255,0.05); border-radius: var(--radius); overflow: hidden; transition: background var(--transition); }
.nw-media-card:hover { background: rgba(255,255,255,0.09); }

.nw-media-thumb {
  position: relative;
  overflow: hidden;
}

.nw-media-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nw-media-card:hover .nw-media-thumb img { transform: scale(1.06); }

.nw-media-thumb .cat-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
}

/* Play button overlay */
.nw-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(192,57,43,0.88);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}

.nw-media-card:hover .nw-play-btn {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.nw-media-body { padding: 12px; }
.nw-media-body h4 { font-size: 0.88rem; line-height: 1.4; margin-bottom: 6px; }
.nw-media-body h4 a { color: rgba(255,255,255,0.9); }
.nw-media-body h4 a:hover { color: var(--primary); }
.nw-media-body .post-meta { color: rgba(255,255,255,0.45); font-size: 0.75rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 7: OPINION & COLUMNS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nw-opinion-section {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.nw-opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nw-opinion-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.nw-opinion-card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }

/* Author header */
.nw-opinion-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nw-opinion-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.nw-opinion-author-info { flex: 1; }
.nw-opinion-author-info a { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); display: block; }
.nw-opinion-author-info a:hover { color: var(--primary); }
.nw-opinion-author-info span { font-size: 0.72rem; color: var(--text-light); }

.nw-opinion-badge {
  background: var(--secondary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nw-opinion-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nw-opinion-card:hover .nw-opinion-thumb img { transform: scale(1.04); }

.nw-opinion-body { padding: 14px; }
.nw-opinion-body h3 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 8px; }
.nw-opinion-body h3 a { color: var(--text-dark); }
.nw-opinion-body h3 a:hover { color: var(--primary); }
.nw-opinion-body p { font-size: 0.84rem; color: var(--text-gray); line-height: 1.5; margin-bottom: 8px; }
.nw-opinion-body .post-meta { font-size: 0.76rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE: Custom Sections
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  .nw-multimedia-grid { grid-template-columns: repeat(2, 1fr); }
  .nw-opinion-grid    { grid-template-columns: repeat(2, 1fr); }
  .nw-editors-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nw-slider             { height: 380px; }
  .nw-slide-title        { font-size: 1.3rem; }
  .nw-slide-excerpt      { display: none; }
  .nw-trending-grid      { grid-template-columns: 1fr; }
  .nw-tab-content-grid   { grid-template-columns: 1fr; }
  .nw-multimedia-grid    { grid-template-columns: repeat(2, 1fr); }
  .nw-opinion-grid       { grid-template-columns: repeat(2, 1fr); }
  .nw-prev, .nw-next     { width: 36px; height: 36px; font-size: 0.9rem; }
}

@media (max-width: 540px) {
  .nw-slider           { height: 280px; }
  .nw-slide-title      { font-size: 1.1rem; }
  .nw-slide-content    { padding: 20px 0 48px; }
  .nw-multimedia-grid  { grid-template-columns: 1fr; }
  .nw-opinion-grid     { grid-template-columns: 1fr; }
  .nw-tab-buttons      { gap: 4px; }
  .nw-tab-btn          { padding: 8px 12px; font-size: 0.8rem; }
  .nw-editors-section  { padding: 16px; }
}

/* ── v2 Design Overrides ──────────────────────── */

/* Better header */
.site-header { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.site-title {
  font-size: 2rem; font-weight: 900; letter-spacing: -0.03em;
  color: #C0392B;
}

/* Nav - cleaner */
.primary-nav { background: #1A1A2E; }
.nav-menu > li > a {
  font-size: 0.82rem; letter-spacing: 0.05em;
  padding: 12px 16px;
}

/* Cat badge v2 */
.cat-badge {
  font-size: 0.67rem; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 2px;
}

/* Sidebar widgets v2 */
.widget {
  background: #fff; border: 1px solid #EBEBEB;
  border-radius: 6px; padding: 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.widget-title {
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-bottom: 2px solid #C0392B;
  padding-bottom: 9px; margin-bottom: 14px;
  color: #1A1A1A;
}

/* Footer premium */
.site-footer { background: #0F0F1E; }
.footer-widgets { gap: 32px; }
.footer-widget h4 {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 2px solid #C0392B; padding-bottom: 9px; margin-bottom: 14px;
}

/* Post meta refinement */
.post-meta { font-size: 0.78rem; color: #888; gap: 12px; }

/* Pagination v2 */
.pagination a, .pagination span {
  border-radius: 4px; border: 1px solid #E0E0E0;
  font-size: 0.85rem;
}
.pagination a:hover { background: #C0392B; border-color: #C0392B; }
.pagination .current { background: #C0392B; border-color: #C0392B; }

/* Post list items v2 */
.post-list-item { padding: 11px 0; border-bottom: 1px solid #F0F0F0; }
.post-list-item .list-thumb img { border-radius: 4px; }
.post-list-item h4 { font-size: 0.88rem; }
.post-list-item h4 a:hover { color: #C0392B; }

/* Breaking news bar v2 */
.breaking-news-bar { background: #C0392B; font-size: 0.82rem; }
.breaking-label {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em;
  background: #1A1A2E; padding: 3px 10px; border-radius: 2px;
}

/* Comment form v2 */
.form-group input:focus, .form-group textarea:focus { border-color: #C0392B; }
.btn-submit { background: #C0392B; border-radius: 4px; letter-spacing: 0.06em; }
.btn-submit:hover { background: #922B21; }

/* Share buttons v2 */
.share-btn { border-radius: 4px; font-size: 0.78rem; }

/* Author box v2 */
.author-box { border-radius: 6px; border: 1px solid #EBEBEB; }

/* 404 v2 */
.single-post-wrap { border: 1px solid #EBEBEB; }
