/* ═══════════════════════════════════════════════════════════════════════════
   WCP NEWS STRIP — Homepage aktualności (light/warm theme)
   Scoped to .wcp-news — no global overrides.
   ═══════════════════════════════════════════════════════════════════════════ */

.wcp-news {
  background: transparent;
  padding: clamp(36px, 5vw, 56px) clamp(18px, 4vw, 48px);
  font-family: "TT Norms", system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.wcp-news__wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* Material Symbols — the cards use the "rounded" icon class which has no global
   font-family, so scope the self-hosted outlined glyph font here (with the
   Bricks-loaded family first and the self-hosted "WCP Symbols" as fallback). */
.wcp-news .material-symbols-rounded {
  font-family: "Material Symbols Outlined", "WCP Symbols", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Horizontal rule below the cards — breathing room above it separates the
   news strip from the sections that follow. */
.wcp-news__wrap::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #b3a085;  /* warm-400 / --border-strong */
  border: 0;
  margin-top: clamp(44px, 6vw, 72px);
}

.wcp-news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.wcp-news__eyebrow {
  margin: 0 0 10px;
  font-family: "Akzidenz-Grotesk", "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A24F3A;
}

.wcp-news__title {
  margin: 0;
  font-family: "TT Norms", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  color: #211C18;
}

.wcp-news__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #A24F3A;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.wcp-news__all:hover {
  color: #803E2E;
  gap: 12px;
}

.wcp-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .wcp-news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wcp-news__grid { grid-template-columns: 1fr; }
}

/* ── Card ── */

.wcp-news__card {
  display: flex;
  flex-direction: column;
  background: #FFFDF8;
  border: 1px solid #E6DCCC;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
}

.wcp-news__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(33, 28, 24, 0.10),
              0 6px 14px rgba(33, 28, 24, 0.06);
  border-color: #D5C3A8;
}

.wcp-news__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F3E8D8;
  position: relative;
}

.wcp-news__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wcp-news__card:hover .wcp-news__img img {
  transform: scale(1.05);
}

.wcp-news__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4B39A;
}

.wcp-news__img--placeholder .material-symbols-rounded {
  font-size: 40px;
  font-variation-settings: 'opsz' 40;
}

.wcp-news__body {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.wcp-news__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #A24F3A;
}

.wcp-news__heading {
  margin: 0;
  font-family: "TT Norms", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #211C18;
  transition: color 0.2s;
}

.wcp-news__card:hover .wcp-news__heading {
  color: #803E2E;
}

.wcp-news__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #6a5b48;  /* warm-600 / --text-muted */
  flex: 1;
}

.wcp-news__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #A24F3A;
  margin-top: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, gap 0.2s;
}

.wcp-news__card:hover .wcp-news__more {
  opacity: 1;
  gap: 10px;
}

.wcp-news__more .material-symbols-rounded {
  font-size: 17px;
}

/* ── Placeholder card ── */

.wcp-news__card--placeholder {
  cursor: default;
  border-style: dashed;
  opacity: 0.55;
}

.wcp-news__card--placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: #E6DCCC;
}

/* ── Responsive: 2 cards on tablet ── */
@media (max-width: 900px) and (min-width: 601px) {
  .wcp-news__card:nth-child(3) {
    grid-column: span 2;
    flex-direction: row;
  }
  .wcp-news__card:nth-child(3) .wcp-news__img {
    width: 45%;
    height: auto;
    min-height: 100%;
  }
  .wcp-news__card:nth-child(3) .wcp-news__body {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wcp-news__card,
  .wcp-news__card:hover {
    transition: none;
    transform: none;
  }
  .wcp-news__img img { transition: none; }
}