/* Blog subpage – structure from blog.emilooo.pl */
.blog-page {
  padding-top: 0;
  background-color: #ffffff;
  --color-primary: #11bdff;
}

body.blog-page > section.blog-page {
  background-color: #ffffff;
  padding-bottom: 0;
}

@media (min-width: 767px) {
  body.blog-page > section.blog-page {
    padding-bottom: 0;
  }
}

/* Nawigacja bloga = #mainNav jak na landing (Bootstrap collapse), style z emilo.css – bez nadpisań rozwijania */
@media (min-width: 992px) {
  .blog-page #mainNav:not(.navbar-shrink) .navbar-brand {
    background-image: url('/img/logo.png') !important;
  }
}

/* Pozycja Blog aktywna: tylko pogrubienie, bez zmiany koloru (nawigacja górna i stopka) */
.blog-page #mainNav .navbar-nav .nav-item.dropdown.active > .nav-link.dropdown-toggle,
.blog-page #mainNav .navbar-nav .nav-item.active > .nav-link.active,
.blog-page #mainNav .navbar-nav .nav-item.active .nav-link,
.blog-page #mainNav .navbar-nav .nav-item.active > a.nav-link {
  font-weight: 700 !important;
  color: inherit !important;
}

/* Zmiana języka – ostatni element nawigacji, wyraźny odstęp */
.blog-page .blog-nav__language-wrap {
  margin-left: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.blog-page .blog-nav__language {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.blog-page .blog-nav__language .language__item {
  padding: 0.25rem 0;
}

/* Zmiana języka w stopce – wyraźny odstęp od menu */
.blog-page .footer__language {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.blog-page .footer__language .language__item {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.blog-page .footer__language .language__item:hover,
.blog-page .footer__language .language__item--active {
  opacity: 1;
  font-weight: 700;
}

/* Pasek postępu czytania artykułu – element w środku #mainNav (nie obok niego jako sibling!),
   dzięki temu automatycznie maluje się NAD własnym tłem/cieniem #mainNav (np. box-shadow
   .navbar-shrink), ale JEGO z-index (niski, poniżej 1000) trzyma go POD rozwijanym submenu
   Bootstrapa (.dropdown-menu: z-index 1000) - oba są potomkami #mainNav, więc porównanie
   z-index działa tylko między nimi, a nie globalnie z resztą strony.
   Wcześniej pasek był siblingiem #mainNav z wysokim z-index (1031) - to poprawnie stawiało
   go nad submenu, ale też nad całym #mainNav wraz z jego cieniem w stanie .navbar-shrink,
   przez co przy przewinięciu strony cień malował się NA pasku i wyglądał jak inny kolor. */
.post-read-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 56px;
  height: 4px;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.post-read-progress__bar {
  height: 100%;
  background: #11bdff;
  transition: width 0.15s ease-out;
}

.blog-page .footer__nav .nav-item.dropdown.active > .nav-link.dropdown-toggle,
.blog-page .footer__nav .nav-item.active > .nav-link.active {
  font-weight: 700 !important;
  color: inherit !important;
}

:root {
  --color-primary: #11bdff;
  --blog-color-primary: #11bdff;
  --blog-color-primary-dark: #0070dd;
  --blog-color-text: #212529;
  --blog-color-text-light: #212529;
  --blog-color-white: #ffffff;
  --blog-spacing-xs: 0.5rem;
  --blog-spacing-sm: 1rem;
  --blog-spacing-md: 1.5rem;
  --blog-spacing-lg: 2rem;
  --blog-spacing-xl: 3rem;
  --blog-spacing-xxl: 5rem;
  --blog-radius-md: 16px;
  --blog-radius-lg: 24px;
  --blog-radius-xl: 32px;
  --blog-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --blog-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --blog-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --blog-transition-fast: 0.2s ease;
  --blog-transition-normal: 0.3s ease;
  --blog-container-padding: 1.5rem;
  --blog-font-primary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --blog-font-secondary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.blog-page .section {
  padding: var(--blog-spacing-xxl) 0;
}

/* Page header (blog-header) – niższa sekcja, tło tylko tutaj; reszta strony biała */
.blog-page .page-header {
  position: relative;
  padding: 6rem 0 3rem;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/img/header.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.blog-page .page-header__container {
  text-align: center;
}

.blog-page .page-header__container.container {
  padding-bottom: 20rem;
}

.blog-page .page-header__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blog-color-white);
  margin-top: 1.5rem;
}

@media (min-width: 1025px) {
  .blog-page .page-header {
    padding: 7rem 0 4rem;
    min-height: 580px;
  }

  .blog-page .page-header__title {
    font-size: 4.5rem;
  }

  .blog-page .page-header__container.container {
    padding-bottom: 20rem;
  }
}

.blog-page .page-header__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.blog-page .page-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.blog-page .page-header__breadcrumb a:hover {
  color: var(--blog-color-white);
}

.blog-page .page-header__breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.blog-page .page-header__breadcrumb-current {
  color: var(--blog-color-white);
  font-weight: 600;
}

.blog-page .page-header + .section {
  margin-top: -25rem;
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.blog-page .page-header + .section .container {
  overflow: visible;
}

/* Featured article */
.blog-page .featured-article {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr;
  gap: var(--blog-spacing-lg);
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #D0D5DD;
}

.blog-page .featured-article__image-wrapper {
  position: relative;
  border-radius: var(--blog-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: -6rem;
  background: #f0f0f0;
}

.blog-page .featured-article__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-page .featured-article__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-page .featured-article__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blog-color-text);
  margin-bottom: var(--blog-spacing-xs);
  line-height: 1.3;
}

.blog-page .featured-article__meta {
  font-size: 0.8125rem;
  color: #6c757d;
  margin-bottom: var(--blog-spacing-md);
  line-height: 1.4;
}

.blog-page .featured-article__excerpt {
  font-size: 1rem;
  color: var(--blog-color-text-light);
  margin-bottom: var(--blog-spacing-md);
  line-height: 1.7;
}

@media (min-width: 1025px) {
  .blog-page .featured-article {
    grid-template-columns: 1fr 1fr;
    gap: var(--blog-spacing-xl);
    margin-left: 3.5rem;
  }
  .blog-page .featured-article__title {
    font-size: 2.25rem;
  }
  .blog-page .featured-article__image-wrapper {
    margin-left: -5rem;
    margin-top: 0;
  }
}

/* Articles sort – w jednym wierszu z wyszukiwarką, wyrównane wertykalnie */
.blog-page .articles-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: var(--blog-spacing-md);
  margin-bottom: var(--blog-spacing-xl);
}

.blog-page .articles-toolbar .listing-search {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.blog-page .articles-toolbar .listing-search__form {
  max-width: none;
}

.blog-page .articles-tags-wrap {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  margin-bottom: 0;
}

.blog-page .articles-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.blog-page .articles-tags__label {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blog-color-text);
  white-space: nowrap;
}

.blog-page .articles-tags-toggle {
  display: block;
  min-width: 12rem;
  width: 100%;
  height: 48px !important;
  padding: 0 2rem 0 1rem !important;
  font-size: 1rem;
  font-family: var(--blog-font-primary);
  font-weight: 400;
  line-height: 48px !important;
  color: var(--blog-color-text);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #D0D5DD;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
  transition: border-color var(--blog-transition-fast), box-shadow var(--blog-transition-fast);
}

.blog-page .articles-tags-toggle:hover {
  border-color: #98a2b3;
}

.blog-page .articles-tags-toggle:focus {
  outline: none;
  border-color: var(--blog-color-primary);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.blog-page .articles-tags-menu {
  min-width: 0;
  width: 100%;
  max-width: 320px;
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-page .articles-tag-item {
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin: 0;
  border-radius: var(--blog-radius-sm);
}

.blog-page .articles-tag-item:hover {
  background-color: #f8f9fa;
}

.blog-page .articles-tag-item .form-check-label {
  cursor: pointer;
  width: 100%;
  margin-left: 1.25rem;
  font-size: 0.9375rem;
}

.blog-page .articles-tag-item .form-check-input {
  cursor: pointer;
  margin-top: 0.25rem;
  margin-left: 0;
  margin-right: 1rem;
}

.blog-page .articles-sort-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-shrink: 0;
  margin-bottom: 0;
}

.blog-page .articles-sort {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.blog-page .articles-specializations-wrap {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  margin-bottom: 0;
}

.blog-page .articles-specializations {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.blog-page .articles-sort__label {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blog-color-text);
  white-space: nowrap;
}

/* Ta sama wysokość co input wyszukiwarki (48px) */
.blog-page .articles-sort__select,
.blog-page .articles-sort__select.form-control,
.blog-page select.articles-sort__select.form-control {
  display: block !important;
  min-width: 12rem;
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 2rem 0 1rem !important;
  font-size: 1rem !important;
  font-family: var(--blog-font-primary);
  font-weight: 400;
  line-height: 48px !important;
  color: var(--blog-color-text);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #D0D5DD;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  appearance: auto;
  box-sizing: border-box;
  margin: 0 !important;
  vertical-align: middle;
  transition: border-color var(--blog-transition-fast), box-shadow var(--blog-transition-fast);
}

.blog-page .articles-sort__select:hover {
  border-color: #98a2b3;
}

.blog-page .articles-sort__select:focus {
  outline: none;
  border-color: var(--blog-color-primary);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

/* Listing search – w wierszu z sortowaniem */
.blog-page .listing-search {
  margin-bottom: var(--blog-spacing-xl);
}

.blog-page .listing-search__form {
  position: relative;
  max-width: 420px;
}

.blog-page .listing-search__label.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-page .listing-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  pointer-events: none;
  transition: color var(--blog-transition-fast);
}

.blog-page .listing-search__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  font-size: 1rem;
  font-family: var(--blog-font-primary);
  color: var(--blog-color-text);
  background-color: #fff;
  border: 1px solid #D0D5DD;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color var(--blog-transition-fast), box-shadow var(--blog-transition-fast);
  appearance: none;
}

.blog-page .listing-search__input::placeholder {
  color: #6c757d;
}

.blog-page .listing-search__input:hover {
  border-color: #98a2b3;
}

.blog-page .listing-search__input:focus {
  outline: none;
  border-color: var(--blog-color-primary);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.blog-page .listing-search__form:focus-within .listing-search__icon {
  color: var(--blog-color-primary);
}

/* Search results dropdown */
.blog-page .listing-search__form {
  position: relative;
}

.blog-page .listing-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background-color: var(--blog-color-white);
  border: 1px solid #e0e0e0;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.5rem 0;
}

.blog-page .listing-search__result {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--blog-color-text);
  text-decoration: none;
  transition: background-color var(--blog-transition-fast);
  border-bottom: 1px solid #f0f0f0;
}

.blog-page .listing-search__result:last-child {
  border-bottom: none;
}

.blog-page .listing-search__result:hover,
.blog-page .listing-search__result:focus {
  background-color: #f8f9fa;
  outline: none;
}

.blog-page .listing-search__result--empty {
  color: var(--blog-color-text-light);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  border-bottom: none;
}

.blog-page .listing-search__result--empty:hover {
  background-color: transparent;
}

.blog-page .listing-search__result-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blog-color-text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.blog-page .listing-search__result-excerpt {
  font-size: 0.875rem;
  color: var(--blog-color-text-light);
  line-height: 1.5;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page .listing-search__result-meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Articles grid */
.blog-page .articles-grid {
  display: grid;
  gap: var(--blog-spacing-lg);
}

.blog-page .articles-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--blog-spacing-xl);
  color: var(--blog-color-text-light);
}

@media (min-width: 576px) {
  .blog-page .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .blog-page .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-page .article-card {
  background-color: var(--blog-color-white);
  border-radius: var(--blog-radius-lg);
  overflow: hidden;
  box-shadow: var(--blog-shadow-sm);
  transition: var(--blog-transition-normal);
}

@media (min-width: 1025px) {
  .blog-page .articles-grid .article-card:nth-child(2),
  .blog-page .articles-grid .article-card:nth-child(5),
  .blog-page .articles-grid .article-card:nth-child(8) {
    margin-top: 2rem;
    margin-bottom: -2rem;
  }
}

.blog-page .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-shadow-md);
}

.blog-page .article-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blog-page .article-card__image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.blog-page .article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--blog-transition-normal);
}

