/*
Theme Name: Max NewsPaper Pro
Theme URI: https://example.com/max-newspaper-pro
Author: Custom Theme
Author URI: https://example.com
Description: A clean, modern and fast Magazine / Newspaper style WordPress theme inspired by premium news layouts. Perfect for news portals, blogs and online magazines.
Version: 1.5.10
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: max-newspaper-pro
Tags: news, magazine, blog, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, custom-logo, custom-colors
*/

/* ========================================
   1. CSS Variables & Reset
======================================== */
:root {
  --primary: #1a1a2e;
  --primary-dark: #0f0f1a;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --text: #1d1d1d;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 6px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --container: 1200px;
  --transition: all 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ========================================
   2. Layout Helpers
======================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-content {
  flex: 1;
  padding: 40px 0;
}

/* ========================================
   3. Header
======================================== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.header-top {
  background: var(--primary-dark);
  font-size: 13px;
  padding: 8px 0;
}

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

.header-date {
  color: rgba(255,255,255,0.7);
}

.header-social a {
  color: rgba(255,255,255,0.7);
  margin-left: 14px;
  font-size: 14px;
}

.header-social a:hover {
  color: var(--accent);
}

.header-main {
  padding: 18px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo {
  max-height: 55px;
  width: auto;
  height: auto;
  display: block;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}

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

.site-description {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  font-family: var(--font-main);
  font-weight: 400;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-navigation ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-navigation a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 8px 9px;
  margin: 0 0 0 auto;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  order: 2;
  z-index: 1001;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Open → X */
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================================
   4. Featured / Hero Section
======================================== */
.featured-section {
  margin-bottom: 50px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.featured-main {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.featured-main:hover {
  box-shadow: var(--shadow);
}

.featured-main-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--primary);
}

.featured-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-main:hover .featured-main-thumb img {
  transform: scale(1.04);
}

.featured-main-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: var(--primary);
}

.featured-main-thumb .category {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 3px;
  width: fit-content;
  z-index: 2;
}

.featured-main-content {
  padding: 20px 22px 24px;
}

.featured-main-content h2 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.featured-main-content h2 a:hover {
  color: var(--accent);
}

.featured-main-content .meta {
  font-size: 13px;
  color: var(--text-muted);
}

