/* ============================================================
   Listing — Figma node 38:180 (महत्त्वाच्यो खबरो)
   1440 canvas, 20px inset · 1045 + 20 + 335 body
   ============================================================ */

.listing {
  --caption-blue: #d3f1fc;
  --card-line: #efefef;
  --card-r: 5px;
  background: var(--white);
  padding-bottom: 20px;
}

.listing-wrap {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* ----- hero 1400 × 338 ----- */

.listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1022px) minmax(260px, 1fr);
  gap: 19px;
  align-items: stretch;
  min-height: 338px;
  padding: 11px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--card-r);
  box-shadow: var(--shadow-card);
}

.listing-lead {
  display: grid;
  grid-template-columns: minmax(0, 561px) minmax(0, 1fr);
  min-width: 0;
  min-height: 316px;
  background: var(--caption-blue);
  border-radius: var(--card-r);
  overflow: hidden;
}

.listing-lead__media {
  display: block;
  overflow: hidden;
  min-width: 0;
  height: 316px;
  background: #ececec;
  border-radius: 5px 0 0 5px;
}

.listing-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.7s var(--ease);
}

.listing-lead__media:hover img {
  transform: scale(1.05);
}

.listing-lead__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 22px 18px 16px 21px;
}

.listing-kicker {
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 28px;
  white-space: nowrap;
}

.listing-lead__copy h1 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  max-width: 424px;
}

.listing-lead__copy h1 a:hover {
  color: var(--navy);
}

.listing-lead__dek {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 402px;
}

.listing-lead__meta {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.listing-now {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 6px 8px 4px 0;
}

.listing-now h2 {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--card-line);
}

.listing-now ul {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  padding: 0;
}

.listing-now li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 53px;
  border-bottom: 0.25px solid var(--card-line);
}

.listing-now li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

.listing-now a {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s var(--ease);
}

.listing-now a:hover,
.listing-now a:focus-visible {
  color: var(--orange);
}

.listing-now li:hover {
  background: rgba(53, 95, 250, 0.04);
}

/* ----- body: 1045 + 20 + 335 ----- */

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1045px) 335px;
  gap: 20px;
  align-items: start;
}

.listing-main {
  min-width: 0;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-bottom: 1px;
  border-bottom: 0.5px solid var(--card-line);
}

.listing-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 10px;
  border: 0;
  background: var(--caption-blue);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.listing-chip:hover {
  background: #c4e8f8;
}

.listing-chip.is-active {
  background: var(--navy);
  color: var(--white);
}

.listing-chip.is-active:hover {
  background: var(--navy-dark);
}

.listing-feed {
  margin-top: 16px;
  padding: 17px 11px 28px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--card-r);
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 42px 22px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-width: 0;
}

.listing-card--wide {
  grid-column: span 3;
}

.listing-card[hidden] {
  display: none !important;
}

.listing-card__media {
  width: 100%;
  height: 217px;
  border-radius: 0;
}

.listing-card__media--wide {
  height: 266px;
}

.listing-card__cat {
  margin-top: 5px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 28px;
}

.listing-card h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.listing-card h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card h2 a:hover {
  color: var(--navy);
}

.listing-card__dek {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 0.25px solid var(--card-line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.listing-card__meta span:last-child {
  text-align: right;
}

.listing-more {
  display: block;
  margin: 4px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: max-content;
  max-width: 100%;
}

.listing-more:hover {
  color: var(--orange);
}

.listing-more[hidden] {
  display: none !important;
}

/* ----- rail ----- */

.listing-rail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 335px;
  min-width: 0;
}

.listing .fb-widget,
.listing .ig-widget {
  width: 100%;
}

.listing .listing-fb {
  height: 429px;
}

.listing .listing-ig {
  height: 120px;
}

.listing .ad-lumina--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.05);
}

.listing .ad-lumina--stack h2 {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0;
  line-height: 1.15;
}

.listing .ad-lumina--stack p:not(.ad-brand) {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.listing .ad-lumina--stack .ad-btn {
  width: 100%;
  padding: 0 16px;
}

.listing-hero,
.listing-feed,
.listing-rail {
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.listing-hero:hover {
  transform: translateY(-2px);
}

.listing-card .media-frame img {
  transform: scale(1);
  transition: transform 0.7s var(--ease);
}

.listing-card .media-frame:hover img {
  transform: scale(1.05);
}

/* ----- tablet ----- */

@media (max-width: 1280px) {
  .listing-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .listing-rail {
    width: auto;
  }

  .listing-lead__copy h1,
  .listing-card h2 {
    font-size: 22px;
  }
}

@media (max-width: 1100px) {
  .listing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .listing-lead {
    min-height: 0;
  }

  .listing-lead__media {
    height: 280px;
  }

  .listing-now {
    padding: 4px 8px 8px;
  }

  .listing-layout {
    grid-template-columns: 1fr;
  }

  .listing-rail {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
  }

  .listing .ad-lumina--stack {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 960px) {
  .listing-lead {
    grid-template-columns: 1fr;
  }

  .listing-lead__media {
    height: 240px;
    border-radius: 5px 5px 0 0;
  }

  .listing-lead__copy {
    padding: 16px 16px 18px;
  }

  .listing-lead__copy h1,
  .listing-lead__dek {
    max-width: none;
  }

  .listing-kicker {
    white-space: normal;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-card,
  .listing-card--wide {
    grid-column: auto;
  }

  .listing-card__media,
  .listing-card__media--wide {
    height: 220px;
  }
}

/* ----- mobile ----- */

@media (max-width: 720px) {
  .listing {
    padding-bottom: 28px;
  }

  .listing-wrap {
    padding-top: 12px;
    gap: 18px;
  }

  .listing-hero {
    padding: 8px;
    gap: 8px;
  }

  .listing-lead__media {
    height: 200px;
  }

  .listing-lead__copy {
    padding: 12px 12px 14px;
    gap: 2px;
  }

  .listing-lead__copy h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  .listing-lead__dek {
    margin-top: 6px;
    font-size: 14px;
  }

  .listing-kicker {
    font-size: 15px;
    line-height: 22px;
  }

  .listing-now {
    padding: 8px 6px 4px;
  }

  .listing-now h2 {
    font-size: 18px;
  }

  .listing-now li {
    min-height: 46px;
  }

  .listing-now a {
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
  }

  .listing-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin: 0 -4px;
    padding-inline: 4px;
  }

  .listing-filters::-webkit-scrollbar {
    display: none;
  }

  .listing-chip {
    flex-shrink: 0;
  }

  .listing-feed {
    margin-top: 12px;
    padding: 12px 10px 20px;
    gap: 28px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .listing-card__media,
  .listing-card__media--wide {
    height: 200px;
  }

  .listing-card h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .listing-card__cat {
    font-size: 15px;
    line-height: 24px;
  }

  .listing-card__dek {
    font-size: 14px;
  }

  .listing-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .listing .ad-lumina--stack {
    max-width: none;
  }

  .listing-more {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .listing-lead__media,
  .listing-card__media,
  .listing-card__media--wide {
    height: 180px;
  }

  .listing-lead__copy h1 {
    font-size: 18px;
  }
}

.listing-hero--solo {
  grid-template-columns: 1fr;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--card-r);
  box-shadow: var(--shadow-card);
}

.author-card__pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #ececec;
}

.author-card__name {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.author-card__role {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.author-card__bio {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .listing-hero,
  .listing-lead__media img,
  .listing-card .media-frame img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
