/* =========================================================
   HERO
   ========================================================= */

.slownik-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 100px!important;
}
.hero.slownik-hero .custom-icon.icon-left{

 top: 65%!important;
}
.slownik-hero .custom-icon {
  pointer-events: none;
}
.hero.slownik-hero::after{
  bottom: -1px!important;
  background-color: #fff!important;
}
@media (max-width: 767px) {
  .slownik-hero {
    padding: 150px 0 50px!important;
  }
}
/* =========================================================
   ARCHIWUM SŁOWNIKA
   Neutralizujemy pozycjonowanie odziedziczone z .blog-posts
   ========================================================= */

.blog-posts.slownik-archive {
  position: relative !important;
  top: auto !important;
  z-index: 50!important;
  margin-top:0!important;
  padding: 75px 0 100px !important;
  transform: none !important;
  background: #fff !important;
  color: #111;
}

.slownik-archive > .container {
  position: relative;
  top: auto !important;
  margin-top: 0 !important;
  transform: none !important;
}

/* =========================================================
   WPROWADZENIE
   ========================================================= */

.slownik-intro {
  max-width: 760px;
  margin: 0 0 34px;
}

.slownik-intro h2 {
  margin: 0 0 14px;
  color: #111;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.slownik-intro p {
  margin: 0;
  color: #3d4148;
  font-size: 18px;
  line-height: 1.7;
}

/* =========================================================
   WYSZUKIWARKA
   ========================================================= */

.slownik-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  width: 100%;
  max-width: 850px;
  margin: 0 0 42px;
}

.slownik-search input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 13px 18px;
  border: 2px solid #0451bd;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.slownik-search input::placeholder {
  color: #727985;
  opacity: 1;
}

.slownik-search input:focus {
  border-color: #e81f76;
  box-shadow: 0 0 0 4px rgba(232, 31, 118, 0.14);
}

.slownik-search .btn.btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 13px 25px;
  border: 2px solid #e81f76 !important;
  border-radius: 8px;
  background: #e81f76 !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.slownik-search .btn.btn-primary:hover,
.slownik-search .btn.btn-primary:focus-visible {
  border-color: #0451bd !important;
  background: #0451bd !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* =========================================================
   ALFABET
   ========================================================= */

.slownik-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 55px;
  padding: 0 0 52px;
  border-bottom: 1px solid #e3e6eb;
}

.slownik-alphabet a,
.slownik-alphabet span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.slownik-alphabet a {
  background: #0451bd;
  color: #fff;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.slownik-alphabet a:hover,
.slownik-alphabet a:focus-visible {
  background: #e81f76;
  color: #fff;
  transform: translateY(-2px);
}

.slownik-alphabet span {
  background: #f0f2f6;
  color: #9ba4b4;
}

/* =========================================================
   GRUPY LITER
   ========================================================= */

.slownik-groups {
  width: 100%;
}

.slownik-group {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 35px;
  padding: 0 0 60px;
  scroll-margin-top: 120px;
}

.slownik-group + .slownik-group {
  padding-top: 55px;
  border-top: 1px solid #e3e6eb;
}

.slownik-group__letter {
  color: #e81f76;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
}

/* =========================================================
   SIATKA KART
   Nadpisujemy style .posts z modułu blogowego
   ========================================================= */

.slownik-group .posts,
.slownik-related .posts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.slownik-card.single-post {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #d7dbe2;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.slownik-card.single-post:hover,
.slownik-card.single-post:focus-visible {
  border-color: #0451bd;
  color: #111;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(4, 81, 189, 0.12);
}

/* =========================================================
   GRAFIKA KARTY
   ========================================================= */

.slownik-card .slownik-card__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 170px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0451bd;
  color: #fff;
}

.slownik-card .slownik-card__thumb::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border: 25px solid #e81f76;
  border-radius: 50%;
}

.slownik-card .slownik-card__thumb h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

/* =========================================================
   TREŚĆ KARTY
   ========================================================= */

