.template-h2 {
  position: relative; /* pre ::after */
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;

  background: linear-gradient(37deg, rgb(192, 0, 0) 0%, rgb(255, 0, 76) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.template-h1 {
  position: relative; /* pre ::after */
  font-weight: 800;
font-size:clamp(3rem, 7vw, 6rem);
  background: linear-gradient(37deg, rgb(192, 0, 0) 0%, rgb(255, 0, 76) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.template-content-h2 {
  position: relative; /* pre ::after */
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

/* voliteľné: pri hover zvýrazniť */
.template-hover-link {
  position: relative;
  display: inline-block;
  text-decoration: none; /* odstráni klasické podčiarknutie */
  text-shadow: none;
  transition: all 0.4s ease-out;

}

.template-hover-link:hover {
  text-shadow: 0 5px 5px rgba(255, 0, 0, 0.4) !important;
  transition: all 0.4s ease-out;
}
.template-hover-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgb(192, 0, 0), rgb(255, 0, 76));
  opacity: 0.2;
  border-radius: 2px;
  transition: all 0.4s ease-out;
  pointer-events: none;
  text-shadow: 0 0 5px red !important;
}

.template-hover-link:hover::after {
  opacity: 1;
  text-shadow: 0 0 5px red !important;
  
}

.template-card {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom:30px;
  border-radius: 10px;
  overflow: hidden;
  padding:20px;
}


.template-image {
  background-size: cover;
  aspect-ratio: 1/1;
  border-radius:5px;
  margin-bottom:20px;

}



.paginator-wrapper {
  width: 100%;
  text-align: center;
}

.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  gap: 6px;
}

.paginator-item {
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 6px;
  transition: background 0.2s ease;
}

.paginator-item:hover,
.paginator-item:active {
  background: rgba(0, 0, 0, 0.1);
}

.paginator-item.active {
  background: rgba(0, 0, 0, 0.4);
  position: relative;
}

.paginator-link {
  color: #f3f3f3;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow-text {
  font-size: 13px;
  vertical-align: middle;
}

.hide {
  display: none;
  visibility: hidden;
  height: 0;
}
