/*
Theme Name: Jagprerna News
Theme URI: https://jagprernanews.com
Author: Jagprerna News Team
Author URI: https://jagprernanews.com
Description: A premium, fully customizable Hindi news portal theme. 100% compatible with Gutenberg and Elementor page editors. Every element — header, footer, navigation, social icons, colors, fonts — is editable from WordPress admin. Built for professional Hindi news websites with Bootstrap 5, Mukta font (Devanagari), and a modern dark-blue & red color scheme.
Version: 2.0.0
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jagprerna-news
Tags: news, magazine, blog, hindi, responsive, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, editor-style, custom-colors, rtl-language-support
*/

/* ================================================================
   TABLE OF CONTENTS
   ================================================================
   1.  CSS Variables & Root
   2.  Reset & Base
   3.  Typography
   4.  Layout & Containers
   5.  Top Bar
   6.  Header / Logo
   7.  Navigation
   8.  Hero / Banner Section
   9.  News Cards & Articles
   10. Sidebar & Widgets
   11. Footer
   12. Single Post
   13. Archive / Search
   14. 404 Page
   15. Comments
   16. Elementor Compatibility
   17. Gutenberg Blocks
   18. Utilities & Helpers
   19. Responsive / Mobile
   ================================================================ */

/* ================================================================
   1. CSS Variables & Root
   ================================================================ */
:root {
  --primary-red: #d32f2f;
  --dark-blue: #1a237e;
  --nav-bg: #1a237e;
  --nav-hover: #d32f2f;
  --text-dark: #212121;
  --text-muted: #6c757d;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --topbar-bg: #ffffff;
  --topbar-border: #e0e0e0;
  --footer-bg: #111111;
  --footer-text: #cccccc;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --card-radius: 8px;
  --section-border: 5px solid var(--primary-red);
  --font-body: 'Mukta', 'Noto Sans Devanagari', sans-serif;
  --font-heading: 'Roboto', 'Mukta', sans-serif;
  --transition: all 0.3s ease;
}

/* ================================================================
   2. Reset & Base
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

body.elementor-editor-active {
  background-color: var(--bg-white);
}

a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-red);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   3. Typography
   ================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9rem;
}

/* ================================================================
   4. Layout & Containers
   ================================================================ */
