/**
 * CMC Silesia — archive.css
 * Style archiwum aktualności + karty identyczne jak na stronie głównej.
 * Ładowany dla: is_home(), is_archive(), is_search(), page-templates/page-news.php
 */

/* ── Tło i grid archiwum ── */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px)  { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Karty newsów — skopiowane z hero.css (identyczny wygląd) ── */
/* ════════ NEWS ════════
   Lovable: py-20 lg:py-28 bg-muted grid md:grid-cols-3 gap-6
   ══════════════════════════════════════════════════════════ */
.news-section { background: #fff; padding: 80px 0; }
@media (min-width: 1024px) { .news-section { padding: 112px 0; } }

.news-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.news-title { font-size: clamp(28px, 3vw, 40px); color: #0E3A52; margin: 12px 0 0; }
.news-all-link { font-size: 14px; font-weight: 600; color: #127A60; text-decoration: none; white-space: nowrap; transition: color .2s; }
.news-all-link:hover { color: #0A5A47; text-decoration: underline; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card — rounded-xl bg-card border overflow-hidden hover:shadow-card-soft flex flex-col */
.news-card { background: #fff; border: 1px solid #C8EDE5; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 10px 30px -15px rgba(18,122,96,.25); transform: translateY(-4px); }

/* Thumb — h-40 bg-gradient-hero relative */
.news-card__thumb {
  position: relative; height: 160px; overflow: hidden; flex-shrink: 0;
  display: block; text-decoration: none; /* reset gdy <a> */
}
.news-card__thumb:focus-visible { outline: 2px solid #127A60; outline-offset: -2px; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0E3A52 0%, #1B5E78 45%, #127A60 100%);
  background-image:
    linear-gradient(135deg, #0E3A52 0%, #1B5E78 45%, #127A60 100%),
    linear-gradient(0deg, transparent 24%, rgba(63,201,168,.08) 25%, rgba(63,201,168,.08) 26%, transparent 27%),
    linear-gradient(90deg, transparent 24%, rgba(63,201,168,.08) 25%, rgba(63,201,168,.08) 26%, transparent 27%);
  background-size: cover, 40px 40px, 40px 40px;
}
/* Badge — absolute top-4 left-4 bg-white/95 text-secondary */
.news-card__badge { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.96); color: #0E3A52; padding: 3px 10px; border-radius: 4px; }

.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 12px; color: #8899AA; }
.news-card__title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: #0E3A52; margin: 8px 0 0; line-height: 1.375; }
.news-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.news-card__title a:hover { color: #127A60; }
.news-card__excerpt { font-size: 14px; color: #8899AA; line-height: 1.6; margin: 8px 0 0; flex: 1; }
.news-card__more { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; color: #127A60; text-decoration: none; transition: color .2s; }
.news-card__more:hover { color: #0A5A47; text-decoration: underline; }

.news-empty { text-align: center; padding: 48px; color: #8899AA; }

/* ── Placeholder logotypu w kartach konsorcjum (homepage) ── */
.consortium-logo-area { width:100%; min-height:56px; display:flex; align-items:center; justify-content:center; border:1.5px dashed #C8EDE5; border-radius:8px; background:#F8FAFB; margin-bottom:14px; padding:8px; transition:border-color .2s; }
.consortium-logo-area img { max-height:48px; width:auto; display:block; }
.consortium-logo-area__placeholder { font-size:11px; color:#8899AA; text-align:center; line-height:1.4; }
.consortium-logo-area__placeholder span { display:block; font-size:16px; margin-bottom:2px; }
.consortium-card:hover .consortium-logo-area { border-color:#127A60; }
