/* Stylizacka kategorii poradnika */

/* ==========================================
   KUBAWEB.DEV | KATEGORIE PORADNIKA
   Wspólny wygląd wszystkich kategorii
   ========================================== */

.blog:has(.kw-guide-category) {
  --kw-accent: #ff8000;
  --kw-dark: #151515;
  --kw-text: #292929;
}

/* GŁÓWNY NAGŁÓWEK KATEGORII */

.blog:has(.kw-guide-category) > h1,
.blog:has(.kw-guide-category) > h2,
.blog:has(.kw-guide-category) > .page-header h1,
.blog:has(.kw-guide-category) > .page-header h2 {
  display: block;
  max-width: 1100px;
  margin: 0 auto 36px !important;
  padding: 46px 50px !important;
  background: linear-gradient(135deg, #202020, #101010);
  color: #fff !important;
  border-left: 5px solid var(--kw-accent);
  border-radius: 16px;
  font-size: clamp(30px, 3.5vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em;
}

/* POMARAŃCZOWA ETYKIETA NAD TYTUŁEM */

.blog:has(.kw-guide-category) > h1::before,
.blog:has(.kw-guide-category) > h2::before,
.blog:has(.kw-guide-category) > .page-header h1::before,
.blog:has(.kw-guide-category) > .page-header h2::before {
  content: "PORADNIK / KATEGORIA";
  display: block;
  margin-bottom: 16px;
  color: var(--kw-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.5;
}

/* KONTENER OPISU KATEGORII */

.blog .kw-guide-category {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 0 55px !important;
  color: var(--kw-text);
}

/* TEKST WPROWADZAJĄCY */

.blog .kw-guide-category > p:first-child {
  margin: 0 0 36px !important;
  padding: 0 0 30px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 19px !important;
  font-weight: 400;
  line-height: 1.8 !important;
  color: #454545;
}

/* NAGŁÓWKI SEKCJI H2 */

.blog .kw-guide-category h2 {
  position: relative;
  margin: 38px 0 20px !important;
  padding: 0 0 0 20px;
  border: 0;
  color: #181818 !important;
  font-size: clamp(24px, 2.5vw, 30px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.025em;
}

/* PIONOWY POMARAŃCZOWY AKCENT H2 */

.blog .kw-guide-category h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: var(--kw-accent);
}

/* AKAPITY */

.blog .kw-guide-category p {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.8 !important;
  color: #424242;
}

/* LISTA NAJWAŻNIEJSZYCH ZAGADNIEŃ */

.blog .kw-guide-category ul {
  list-style: none;
  margin: 14px 0 32px !important;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}

.blog .kw-guide-category ul li {
  position: relative;
  margin: 0;
  padding: 13px 18px 13px 38px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 9px;
  font-size: 16px;
  line-height: 1.6;
}

.blog .kw-guide-category ul li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 7px;
  height: 7px;
  background: var(--kw-accent);
  border-radius: 50%;
}

/* LINKI */

.blog .kw-guide-category a {
  color: var(--kw-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.blog .kw-guide-category a:hover {
  color: #cc6500;
  text-decoration: underline;
}

/* TABLETY I TELEFONY */

@media (max-width: 767px) {

  .blog:has(.kw-guide-category) > h1,
  .blog:has(.kw-guide-category) > h2,
  .blog:has(.kw-guide-category) > .page-header h1,
  .blog:has(.kw-guide-category) > .page-header h2 {
    padding: 30px 25px !important;
    margin-bottom: 28px !important;
    font-size: 30px !important;
    border-radius: 12px;
  }

  .blog .kw-guide-category {
    padding: 0 0 40px !important;
  }

  .blog .kw-guide-category > p:first-child {
    font-size: 17px !important;
  }

  .blog .kw-guide-category h2 {
    margin: 30px 0 16px !important;
    font-size: 24px !important;
  }

  .blog .kw-guide-category p {
    font-size: 16px;
  }

  .blog .kw-guide-category ul li {
    font-size: 15px;
  }
}