.site-wrapper {
  background: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ================================================================
   5. Top Bar
   ================================================================ */
.jn-topbar {
  background-color: var(--dark-blue);
  border-bottom: 2px solid var(--primary-red);
  padding: 8px 0;
  font-size: 0.85rem;
  color: #fff;
}

.jn-topbar .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.jn-topbar .topbar-date {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.jn-topbar .topbar-date i {
  color: rgba(255, 255, 255, 0.8);
}

.jn-topbar .topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jn-topbar .topbar-social a {
  color: #fff;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.jn-topbar .topbar-social a:hover {
  background: var(--primary-red);
  color: #fff;
  transform: translateY(-2px);
}

.jn-topbar .topbar-links {
  display: flex;
  gap: 15px;
}

.jn-topbar .topbar-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.jn-topbar .topbar-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Breaking news ticker */
.jn-breaking {
  background: var(--primary-red);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.jn-breaking .breaking-inner {
  display: flex;
  align-items: center;
  height: 38px;
}

.jn-breaking .breaking-ticker {
  flex: 1;
  overflow: hidden;
  font-size: 0.88rem;
  white-space: nowrap;
}

.jn-breaking .breaking-ticker a {
  color: #fff;
  text-decoration: none;
}

.jn-breaking .breaking-ticker a:hover {
  text-decoration: underline;
}

.breaking-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: tickerScroll 40s linear infinite;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ================================================================
   6. Header / Logo
   ================================================================ */
.jn-header {
  background: var(--bg-white);
  padding: 24px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.jn-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 70px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .site-name {
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--dark-blue);
  line-height: 1;
  letter-spacing: -1px;
}

.logo-text .site-name span {
  color: var(--primary-red);
}

.logo-text .site-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.jn-header .header-ad {
  max-width: 728px;
}

.jn-header .header-ad img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ================================================================
   7. Navigation
   ================================================================ */
.jn-nav {
  background: linear-gradient(90deg, var(--dark-blue) 0%, #171f69 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.jn-nav-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.jn-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

/* Primary Menu */
.jn-nav .main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jn-nav .main-menu li {
  position: relative;
}

.jn-nav .main-menu>li>a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.jn-nav .main-menu>li:first-child>a {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.jn-nav .main-menu>li>a:hover,
.jn-nav .main-menu>li.current-menu-item>a,
.jn-nav .main-menu>li.current-menu-ancestor>a {
  background: var(--primary-red);
  color: #fff;
  border-bottom-color: #ffcccc;
}

/* Dropdown menus */
.jn-nav .main-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-blue);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-top: 3px solid var(--primary-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 999;
}

.jn-nav .main-menu li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jn-nav .main-menu ul li a {
  display: block;
  color: #e0e0e0;
  padding: 10px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: var(--transition);
}

.jn-nav .main-menu ul li a:hover {
  color: #fff;
  background: var(--primary-red);
  padding-left: 24px;
}

/* Third level */
.jn-nav .main-menu ul ul {
  top: 0;
  left: 100%;
}

/* Sub-menu arrow indicator */
.jn-nav .main-menu li.menu-item-has-children>a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.75rem;
  transition: var(--transition);
}

.jn-nav .main-menu li.menu-item-has-children:hover>a::after {
  transform: rotate(180deg);
}

/* Search in nav */
.jn-nav .nav-search {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.jn-nav .nav-search form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  padding: 4px 8px 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.jn-nav .nav-search form:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.jn-nav .nav-search input[type="search"] {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.88rem;
  width: 150px;
  font-family: var(--font-body);
}

.jn-nav .nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.jn-nav .nav-search button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.9rem;
}

/* Hamburger — hidden on desktop, shown via mobile media query below */
.jn-nav .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 4px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.jn-nav .hamburger .line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================================
   8. Hero / Banner Section
   ================================================================ */
.jn-hero {
  padding: 24px 0;
}

.jn-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

/* Main big news card */
.main-news-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  background: #000;
  cursor: pointer;
}

.main-news-card>a.hero-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.main-news-card>a.hero-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.5s ease;
}

.main-news-card:hover img {
  transform: scale(1.04);
}

.main-news-card .news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 22px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.main-news-card .news-category {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.main-news-card h2 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.main-news-card h2 a {
  color: #fff;
  text-decoration: none;
}

.main-news-card h2 a:hover {
  color: #ffd0d0;
}

.main-news-card .news-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 12px;
  align-items: center;
}

.main-news-card .news-meta i {
  margin-right: 4px;
  color: var(--primary-red);
}

/* Side news list */
.side-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-news-card {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  border: 1px solid #eee;
  transition: var(--transition);
}

.side-news-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
  transform: translateY(-2px);
}

.side-news-card .side-thumb {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}

.side-news-card .side-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.side-news-card:hover .side-thumb img {
  transform: scale(1.06);
}

.side-news-card .side-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-news-card .side-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-news-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 3px 0;
}

.side-news-card h4 a {
  color: var(--text-dark);
}

.side-news-card h4 a:hover {
  color: var(--primary-red);
}

.side-news-card .side-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.side-news-card .side-meta i {
  margin-right: 3px;
}

/* ================================================================
   9. News Cards, Sections & Articles
   ================================================================ */
.jn-section {
  padding: 30px 0;
}

.jn-section+.jn-section {
  padding-top: 0;
}

/* Section title — left red border style */
.section-title {
  border-left: var(--section-border);
  padding-left: 14px;
  margin-bottom: 22px;
  font-weight: 800;
  color: var(--dark-blue);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .see-all {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  padding: 3px 10px;
  border-radius: 3px;
  transition: var(--transition);
}

.section-title .see-all:hover {
  background: var(--primary-red);
  color: #fff;
}

/* News card - 3-col grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-grid.col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.news-grid.col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

.news-card .card-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-thumb img {
  transform: scale(1.06);
}

.news-card .card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.news-card .card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}

.news-card h3 a {
  color: var(--text-dark);
}

.news-card h3 a:hover {
  color: var(--primary-red);
}

.news-card .card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  margin-top: auto;
}

.news-card .card-meta i {
  margin-right: 4px;
  color: var(--primary-red);
}

.news-card .read-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.news-card .read-more:hover {
  gap: 8px;
}

/* Main content + sidebar wrap */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px 0;
}

