/* ============================================================
   NewsPlus24x7 — Category Section Layouts (NDTV-style)
   Two layout styles:
     .sec-featured  — Big image left + news list right
     .sec-grid4     — 4-column card grid
   ============================================================ */


/* ─── Sidebar scrolls with page (no sticky) ─── */
.page-sidebar {
  position: static !important;
  align-self: stretch;
}


/* ─── Section wrapper (shared) ─── */
.cat-section {
  margin-bottom: 32px;
  padding: 0 0 24px 0;
  border-bottom: 1px solid #e8e8e8;
}
.cat-section:last-child {
  border-bottom: none;
}

/* Section header: Category name + "और देखें" link */
.cat-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e53935;
}
.cat-section__title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-section__title a {
  color: inherit;
  text-decoration: none;
}
.cat-section__title a:hover {
  color: #e53935;
}
.cat-section__more {
  font-size: 14px;
  font-weight: 600;
  color: #e53935;
  text-decoration: none;
  white-space: nowrap;
}
.cat-section__more:hover {
  text-decoration: underline;
}


/* ============================================================
   STYLE A: Featured + List (.sec-featured)
   ─ Left: large hero image with title overlay
   ─ Right: 3 compact news items with thumbnails
   ============================================================ */
.sec-featured__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Left: Big hero card */
.sec-featured__hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e;
  min-height: 320px;
}
.sec-featured__hero a {
  display: block;
  width: 100%;
  height: 100%;
}
.sec-featured__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
.sec-featured__hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  padding-top: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.sec-featured__hero-cat {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.sec-featured__hero-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-featured__hero-title a {
  color: inherit;
  text-decoration: none;
}
.sec-featured__hero-meta {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 6px;
}

/* Right: List of compact items */
.sec-featured__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-featured__item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.sec-featured__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sec-featured__item-img {
  flex-shrink: 0;
  width: 130px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.sec-featured__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sec-featured__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sec-featured__item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-featured__item-title a {
  color: inherit;
  text-decoration: none;
}
.sec-featured__item-title a:hover {
  color: #e53935;
}
.sec-featured__item-meta {
  font-size: 12px;
  color: #999;
}


/* ============================================================
   STYLE B: 4-Column Grid (.sec-grid4)
   ─ 4 cards in a row, each with image, title, meta
   ============================================================ */
.sec-grid4__body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sec-grid4__card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.sec-grid4__card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.sec-grid4__card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}
.sec-grid4__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sec-grid4__card-body {
  padding: 12px 14px 14px;
}
.sec-grid4__card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-grid4__card-title a {
  color: inherit;
  text-decoration: none;
}
.sec-grid4__card-title a:hover {
  color: #e53935;
}
.sec-grid4__card-meta {
  font-size: 11px;
  color: #999;
}


/* ============================================================
   STYLE C: 2-Column Split (.sec-split2)
   ─ 2 equal columns, each with featured image + 2 compact items
   Good for showing 2 categories side by side
   ============================================================ */
.sec-split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}
.sec-split2__col {
  /* each column is its own category section */
}
.sec-split2__col .cat-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sec-split2__featured {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  background: #1a1a2e;
}
.sec-split2__featured img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.sec-split2__featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  padding-top: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.sec-split2__featured-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.sec-split2__featured-title a {
  color: inherit;
  text-decoration: none;
}
.sec-split2__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sec-split2__item {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.sec-split2__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sec-split2__item-img {
  width: 90px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.sec-split2__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sec-split2__item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-split2__item-title a {
  color: inherit;
  text-decoration: none;
}
.sec-split2__item-title a:hover {
  color: #e53935;
}


/* ============================================================
   STYLE D: 3-Column Trio (.sec-trio) — NDTV मुंबई/बिजनेस/गैजेट style
   ─ 3 categories side by side, each with 1 image + text headlines
   ============================================================ */
.sec-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

/* Each column = one category */
.sec-trio__col {
  border-right: 1px solid #e8e8e8;
  padding-right: 24px;
}
.sec-trio__col:last-child {
  border-right: none;
  padding-right: 0;
}

/* Column header: category name + › arrow */
.sec-trio__head {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #e53935;
}
.sec-trio__head a {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sec-trio__head a:hover {
  color: #e53935;
}
.sec-trio__arrow {
  font-size: 18px;
  color: #e53935;
  font-weight: 400;
}

/* Featured image card */
.sec-trio__img {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f0f0f0;
}
.sec-trio__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.sec-trio__img-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-trio__img-title:hover {
  color: #e53935;
}

/* Text-only headline list below the image */
.sec-trio__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sec-trio__list li {
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
}
.sec-trio__list li a {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.sec-trio__list li a:hover {
  color: #e53935;
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .sec-featured__body {
    grid-template-columns: 1fr;
  }
  .sec-featured__hero {
    min-height: 220px;
  }
  .sec-featured__hero img {
    min-height: 220px;
  }
  .sec-grid4__body {
    grid-template-columns: repeat(2, 1fr);
  }
  .sec-split2 {
    grid-template-columns: 1fr;
  }
  .sec-trio {
    grid-template-columns: 1fr 1fr;
  }
  .sec-trio__col:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .cat-section__title {
    font-size: 18px;
  }
  .sec-featured__hero {
    min-height: 180px;
  }
  .sec-featured__hero img {
    min-height: 180px;
  }
  .sec-featured__hero-title {
    font-size: 16px;
  }
  .sec-featured__item-img {
    width: 100px;
    height: 72px;
  }
  .sec-grid4__body {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sec-grid4__card-img {
    height: 120px;
  }
  .sec-grid4__card-title {
    font-size: 13px;
  }
  .sec-split2__featured img {
    height: 150px;
  }
  .sec-trio {
    grid-template-columns: 1fr;
  }
  .sec-trio__col {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 18px;
    margin-bottom: 10px;
  }
  .sec-trio__col:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
}
