/* Forex Daily — Homepage sections 2/4/5 (inc/render-homepage-sections.php).
   33.33/33.33/33.33 grid of category post-list cards + Ad Manager slots.
   Colors from --fxd-*, layout/spacing/radius from --fdt-* (see
   assets/css/variables.css). Post rows reuse .promo-item* from
   front-page.css — loaded together, see functions.php enqueue. */

.hp-row-3col {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--fdt-space-4) var(--fdt-space-3) 0;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--fdt-space-4);
  align-items: start;
}

@media (max-width: 900px) {
  .hp-row-3col {
    grid-template-columns: 1fr;
  }
}

/* ── Card shared by category lists and ad columns ─────────────── */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: var(--fdt-space-3);
}

.cat-list__header {
  background: var(--fxd-surface);
  border-radius: var(--fdt-radius-lg);
  padding: 5px 10px 5px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-list__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fxd-primary);
  flex-shrink: 0;
}

.cat-list__heading {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--fxd-text);
}

.cat-list__more {
  font-size: 10px;
  font-weight: 600;
  color: var(--fxd-primary);
  text-decoration: none;
  white-space: nowrap;
}

.cat-list__more:hover {
  text-decoration: underline;
}

/* ── Post list body ─────────────────────────────────────────── */

.cat-list__body {
  background: var(--fxd-surface);
  border-radius: var(--fdt-radius-lg);
  padding: 8px var(--fdt-space-3);
}

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

/* ── Ad column ──────────────────────────────────────────────── */

.cat-list__ad {
  display: flex;
  justify-content: center;
}

/* ── Section 3: Awards grid (no heading) ───────────────────────
   Card component itself (.more-awards-card*) lives in the shared
   assets/css/award-card.css, enqueued alongside this file. Same
   1180px container as .hp-row-3col above. */

.hp-awards-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 12px 25px 12px;
}

.hp-awards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--fdt-space-3);
}

@media (max-width: 1024px) {
  .hp-awards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hp-awards-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-awards-grid .more-awards-card:nth-child(n+5) { display: none; }
}

/* ── Section 6: Ad #8 (33.33%) / Recently Reviewed Brokers (66.66%) ──
   .hp-row-2col reuses the same 1180px container + .cat-list__header
   chrome as the 3-column rows above (left column is a plain
   fordai_render_ad_card() call) — only the column split and the right
   side's card grid are new. */

.hp-row-2col {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--fdt-space-4) var(--fdt-space-3) 30px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--fdt-space-4);
  align-items: start;
}

.hp-row-2col__side {
  display: flex;
  flex-direction: column;
}

.hp-row-2col__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--fdt-space-3);
}

@media (max-width: 900px) {
  .hp-row-2col { grid-template-columns: 1fr; }
}

/* ── "Recently Reviewed Brokers" list ──────────────────────────
   Same 2-column list style as the homepage hero's "Latest Forex
   Bonuses & Promotions" panel — .promo-panel__list/.promo-col/
   .promo-item* (assets/css/front-page.css, already a dependency of
   this stylesheet — see functions.php's is_front_page() enqueue
   block) reused as-is for the grid/column/title/meta styling. The
   only new CSS here is the .promo-item--broker modifier, which adds
   the logo in front of the title/meta block. */

.rb-promo-list {
  margin-top: var(--fdt-space-1);
  gap: 8px;
}

.promo-item--broker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 10px 13px 10px;
  background: var(--fxd-surface);
  border-radius: var(--fdt-radius-lg);
}

.promo-item--broker .broker-grid-logo {
  flex-shrink: 0;
  margin-top: 2px;
}

.promo-item--broker .promo-item__body {
  min-width: 0;
  flex: 1;
}

.promo-item--broker .promo-item__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