.content-sidebar-wrap.no-sidebar {
  grid-template-columns: 1fr;
}

/* ================================================================
   10. Sidebar & Widgets
   ================================================================ */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-blue);
  border-left: 4px solid var(--primary-red);
  padding-left: 12px;
  margin-bottom: 16px;
}

.widget ul li {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-dark);
  font-size: 0.88rem;
}

.widget ul li a:hover {
  color: var(--primary-red);
}

.widget_recent_entries ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.widget .widget-post-thumb {
  width: 65px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.widget .widget-post-info {
  flex: 1;
}

.widget .widget-post-info a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  line-height: 1.4;
}

.widget .widget-post-info a:hover {
  color: var(--primary-red);
}

.widget .widget-post-info .wpi-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Search widget */
.widget_search .search-form {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.widget_search .search-field {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.widget_search .search-submit {
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.widget_search .search-submit:hover {
  background: var(--dark-blue);
}

/* Tag cloud widget */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  color: var(--text-dark);
  border-radius: 3px;
  font-size: 0.8rem !important;
  transition: var(--transition);
}

.tagcloud a:hover {
  background: var(--primary-red);
  color: #fff;
}

/* Ad widget */
.widget.ad-widget {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.widget.ad-widget img {
  width: 100%;
}

/* ================================================================
   11. Footer
   ================================================================ */
.jn-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 0 0;
  margin-top: 40px;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.jn-footer .footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jn-footer .footer-widget h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
}

.jn-footer .footer-widget p {
  color: var(--footer-text);
  font-size: 0.88rem;
  line-height: 1.7;
}

.jn-footer .footer-logo .site-name {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

.jn-footer .footer-logo .site-name span {
  color: var(--primary-red);
}

.jn-footer .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.jn-footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.jn-footer .footer-social a:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.jn-footer .footer-widget ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 0;
}

.jn-footer .footer-widget ul li a {
  color: var(--footer-text);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.jn-footer .footer-widget ul li a:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.jn-footer .footer-widget ul li a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--primary-red);
}

/* Footer bottom bar */
.jn-footer .footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.jn-footer .footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.jn-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.jn-footer .footer-bottom a:hover {
  color: var(--primary-red);
}

.jn-footer .footer-bottom-nav {
  display: flex;
  gap: 16px;
}

.jn-footer .footer-bottom-nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.jn-footer .footer-bottom-nav a:hover {
  color: var(--primary-red);
}

/* ================================================================
   12. Single Post Page
   ================================================================ */
.single-post-wrap {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.single-post-header {
  padding: 28px 28px 0;
}

.single-post-header .post-categories {
  margin-bottom: 12px;
}

.single-post-header .post-categories a {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 5px;
}

.single-post-header h1 {
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.single-post-meta i {
  color: var(--primary-red);
}

.single-post-thumbnail {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.single-post-thumbnail-wrap {
  margin: 0 28px 28px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.single-post-content {
  padding: 0 28px 28px;
}

.single-post-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.single-post-content .entry-content h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
}

.single-post-content .entry-content p {
  margin-bottom: 16px;
}

.single-post-content .entry-content blockquote {
  border-left: 4px solid var(--primary-red);
  margin: 20px 0;
  padding: 12px 20px;
  background: #fff5f5;
  font-style: italic;
  color: #555;
}

.single-post-content .entry-content img {
  border-radius: var(--card-radius);
  margin: 16px auto;
}

/* Post tags */
.post-tags {
  padding: 16px 28px;
  border-top: 1px solid #f0f0f0;
}

.post-tags .tags-label {
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 8px;
}

.post-tags a {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  color: var(--text-dark);
  border-radius: 3px;
  font-size: 0.8rem;
  margin: 3px;
  transition: var(--transition);
}

.post-tags a:hover {
  background: var(--primary-red);
  color: #fff;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
}

.post-nav-item {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
}

.post-nav-item .nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-nav-item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.post-nav-item a:hover {
  color: var(--primary-red);
}

/* ================================================================
   13. Archive / Blog List
   ================================================================ */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.archive-card {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: var(--transition);
}

.archive-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.archive-card .archive-thumb {
  overflow: hidden;
}

.archive-card .archive-thumb img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-card:hover .archive-thumb img {
  transform: scale(1.05);
}

.archive-card .archive-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.archive-card .archive-category {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.archive-card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.archive-card h2 a {
  color: var(--text-dark);
}

.archive-card h2 a:hover {
  color: var(--primary-red);
}

.archive-card .archive-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.archive-card .archive-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  align-items: center;
}

.archive-card .archive-meta i {
  color: var(--primary-red);
  margin-right: 3px;
}

/* Pagination */
.pagination-wrap {
  text-align: center;
  padding: 24px 0;
}

.page-numbers {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.page-numbers a:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.page-numbers .current {
  background: var(--dark-blue);
  color: #fff;
  border-color: var(--dark-blue);
}

/* ================================================================
   14. 404 Page
   ================================================================ */
.error-404-wrap {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  margin: 40px 0;
}

.error-404-wrap .error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
  opacity: 0.15;
}

.error-404-wrap h2 {
  font-size: 2rem;
  color: var(--dark-blue);
}

.error-404-wrap p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--dark-blue);
  color: #fff;
}

/* ================================================================
   15. Comments
   ================================================================ */
.comments-area {
  margin-top: 30px;
  padding: 28px;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.comments-title {
  font-size: 1.3rem;
  color: var(--dark-blue);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-red);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-author-info {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author-info .avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.comment-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comment-content {
  font-size: 0.92rem;
}

.comment-reply-link {
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 600;
}

.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 14px;
  outline: none;
  transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}

.comment-form .submit {
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}

.comment-form .submit:hover {
  background: var(--dark-blue);
}

/* ================================================================
   16. Elementor Compatibility
   ================================================================ */
.elementor-section {
  margin: 0 !important;
}

.elementor-template-full-width .jn-nav,
.elementor-template-full-width .jn-footer,
.elementor-template-full-width .jn-header,
.elementor-template-full-width .jn-topbar {
  display: none;
}

.elementor-page {
  padding: 0 !important;
}

.elementor-editor-active .jn-topbar,
.elementor-editor-active .jn-header,
.elementor-editor-active .jn-nav {
  position: relative !important;
}

/* ================================================================
   17. Gutenberg Blocks Compatibility
   ================================================================ */
.wp-block-button .wp-block-button__link {
  background: var(--primary-red);
}

.wp-block-pullquote {
  border-color: var(--primary-red);
}

.wp-block-separator {
  border-color: var(--primary-red);
}

.wp-block-cover {
  border-radius: var(--card-radius);
}

.has-dark-blue-color {
  color: var(--dark-blue);
}

.has-primary-red-color {
  color: var(--primary-red);
}

.has-dark-blue-background-color {
  background: var(--dark-blue);
}

.has-primary-red-background-color {
  background: var(--primary-red);
}

.entry-content .wp-block-heading {
  color: var(--dark-blue);
}

/* ================================================================
   18. Utilities & Helpers
   ================================================================ */
.text-red {
  color: var(--primary-red) !important;
}

.text-blue {
  color: var(--dark-blue) !important;
}

.bg-red {
  background: var(--primary-red) !important;
}

.bg-blue {
  background: var(--dark-blue) !important;
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.align-center {
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

img.alignleft {
  float: left;
  margin: 0 20px 15px 0;
}

img.alignright {
  float: right;
  margin: 0 0 15px 20px;
}

img.aligncenter {
  display: block;
  margin: 0 auto 20px;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
  transition: var(--transition);
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
}

/* ================================================================
   19. Responsive / Mobile
   ================================================================ */
@media (max-width: 1100px) {
  .jn-hero .hero-grid {
    grid-template-columns: 1fr 300px;
  }

  .jn-footer .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .jn-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .main-news-card {
    height: 360px;
  }

  .side-news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid.col-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .jn-nav .nav-search {
    display: none;
  }

  .jn-header .header-ad {
    display: none;
  }

  .jn-header .header-inner {
    justify-content: center;
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-card .archive-thumb img {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .jn-topbar .topbar-links {
    display: none;
  }

  .jn-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .side-news-list {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .jn-footer .footer-widgets {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .jn-breaking .breaking-label {
    display: none;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .main-news-card {
    height: 280px;
  }

  .main-news-card h2 {
    font-size: 1.1rem;
  }

  .single-post-thumbnail {
    height: 260px;
  }

  .single-post-header {
    padding: 20px 16px 0;
  }

  .single-post-content {
    padding: 0 16px 20px;
  }

  .single-post-thumbnail-wrap {
    margin: 0 16px 20px;
  }

  /* Footer mobile fixes — prevent text overflow */
  .jn-footer {
    overflow-x: hidden;
  }

  .jn-footer .container {
    padding: 0 16px;
    overflow: hidden;
  }

  .jn-footer .footer-widget {
    overflow: hidden;
    word-break: break-word;
  }

  .jn-footer .footer-widget h3 {
    font-size: 0.95rem;
  }

  .jn-footer .footer-widget p {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .jn-footer .footer-widget ul li a {
    font-size: 0.84rem;
    word-break: break-word;
  }

  .jn-footer .footer-logo .site-name {
    font-size: 1.3rem;
  }

  .jn-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
  }

  .jn-footer .footer-bottom p {
    font-size: 0.78rem;
    text-align: center;
    word-break: break-word;
  }

  .jn-footer .footer-bottom-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .jn-footer .footer-bottom-nav a {
    font-size: 0.78rem;
  }

  .jn-footer .footer-social {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .jn-topbar .topbar-inner {
    justify-content: center;
  }

  .logo-text .site-name {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .error-404-wrap .error-code {
    font-size: 5rem;
  }

  body {
    overflow-x: hidden;
  }

  .jn-footer .footer-widgets {
    padding: 0 5px 20px;
  }
}

/* ================================================================
   MOBILE NAVIGATION — Final Fix
   Target: all phones (max-width 991px)
   Goal: Show horizontal scrollable category menu + hamburger toggle
   ================================================================ */
@media screen and (max-width: 991px) {

  /* Step 1: Nav bar itself — block so it takes full width */
  .jn-nav {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px !important;
  }

  /* Step 2: Nav container — full width, no Bootstrap interference */
  .jn-nav-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Step 3: nav-inner — flex row containing hamburger + menu */
  .jn-nav .nav-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 50px !important;
    overflow: hidden !important;
    padding: 0 8px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  /* Step 4: Hamburger — always visible, never hidden */
  .jn-nav .hamburger,
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255,255,255,0.18) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999 !important;
  }

  /* Step 5: Hamburger lines — always visible */
  .jn-nav .hamburger .line,
  .hamburger .line {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Step 6: Main menu — horizontal flex scroll */
  .jn-nav .main-menu,
  ul.main-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    flex: 1 1 0% !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    white-space: nowrap !important;
    height: 50px !important;
    align-items: center !important;
  }

  .jn-nav .main-menu::-webkit-scrollbar,
  ul.main-menu::-webkit-scrollbar {
    display: none !important;
  }

  /* Step 7: Menu items — never collapse */
  .jn-nav .main-menu > li,
  ul.main-menu > li {
    display: list-item !important;
    flex: 0 0 auto !important;
    float: none !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
  }

  /* Step 8: Menu links — always clickable & white */
  .jn-nav .main-menu > li > a,
  ul.main-menu > li > a {
    display: block !important;
    white-space: nowrap !important;
    padding: 0 14px !important;
    line-height: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Step 9: Hide sub-menus on mobile (they can't open properly) */
  .jn-nav .main-menu li ul,
  ul.main-menu li ul {
    display: none !important;
  }

  /* Step 10: Hide search bar — no space on mobile */
  .jn-nav .nav-search {
    display: none !important;
  }
}


/* Premium Mobile Side Panel Styling */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--dark-blue);
  background: linear-gradient(180deg, var(--dark-blue) 0%, #10164a 100%);
  z-index: 2001;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-panel.active {
  left: 0;
}

.mobile-nav-panel .mobile-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 15px 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-panel .mobile-close:hover {
  background: var(--primary-red);
  transform: rotate(90deg);
}

.mobile-nav-panel .mobile-logo {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-nav-panel .mobile-logo .site-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.mobile-nav-panel .mobile-logo .site-name span {
  color: var(--primary-red);
}

.mobile-nav-panel .mobile-menu-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 20px 40px;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu li a {
  display: block;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-menu li a:hover,
.mobile-menu li.active a {
  color: var(--primary-red);
  padding-left: 10px;
}

/* Base safety: prevent layout shifts */
.jn-nav {
  min-height: 50px;
}

/* ================================================================
   NEW CLEAN HEADER (Hindustan Times Style)
   ================================================================ */
.jn-clean-header {
  background: #ffffff;
  padding: 15px 0 0;
}

.jn-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.logo-text .site-name {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: #000;
  margin: 0;
  line-height: 1;
}

.logo-text .site-name span {
  color: #e50000;
}

.jn-clean-nav {
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
  width: 100%;
}

.jn-nav-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jn-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.jn-clean-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.jn-clean-menu li {
  display: flex;
}

.jn-clean-menu li a {
  display: block;
  padding: 12px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.jn-clean-menu li a:hover {
  color: #009688;
}

.jn-clean-menu li.current-menu-item > a,
.jn-clean-menu li.current-menu-ancestor > a {
  color: #009688;
  border-bottom-color: #009688;
}

.jn-mobile-quick-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid #ececec;
  border-bottom: 2px solid #e0e0e0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1005;
}

.jn-mobile-quick-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jn-mobile-quick-wrap::-webkit-scrollbar {
  display: none;
}

.jn-mobile-quick-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 100%;
  width: max-content;
}

.jn-mobile-quick-menu > li {
  flex: 0 0 auto;
}

.jn-mobile-quick-menu > li > a {
  display: block;
  white-space: nowrap;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  padding: 13px 14px 11px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.jn-mobile-quick-menu > li > a:hover,
.jn-mobile-quick-menu > li.current-menu-item > a,
.jn-mobile-quick-menu > li.current-menu-ancestor > a {
  color: #009688;
  border-bottom-color: #009688;
}

body.admin-bar .jn-mobile-quick-nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .jn-mobile-quick-nav {
    top: 46px;
  }
}

@media screen and (max-width: 991px) {
  .jn-clean-nav {
    display: none;
  }

  .jn-mobile-quick-nav {
    display: block;
  }

  .jn-clean-header {
    padding: 10px 0 0;
  }

  .logo-text .site-name {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 480px) {
  .jn-mobile-quick-menu > li > a {
    font-size: 0.9rem;
    padding: 12px 12px 10px;
  }
}

/* ================================================================
   3 QUICK ACTION BUTTONS BAR
   Fully controllable via Appearance > Customize > Quick Action Buttons
   ================================================================ */
.jn-quick-buttons-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 0;
}

.jn-quick-buttons-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.jn-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 12px 18px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-width: 0;
}

.jn-quick-btn:hover {
  border-color: #d32f2f;
  box-shadow: 0 2px 10px rgba(211, 47, 47, 0.1);
  background: #fff8f8;
  text-decoration: none;
  color: #d32f2f;
}

.jn-qb-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 1.3rem;
  color: #d32f2f;
  transition: background 0.2s;
}

.jn-quick-btn:hover .jn-qb-icon {
  background: #fdeaea;
}

.jn-qb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.jn-qb-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jn-quick-btn:hover .jn-qb-text strong {
  color: #d32f2f;
}

.jn-qb-text small {
  font-size: 0.72rem;
  color: #888;
  font-weight: 400;
  white-space: nowrap;
}

/* Mobile: stack icons, hide subtitle */
@media screen and (max-width: 767px) {
  .jn-quick-buttons-wrap {
    gap: 8px;
  }
  .jn-quick-btn {
    padding: 10px 10px;
    gap: 8px;
    border-radius: 5px;
  }
  .jn-qb-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .jn-qb-text strong {
    font-size: 0.75rem;
  }
  .jn-qb-text small {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .jn-quick-buttons-bar {
    padding: 8px 0;
  }
  .jn-quick-btn {
    padding: 8px 8px;
    gap: 6px;
  }
  .jn-qb-text strong {
    font-size: 0.68rem;
    letter-spacing: 0;
  }
}

/* ================================================================
   RESTORED HEADER COMPONENTS
   Red Top Bar + Breaking Ticker + Logo Area + Blue Nav
   ================================================================ */

/* --- RED TOP BAR --- */
.jn-top-bar {
  background: var(--primary-red, #d32f2f);
  color: #fff;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1;
}

.jn-top-bar-inner {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 12px;
}

/* Date on left */
.jn-topbar-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Breaking news section */
.jn-breaking-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 0;
  min-width: 0;
}

.jn-breaking-label {
  flex-shrink: 0;
  background: #b71c1c;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-right: 2px solid rgba(255,255,255,0.3);
  height: 36px;
  display: flex;
  align-items: center;
}

.jn-ticker-container {
  flex: 1;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.jn-ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: jnTickerScroll 40s linear infinite;
  padding-left: 100%;
}

.jn-ticker-track a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  margin-right: 8px;
}

.jn-ticker-track a:hover {
  text-decoration: underline;
}

.jn-ticker-sep {
  color: rgba(255,255,255,0.5);
  margin: 0 8px;
}

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

/* Right side links + social */
.jn-topbar-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jn-topbar-right a {
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jn-topbar-right a:hover { color: #fff; }

.jn-topbar-right i {
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.jn-topbar-right a:hover i { background: rgba(255,255,255,0.3); }

/* --- SITE HEADER (white logo area) --- */
.jn-site-header {
  background: #fff;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.jn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.jn-site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.jn-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.jn-logo-primary {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--dark-blue, #1a237e);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.jn-logo-secondary {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-red, #d32f2f);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-left: 6px;
}

.jn-logo-tagline {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 3px;
}

.jn-header-ad img {
  max-height: 80px;
  width: auto;
  display: block;
}

/* --- MAIN NAVIGATION (Blue Bar) --- */
.jn-main-nav {
  background: var(--nav-bg, #1a237e);
  padding: 0;
  position: relative;
  z-index: 900;
}

.jn-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}

/* Nav Menu */
.jn-nav-menu-wrap { flex: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.jn-nav-menu-wrap::-webkit-scrollbar { display: none; }

.jn-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

.jn-nav-menu > li > a {
  display: block;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  position: relative;
}

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

.jn-nav-menu > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: #fff;
}

/* Sub menus */
.jn-nav-menu li {
  position: relative;
}

.jn-nav-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-blue, #1a237e);
  min-width: 200px;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.jn-nav-menu li:hover > .sub-menu { display: block; }

.jn-nav-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}

.jn-nav-menu .sub-menu li a:hover { background: var(--primary-red, #d32f2f); }

/* Search box */
.jn-nav-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 6px 0 6px 10px;
}

.jn-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}

.jn-search-form input[type="search"] {
  background: transparent;
  border: none;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.85rem;
  width: 160px;
  outline: none;
}

.jn-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.6); }

.jn-search-form button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.jn-search-form button:hover { background: var(--primary-red, #d32f2f); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .jn-top-bar-inner { height: 30px; gap: 6px; }
  .jn-breaking-label { display: none; }
  .jn-topbar-date { font-size: 0.7rem; }
  .jn-topbar-right a:not(:has(i)) { display: none; } /* Hide text links on mobile */
  .jn-site-header { padding: 10px 0; }
  .jn-logo-primary, .jn-logo-secondary { font-size: 1.6rem; }
  .jn-header-ad { display: none; }
  .jn-nav-search { display: none; }
  .jn-nav-menu > li > a { padding: 12px 12px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .jn-top-bar-inner { height: 28px; }
  .jn-topbar-right { gap: 6px; }
  .jn-logo-primary, .jn-logo-secondary { font-size: 1.3rem; }
}
