/* JanNabj Design System - Premium Hindi News Prototype */
:root {
  --navy: #0B1C2C;
  --navy-light: #152A40;
  --red: #C8102E;
  --saffron: #E8A317;
  --white: #FFFFFF;
  --bg: #F5F7FA;
  --text: #1A1A1A;
  --muted: #5A6570;
  --border: #E2E6EB;
  --card-shadow: 0 2px 8px rgba(11, 28, 44, 0.06);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Devanagari', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.jnb-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== TOP UTILITY BAR ========== */
.utility-bar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}

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

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.utility-bar a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.utility-bar a:hover {
  color: #fff;
}

.weather {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== HEADER ========== */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo span {
  color: var(--red);
}

.logo-tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: -2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: none;
}

.search-box input {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 40px 8px 16px;
  font-size: 14px;
  width: 220px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--navy);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--bg);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: #a80d26;
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}

/* ========== PRIMARY NAV ========== */
.primary-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  white-space: nowrap;
}

.nav-list a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

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

/* ========== BREAKING TICKER ========== */
.jnb-breaking {
  background: #fff5f5;
  border-bottom: 1px solid #ffd6d6;
  padding: 10px 0;
}

.jnb-breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jnb-breaking-label {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.jnb-breaking-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.jnb-breaking-text a:hover {
  color: var(--red);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 20px 0 0;
}

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

.hero-lead {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  min-height: 320px;
}

.hero-lead img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.75;
}

.hero-lead-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(11,28,44,0.92));
  color: #fff;
}

.hero-lead .category {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-lead h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-lead p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  gap: 12px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}

.side-card:hover {
  transform: translateY(-2px);
}

.side-card img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-card-content {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-card .category {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.side-card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-card .time {
  font-size: 12px;
  color: var(--muted);
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 28px 0 8px;
}

.jnb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

.jnb-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.jnb-section-title .icon {
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}

.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.section-more:hover {
  text-decoration: underline;
}

/* ========== NEWS CARDS ========== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.jnb-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.jnb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11,28,44,0.1);
}

.jnb-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.jnb-card-body {
  padding: 14px;
}

.jnb-card .category {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
  display: inline-block;
}

.jnb-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jnb-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jnb-card .meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

/* ========== LATEST + TRENDING LAYOUT ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.latest-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.latest-item-content h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.trending-list {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

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

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

.trending-num {
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.trending-item h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.trending-item h3:hover {
  color: var(--red);
}

/* ========== CATEGORY BLOCKS ========== */
.category-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cat-block {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.cat-block-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-block-header a {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.cat-block-body {
  padding: 12px;
}

.cat-lead {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cat-lead img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.cat-lead h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cat-lead .meta {
  font-size: 12px;
  color: var(--muted);
}

.cat-list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

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

.cat-list-item:hover {
  color: var(--red);
}

/* ========== EDITOR PICKS ========== */
.editor-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pick-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
}

.pick-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pick-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(11,28,44,0.9));
  color: #fff;
}

.pick-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: var(--navy);
  color: #fff;
  padding: 32px 0;
  margin: 32px 0 0;
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.newsletter-inner h2 {
  font-size: 20px;
  font-weight: 700;
}

.newsletter-inner p {
  font-size: 14px;
  opacity: 0.85;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  opacity: 0.75;
  margin-bottom: 12px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-links a:hover {
  background: var(--red);
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-picks {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-box {
    display: block;
  }
  .mobile-menu-btn {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .hero-lead {
    min-height: 400px;
  }
  .hero-lead img {
    height: 400px;
  }
  .hero-lead h1 {
    font-size: 26px;
  }
  .two-col {
    grid-template-columns: 1.4fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .newsletter-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .newsletter-form {
    width: auto;
    min-width: 360px;
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-blocks {
    grid-template-columns: repeat(3, 1fr);
  }
  .editor-picks {
    grid-template-columns: repeat(3, 1fr);
  }
  .jnb-container {
    padding: 0 24px;
  }
}

/* Placeholder image styles */
.placeholder-img {
  background: linear-gradient(135deg, #1a2f45, #0B1C2C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 500;
}

.jnb-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Plugin specific additions ===== */
.jnb-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.jnb-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.jnb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11,28,44,0.1);
}

.jnb-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.jnb-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.jnb-placeholder {
  background: linear-gradient(135deg, #1a2f45, #0B1C2C);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

.jnb-card-body {
  padding: 14px;
}

.jnb-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
  display: inline-block;
}

.jnb-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.jnb-excerpt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.jnb-meta {
  font-size: 12px;
  color: var(--muted);
}

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

@media (min-width: 640px) {
  .jnb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .jnb-grid { grid-template-columns: repeat(3, 1fr); }
}

.jnb-section {
  padding: 28px 0 8px;
}

.jnb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

.jnb-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.jnb-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}