.blog-page .article-card:hover .article-card__image {
  transform: scale(1.05);
}

.blog-page .article-card__content {
  padding: var(--blog-spacing-md);
}

.blog-page .article-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blog-color-text);
  margin-bottom: var(--blog-spacing-xs);
  line-height: 1.3;
  min-height: 52px;
  overflow: hidden;
  max-height: 52px;
}

.blog-page .article-card__meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: var(--blog-spacing-sm);
  line-height: 1.4;
}

.blog-page .article-card__excerpt {
  font-size: 0.9375rem;
  color: var(--blog-color-text-light);
  margin-bottom: var(--blog-spacing-md);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blog-color-primary);
  transition: var(--blog-transition-fast);
}

.blog-page .link-arrow:hover {
  color: var(--blog-color-primary-dark);
}

.blog-page .link-arrow__icon {
  display: inline-flex;
}

.blog-page .link-arrow__icon svg {
  width: 20px;
  height: 20px;
}

/* Pagination */
.blog-page .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--blog-spacing-xxl);
}

.blog-page .pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blog-color-text-light);
  transition: var(--blog-transition-fast);
  text-decoration: none;
}

.blog-page .pagination__item:hover {
  background-color: #f0f0f0;
  color: var(--blog-color-text);
}

.blog-page .pagination__item--active {
  background-color: var(--blog-color-primary);
  color: var(--blog-color-white);
}

