/**
 * KPKS - karty aktualności, lista wpisów, paginacja
 * (strona główna + /aktualnosci/)
 */

/* ===== Nagłówek sekcji ===== */
.section-heading {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--kpks-navy, #031047);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-subheading {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(3, 16, 71, 0.65);
}

.news-section-header {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ===== Siatka listy ===== */
.news-list-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  --bs-gutter-x: clamp(1rem, 2.2vw, 1.75rem);
  --bs-gutter-y: clamp(1.15rem, 2.4vw, 1.85rem);
}

.news-list-grid > [class*="col-"] {
  display: flex;
}

/* ===== Karta wpisu (Apple-like, kolory KPKS) ===== */
.news-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 16px rgba(3, 16, 71, 0.05);
  transition:
    box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(3, 16, 71, 0.1);
}

.news-card > .news-card-media {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8eef5;
}

.news-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center;
}

.news-card:hover .news-card-image {
  transform: scale(1.035);
}

.news-card-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #156fb0;
  container-type: size;
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Tło jak na kafelku sekcji (section-card::before) */
.news-card-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(3, 16, 71, 0.28) 0%, rgba(0, 139, 210, 0.12) 100%),
    url("../images/sections-showcase-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-card-placeholder-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

.news-card-placeholder-icon img,
.news-card-placeholder-icon svg {
  display: block;
  width: auto;
  height: 72cqh;
  max-width: min(68%, 200px);
  object-fit: contain;
  opacity: 0.28;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.news-card:hover .news-card-placeholder-icon img,
.news-card:hover .news-card-placeholder-icon svg {
  opacity: 0.36;
  transform: scale(1.03);
}

.news-card:hover .news-card-image-placeholder {
  transform: scale(1.02);
}

.news-card:hover .news-card-image-placeholder::before {
  transform: scale(1.03);
}

.news-card-body {
  padding: 1.35rem 1.4rem 1.45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: rgba(3, 16, 71, 0.42);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  display: block;
  line-height: 1.3;
}

.news-date i {
  display: none;
}

.news-card-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--kpks-navy, #031047);
  margin-bottom: 0.55rem;
  line-height: 1.28;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: var(--kpks-primary, #008bd2);
}

.news-card-excerpt {
  color: rgba(3, 16, 71, 0.58);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex: 1;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: auto;
  align-self: flex-start;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--kpks-primary, #008bd2);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.25s ease;
}

.news-card-link:hover {
  color: #006fa8;
  gap: 0.35rem;
}

.news-card-link-arrow {
  font-size: 1.15em;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-0.05em);
}

/* Legacy Bootstrap btn w kartach (gdyby gdzieś zostało) */
.news-card .btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--kpks-primary, #008bd2);
  box-shadow: none;
  align-self: flex-start;
  font-size: 0.92rem;
  margin-top: auto;
}