.slownik-card .post-data {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.slownik-card .post-description {
  margin: 0 0 20px;
  color: #30343a;
  font-size: 15px;
  line-height: 1.55;
}

.slownik-card .btn-details {
  align-self: flex-end;
  margin: auto 0 0;
  color: #0451bd;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
}

.slownik-card:hover .btn-details {
  color: #e81f76;
}

/* =========================================================
   BRAK WYNIKÓW
   ========================================================= */

.slownik-empty {
  padding: 20px 0 50px;
  color: #111;
}

.slownik-empty h2 {
  margin: 0 0 15px;
  color: #111;
}

.slownik-empty p {
  margin: 0 0 25px;
  color: #3d4148;
}

/* =========================================================
   POJEDYNCZA DEFINICJA
   Neutralizujemy ujemne przesunięcie z .single-blog-post
   ========================================================= */

.single-blog-post.single-slownik {
  position: relative !important;
  top: auto !important;
  z-index: 50;
  margin-top: 0!important;
  padding: 75px 0 95px !important;
  transform: none !important;
  background: #fff !important;
  color: #111;
}

.single-slownik .single-blog-post-content {
  position: relative !important;
  top: auto !important;
  width: 100%;
  max-width: 900px;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.single-slownik .single-post-content {
  position: relative !important;
  top: auto !important;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: transparent !important;
  color: #111;
  box-shadow: none !important;
}

.single-slownik .single-post-content,
.single-slownik .single-post-content p,
.single-slownik .single-post-content li {
  color: #202226;
  font-size: 17px;
  line-height: 1.75;
}

.single-slownik .single-post-content p {
  margin-top: 0;
  margin-bottom: 22px;
}

.single-slownik .single-post-content h2 {
  margin: 50px 0 20px;
  color: #111;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
}

.single-slownik .single-post-content h3 {
  margin: 38px 0 16px;
  color: #111;
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.single-slownik .single-post-content a:not(.btn) {
  color: #0451bd;
  text-decoration: underline;
}

.single-slownik .single-post-content a:not(.btn):hover {
  color: #e81f76;
}

/* =========================================================
   LEAD DEFINICJI
   ========================================================= */

.slownik-lead {
  margin: 0 0 38px;
  padding: 24px 28px;
  border-left: 5px solid #e81f76;
  border-radius: 0 8px 8px 0;
  background: #f3f6fb;
  color: #15365f;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
}

.slownik-lead p {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* =========================================================
   POWRÓT DO SŁOWNIKA
   ========================================================= */

.slownik-back {
  margin-top: 55px;
  padding-top: 32px;
  border-top: 1px solid #dfe3e9;
}

.slownik-back .btn.btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 25px;
  border: 2px solid #0451bd !important;
  border-radius: 30px;
  background: #fff !important;
  color: #0451bd !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: none !important;
}

.slownik-back .btn.btn-primary:hover,
.slownik-back .btn.btn-primary:focus-visible {
  border-color: #0451bd !important;
  background: #0451bd !important;
  color: #fff !important;
}

/* =========================================================
   INNE POJĘCIA
   ========================================================= */

.blog-posts.slownik-related {
  position: relative !important;
  top: auto !important;
  margin: 0 !important;
  padding: 80px 0 100px !important;
  transform: none !important;
  background: #f5f7fa !important;
}

.slownik-related .posts-title {
  margin-bottom: 38px;
}

.slownik-related .posts-title h3 {
  margin: 0;
  color: #111;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .slownik-group .posts,
  .slownik-related .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .slownik-group {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .slownik-group__letter {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  .blog-posts.slownik-archive,
  .single-blog-post.single-slownik,
  .blog-posts.slownik-related {
    padding-top: 55px !important;
    padding-bottom: 65px !important;
  }

  .slownik-search {
    grid-template-columns: 1fr;
  }

  .slownik-search .btn.btn-primary {
    width: 100%;
  }

  .slownik-alphabet {
    gap: 7px;
    margin-bottom: 42px;
    padding-bottom: 40px;
  }

  .slownik-alphabet a,
  .slownik-alphabet span {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .slownik-group {
    padding-bottom: 45px;
  }

  .slownik-group + .slownik-group {
    padding-top: 42px;
  }

  .slownik-group .posts,
  .slownik-related .posts {
    grid-template-columns: 1fr;
  }

  .slownik-card .slownik-card__thumb {
    min-height: 150px;
  }

  .slownik-lead {
    padding: 20px;
    font-size: 18px;
  }
}