.blog-page .pagination__item--active:hover {
  background-color: var(--blog-color-primary-dark);
  color: var(--blog-color-white);
}

/* Post header (single post) */
.blog-page .post-header {
  position: relative;
  min-height: 550px;
  padding: 6rem 0;
  display: flex;
  align-items: start;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.blog-page .post-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--blog-container-padding);
  text-align: center;
}

.blog-page .post-header__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--blog-spacing-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.blog-page .post-header__breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.blog-page .post-header__breadcrumb-current {
  color: var(--blog-color-white);
  font-weight: 700;
}

.blog-page .post-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.blog-page .post-header__breadcrumb a:hover {
  color: var(--blog-color-white);
}

.blog-page .post-header__title {
  font-size: clamp(1.75rem, 0.6vw + 1.6rem, 3.5rem);
  font-weight: 700;
  color: var(--blog-color-white);
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.blog-page .post-header__meta-line {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.4;
}

@media (min-width: 1025px) {
  .blog-page .post-header {
    padding: 12rem 0 6rem;
    min-height: 870px;
  }
}

.blog-page .post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--blog-spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-bottom: 7rem;
}

.blog-page .post-header__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Przycisk Udostępnij – jak we wzorcu post.html */
.blog-page .post-header__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blog-color-white);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--blog-radius-xl);
  cursor: pointer;
  transition: var(--blog-transition-fast);
}