.news-card .btn-outline-primary {
  border: none;
  color: var(--kpks-primary, #008bd2);
}

.news-card .btn-outline-primary:hover {
  background: transparent;
  color: #006fa8;
  transform: none;
}

.news-card .btn i {
  transition: transform 0.25s ease;
}

.news-card .btn:hover i {
  transform: translateX(3px);
}

/* ===== Strona listy aktualności ===== */
.news-list-page .news-empty {
  max-width: 640px;
  margin: 0 auto;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.15rem);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.news-filter-label {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kpks-gray, #6c757d);
  white-space: nowrap;
}

.news-filter-list {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(3, 16, 71, 0.12);
}

.news-filter-item {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.news-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.55rem;
  margin-bottom: -1px;
  padding: 0.55rem 1.05rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(3, 16, 71, 0.62);
  font-family: "Oswald", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.news-filter-link:hover {
  color: var(--kpks-navy, #031047);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.news-filter-link.is-active {
  background: transparent;
  border-bottom-color: var(--kpks-navy, #031047);
  color: var(--kpks-navy, #031047);
  box-shadow: none;
}

.news-filter-link:focus-visible {
  outline: 2px solid rgba(0, 139, 210, 0.55);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .news-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .news-filter-list {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }

  .news-filter-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .news-filter-link {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }
}

/* ===== Paginacja ===== */
.news-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(3, 16, 71, 0.08);
}

.news-pagination > ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination .page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination a.page-numbers,
.news-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(3, 16, 71, 0.12);
  background: #fff;
  color: var(--kpks-navy, #031047);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-pagination a.page-numbers:hover,
.news-pagination a.page-numbers:focus-visible {
  background: rgba(0, 139, 210, 0.08);
  border-color: rgba(0, 139, 210, 0.35);
  color: var(--kpks-primary, #008bd2);
}

.news-pagination span.page-numbers.current {
  background: var(--kpks-navy, #031047);
  border-color: var(--kpks-navy, #031047);
  color: #fff;
  cursor: default;
}

.news-pagination span.page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 0.25rem;
  color: rgba(3, 16, 71, 0.45);
}

.news-pagination a.prev.page-numbers,
.news-pagination a.next.page-numbers {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 1rem;
}

.news-pagination a.prev.page-numbers span,
.news-pagination a.next.page-numbers span {
  display: inline;
}

@media (max-width: 575px) {
  .news-pagination a.prev.page-numbers span,
  .news-pagination a.next.page-numbers span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .news-pagination a.prev.page-numbers,
  .news-pagination a.next.page-numbers {
    min-width: 44px;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .news-list-grid {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.7rem;
  }

  .news-card {
    border-radius: 14px;
  }

  .news-card-image,
  .news-card-image-placeholder {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-card-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .news-date {
    font-size: 0.62rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
  }

  .news-card-title {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
  }

  .news-card-link,
  .news-card .btn {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   Pojedyncza aktualność - layout + treść + sidebar
   ========================================================================== */
.news-single-page .inner-page-content {
  padding-top: clamp(1rem, 2vw, 1.35rem);
}

.news-single-media {
  margin: 0 0 clamp(1.15rem, 2.2vw, 1.5rem);
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: none;
  overflow: hidden;
  background: #031047;
  line-height: 0;
  border-radius: 18px;
  border: 1px solid rgba(3, 16, 71, 0.08);
  box-shadow: 0 8px 24px rgba(3, 16, 71, 0.07);
}

.news-single-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.15rem, 2.2vw, 1.5rem);
  align-items: start;
}

@media (min-width: 1100px) {
  .news-single-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: clamp(1.25rem, 2.2vw, 1.75rem);
  }
}

.news-single {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(3, 16, 71, 0.08);
  box-shadow: 0 10px 30px rgba(3, 16, 71, 0.08);
  overflow: hidden;
}

.news-single-body {
  padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}

.news-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.news-single-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  background: transparent;
  border: 1px solid rgba(3, 16, 71, 0.18);
  color: rgba(3, 16, 71, 0.72);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-single-tag:hover,
.news-single-tag:focus-visible {
  background: rgba(3, 16, 71, 0.05);
  border-color: rgba(3, 16, 71, 0.28);
  color: var(--kpks-navy, #031047);
  outline: none;
}

.news-single-tag--siatkowka,
.news-single-tag--akrobatyka,
.news-single-tag--kpks {
  background: transparent;
  border-color: rgba(3, 16, 71, 0.18);
  color: rgba(3, 16, 71, 0.72);
}

.news-single-prose {
  max-width: none;
  margin: 0;
  width: 100%;
}

.news-single-content {
  max-width: 42rem;
  margin: 0;
  color: rgba(3, 16, 71, 0.9);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 1.7vw, 1.08rem);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.news-single-content > *:first-child {
  margin-top: 0;
}

.news-single-content > *:last-child {
  margin-bottom: 0;
}

.news-single-content p {
  margin: 0 0 1.05rem;
  font-size: inherit;
  line-height: inherit;
}

.news-single-content p:empty {
  display: none;
}

.news-single-content br + br {
  display: none;
}

.news-single-content strong,
.news-single-content b {
  color: var(--kpks-navy, #031047);
  font-weight: 700;
}

.news-single-content em,
.news-single-content i {
  font-style: italic;
}

.news-single-content h2,
.news-single-content h3,
.news-single-content h4 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--kpks-navy, #031047);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: clamp(1.5rem, 2.8vw, 2rem) 0 0.7rem;
}

.news-single-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
}

.news-single-content h3 {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
}

.news-single-content h4 {
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
}

.news-single-content a {
  color: var(--kpks-primary, #008bd2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.news-single-content a:hover {
  color: var(--kpks-navy, #031047);
}

.news-single-content ul,
.news-single-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.news-single-content li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
  padding-left: 0.15rem;
}

.news-single-content ul li::marker {
  color: var(--kpks-primary, #008bd2);
}

.news-single-content hr {
  border: 0;
  height: 1px;
  margin: 1.75rem 0;
  background: rgba(3, 16, 71, 0.1);
}

.news-single-content blockquote {
  margin: clamp(1.15rem, 2.2vw, 1.5rem) 0;
  padding: 0.95rem 1.15rem;
  border-left: 3px solid var(--kpks-secondary, #ffd000);
  background: #f3f6fb;
  border-radius: 0 14px 14px 0;
  color: rgba(3, 16, 71, 0.82);
  font-size: 0.98em;
}

.news-single-content table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.95em;
}

.news-single-content th,
.news-single-content td {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(3, 16, 71, 0.1);
  text-align: left;
}

.news-single-content th {
  background: #f3f6fb;
  color: var(--kpks-navy, #031047);
  font-weight: 700;
}

.news-single-content figure,
.news-single-content .wp-caption,
.news-single-content .wp-block-image {
  float: none !important;
  clear: both !important;
  display: block;
  max-width: 100%;
  margin: clamp(1.15rem, 2.2vw, 1.5rem) 0;
}

.news-single-content .alignleft,
.news-single-content .alignright,
.news-single-content .aligncenter,
.news-single-content img.alignleft,
.news-single-content img.alignright,
.news-single-content img.aligncenter {
  float: none !important;
  display: block;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.news-single-content figure img,
.news-single-content .wp-caption img,
.news-single-content .wp-block-image img,
.news-single-content > img,
.news-single-content p > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(3, 16, 71, 0.1);
}

.news-single-content figcaption,
.news-single-content .wp-caption-text {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(3, 16, 71, 0.55);
}

/* Siatka kolejnych zdjęć z importu */
.news-single-content figure + figure {
  margin-top: 0.85rem;
}

@media (min-width: 700px) {
  .news-single-content {
    /* grupuj pary figure gdy to możliwe wizualnie */
  }
}

.news-single-content > div,
.news-single-content div[style] {
  float: none !important;
  clear: both !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block;
}

.news-single-content [style*="float"] {
  float: none !important;
  clear: both !important;
  max-width: 100% !important;
  display: block !important;
}

.news-single-content [style*="float"] img,
.news-single-content [style*="width"] img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.news-single-share {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding-top: clamp(1.15rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(3, 16, 71, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.news-single-share-label {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(3, 16, 71, 0.5);
}

.news-single-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-single-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 980px;
  border: 1px solid rgba(3, 16, 71, 0.16);
  background: transparent;
  color: rgba(3, 16, 71, 0.78);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-single-share-btn:hover,
.news-single-share-btn:focus-visible {
  background: rgba(3, 16, 71, 0.05);
  border-color: rgba(3, 16, 71, 0.28);
  color: var(--kpks-navy, #031047);
  outline: none;
}

.news-single-share-btn.is-copied {
  border-color: rgba(3, 16, 71, 0.28);
  background: rgba(3, 16, 71, 0.06);
  color: var(--kpks-navy, #031047);
}

.news-single-share-btn i {
  font-size: 0.78rem;
  line-height: 1;
}

.news-single-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(3, 16, 71, 0.08);
}

.news-single-adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(3, 16, 71, 0.12);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.news-single-adjacent-link:hover,
.news-single-adjacent-link:focus-visible {
  background: rgba(3, 16, 71, 0.03);
  border-color: rgba(3, 16, 71, 0.22);
  outline: none;
}

.news-single-adjacent-link--next {
  text-align: right;
  align-items: flex-end;
}

.news-single-adjacent-link--empty {
  border: none;
  background: transparent;
  pointer-events: none;
  padding: 0;
}

.news-single-adjacent-dir {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(3, 16, 71, 0.45);
}

.news-single-adjacent-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--kpks-navy, #031047);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-single-footer {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding-top: clamp(1.15rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(3, 16, 71, 0.08);
}

.news-single-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 2px solid rgba(3, 16, 71, 0.12);
  background: #fff;
  color: var(--kpks-navy, #031047);
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.news-single-back:hover {
  background: var(--kpks-navy, #031047);
  border-color: var(--kpks-navy, #031047);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Sidebar ===== */
.news-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--kpks-header-height, 96px) + 1rem);
}

.news-sidebar-panel {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(3, 16, 71, 0.08);
  box-shadow: 0 8px 24px rgba(3, 16, 71, 0.06);
  padding: 1rem 1rem 0.85rem;
}

.news-sidebar-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(3, 16, 71, 0.08);
}

.news-sidebar-panel-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kpks-navy, #031047);
}

.news-sidebar-panel-more {
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kpks-primary, #008bd2);
  text-decoration: none;
  white-space: nowrap;
}

.news-sidebar-panel-more:hover {
  color: var(--kpks-navy, #031047);
}

.news-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-sidebar-item + .news-sidebar-item {
  border-top: 1px solid rgba(3, 16, 71, 0.06);
}

.news-sidebar-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  text-decoration: none;
  color: inherit;
}

.news-sidebar-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef5;
  flex-shrink: 0;
}

.news-sidebar-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-sidebar-thumb--placeholder {
  background-color: #156fb0;
}

.news-sidebar-thumb--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(3, 16, 71, 0.28) 0%, rgba(0, 139, 210, 0.12) 100%),
    url("../images/sections-showcase-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.news-sidebar-thumb-placeholder-icon {
  position: relative;
  z-index: 1;
  width: auto !important;
  height: 58% !important;
  max-width: 70%;
  object-fit: contain !important;
  opacity: 0.32;
}

.news-sidebar-link:hover .news-sidebar-thumb-placeholder-icon {
  opacity: 0.4;
}

.news-sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.news-sidebar-date {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(3, 16, 71, 0.45);
}

.news-sidebar-title {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--kpks-navy, #031047);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sidebar-link:hover .news-sidebar-title {
  color: var(--kpks-primary, #008bd2);
}

@media (min-width: 768px) and (max-width: 1099px) {
  .news-single-body {
    padding: clamp(1.5rem, 2.8vw, 1.85rem) clamp(1.5rem, 3.5vw, 2rem);
  }
}

@media (max-width: 767px) {
  .news-single {
    border-radius: 16px;
  }

  .news-single-media {
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    height: auto;
    margin-bottom: 1rem;
  }

  .news-single-adjacent {
    grid-template-columns: 1fr;
  }

  .news-single-adjacent-link--next {
    text-align: left;
    align-items: flex-start;
  }

  .news-single-adjacent-link--empty {
    display: none;
  }

  .news-single-body {
    padding: 1.15rem 1rem 1.25rem;
  }

  .news-single-content {
    max-width: none;
  }

  .news-single-back {
    width: 100%;
    justify-content: center;
  }

  .news-single-sidebar {
    position: static;
  }
}