.featured-side-wrap {
  min-width: 0;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.featured-side-item {
  display: flex;
  gap: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.featured-side-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.featured-side-item .thumb {
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-side-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100px;
  transition: transform 0.4s ease;
}

.featured-side-item:hover .thumb img {
  transform: scale(1.08);
}

.featured-side-item .content {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-side-item .category {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.featured-side-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-family: var(--font-main);
  font-weight: 600;
}

.featured-side-item h3 a:hover {
  color: var(--accent);
}

.featured-side-item .meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   5. Content Grid & Posts
======================================== */
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

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

.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.post-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.thumb-placeholder,
.thumb-placeholder-side {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #333);
}

.thumb-placeholder-side {
  min-height: 100px;
}

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

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

.post-card .category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.post-card .content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card h2 {
  font-size: 18px;
  font-family: var(--font-main);
  font-weight: 650;
  margin-bottom: 10px;
  line-height: 1.35;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card .excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 14px;
  flex: 1;
}

.post-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ========================================
   6. Single Post
======================================== */
.single-post-header {
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.single-post-header .category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
  letter-spacing: 0.6px;
}

.single-post-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.single-post-header .meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.single-featured-image {
  margin-bottom: 35px;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 40px;
}

.entry-content p {
  margin-bottom: 1.4em;
}

.entry-content h2,
.entry-content h3 {
  margin: 1.8em 0 0.7em;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 1.8em 0;
  background: var(--bg-secondary);
  font-style: italic;
  color: var(--text-light);
}

.entry-footer {
  max-width: 720px;
  margin: 0 auto 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.related-posts {
  margin-top: 50px;
}

/* Comments */
.comments-area {
  max-width: 720px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 22px;
  margin-bottom: 25px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.comment-list .children {
  list-style: none;
  margin-left: 20px;
  margin-top: 16px;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.comment-metadata {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.comment-content p {
  margin-bottom: 0.8em;
}

.comment-reply-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
  background: var(--bg);
  color: var(--text);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}

.comment-form .submit:hover {
  background: var(--accent-hover);
}

@media (max-width: 768px) {
  .comments-area {
    max-width: 100%;
    margin-top: 35px;
    padding-top: 24px;
  }

  .comments-title {
    font-size: 18px;
  }

  .comment-list .children {
    margin-left: 12px;
  }

  .comment-reply-title {
    font-size: 17px;
  }
}

/* ========================================
   7. Sidebar
======================================== */
.sidebar .widget {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.sidebar .widget-title {
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--primary);
}

.sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.sidebar ul li:last-child {
  border-bottom: none;
}

.sidebar a:hover {
  color: var(--accent);
}

/* ========================================
   8. Footer
======================================== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 25px;
  margin-top: 60px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widgets .widget-title {
  color: #fff;
  font-size: 15px;
  font-family: var(--font-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.footer-widgets a {
  color: rgba(255,255,255,0.7);
}

.footer-widgets a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.footer-social a:hover {
  color: var(--accent);
}

/* ========================================
   9. Pagination & Misc
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 45px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

.section-title {
  font-size: 22px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ========================================
   10. Responsive
======================================== */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content pre,
.entry-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tablet and below (992px) */
@media (max-width: 992px) {
  .container {
    padding: 0 16px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .content-area {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .single-post-header {
    max-width: 100%;
    padding: 0 4px;
  }

  .entry-content {
    max-width: 100%;
    padding: 0 4px;
  }

  .entry-footer {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .related-posts {
    margin-top: 40px !important;
  }

  .site-content {
    padding: 30px 0;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 14px;
  }

  /* Header */
  .header-top {
    font-size: 12px;
    padding: 6px 0;
  }

  .header-top .container {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .header-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .header-social a {
    margin-left: 8px;
    font-size: 12px;
  }


  /* Mobile header: no top bar, dark mode left, logo center, menu right */
  .header-top {
    display: none !important;
  }

  .dark-mode-toggle.dark-mode-toggle-mobile {
    display: inline-flex !important;
    order: 1;
    flex-shrink: 0;
    margin-right: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
  }

  .header-main .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .site-branding {
    order: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .site-branding .custom-logo-link {
    margin: 0 auto;
  }

  .site-title {
    text-align: center;
  }

  .site-description {
    display: none;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0 !important;
    width: 34px;
    height: 34px;
    padding: 6px;
    gap: 4px;
  }

  .menu-toggle-bar {
    width: 18px;
    height: 2px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-navigation {
    order: 4;
  }

  .header-main {
    padding: 10px 0;
  }


  .site-title {
    font-size: 22px;
  }

  .site-description {
    font-size: 11px;
  }

  .custom-logo {
    max-height: 52px;
  }

  .site-title {
    font-size: 24px;
  }

  .menu-toggle {
    display: flex !important;
    order: 3;
    margin-left: 0 !important;
  }

  .main-navigation {
    display: none !important;
    width: 100%;
    order: 4;
    flex-basis: 100%;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 8px 14px;
    text-align: right;
  }

  .main-navigation.active {
    display: block !important;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .main-navigation a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: right;
  }

  .main-navigation li:last-child a {
    border-bottom: none;
  }

  /* Featured section — lead stays full width, others 2 per row */
  .featured-section {
    margin-bottom: 30px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-main {
    width: 100%;
  }

  .featured-main-content {
    padding: 16px 18px 20px;
  }

  .featured-main-content h2 {
    font-size: 20px;
  }

  .featured-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .featured-side-item {
    flex-direction: column;
    gap: 0;
  }

  .featured-side-item .thumb {
    width: 100%;
    height: 110px;
  }

  .featured-side-item .content {
    padding: 10px;
  }

  .featured-side-item h3 {
    font-size: 14px;
  }

  /* Category & other news — 2 per row on mobile */
  .posts-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }

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

  .post-card h2 {
    font-size: 17px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-header .section-title {
    font-size: 18px;
  }

  /* Single post / Single News page */
  .single-post-header {
    margin-bottom: 20px;
    text-align: left;
  }

  .single-post-header h1,
  .single-post-header .entry-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .news-subtitle {
    font-size: 16px;
    margin: 6px 0 12px;
  }

  .single-post-header .meta,
  .news-meta {
    justify-content: flex-start;
    gap: 10px 14px !important;
    font-size: 13px;
  }

  .news-meta .reporter,
  .news-meta .location,
  .news-meta .source {
    font-size: 12px;
  }

  .single-featured-image {
    margin-bottom: 24px;
    border-radius: 4px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.75;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .entry-content p {
    margin-bottom: 1.2em;
  }

  .entry-content h2 {
    font-size: 22px;
  }

  .entry-content h3 {
    font-size: 19px;
  }

  .entry-footer {
    max-width: 100% !important;
    margin: 0 0 30px !important;
    padding-top: 16px !important;
  }

  .related-posts {
    margin-top: 35px !important;
  }

  .related-posts .section-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  /* Sidebar */
  .sidebar .widget {
    padding: 18px;
    margin-bottom: 20px;
  }

  /* Footer */
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }

  /* Breaking & Category nav */
  .breaking-bar {
    padding: 8px 0;
    margin-bottom: 20px;
    font-size: 13px;
  }

  .breaking-bar .container {
    gap: 10px;
  }

  .breaking-label {
    font-size: 11px;
    padding: 2px 8px;
  }

  .breaking-track {
    animation-duration: 35s;
  }

  .breaking-text {
    padding-right: 40px;
  }

  .category-nav {
    margin-bottom: 25px;
  }

  .category-nav a {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Pagination */
  .pagination {
    margin-top: 30px;
    gap: 6px;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .site-content {
    padding: 24px 0;
  }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .featured-side {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .post-card h2 {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .site-title {
    font-size: 20px;
  }

  .custom-logo {
    max-height: 48px;
  }

  .featured-main-content h2 {
    font-size: 18px;
  }

  .featured-side-item {
    flex-direction: column;
  }

  .featured-side-item .thumb {
    width: 100%;
    height: 160px;
  }

  .featured-side-item .content {
    padding: 12px;
  }

  .single-post-header h1,
  .single-post-header .entry-title {
    font-size: 22px;
  }

  .news-subtitle {
    font-size: 15px;
  }

  .entry-content {
    font-size: 15px;
  }

  .entry-content h2 {
    font-size: 20px;
  }

  .entry-content h3 {
    font-size: 17px;
  }

  .post-card h2 {
    font-size: 16px;
  }

  .section-header .section-title {
    font-size: 16px;
  }

  .breaking-bar .container {
    gap: 8px;
  }

  .breaking-label {
    font-size: 10px;
  }

  .breaking-track {
    animation-duration: 30s;
  }
}

/* ========================================
   11. Breaking News Bar & Category Nav
======================================== */
.breaking-bar {
  background: #0b3d2e;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 30px;
  overflow: hidden;
}

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

.breaking-label {
  background: #fff;
  color: #0b3d2e;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
  z-index: 2;
}

.breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.breaking-track {
  display: flex;
  width: max-content;
  animation: mnp-ticker 40s linear infinite;
}

.breaking-track:hover {
  animation-play-state: paused;
}

.breaking-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  color: #fff;
  text-decoration: none;
}

.breaking-text:hover {
  text-decoration: underline;
  color: #fff;
}

.breaking-sep {
  display: inline-block;
  padding: 0 18px;
  opacity: 0.7;
  white-space: nowrap;
}

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

.category-nav {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.category-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.full-width .content-area,
.no-sidebar .content-area {
  grid-template-columns: 1fr;
}

.full-width .sidebar,
.no-sidebar .sidebar {
  display: none;
}

/* Admin-like empty state button */
.no-posts a {
  text-decoration: none;
}

/* ========================================
   12. Bangla Font Support (Noto Sans Bengali primary)
======================================== */
body {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.featured-main-content h2,
.single-post-header h1,
.entry-title {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Playfair Display', Georgia, serif;
}

.entry-content,
.post-card,
.news-subtitle,
.card-subtitle,
.breaking-text {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}


/* ========================================
   Category Bar (below header)
======================================== */
.mnp-cat-bar {
  background: #0b3d2e;
  border-bottom: none;
  position: relative;
  z-index: 100;
  margin-bottom: 0;
}

/* Red gap between category bar and breaking news */
.mnp-cat-bar::after {
  content: "";
  display: block;
  height: 10px;
  background: #c1121f;
  width: 100%;
}

.mnp-cat-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mnp-cat-list::-webkit-scrollbar {
  display: none;
}

.mnp-cat-list > li {
  flex-shrink: 0;
}

.mnp-cat-list > li > a,
.mnp-cat-more-btn {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.mnp-cat-list > li > a:hover,
.mnp-cat-list > li > a:focus,
.mnp-cat-more-btn:hover {
  color: #fff;
  border-bottom-color: #fff;
  background: rgba(0,0,0,0.12);
}

.mnp-cat-more {
  position: relative;
}

.mnp-cat-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mnp-cat-caret {
  font-size: 10px;
  line-height: 1;
}

.mnp-cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 200;
}

.mnp-cat-more.open .mnp-cat-dropdown {
  display: block;
}

.mnp-cat-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.mnp-cat-dropdown a:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

body.dark-mode .mnp-cat-bar {
  background: #0b3d2e;
  border-bottom: none;
}

body.dark-mode .mnp-cat-dropdown {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

@media (max-width: 768px) {
  .mnp-cat-list > li > a,
  .mnp-cat-more-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .mnp-cat-dropdown {
    right: 0;
    left: auto;
    min-width: 180px;
  }
}

/* ========================================
   13. Dark Mode
======================================== */
.dark-mode-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: var(--transition);
  padding: 0;
}

.dark-mode-toggle:hover {
  background: rgba(255,255,255,0.15);
}

/* Logo-side dark mode toggle: hidden on desktop, shown on mobile */
.dark-mode-toggle.dark-mode-toggle-mobile {
  display: none !important;
}

body.dark-mode {
  --primary: #e8e8e8;
  --primary-dark: #121212;
  --text: #e4e4e4;
  --text-light: #b0b0b0;
  --text-muted: #888;
  --bg: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --border: #2a2a2a;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark-mode .site-header {
  background: #121212;
}

body.dark-mode .header-top {
  background: #0a0a0a;
}

body.dark-mode .post-card,
body.dark-mode .featured-main,
body.dark-mode .featured-side-item {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .sidebar .widget {
  background: #1a1a1a;
}

body.dark-mode .site-footer {
  background: #0a0a0a;
}

body.dark-mode .breaking-bar {
  background: #0b3d2e;
}

body.dark-mode .category-nav a {
  color: #b0b0b0;
}

body.dark-mode .category-nav a:hover,
body.dark-mode .category-nav a.active {
  color: var(--accent);
}

body.dark-mode .entry-content blockquote {
  background: #1a1a1a;
}

body.dark-mode .dark-mode-toggle {
  border-color: rgba(255,255,255,0.4);
}

/* ========================================
   14. Category Sections & News Meta
======================================== */
.category-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
}

.section-header .section-title {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 22px;
}

.section-header .section-title a:hover {
  color: var(--accent);
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

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

.news-subtitle {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 400;
  margin: 8px 0 16px;
  line-height: 1.5;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

.news-meta {
  flex-wrap: wrap;
  gap: 14px !important;
}

.news-meta .reporter,
.news-meta .location,
.news-meta .source {
  font-size: 13px;
}

.btn-primary {
  display: inline-block;
  margin-top: 15px;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Dark mode for category section title border already uses accent */

.card-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin: -4px 0 10px;
  line-height: 1.4;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

body.dark-mode .card-subtitle {
  color: #aaa;
}


.featured-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 10px;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

/* Video News Row */
.video-news-section {
  margin: 40px 0 45px;
}

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

.video-news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

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

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

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 14px 16px;
  margin: 0;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

.video-title a:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .video-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .video-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .video-title {
    font-size: 13px;
    padding: 10px;
  }
  .video-play {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .featured-excerpt {
    font-size: 14px;
  }
}


/* Category bar layout: home + list + search */
.mnp-cat-bar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mnp-cat-list {
  flex: 1;
  min-width: 0;
}

.mnp-cat-home a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 12px !important;
}

.mnp-icon-home {
  display: flex;
  color: #fff;
}

.mnp-cat-search {
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
}

.mnp-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.mnp-search-toggle:hover {
  background: rgba(0,0,0,0.15);
}

.mnp-search-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 10px;
  z-index: 300;
  min-width: 260px;
}

.mnp-cat-search.open .mnp-search-panel {
  display: block;
}

.mnp-search-panel form {
  display: flex;
  gap: 6px;
}

.mnp-search-panel input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.mnp-search-panel button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

/* Featured side: latest category + auto rotate */
.featured-side-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.featured-side-header {
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

.featured-side-tabs {
  display: flex;
  gap: 0;
  width: 100%;
  position: relative;
  z-index: 3;
}

.featured-side-tab {
  flex: 1;
  background: #1a1a1a;
  border: none;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1.3;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 4;
}

.featured-side-tab:hover {
  background: #333;
  color: #fff;
}

.featured-side-tab.active {
  background: #fff;
  color: #1a1a1a;
}

/* Hide inactive panels on all viewports (desktop + mobile) */
.featured-side-panel {
  display: none !important;
}

.featured-side-panel.active {
  display: block !important;
}

.featured-side-panel .featured-side {
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
}

.featured-side-panel .featured-side-item {
  background: transparent;
  border-radius: 0;
  border-bottom: 1px dotted #ccc;
  padding: 10px 12px;
  gap: 12px;
  box-shadow: none;
  transform: none;
}

.featured-side-panel .featured-side-item:last-child {
  border-bottom: none;
}

.featured-side-panel .featured-side-item:hover {
  box-shadow: none;
  transform: none;
  background: #f8f9fa;
}

.featured-side-panel .featured-side-item .thumb {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.featured-side-panel .featured-side-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.featured-side-panel .featured-side-item .content {
  padding: 0;
  justify-content: center;
}

.featured-side-panel .featured-side-item h3 {
  font-size: 14px;
  margin: 0;
  line-height: 1.45;
  font-weight: 600;
}

.featured-side-footer {
  margin-top: 10px;
  text-align: center;
  padding-top: 8px;
}

.featured-side-all {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.featured-side-all:hover {
  text-decoration: underline;
}

/* Dark mode for side tabs */
body.dark-mode .featured-side-tab {
  background: #0a0a0a;
  color: #ccc;
}

body.dark-mode .featured-side-tab:hover {
  background: #222;
  color: #fff;
}

body.dark-mode .featured-side-tab.active {
  background: #1a1a1a;
  color: #fff;
}

body.dark-mode .featured-side-panel .featured-side {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .featured-side-panel .featured-side-item {
  border-bottom-color: #333;
}

body.dark-mode .featured-side-panel .featured-side-item:hover {
  background: #222;
}



@media (max-width: 768px) {
  .featured-side-wrap {
    width: 100%;
  }
  .mnp-search-panel {
    right: 0;
    left: auto;
    min-width: 220px;
  }
}


/* Advertisement slots */
.mnp-ad-slot-6,
.mnp-ad-slot-7 {
  margin: 20px 0;
  text-align: center;
}
.mnp-ad-slot {
  margin: 24px 0;
  text-align: center;
  line-height: 0;
}

.mnp-ad-slot img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: var(--radius);
}

.mnp-ad-slot a {
  display: inline-block;
}

@media (max-width: 768px) {
  .mnp-ad-slot-6,
.mnp-ad-slot-7 {
  margin: 20px 0;
  text-align: center;
}
.mnp-ad-slot {
    margin: 16px 0;
  }
}


/* Tighten space under category bar so only red strip shows */
.site-content {
  padding-top: 0;
}
.site-content > .container {
  padding-top: 0;
}
/* restore content padding below breaking */
.breaking-bar + .container,
.featured-section {
  /* featured still has margin */
}
.mnp-homepage .site-content {
  padding-top: 0;
}


/* Mobile header dark-mode switch */
@media (max-width: 768px) {
  .header-main .dark-mode-toggle.dark-mode-toggle-mobile {
    display: inline-flex !important;
    order: 1;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    visibility: visible;
    opacity: 1;
  }

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