.blog-page .post-header__share-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.blog-page .post-header__share-btn .material-icons,
.blog-page .post-header__share-btn i {
  font-size: 1.125rem;
}

.blog-page .post-header__github-link {
  text-decoration: none;
}

/* Przewiń w dół – analogicznie do landing, z odstępem od przycisków */
.blog-page .post-header__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Strony bez .post-header__meta (np. wizytówka /about-me) – bez niej ten
   ujemny margines zjeżdżał na tytuł/meta-line, bo nie miał czego kompensować. */
.blog-page .post-header__scroll--no-meta {
  margin-top: 1rem;
}

.blog-page .post-header__scroll-text {
  margin: 0 0 0.5rem;
}

.blog-page .post-header__scroll-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  cursor: pointer;
}

.blog-page .post-featured-image {
  margin-top: -12rem;
  margin-bottom: var(--blog-spacing-xl);
  position: relative;
  z-index: 2;
}

.blog-page .post-featured-image__wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--blog-container-padding);
  position: relative;
}

.blog-page .post-featured-image__img {
  width: 100%;
  border-radius: var(--blog-radius-lg);
  box-shadow: var(--blog-shadow-lg);
}

.blog-page .post-gallery-caption {
  position: absolute;
  left: var(--blog-container-padding);
  right: var(--blog-container-padding);
  bottom: 1.25rem;
  z-index: 3;
  padding: 0.5rem 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0;
}

.blog-page .post-gallery-title {
  margin: 0;
  font-size: clamp(1.75rem, 0.6vw + 1.6rem, 3.5rem);
  font-weight: 700;
  color: #fff;
}

.blog-page .post-gallery-photo-title {
  margin: 0.25rem 0 0;
  font-size: clamp(0.9rem, 0.3vw + 0.85rem, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

/* /about-me – "Poznaj mnie bliżej" nałożone na zdjęcie wyróżniające,
   ten sam wzorzec pozycjonowania co .post-gallery-caption powyżej */
.blog-page .about-me-overlay {
  position: absolute;
  left: var(--blog-container-padding);
  right: var(--blog-container-padding);
  bottom: 1.25rem;
  z-index: 3;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0;
}

.blog-page .about-me-overlay__title {
  margin: 0 0 0.75rem;
  font-size: clamp(0.9rem, 0.3vw + 0.85rem, 1.1rem);
  font-weight: 700;
  color: #fff;
}

.blog-page .about-me-overlay__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-page .about-me-overlay__link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-page .about-me-overlay__link:hover {
  background: #fff;
  color: #212529;
}

@media (max-width: 575.98px) {
  .blog-page .about-me-overlay {
    position: static;
    margin-top: 0.75rem;
    border-radius: var(--blog-radius-lg);
  }
}

.blog-page .post-featured-image--slider .post-featured-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--blog-radius-lg);
}

.blog-page .post-featured-image--slider .swiper-slide {
  position: relative;
}

.blog-page .post-featured-image--slider .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--blog-radius-lg);
  box-shadow: var(--blog-shadow-lg);
}

.blog-page .post-featured-image--slider .swiper-button-prev,
.blog-page .post-featured-image--slider .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(30, 170, 231, 0.7);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(30, 170, 231, 0.3);
  transition: all 0.3s ease;
}

.blog-page .post-featured-image--slider .swiper-button-prev::after,
.blog-page .post-featured-image--slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.blog-page .post-featured-image--slider .swiper-button-prev:hover,
.blog-page .post-featured-image--slider .swiper-button-next:hover {
  background: rgba(30, 170, 231, 0.9);
  box-shadow: 0 6px 20px rgba(30, 170, 231, 0.5);
  transform: translateY(-3px);
}

.blog-page .post-featured-image--slider .swiper-button-prev {
  left: 16px;
}

.blog-page .post-featured-image--slider .swiper-button-next {
  right: 16px;
}

@media (max-width: 640px) {
  .blog-page .post-featured-image--slider .swiper-button-prev,
  .blog-page .post-featured-image--slider .swiper-button-next {
    display: none;
  }
}

.blog-page .post-featured-image__wrapper--split {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.blog-page .post-featured-image__banner {
  flex: 2;
}

.blog-page .post-featured-image__profile {
  flex: 1;
  max-width: 380px;
}

.blog-page .post-featured-image__banner-img,
.blog-page .post-featured-image__profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--blog-radius-lg);
  box-shadow: var(--blog-shadow-lg);
}

