/* Postershop – hero popis kategórie */

.ps-category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.85fr);
  gap: 34px;
  overflow: hidden;
  margin: 4px 0 42px;
  padding: 42px;
  border-radius: 24px;
  background: #eee8fd;
  color: #0f0f0f;
  font-family: brandon-grotesque, sans-serif;
}

/* Vacsina kategorii ma len text, bez bocneho boxu s tipmi - v tom pripade
   nenechavame prazdny druhy stlpec a obsah roztiahneme na celu sirku. */
.ps-category-hero:not(:has(.ps-category-hero__tips)) {
  grid-template-columns: 1fr;
}

/* bez boxu s clankami nema text co obtekat - nadpis aj odstavce idu na celu sirku */
.ps-category-hero:not(:has(.ps-category-hero__tips)) .ps-category-hero__content h2,
.ps-category-hero:not(:has(.ps-category-hero__tips)) .ps-category-hero__text {
  max-width: none;
}

.ps-category-hero::before,
.ps-category-hero::after {
  position: absolute;
  border: 2px solid rgba(147, 124, 247, 0.28);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.ps-category-hero::before {
  top: -142px;
  left: 46%;
  width: 330px;
  height: 330px;
}

.ps-category-hero::after {
  bottom: -168px;
  left: 37%;
  width: 270px;
  height: 270px;
}

.ps-category-hero__content,
.ps-category-hero__tips {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ps-category-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #ff5e03;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ps-category-hero__eyebrow::before {
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: #ff5e03;
  content: '';
}

.ps-category-hero__content h2 {
  max-width: 720px;
  margin: 0 0 19px;
  color: #33058d;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.13;
}

.ps-category-hero__text {
  max-width: 780px;
  color: #423b50;
  font-size: 16px;
  line-height: 1.58;
}

.ps-category-hero__text p {
  margin: 0;
}

.ps-category-hero__text p + p {
  margin-top: 15px;
}

.ps-category-hero__text strong {
  color: #0f0f0f;
  font-weight: 700;
}

.ps-category-hero__text a {
  color: #33058d;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(51, 5, 141, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ps-category-hero__text a:hover,
.ps-category-hero__text a:focus-visible {
  color: #ff5e03;
  text-decoration-color: currentColor;
}

.ps-category-hero__tips {
  align-self: center;
  padding: 25px 24px 22px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(51, 5, 141, 0.08);
}

.ps-category-hero__tips-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.ps-category-hero__tips-heading h3 {
  margin: 0;
  color: #33058d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.ps-category-hero__tips-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ff5e03;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.ps-category-hero__tips-list {
  display: grid;
  gap: 7px;
}

.ps-category-hero__tips-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #33058d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ps-category-hero__tips-list a:hover,
.ps-category-hero__tips-list a:focus-visible {
  background: #f4efff;
  color: #ff5e03;
  transform: translateX(2px);
}

.ps-category-hero__tips-list img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.ps-category-hero__all-articles {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #33058d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ps-category-hero__all-articles span {
  color: #ff5e03;
  font-family: Arial, sans-serif;
  font-size: 17px;
  transition: transform 180ms ease;
}

.ps-category-hero__all-articles:hover,
.ps-category-hero__all-articles:focus-visible {
  color: #ff5e03;
}

.ps-category-hero__all-articles:hover span,
.ps-category-hero__all-articles:focus-visible span {
  transform: translateX(3px);
}

@media (max-width: 991px) {
  .ps-category-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 34px;
  }

  .ps-category-hero::before {
    left: auto;
    right: -135px;
  }

  .ps-category-hero::after {
    display: none;
  }

  .ps-category-hero__tips {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ps-category-hero {
    gap: 23px;
    margin: 0 0 30px;
    padding: 28px 20px 20px;
    border-radius: 19px;
  }

  .ps-category-hero::before {
    top: -175px;
    right: -175px;
  }

  .ps-category-hero__content h2 {
    margin-bottom: 16px;
    font-size: 29px;
  }

  .ps-category-hero__text {
    font-size: 15px;
    line-height: 1.55;
  }

  .ps-category-hero__tips {
    padding: 20px 16px 17px;
    border-width: 3px;
    border-radius: 15px;
  }

  .ps-category-hero__tips-heading {
    margin-bottom: 12px;
  }

  .ps-category-hero__tips-list a {
    padding: 10px 8px;
    font-size: 14px;
  }
}
