/* ============================================
   KARP Adwokaci — Blog extended styles
   ============================================ */

/* Grid adaptacyjny do liczby postów */
.blog-grid--1 {
  grid-template-columns: minmax(0, 620px) !important;
  justify-content: center;
}
.blog-grid--2 {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Karta — wyższy obszar obrazka */
.blog-card__top {
  height: 220px !important;
  overflow: hidden;
  position: relative;
}
.blog-card__top img {
  transition: transform 0.45s ease;
}
.blog-card:hover .blog-card__top img {
  transform: scale(1.04);
}

/* Placeholder — gradient + symbol § */
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.3);
  font-family: 'Space Grotesk', sans-serif;
  user-select: none;
  pointer-events: none;
}

/* Post content — akapity */
.post-content p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

/* Post content — nagłówki */
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.post-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Post content — listy */
.post-content ul,
.post-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.post-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700, #374151);
}
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }

/* Post callout — wyróżniony cytat */
.post-content .post-callout {
  background: linear-gradient(135deg,
    rgba(26,39,68,0.05),
    rgba(201,168,76,0.08));
  border-left: 3px solid var(--gold, #c9a84c);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700, #374151);
}

/* Grid spacing */
#posts-grid {
  padding-top: 0.5rem;
}

/* Load more — przycisk i kontener */
#load-more-container {
  display: none;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-bottom: 1rem;
}
#load-more-count {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  letter-spacing: 0.03em;
}
#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Blog grid — 1 post: ogranicz szerokość */
.blog-grid--1 {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARD HOVER ===== */
.blog-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #b8945a), var(--gold-light, #d4a96a));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 0 0 8px 8px;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 39, 68, 0.13);
}
.blog-card:hover::after {
  opacity: 1;
}

/* ===== STAGGER ANIMATION ===== */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-card.stagger {
  animation: cardFadeUp 0.45s ease both;
}

/* ===== § PLACEHOLDER PULS ===== */
@keyframes sectionPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.6; }
}
.blog-card__placeholder {
  animation: sectionPulse 2.8s ease-in-out infinite;
}

/* ===== SAMOTNA KARTA — wyśrodkowanie ===== */
.blog-grid > .blog-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
.blog-grid--1 > .blog-card {
  grid-column: 1;
}

/* ===== TYPOGRAFIA ARTYKUŁU ===== */
.post-content,
.post-body {
  font-size: 1.075rem;
  line-height: 1.85;
}
.post-content p,
.post-body p {
  margin-bottom: 1.6em;
}
.post-content p:first-of-type,
.post-body p:first-of-type {
  border-left: 3px solid var(--gold, #b8945a);
  padding-left: 1.1rem;
  border-radius: 0;
}
.post-content h2,
.post-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}
.post-content h3,
.post-body h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.post-content blockquote,
.post-body blockquote {
  border-left: 3px solid var(--gold, #b8945a);
  margin: 2rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(184,148,90,0.06);
  border-radius: 0;
  font-style: italic;
}

/* ===== NOWY SIDEBAR ===== */
.sb-firm {
  background: #fff;
  border: 1px solid rgba(184,148,90,0.25);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.sb-firm__bar {
  height: 4px;
  background: linear-gradient(90deg, #b8945a, #d4a96a);
}
.sb-firm__body {
  padding: 1.5rem;
}
.sb-firm__symbol {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: #b8945a;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.sb-firm__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2744;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sb-firm__sub {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}
.sb-firm__divider {
  height: 1px;
  background: rgba(26,39,68,0.1);
  margin: 1rem 0;
}
.sb-firm__lawyers {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.sb-firm__lawyers span {
  font-size: 0.875rem;
  color: #1a2744;
}
.sb-firm__phones {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sb-firm__phones a {
  font-size: 0.85rem;
  color: #b8945a;
  text-decoration: none;
  transition: color 0.2s;
}
.sb-firm__phones a:hover { color: #1a2744; }

.sb-latest {
  background: #fff;
  border: 1px solid rgba(26,39,68,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.sb-latest__header {
  padding: 0.875rem 1.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2744;
  border-bottom: 1px solid rgba(26,39,68,0.08);
}
.sb-post-item {
  display: block;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(26,39,68,0.06);
  text-decoration: none;
  transition: background 0.2s;
}
.sb-post-item:hover { background: rgba(184,148,90,0.05); }
.sb-post-item__title {
  font-size: 0.85rem;
  color: #1a2744;
  font-weight: 500;
  line-height: 1.4;
}
.sb-post-item__date {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}
.sb-latest__all {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: #b8945a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.sb-latest__all:hover { color: #1a2744; }

.sb-cta {
  background: #1a2744;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.sb-cta__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8945a;
  margin-bottom: 0.6rem;
}
.sb-cta__heading {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.sb-cta__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.sb-cta__btn {
  width: 100%;
  display: block;
  text-align: center;
}

/* ===== CATEGORY TAG NA KARCIE ===== */
.blog-card__category-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #b8945a);
  border: 1px solid rgba(184,148,90,0.4);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 0.4rem;
}