@media (max-width: 767.98px) {
  .blog-page .post-featured-image__wrapper--split {
    flex-direction: column;
  }

  .blog-page .post-featured-image__profile {
    max-width: none;
  }
}

@media (min-width: 1025px) {
  .blog-page .post-featured-image {
    margin-top: -20rem;
  }
}

/* Post content – formatowanie 1:1 jak na wzorcowej stronie (post.html / styles.css).
   Wysoka specyficzność i !important, żeby nadpisać Bootstrap i style z edytora. */
/* Post content – scroll-margin-top, żeby po kliknięciu "Przewiń w dół" sekcja #post-content nie chowała się pod fixed nav */
.blog-page article.post-content {
  scroll-margin-top: 6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--blog-container-padding);
  font-family: var(--blog-font-primary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: var(--blog-color-text) !important;
}

.blog-page article.post-content > *:first-child {
  margin-top: 0 !important;
}

.blog-page article.post-content > *:last-child {
  margin-bottom: 0 !important;
}

/* h1 i h2 w treści – dokładnie jak na wzorcowej */
#page section article.post-content h1,
#page section article.post-content h2,
#page section article.post-content div h1,
#page section article.post-content div h2,
.blog-page article.post-content h1,
.blog-page article.post-content h2,
.blog-page article.post-content div h1,
.blog-page article.post-content div h2,
.blog-page .post-content h1,
.blog-page .post-content h2 {
  font-family: var(--blog-font-primary) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--color-primary, #1e90ff) !important;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
}

/* h2 – display, font-size 1.5em, margin-block, font-weight, unicode-bidi */
#page section article.post-content h2,
#page section article.post-content div h2,
.blog-page article.post-content h2,
.blog-page article.post-content div h2,
.blog-page .post-content h2 {
  display: block !important;
  font-size: 1.5em !important;
  margin-block-start: 0.83em !important;
  margin-block-end: 0.83em !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  font-weight: bold !important;
  unicode-bidi: isolate !important;
}

#page section article.post-content h1:first-child,
#page section article.post-content h2:first-child,
.blog-page article.post-content h1:first-child,
.blog-page article.post-content h2:first-child {
  margin-top: 0 !important;
}

/* strong wewnątrz h1 – ten sam kolor i rozmiar */
#page section article.post-content h1 strong,
#page section article.post-content div h1 strong,
.blog-page article.post-content h1 strong,
.blog-page article.post-content div h1 strong,
.blog-page .post-content h1 strong {
  color: var(--color-primary, #1e90ff) !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
}

/* h2 strong i h2 span – identyczne style jak h2 (kolor, waga; rozmiar 1em = jak h2) */
#page section article.post-content h2 strong,
#page section article.post-content h2 span,
#page section article.post-content div h2 strong,
#page section article.post-content div h2 span,
.blog-page article.post-content h2 strong,
.blog-page article.post-content h2 span,
.blog-page article.post-content div h2 strong,
.blog-page article.post-content div h2 span,
.blog-page .post-content h2 strong,
.blog-page .post-content h2 span {
  color: var(--color-primary, #1e90ff) !important;
  font-weight: bold !important;
  font-size: 1em !important;
  font-family: var(--blog-font-primary) !important;
  line-height: 1.35 !important;
}

.blog-page article.post-content h3,
.blog-page .post-content h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--blog-color-primary) !important;
  margin-top: var(--blog-spacing-lg) !important;
  margin-bottom: var(--blog-spacing-sm) !important;
  font-family: var(--blog-font-primary) !important;
}

/* h4 – takie samo formatowanie jak h3 (czcionka i kolor), ale mniejszy rozmiar i odstępy */
.blog-page article.post-content h4,
.blog-page .post-content h4 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--blog-color-primary) !important;
  margin-top: var(--blog-spacing-md) !important;
  margin-bottom: var(--blog-spacing-sm) !important;
  font-family: var(--blog-font-primary) !important;
}

/* Akapity artykułu (odpowiednik //*[@id="page"]/section[1]/article/p) – justowanie */
#page section article.post-content p,
#page section article.post-content p span,
.blog-page article.post-content p,
.blog-page article.post-content p span,
.blog-page .post-content p,
.blog-page .post-content p span {
  text-align: justify !important;
}

#page section article.post-content p,
#page section article.post-content p strong,
#page section article.post-content p span,
.blog-page article.post-content p,
.blog-page article.post-content p strong,
.blog-page article.post-content p span,
.blog-page .post-content p,
.blog-page .post-content p strong,
.blog-page .post-content p span {
  font-size: 1rem !important;
}

.blog-page article.post-content p,
.blog-page .post-content p {
  line-height: 1.8 !important;
  color: #212529 !important;
  margin-bottom: var(--blog-spacing-md) !important;
  font-family: var(--blog-font-primary) !important;
}

