/* Press24 News Pro — 20 Unique Homepage Category Section Layouts */

/* 2. List + Lead */
.p24-layout-list-lead {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
}
.p24-layout-list-lead .p24-list-wrap {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  padding: 6px 14px;
  box-shadow: var(--p24-shadow);
}

/* 5. 2-Column Big Feature */
.p24-grid-2-big {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 6. Overlay Mosaic & Shared Overlay Cards */
.p24-mosaic-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: 14px;
}
.p24-mosaic-big { grid-row: span 2; }
.p24-ov-card {
  position: relative;
  border-radius: var(--p24-radius);
  overflow: hidden;
  background: #0F172A;
  box-shadow: var(--p24-shadow);
}
.p24-ov-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.p24-ov-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.p24-ov-card:hover .p24-ov-link img { transform: scale(1.05); }
.p24-ov-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.08) 25%, rgba(2,6,23,0.88) 100%);
}
.p24-ov-content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #FFFFFF;
  z-index: 2;
}
.p24-ov-content .p24-cat-badge {
  position: static;
  display: inline-block;
  margin-bottom: 7px;
}
.p24-ov-content h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.32;
  color: #FFFFFF;
}
.p24-mosaic-big .p24-ov-content h3 { font-size: 24px; }
.p24-ov-meta { font-size: 12.5px; color: #CBD5E1; }
.p24-ov-tall { min-height: 390px; height: 100%; }

/* 7. Hero + 4 Below */
.p24-wide-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  overflow: hidden;
  box-shadow: var(--p24-shadow);
}
.p24-wide-hero-img { aspect-ratio: 16/10; overflow: hidden; display: block; }
.p24-wide-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.p24-wide-hero-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p24-wide-hero-body .p24-cat-badge { position: static; align-self: flex-start; margin-bottom: 10px; }
.p24-wide-hero-body h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.3; }
.p24-wide-hero-body p { margin: 0 0 12px; color: var(--p24-text-muted); font-size: 15.5px; }

/* 8. 3-Column Magazine Center Lead */
.p24-3col-mag {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.9fr;
  gap: 16px;
}
.p24-stack-col { display: flex; flex-direction: column; gap: 14px; }

/* 10. 2-Column Horizontal Split Cards */
.p24-horiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.p24-horiz-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  overflow: hidden;
  box-shadow: var(--p24-shadow);
}
.p24-horiz-img { height: 100%; min-height: 135px; overflow: hidden; display: block; }
.p24-horiz-img img { width: 100%; height: 100%; object-fit: cover; }
.p24-horiz-body { padding: 12px 14px; display: flex; flex-direction: column; }
.p24-horiz-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.p24-horiz-body p { margin: 0 0 8px; font-size: 14px; color: var(--p24-text-muted); }

/* 12. Visual Photo Strip */
.p24-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.p24-ov-strip { height: 245px; }

/* 13. 5-Column Compact Grid */
.p24-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.p24-grid-5 .p24-card-title { font-size: 15.5px; }
.p24-grid-5 .p24-card-body { padding: 10px 11px; }

/* 14. Split Featured (2 Big + 4 Mini) */
.p24-split-6 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.p24-split-6-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p24-split-6 .p24-list-wrap {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  padding: 6px 14px;
  box-shadow: var(--p24-shadow);
}

/* 15. Editorial / Opinion Cards */
.p24-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p24-ed-card {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-top: 4px solid var(--p24-primary);
  border-radius: var(--p24-radius);
  padding: 18px;
  box-shadow: var(--p24-shadow);
  display: flex;
  flex-direction: column;
}
.p24-ed-quote {
  font-size: 42px;
  line-height: 0.7;
  color: var(--p24-primary);
  opacity: 0.35;
  margin-bottom: 8px;
}
.p24-ed-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.36; }
.p24-ed-card p { margin: 0 0 12px; font-size: 15px; color: var(--p24-text-muted); }
.p24-ed-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--p24-border);
  font-size: 13px;
  color: var(--p24-text-muted);
  display: flex;
  justify-content: space-between;
}

/* 16. Red Accent Breaking Box */
.p24-red-band {
  background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(220,38,38,0.02));
  border: 1.5px solid rgba(220,38,38,0.28);
  border-radius: 14px;
  padding: 20px;
}
.p24-red-band .p24-sec-title::before { background: var(--p24-accent); }
.p24-red-band .p24-sec-more { color: var(--p24-accent); }

/* 17. Soft Brand Wash Band */
.p24-green-band {
  background: linear-gradient(135deg, rgba(5,150,105,0.09), rgba(5,150,105,0.02));
  border: 1px solid rgba(5,150,105,0.22);
  border-radius: 14px;
  padding: 22px;
}

/* 18. Timeline News Feed */
.p24-timeline {
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--p24-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p24-tl-item { position: relative; }
.p24-tl-dot {
  position: absolute;
  left: -32px;
  top: 18px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--p24-primary);
  border: 3px solid var(--p24-bg);
}
.p24-tl-card {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  padding: 13px 16px;
  box-shadow: var(--p24-shadow);
}
.p24-tl-date { font-size: 13px; font-weight: 700; color: var(--p24-primary); margin-bottom: 6px; }
.p24-tl-body { display: flex; gap: 12px; align-items: flex-start; }
.p24-tl-body h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; }
.p24-tl-body p { margin: 0; font-size: 14.5px; color: var(--p24-text-muted); }

/* 19. Portrait Poster Cards */
.p24-poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.p24-ov-portrait { aspect-ratio: 3 / 4; }

/* 20. Mega Mix Panel */
.p24-mega-mix {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr;
  gap: 16px;
}
.p24-mega-mid,
.p24-mega-mix .p24-list-wrap {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  padding: 6px 14px;
  box-shadow: var(--p24-shadow);
}

/* Responsive */
@media (max-width: 1024px) {
  .p24-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .p24-mosaic-grid { grid-template-columns: 1fr 1fr; }
  .p24-3col-mag, .p24-mega-mix, .p24-split-6, .p24-layout-list-lead { grid-template-columns: 1fr; }
  .p24-photo-strip, .p24-poster-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .p24-grid-2-big, .p24-wide-hero, .p24-horiz-grid, .p24-editorial-grid,
  .p24-split-6-left, .p24-grid-5, .p24-mosaic-grid, .p24-photo-strip, .p24-poster-grid {
    grid-template-columns: 1fr;
  }
  .p24-horiz-card { grid-template-columns: 120px 1fr; }
  .p24-mosaic-big { grid-row: auto; }
}
