/*
Theme Name: NCUI
Author: Pavojka Studio
Version: 1.0
*/

a {
  text-decoration: none !important;
  /* color: var(--text) !important; */

  &:visited {
    color: var(--text);
  }
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.d-grid {
  display: grid !important;
}

.gap-1 {
  gap: 1em !important;
}
.gap-2 {
  gap: 2em !important;
}
.gap-3 {
  gap: 3em !important;
}
.gap-4 {
  gap: 4em !important;
}
.gap-5 {
  gap: 5em !important;
}

.m-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 1em !important;
}
.mt-2 {
  margin-top: 2em !important;
}
.mt-3 {
  margin-top: 3em !important;
}
.mt-4 {
  margin-top: 4em !important;
}
.mt-5 {
  margin-top: 5em !important;
}

.text-center {
  text-align: center !important;
}
.text-start {
  text-align: start !important;
}
.text-end {
  text-align: end !important;
}

.mw-100 {
  max-width: 100%;
}

.custom-container {
  padding: 0 5em;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 8em;

  @media (max-width: 1024px) {
    margin-top: 5em;
    padding: 0 3em;
  }

  @media (max-width: 600px) {
    padding: 0 2em;
  }
}

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5em;

  @media (max-width: 1024px) {
    margin-top: 5em;
    padding: 0 3em;
  }

  @media (max-width: 600px) {
    padding: 0 2em;
  }

  .page-title {
    font-size: 3em;
    color: var(--blue_text);
  }

  .page-description {
    margin: 0 auto;
    max-width: 700px;
    font-size: 1.5em;
  }
}

.notFound-container {
  max-width: 600px;
  padding: 0 5em;
  margin: 0 auto;
  display: flex;
  align-items: center;

  h1 {
    color: var(--blue_text);
    font-size: 10em;
    margin: 0;
  }
  h2 {
    font-size: 2em;
  }
}

.no-post-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  svg {
    width: 10%;
    height: auto;
    fill: #949494;
  }

  h3 {
    color: #949494;
  }
}

.fadeUpAnim {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-play-state: paused;
}
.fadeUpAnim.visible {
  animation-play-state: running;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: "Montserrat", sans-serif !important;
  background-color: var(--background);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  margin-top: 7em !important;
  overflow: visible !important;
  flex: 1;
}

html.nav-open {
  overflow: hidden !important;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite;
}
.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #fff;
  animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}

.wp-block-heading.is-style-with-line {
  display: flex;
  align-items: center;
  gap: 56px;
}

.wp-block-heading.is-style-with-line::before {
  content: "";
  width: 150px;
  height: 32px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Tlačidlo "Číst více" */
.btn-custom,
.vyskum-btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: gap 0.2s;
}

.btn-custom:hover,
.vyskum-btn-custom:hover {
  gap: 12px;
}

.btn-custom img,
.vyskum-btn-custom img {
  max-width: 16px;
  height: auto;
}

/* OSTATNE */

.btn-custom {
  color: var(--primary) !important;
  outline: none;
  border: none;
  background: none;
  text-transform: uppercase;
  margin: 0 !important;
  cursor: pointer;
}

.btn-custom-full {
  background-color: transparent;
  color: var(--text);
  border-radius: 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: none;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
}

.btn-custom-full.active {
  background-color: var(--primary);
  color: var(--background);
}

footer {
  position: relative;
  overflow: hidden;
  margin-top: 5em;

  .footer-bg {
    position: absolute;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    bottom: -2em;
  }

  & > *:not(.footer-bg) {
    position: relative;
    z-index: 1;
  }

  .main-footer {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto;
    align-items: center;

    gap: 3em;

    span {
      color: var(--altText);
    }

    .footer-menu .menu {
      list-style-type: none;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 1em;
      padding: 0;
    }

    .footer-logo-container {
      display: flex;
      align-items: center;
      gap: 1em;

      .footer-logo {
        width: 100px;
        height: 100px;
      }
    }

    .footer-socials {
      display: flex;
      gap: 1em;

      .social-link {
        color: var(--text);
        transition: color 0.2s;

        svg {
          width: 50px;
          height: 50px;
          display: block;
        }

        &:hover {
          color: var(--primary);
        }
      }
    }

    @media (max-width: 1024px) {
      grid-template-columns: 1fr 1fr;
    }

    @media (max-width: 600px) {
      grid-template-columns: 1fr;
      text-align: center;

      .footer-socials {
        justify-content: center;
      }
    }
  }
}

.fs-small {
  font-size: 0.75em;
}

.section-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.section-header img {
  max-height: 20px;
}

.custom-select {
  position: relative;
  width: 220px;

  .custom-select__trigger {
    width: 100%;
    padding: 0.5em 1em;
    border: none;
    font: inherit;
    border-radius: 1em;
    background: var(--background);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    transition: 0.3s;

    .arrow {
      transition: transform 0.3s;
    }
  }

  .custom-select__options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);

    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.35s ease;

    z-index: 100;

    .custom-select__option {
      padding: 14px 18px;
      cursor: pointer;
      transition: 0.2s;

      &:hover {
        background: #f5f5f5;
      }
    }
  }
}

.custom-select.open .custom-select__options {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

.custom-select.open .arrow {
  transform: rotate(180deg);
}

/* sm: od 576px */
@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-inline {
    display: inline !important;
  }

  .d-sm-inline-block {
    display: inline-block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .d-sm-grid {
    display: grid !important;
  }
}

/* md: od 768px */
@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-inline-block {
    display: inline-block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-grid {
    display: grid !important;
  }
}

/* lg: od 992px */
@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-inline-block {
    display: inline-block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-lg-grid {
    display: grid !important;
  }
}

/* xl: od 1200px */
@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-inline {
    display: inline !important;
  }

  .d-xl-inline-block {
    display: inline-block !important;
  }

  .d-xl-flex {
    display: flex !important;
  }

  .d-xl-grid {
    display: grid !important;
  }
}

/* xxl: od 1400px */
@media (min-width: 1400px) {
  .d-xxl-none {
    display: none !important;
  }

  .d-xxl-block {
    display: block !important;
  }

  .d-xxl-inline {
    display: inline !important;
  }

  .d-xxl-inline-block {
    display: inline-block !important;
  }

  .d-xxl-flex {
    display: flex !important;
  }

  .d-xxl-grid {
    display: grid !important;
  }
}