.blog-page article.post-content pre,
.blog-page .post-content pre {
  position: relative !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  padding: 2.75rem 1.25rem 1.25rem !important;
  background: rgba(89, 183, 255, 0.08) !important;
  border-left: 4px solid #11bdff !important;
  border-radius: 4px !important;
  overflow-x: auto !important;
}

.blog-page .post-content__copy-btn {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.35rem 0.7rem !important;
  background: var(--blog-color-white) !important;
  border: 1px solid rgba(30, 144, 255, 0.25) !important;
  border-radius: 6px !important;
  color: var(--blog-color-primary-dark) !important;
  font-family: var(--blog-font-primary) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
}

.blog-page .post-content__copy-btn .material-icons {
  font-size: 1rem !important;
}

.blog-page .post-content__copy-btn:hover {
  background: var(--blog-color-primary) !important;
  border-color: var(--blog-color-primary) !important;
  color: var(--blog-color-white) !important;
}

.blog-page .post-content__copy-btn--copied,
.blog-page .post-content__copy-btn--copied:hover {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: var(--blog-color-white) !important;
}

.blog-page .post-content__copy-btn--error,
.blog-page .post-content__copy-btn--error:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: var(--blog-color-white) !important;
}

.blog-page article.post-content pre code,
.blog-page .post-content pre code {
  background: none !important;
  color: var(--blog-color-text) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  white-space: pre !important;
}

/* Kolorowanie tokenów podświetlania składni (hljs) z edytora TipTap na publicznej stronie. */
.blog-page article.post-content pre .hljs-comment,
.blog-page .post-content pre .hljs-comment,
.blog-page article.post-content pre .hljs-quote,
.blog-page .post-content pre .hljs-quote {
  color: #6a737d !important;
  font-style: italic !important;
}

.blog-page article.post-content pre .hljs-keyword,
.blog-page .post-content pre .hljs-keyword,
.blog-page article.post-content pre .hljs-selector-tag,
.blog-page .post-content pre .hljs-selector-tag,
.blog-page article.post-content pre .hljs-subst,
.blog-page .post-content pre .hljs-subst {
  color: #d73a49 !important;
}

.blog-page article.post-content pre .hljs-number,
.blog-page .post-content pre .hljs-number,
.blog-page article.post-content pre .hljs-literal,
.blog-page .post-content pre .hljs-literal,
.blog-page article.post-content pre .hljs-variable,
.blog-page .post-content pre .hljs-variable,
.blog-page article.post-content pre .hljs-template-variable,
.blog-page .post-content pre .hljs-template-variable,
.blog-page article.post-content pre .hljs-built_in,
.blog-page .post-content pre .hljs-built_in,
.blog-page article.post-content pre .hljs-builtin-name,
.blog-page .post-content pre .hljs-builtin-name {
  color: #005cc5 !important;
}

.blog-page article.post-content pre .hljs-string,
.blog-page .post-content pre .hljs-string,
.blog-page article.post-content pre .hljs-doctag,
.blog-page .post-content pre .hljs-doctag,
.blog-page article.post-content pre .hljs-regexp,
.blog-page .post-content pre .hljs-regexp,
.blog-page article.post-content pre .hljs-link,
.blog-page .post-content pre .hljs-link {
  color: #032f62 !important;
}

.blog-page article.post-content pre .hljs-title,
.blog-page .post-content pre .hljs-title,
.blog-page article.post-content pre .hljs-section,
.blog-page .post-content pre .hljs-section,
.blog-page article.post-content pre .hljs-selector-id,
.blog-page .post-content pre .hljs-selector-id,
.blog-page article.post-content pre .hljs-type,
.blog-page .post-content pre .hljs-type,
.blog-page article.post-content pre .hljs-class .hljs-title,
.blog-page .post-content pre .hljs-class .hljs-title {
  color: #6f42c1 !important;
  font-weight: 600 !important;
}

.blog-page article.post-content pre .hljs-tag,
.blog-page .post-content pre .hljs-tag,
.blog-page article.post-content pre .hljs-name,
.blog-page .post-content pre .hljs-name,
.blog-page article.post-content pre .hljs-attribute,
.blog-page .post-content pre .hljs-attribute,
.blog-page article.post-content pre .hljs-attr,
.blog-page .post-content pre .hljs-attr {
  color: #22863a !important;
}

.blog-page article.post-content pre .hljs-symbol,
.blog-page .post-content pre .hljs-symbol,
.blog-page article.post-content pre .hljs-bullet,
.blog-page .post-content pre .hljs-bullet {
  color: #e36209 !important;
}

.blog-page article.post-content pre .hljs-meta,
.blog-page .post-content pre .hljs-meta {
  color: #6a737d !important;
}

.blog-page article.post-content pre .hljs-deletion,
.blog-page .post-content pre .hljs-deletion {
  background: #ffeef0 !important;
}

