#o-lekturze, #materialy, #artykuly {
  scroll-margin-top: 80px;
}

.content-header.lektura-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.lektura-header-info {
  flex-grow: 1;
  min-width: 0;
}

.lektura-author-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lektura-author-link:hover {
  color: #e0e7ff;
  text-decoration-color: #ffffff;
}

.lektura-cover-wrapper {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lektura-cover {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.lektura-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.lektura-badges .badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lektura-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(4px);
  width: fit-content;
}

.lektura-badge i {
  color: #ffffff;
}

.lektura-section-title {
  font-size: 22px;
  color: #1e293b;
  margin: 35px 0 20px 0;
  font-weight: 700;
  position: relative;
  padding-left: 15px;
}

.lektura-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.lektura-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 25px 0 35px 0;
}

.lektura-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lektura-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.action-card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
}

.action-card-body h3 {
  font-size: 18px;
  color: #1e293b;
  margin: 0 0 8px 0 !important;
  font-weight: 700;
  line-height: 1.3;
}

.action-card-body h3::before {
  display: none !important;
}

.action-card-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 20px 0 !important;
}

.action-card-footer {
  margin-top: auto;
}

.action-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.lektura-action-card:hover .action-card-btn {
  gap: 12px;
}

.card-streszczenie {
  border-top: 4px solid #6366f1;
}
.card-streszczenie:hover {
  border-color: #6366f1;
}
.card-streszczenie .action-card-icon {
  background-color: #e0e7ff;
  color: #4338ca;
}
.card-streszczenie .action-card-badge {
  background-color: #e0e7ff;
  color: #4338ca;
}
.card-streszczenie .action-card-btn {
  color: #4f46e5;
}

.card-opracowanie {
  border-top: 4px solid #16a34a;
}
.card-opracowanie:hover {
  border-color: #16a34a;
}
.card-opracowanie .action-card-icon {
  background-color: #dcfce7;
  color: #15803d;
}
.card-opracowanie .action-card-badge {
  background-color: #dcfce7;
  color: #15803d;
}
.card-opracowanie .action-card-btn {
  color: #15803d;
}

.card-quiz {
  border-top: 4px solid #9333ea;
}
.card-quiz:hover {
  border-color: #9333ea;
}
.card-quiz .action-card-icon {
  background-color: #f3e8ff;
  color: #7e22ce;
}
.card-quiz .action-card-badge {
  background-color: #f3e8ff;
  color: #7e22ce;
}
.card-quiz .action-card-btn {
  color: #7e22ce;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.related-article-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.08);
}

.related-article-card h3 {
  font-size: 16px;
  color: #1e293b;
  margin: 8px 0 !important;
  line-height: 1.4;
  border: none !important;
  padding: 0 !important;
}

.related-article-card h3::before {
  display: none !important;
}

.related-article-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 !important;
  flex-grow: 1;
}


.content-bottom-link-lektury {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .content-header.lektura-header-card {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .lektura-cover-wrapper {
    width: 170px;
    height: 170px;
    margin: 0 auto;
  }

  .lektura-badges {
    align-items: center;
  }

  .badges-row {
    justify-content: center;
  }

  .lektura-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .content-bottom-link-lektury {
    justify-content: flex-start;
  }
}

