/* scoped style strony (z tresci produkcyjnych szablonow) */

/* ============================================================
   AKT — Archiwum aktualności ucznia (te same tokeny co uc-*)
   ============================================================ */
.akt-page { min-height: 100vh; background: #f5f5f5; }
.akt-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .akt-container { padding: 0 32px; } }

/* Hero */
.akt-hero { background: #3d4a5c; padding: 64px 0; }
.akt-hero__inner { display: flex; align-items: center; gap: 16px; }
.akt-hero__icon {
    width: 48px; height: 48px; background: #81BD51; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.akt-hero__icon svg { width: 24px; height: 24px; color: #fff; }
/*ikona*/ .akt-hero__icon .bz-ico.bz-ico { width: 24px; height: 24px; color: #fff; }
/*ikona*/ .akt-hero__icon li::before { width: 24px; height: 24px; color: #fff; }
.akt-hero__title { font-size: 30px; line-height: 1.2; font-weight: 700; color: #fff; margin: 0; }
@media (min-width: 1024px) { .akt-hero__title { font-size: 36px; } }
.akt-hero__sub { color: rgba(255,255,255,0.7); margin-top: 4px; font-size: 16px; }

/* Layout */
.akt-layout { padding-top: 48px; padding-bottom: 48px; }

/* Grid: mobile-first 1 -> 2 (640) -> 3 (1024) */
.akt-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .akt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .akt-grid { grid-template-columns: repeat(3, 1fr); } }

/* Karta */
.akt-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.akt-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12); transform: translateY(-3px); }

/* Miniatura (16:9). Brak obrazka -> kafel z gradientem */
.akt-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2f5; }
.akt-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akt-card__thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3d4a5c 0%, #4a5a70 100%);
}
.akt-card__thumb--placeholder svg { width: 40px; height: 40px; color: rgba(255,255,255,0.55); }
/*ikona*/ .akt-card__thumb--placeholder .bz-ico.bz-ico { width: 40px; height: 40px; color: rgba(255,255,255,0.55); }
/*ikona*/ .akt-card__thumb--placeholder li::before { width: 40px; height: 40px; color: rgba(255,255,255,0.55); }

/* Treść karty */
.akt-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.akt-card__date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #81BD51; margin-bottom: 8px;
}
.akt-card__date svg { width: 14px; height: 14px; }
/*ikona*/ .akt-card__date .bz-ico.bz-ico { width: 14px; height: 14px; }
/*ikona*/ .akt-card__date li::before { width: 14px; height: 14px; }
.akt-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.akt-card__title a { color: #111827; text-decoration: none; transition: color 0.2s; }
.akt-card__title a:hover { color: #81BD51; }
.akt-card__excerpt {
    font-size: 14px; color: #4B5563; line-height: 1.6; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.akt-card__more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
    font-size: 14px; font-weight: 600; color: #81BD51; text-decoration: none;
    transition: gap 0.2s;
}
.akt-card__more:hover { gap: 10px; }
.akt-card__more svg { width: 16px; height: 16px; }
/*ikona*/ .akt-card__more .bz-ico.bz-ico { width: 16px; height: 16px; }
/*ikona*/ .akt-card__more li::before { width: 16px; height: 16px; }

/* Stan pusty */
.akt-empty {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    padding: 64px 32px; text-align: center;
}
.akt-empty svg { width: 56px; height: 56px; color: #d1d5db; margin: 0 auto 16px; display: block; }
/*ikona*/ .akt-empty .bz-ico.bz-ico { width: 56px; height: 56px; color: #d1d5db; margin: 0 auto 16px; display: block; }
/*ikona*/ .akt-empty li::before { width: 56px; height: 56px; color: #d1d5db; margin: 0 auto 16px; display: block; }
.akt-empty__title { font-size: 18px; font-weight: 700; color: #4B5563; margin-bottom: 4px; }
.akt-empty__sub { font-size: 14px; color: #6B7280; margin: 0; }

/* Paginacja (paginate_links type=list zwraca <ul class="page-numbers">) */
.akt-pagination { margin-top: 40px; display: flex; justify-content: center; }
.akt-pagination ul.page-numbers {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0;
}
.akt-pagination li { margin: 0; }
.akt-pagination a.page-numbers,
.akt-pagination span.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid #E5E7EB; border-radius: 8px; background: #fff;
    color: #374151; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.akt-pagination a.page-numbers:hover { border-color: #81BD51; color: #81BD51; }
.akt-pagination span.page-numbers.current { background: #81BD51; border-color: #81BD51; color: #fff; }
.akt-pagination span.page-numbers.dots { border: none; background: transparent; }

/* Powrót */
.akt-back {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 32px;
    font-size: 14px; font-weight: 600; color: #6B7280; text-decoration: none;
    transition: color 0.2s;
}
.akt-back:hover { color: #81BD51; }

@media (max-width: 639px) {
    .akt-hero { padding: 48px 0; }
    .akt-hero__inner { flex-direction: column; align-items: flex-start; }
    .akt-hero__title { font-size: 26px; }
}

/*przycisk*/ .wp-block-button:where([class*="btn"]) { background: none; border: 0; padding: 0; box-shadow: none; }
/*przycisk*/ .wp-block-button:where([class*="btn"]) > .wp-block-button__link { background: none; border: 0; }