.blog-page article.post-content pre .hljs-addition,
.blog-page .post-content pre .hljs-addition {
  background: #f0fff4 !important;
}

.blog-page article.post-content pre .hljs-emphasis,
.blog-page .post-content pre .hljs-emphasis {
  font-style: italic !important;
}

.blog-page article.post-content pre .hljs-strong,
.blog-page .post-content pre .hljs-strong {
  font-weight: 700 !important;
}

.blog-page article.post-content code,
.blog-page .post-content code {
  font-family: 'Fira Code', 'Courier New', monospace !important;
  background-color: rgba(30, 144, 255, 0.1) !important;
  color: var(--blog-color-primary-dark) !important;
  padding: 0.15em 0.4em !important;
  border-radius: 6px !important;
  font-size: 0.9em !important;
}

.blog-page article.post-content img,
.blog-page .post-content img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: var(--blog-radius-md) !important;
  margin: var(--blog-spacing-lg) 0 !important;
}

.blog-page article.post-content ul,
.blog-page article.post-content ol,
.blog-page .post-content ul,
.blog-page .post-content ol {
  margin-bottom: var(--blog-spacing-md) !important;
  padding-left: 1.5rem !important;
}

.blog-page article.post-content li,
.blog-page .post-content li {
  margin-bottom: 0.5rem !important;
  line-height: 1.7 !important;
  color: #212529 !important;
}

.blog-page article.post-content ul li,
.blog-page .post-content ul li {
  list-style-type: disc !important;
}

.blog-page article.post-content ol li,
.blog-page .post-content ol li {
  list-style-type: decimal !important;
}

