/* ================================================================
   News Corridors 2.0 – Homepage Styles
   Scoped with .nc2-* prefix to avoid Bootstrap/theme conflicts
================================================================ */

/* ── Google Fonts (also loaded in <head>) ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600&family=Barlow:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --nc2-red:       #b91c1c;
  --nc2-dark-red:  #7f1d1d;
  --nc2-off-white: #f9f9f9;
  --nc2-gray-100:  #f3f4f6;
  --nc2-gray-200:  #e5e7eb;
  --nc2-gray-400:  #9ca3af;
  --nc2-gray-600:  #4b5563;
  --nc2-gray-800:  #1f2937;
  --nc2-black:     #111111;
  --nc2-gold:      #d97706;
  --nc2-font-head: 'Playfair Display', Georgia, serif;
  --nc2-font-deva: 'Noto Sans Devanagari', sans-serif;
  --nc2-font-body: 'Barlow', sans-serif;
}

/* ── Wrapper ── */
.nc2-home {
  background: var(--nc2-off-white);
  font-family: var(--nc2-font-body);
  color: var(--nc2-black);
  font-size: 14px;
}

/* ── Section Block ── */
.nc2-section-block {
  margin: 24px 0;
}

/* ── Section Header ── */
.nc2-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nc2-red);
}
.nc2-section-header h2 {
  font-family: var(--nc2-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--nc2-black);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nc2-section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--nc2-red);
  border-radius: 2px;
  flex-shrink: 0;
}
.nc2-see-all {
  font-size: 12px;
  color: var(--nc2-red);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nc2-see-all:hover { color: var(--nc2-dark-red); }

/* ── Breaking News Banner / Ticker ── */
.nc2-breaking-banner {
  background: var(--nc2-red);
  color: white;
  margin: 16px 0;
  border-radius: 4px;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  overflow: hidden;
}
.nc2-brk-arrow {
  font-size: 13px;
  opacity: .65;
  flex-shrink: 0;
}
.nc2-brk-label {
  font-family: var(--nc2-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nc2-brk-sep {
  font-size: 16px;
  opacity: .55;
  flex-shrink: 0;
}
.nc2-brk-headline {
  font-family: var(--nc2-font-deva);
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 60%;
}
.nc2-brk-headline:hover {
  color: rgba(255,255,255,.82);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .nc2-brk-label    { font-size: 10px; letter-spacing: 1.5px; }
  .nc2-brk-headline { font-size: 12px; max-width: 45%; }
}

/* ── Ad Strip ── */
.nc2-ad-strip {
  margin: 20px 0;
  text-align: center;
}

/* ════════════════════════════════════════
   TOP STORIES / CAT SECTION GRID
   (1.1fr left  |  1fr right)
════════════════════════════════════════ */
.nc2-stories-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ── Main Story Card ── */
.nc2-main-story {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: white;
  display: flex;
  flex-direction: column;
}
.nc2-main-story img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.nc2-main-story .nc2-story-meta {
  padding: 12px 14px 16px;
  border-top: 3px solid var(--nc2-red);
  flex: 1;
}
.nc2-main-story .nc2-story-meta h3 {
  font-family: var(--nc2-font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nc2-black);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc2-main-story .nc2-story-meta p {
  font-size: 12px;
  color: var(--nc2-gray-600);
  line-height: 1.5;
  font-family: var(--nc2-font-deva);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc2-read-more {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--nc2-red);
  letter-spacing: .5px;
  text-decoration: none;
}
.nc2-read-more:hover { color: var(--nc2-dark-red); }

/* ── Story List (items 2-5) ── */
.nc2-story-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.nc2-story-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--nc2-gray-200);
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
  flex: 1;
}
.nc2-story-list-item:last-child { border-bottom: none; }
.nc2-story-list-item:hover { opacity: .8; }
.nc2-story-list-item .nc2-thumb {
  width: 80px;
  height: 62px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.nc2-story-list-item .nc2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nc2-story-list-item .nc2-item-text { flex: 1; }
.nc2-story-list-item .nc2-num {
  display: none;
}
.nc2-story-list-item h4 {
  font-family: var(--nc2-font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nc2-black);
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc2-story-list-item p {
  font-size: 11px;
  color: var(--nc2-gray-600);
  line-height: 1.4;
  margin: 0;
  font-family: var(--nc2-font-deva);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════
   VIDEO STORIES + LIVE — split layout
════════════════════════════════════════ */

/* ── Video row: 4 per row ── */
.nc2-video-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.nc2-vid-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #000;
  display: flex;
  flex-direction: column;
}
.nc2-vid-card iframe {
  width: 100%;
  height: 170px;
  display: block;
  border: none;
  flex-shrink: 0;
}
.nc2-vid-caption {
  background: white;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  font-family: var(--nc2-font-deva);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--nc2-black);
  flex: 1;
}

/* ── Live panel (for future use) ── */
.nc2-live-panel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  background: #000;
  display: flex;
  flex-direction: column;
}
.nc2-live-header {
  background: var(--nc2-red);
  color: white;
  padding: 9px 14px;
  font-family: var(--nc2-font-head);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .4px;
}
.nc2-live-dot {
  width: 9px; height: 9px;
  background: white;
  border-radius: 50%;
  animation: nc2livepulse 1.2s ease-in-out infinite;
}
@keyframes nc2livepulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

/* ════════════════════════════════════════
   THREE COLUMN SECTION
════════════════════════════════════════ */
.nc2-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nc2-three-col-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.nc2-col-header {
  background: var(--nc2-red);
  padding: 8px 12px;
}
.nc2-col-header h3 {
  font-family: var(--nc2-font-head);
  color: white;
  font-size: 15px;
  margin: 0;
}
.nc2-col-top {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--nc2-gray-200);
}
.nc2-col-top .nc2-col-thumb {
  width: 68px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.nc2-col-top .nc2-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nc2-col-top h4 {
  font-family: var(--nc2-font-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc2-col-list { padding: 6px 10px; }
.nc2-col-li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--nc2-gray-100);
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}
.nc2-col-li:last-child { border-bottom: none; }
.nc2-col-li:hover { opacity: .75; }
.nc2-col-li .nc2-col-li-thumb {
  width: 52px;
  height: 40px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.nc2-col-li .nc2-col-li-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nc2-col-li-txt {
  font-size: 11.5px;
  line-height: 1.4;
  font-family: var(--nc2-font-deva);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════
   PHOTOS SECTION
════════════════════════════════════════ */
.nc2-photos-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.nc2-photo-main {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nc2-photo-main img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.nc2-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 30px 12px 12px;
  color: white;
}
.nc2-photo-overlay h3 {
  font-family: var(--nc2-font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.nc2-photos-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nc2-photo-sm {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.nc2-photo-sm img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.nc2-photo-sm-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 16px 8px 8px;
  color: white;
}
.nc2-photo-sm-overlay h4 {
  font-family: var(--nc2-font-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc2-photo-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--nc2-red);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .nc2-stories-grid { grid-template-columns: 1fr; }
  .nc2-three-col    { grid-template-columns: 1fr 1fr; }
  .nc2-photos-grid  { grid-template-columns: 1fr; }
  .nc2-video-row    { grid-template-columns: repeat(2, 1fr); }
  .nc2-story-list   { height: auto; }
}
@media (max-width: 600px) {
  .nc2-video-row         { grid-template-columns: repeat(2, 1fr); }
  .nc2-three-col         { grid-template-columns: 1fr; }
  .nc2-breaking-banner   { font-size: 14px; letter-spacing: 2px; }
  .nc2-main-story img    { height: 200px; }
}

/* ════════════════════════════════════════
   NEWS CARD  (used in category grid / load_more)
════════════════════════════════════════ */
.nc2-news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.nc2-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.nc2-news-card-thumb {
  overflow: hidden;
  height: 160px;
  flex-shrink: 0;
}
.nc2-news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.nc2-news-card:hover .nc2-news-card-thumb img {
  transform: scale(1.04);
}
.nc2-news-card-body {
  padding: 10px 12px 14px;
  border-top: 3px solid var(--nc2-red);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nc2-news-card-title {
  font-family: var(--nc2-font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nc2-black);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════
   MORE NEWS CARDS  (Most Popular / Trending / Latest)
════════════════════════════════════════ */
.nc2-more-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.nc2-more-card__head {
  background: var(--nc2-red);
  color: #fff;
  font-family: var(--nc2-font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 16px;
  letter-spacing: .3px;
}
.nc2-more-card__body {
  padding: 4px 0;
  flex: 1;
}
.nc2-more-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--nc2-gray-100);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.nc2-more-item:last-child { border-bottom: none; }
.nc2-more-item:hover { background: #fafafa; }
.nc2-more-num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--nc2-red);
  min-width: 16px;
  padding-top: 1px;
}
.nc2-more-title {
  font-family: var(--nc2-font-deva);
  font-size: 13px;
  line-height: 1.5;
  color: var(--nc2-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}