.text-block .title {
  text-transform: uppercase;
}

.text-block .container {
  gap: 10px
}

.icon-cow {
  display: inline-block;
  animation: jump 2s ease-in-out infinite;
}

.icon-cow img {
  width: 125px;
}

@keyframes jump {
  0%, 100% {
    transform: translateY(0) scale(0.95); /* Starting position */
  }
  50% {
    transform: translateY(-15px) scale(1); /* Jumping up */
  }
}

.block {
  width: 100%;
}
@media (min-width: 768px) {
  .block.after {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 57% 95%, 55% calc(95% + 1.5rem), 45% calc(95% + 1.5rem), 43% 95%, 0 95%);
  }
}

.category-block .circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.group {
  transition: transform 0.3s;
}

.group:hover {
    transform: scale(1.2); /* Scale up the button on hover */
}

.blue.category-block .circle {
  background-color: white;
}
.milk.category-block .circle {
  background-color: var(--primary-color);
}

.list-block {
  padding: 3rem;
  @media (max-width: 768px) {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
}

.list-block .list {
  max-width: 700px;
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.7);
}

.list-block .list .content {
  font-size: 20px;
}
.list-block .list .number {
  background: var(--primary-color);
  color: white;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
}

.page-group .content, .page-product {
  color: var(--primary-color);
}

.page-product .info .product-info {
  border-radius: 15px;
  padding: 10px;
  border: 2px solid var(--primary-color);
  width: 250px;
}

.page-product img {
  border-radius: 15px;
}

.product-card {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.yellow-chip {
  padding: 10px;
  width: fit-content;
  background-color: yellow;
  border-radius: 25px;
}

.article-card .content {
  background-color: white;
  color: var(--primary-color);
}

.simple-contact-card {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 15px;
  width: 335px;
  height: 350px;

  .card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

    h3 {
      margin: 0;
    }
  }
}

.contact-cards {
  color: white;
  display: flex;
  width: 100%;
}


.contact-cards .contact-card {
  position: relative;
  border: 1px solid white;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 335px;
  height: 350px;
  overflow: hidden;
}

.contact-cards .contact-card h3 {
  white-space: nowrap;
}

.contact-cards .contact-card .image-text {
  position: absolute;
  z-index: 10;
  bottom: 55px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
  padding: 10px;
  border-radius: 10px;
}

.contact-cards .contact-card.active .image-text {
  color: var(--primary-color) !important;
  background: none;
}

.contact-cards .contact-card img {
  width: 100%;
  height: 100%;
}

.more-info a {
  padding: 0 !important;
}

.more-info {
  transform: translateY(90%);
  transition: transform 0.5s ease-in-out;
  color: var(--primary-color);
  top: -4px;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}

.more-info.active {
  transform: translateY(1%);
}

.more-info .show-more {
  width: 100%;
  align-self: start;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;

  & .down-text {
    display: none;
  }
}

.more-info .show-more:hover {
  background-color: rgba(51, 121, 211, 0.2);
}

.more-info .show-more i {
  font-size: 25px;
  transition: transform 0.5s ease-in-out;
}

.more-info.active .show-more i {
  transform: rotate(180deg);
}

.more-info.active {
  & .up-text {
    display: none !important;
  }

  & .down-text {
      display: inline-block;
  }
}

.more-info .more-text {
  text-align: left;
}

.splitter {
  width: 100%;
  background-color: white;
  height: 30px;
}

/* PDF block */
.pdf-block.blue {
  background-color: var(--primary-color);
  color: #fff;
}

.pdf-block .pdf-viewer {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  overflow: hidden;
}

.pdf-block .pdf-toolbar {
  background: #f2f2f2;
  border-bottom: 1px solid #ddd;
  color: #222;
}

/* Lišta je vždy světlá, takže bílé tlačítko z .blue stylu by na ní zaniklo. */
.pdf-block.blue .pdf-toolbar .btn {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pdf-block.blue .pdf-toolbar .btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.pdf-block .pdf-toolbar .btn-icon {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--primary-color);
  font-size: 1.4rem;
  line-height: 1;
  padding: .25rem .5rem;
}

.pdf-block .pdf-toolbar .btn-icon:hover {
  background: #fff;
  border-color: #ccc;
}

.pdf-block .pdf-pager {
  color: #222;
  min-width: 5rem;
  text-align: center;
}

.pdf-block .pdf-download {
  margin-left: auto;
}

.pdf-block .pdf-canvas-wrap {
  background: #525659;
  overflow: auto;
  /* Místo pro svislý posuvník se rezervuje předem, jinak by se stránka
     po vykreslení nevešla a naskočil by i vodorovný posuvník. */
  scrollbar-gutter: stable;
  padding: .5rem;
  position: relative;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

/* Bez max-width – při přiblížení se stránka odroluje vodorovně místo deformace. */
.pdf-block .pdf-canvas {
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, .4);
  display: inline-block;
}

.pdf-block .pdf-loading {
  color: #fff;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 45%;
}

@media (max-width: 767.98px) {
  .pdf-block .pdf-canvas-wrap {
    height: 70vh !important;
  }

  .pdf-block .pdf-download {
    margin-left: 0;
    width: 100%;
  }
}