/* Links in post-content */
.blog-page article.post-content a,
.blog-page .post-content a {
  color: var(--color-primary, #1e90ff) !important;
  text-decoration: none !important;
}

.blog-page article.post-content a:hover,
.blog-page .post-content a:hover {
  color: var(--color-primary, #1e90ff) !important;
  text-decoration: underline !important;
}

@media (min-width: 768px) {
  #page section article.post-content h1,
  #page section article.post-content h2,
  .blog-page article.post-content h1,
  .blog-page article.post-content h2,
  .blog-page .post-content h1,
  .blog-page .post-content h2 {
    font-size: 1.75rem !important;
  }
  #page section article.post-content p,
  #page section article.post-content p strong,
  #page section article.post-content p span,
  .blog-page article.post-content p,
  .blog-page article.post-content p strong,
  .blog-page article.post-content p span,
  .blog-page .post-content p,
  .blog-page .post-content p strong,
  .blog-page .post-content p span {
    font-size: 1rem !important;
  }
}

/* Cooperation sections */
.blog-page .cooperation-section {
  margin-bottom: var(--blog-spacing-md);
}

.blog-page .cooperation-section:last-child {
  margin-bottom: 0;
}

.blog-page .cooperation-section__title {
  font-family: var(--blog-font-primary) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--color-primary, #1e90ff) !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.blog-page .cooperation-section:not(:first-child) {
  margin-top: var(--blog-spacing-md);
}

.blog-page .cooperation-section:not(:first-child) .cooperation-section__title {
  margin-top: 0 !important;
}

.blog-page .cooperation-section__subtitle {
  font-family: var(--blog-font-primary) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: rgba(33, 37, 41, 0.7) !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  font-style: italic;
}

.blog-page .cooperation-section__content {
  margin-top: 0;
}

@media (min-width: 768px) {
  .blog-page .cooperation-section__title {
    font-size: 2rem !important;
  }
}

/* Related articles – Proponowane aktualności (jak post.html) */
.blog-page .related-articles .container {
  margin-top: 1rem;
  padding-top: var(--blog-spacing-xl);
  padding-bottom: var(--blog-spacing-md);
  border-top: 1px solid #D3E3EB;
}

.blog-page .related-articles__title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0 1rem;
  margin-bottom: var(--blog-spacing-xl);
}

.blog-page .related-articles__slider {
  position: relative;
  width: 100%;
  padding: 0 50px;
  box-sizing: border-box;
}

.blog-page .related-articles__swiper {
  width: 100%;
  overflow: hidden;
}

.blog-page .related-articles__slider .swiper-slide {
  height: auto;
}

.blog-page .related-articles__slider .swiper-slide .article-card {
  height: 100%;
  margin: 0;
}

/* Mniejsze karty w sekcji Proponowane aktualności */
.blog-page .related-articles__slider .article-card__image-wrapper {
  aspect-ratio: 16 / 10;
}

.blog-page .related-articles__slider .article-card__content {
  padding: 0.75rem 1rem;
}

.blog-page .related-articles__slider .article-card__title {
  font-size: 1rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
  margin-bottom: 0.375rem;
}

.blog-page .related-articles__slider .article-card__excerpt {
  font-size: 0.8125rem;
  -webkit-line-clamp: 2;
  margin-bottom: 0.5rem;
}

.blog-page .related-articles__slider .link-arrow {
  font-size: 0.875rem;
}

.blog-page .related-articles__slider .swiper-button-prev,
.blog-page .related-articles__slider .swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: var(--blog-color-white, #fff);
  border-radius: 50%;
  box-shadow: var(--blog-shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-page .related-articles__slider .swiper-button-prev::after,
.blog-page .related-articles__slider .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
  color: var(--blog-color-text, #494A77);
}

.blog-page .related-articles__slider .swiper-button-prev:hover,
.blog-page .related-articles__slider .swiper-button-next:hover {
  background-color: var(--color-primary, #1e90ff);
  box-shadow: var(--blog-shadow-md, 0 4px 12px rgba(0,0,0,0.15));
}

.blog-page .related-articles__slider .swiper-button-prev:hover::after,
.blog-page .related-articles__slider .swiper-button-next:hover::after {
  color: #fff;
}

.blog-page .related-articles__slider .swiper-button-prev {
  left: 0;
}

.blog-page .related-articles__slider .swiper-button-next {
  right: 0;
}

.blog-page .related-articles__swiper .swiper-wrapper {
  align-items: stretch;
}

.blog-page .related-articles__swiper .swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
}

.blog-page .related-articles__swiper .swiper-slide > * {
  width: 100%;
}

@media (max-width: 640px) {
  .blog-page .related-articles__slider {
    padding: 0 15px;
  }

  .blog-page .related-articles__slider .swiper-button-prev,
  .blog-page .related-articles__slider .swiper-button-next {
    display: none;
  }
}

/* Dodatkowe style dla aktywnego linku współpracy - upewnienie się, że podświetlenie działa */
.blog-page #mainNav .navbar-nav .nav-item.active[class*="cooperation"] .nav-link,
.blog-page #mainNav .navbar-nav .nav-item.active .nav-link.active[href*="cooperation"] {
  font-weight: 700 !important;
  color: inherit !important;
}

/* Style dla tagów w przykładach realizacji */
.blog-page .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.blog-page .case-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-page .article-card .case-tags {
  margin-bottom: 0.5rem;
}

.blog-page .featured-article .case-tags {
  margin-bottom: 1rem;
}

/* Style dla filtra specjalizacji - analogiczne do sortowania */

.blog-page .cases-specializations-toggle {
  width: 100%;
  min-width: 12rem;
  height: 48px;
  padding: 0 2.5rem 0 1rem;
  font-size: 1rem;
  font-family: var(--blog-font-primary);
  font-weight: 400;
  line-height: 1.5;
  color: var(--blog-color-text);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #D0D5DD;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color var(--blog-transition-fast), box-shadow var(--blog-transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-page .cases-specializations-toggle:hover {
  border-color: #98a2b3;
}

.blog-page .cases-specializations-toggle:focus {
  outline: none;
  border-color: var(--blog-color-primary);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.blog-page .cases-specializations-menu {
  min-width: 0;
  width: 100%;
  max-width: 320px;
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: var(--blog-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-page .cases-specialization-item {
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin: 0;
  border-radius: var(--blog-radius-sm);
}

.blog-page .cases-specialization-item:hover {
  background-color: #f8f9fa;
}

.blog-page .cases-specialization-item .form-check-label {
  cursor: pointer;
  width: 100%;
  margin-left: 1.25rem;
  font-size: 0.9375rem;
}

.blog-page .cases-specialization-item .form-check-input {
  cursor: pointer;
  margin-top: 0.25rem;
  margin-left: 0;
  margin-right: 1rem;
}

@media (max-width: 767px) {
  .blog-page .articles-toolbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-page .articles-specializations-wrap {
    width: 100%;
  }
  
  .blog-page .cases-specializations-toggle {
    width: 100%;
  }
  
  .blog-page .articles-tags-wrap {
    width: 100%;
  }
  
  .blog-page .articles-tags-toggle {
    width: 100%;
  }
}

/* Tagi artykułów */
.blog-page .article-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blog-color-primary);
  background-color: rgba(30, 170, 231, 0.1);
  border: 1px solid rgba(30, 170, 231, 0.2);
  border-radius: var(--blog-radius-xl);
  text-decoration: none;
  transition: var(--blog-transition-fast);
}

.blog-page .article-tag:hover {
  background-color: rgba(30, 170, 231, 0.2);
  border-color: rgba(30, 170, 231, 0.4);
  color: var(--blog-color-primary-dark);
}

/* Tagi w kartach artykułów */
.blog-page .article-card__tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--blog-spacing-sm);
  gap: 0.25rem;
}

/* Tagi w wyróżnionym artykule */
.blog-page .featured-article__tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--blog-spacing-sm);
  gap: 0.25rem;
}

/* Tagi w nagłówku posta */
.blog-page .post-header__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.blog-page .post-header__tags .article-tag {
  color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.blog-page .post-header__tags .article-tag:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--blog-color-white);
}
