/*
Theme Name:     Misja na Marsa
Theme URI:      https://misja-na-marsa.pl
Template:       kadence
Description:    Misja na Marsa
Version:        1.0.2
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
  --global-content-edge-padding: 5%;

  @media (max-width: 768px) {
    --global-content-edge-padding: 1.25rem;
  }
}

* {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}

.grecaptcha-badge { 
  visibility: hidden !important;
}

::-webkit-scrollbar {
  height: 0;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #ffffff33;
  -webkit-transition: background 0.25s ease-out;
  transition: background 0.25s ease-out;
}

::-webkit-scrollbar-track {
  background: #000;
  -webkit-transition: background 0.25s ease-out;
  transition: background 0.25s ease-out;
}

.main-navigation .primary-menu-container > ul li.menu-item {
  margin: 0 .1rem;
  & > a {
    position: relative;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-color: transparent !important;
      border: .1em solid;
      transition: all .3s;
      border-radius: 1.4em;
    }
  }

  &:hover,
  &.current-menu-item {
    & > a {
      &::before {
        /* transform: scaleX(1); */
        border-color: var(--global-palette1) !important;
      }
    }
  }

  .dropdown-nav-toggle svg {
    height: 1.25em;
    width: 1.25em;
  }
}

.header-navigation .header-menu-container ul ul {
  width: 200px;
  
  li.menu-item {
    padding: 0;

    &:hover,
    &.current-menu-item {
      & > a {
        &::before {
          border-color: transparent !important;
        }
      }
    }

    & > a {
      position: relative;
      width: 100%;
      line-height: 1;
      padding: 12px 16px;
      border: 0;
    }

    &:first-of-type {
      & > a {
        padding: 24px 16px 12px;
      }
    }

    &:last-of-type {
      & > a {
        padding: 12px 16px 24px;
      }
    }
  }
}

.archive {
  .entry-content-wrap {
    .entry-summary {
      p {
        font-size: 14px;
        line-height: 26px;
      }
    }
    .entry-footer {
      .post-more-link {
        display: inline-block;
        font-family: 'Jost';
        line-height: 1;
        padding: 11px 20px;
        border: 2px solid currentColor;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 1px;
        color: #111;
        border-color: #111;
  
        .kadence-svg-iconset {
          display: none;
        }
  
        &:hover {
          background-color: #111;
          color: #fff;
        }
      }
    }

    @media (max-width: 767px) {
      padding: 0 1rem !important;
    }
  }
}

.entry-hero-container-inner .entry-header {
  justify-content: flex-end;
}

.form-wrapper {
  .form-wrapper-row:not(:last-of-type) {
    margin-bottom: 1rem;
  }
  input,
  textarea {
    font-family: var(--font-family-heading);
    width: 100%;
    border-width: 0 0 1px 0;
    border-radius: 0px 0px 0px 0px;
    padding: 12px 12px 12px 12px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.09);

    &:focus {
      color: rgba(0, 0, 0, 0.7);
      box-shadow: none;
    }

    &::placeholder {
      color: rgba(68, 68, 68, 0.7);
    }
  }

  input[type="submit"] {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    background-color: #FFFFFF;
    color: #000000;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #000000;
    border-radius: 36px 36px 36px 36px;
    padding: 18px 36px 18px 36px;
    transition: all .3s;

    &:hover {
      background-color: #000000;
      color: #FFFFFF;
    }
  }

  textarea {
    height: 120px !important;
    resize: none;
  }

  .wpcf7-not-valid-tip {
    font-size: 12px;
  }

  .wpcf7-list-item {
    margin: 0;
    label {
      position: relative;
      display: flex;
      padding-left: 28px;
    }

    .wpcf7-acceptance {
      line-height: 1;
    }

    .wpcf7-list-item {
      margin: 0;
    }

    .wpcf7-list-item-label::before {
      content: "";
      position: absolute;
      left: 0;
      height: 20px;
      width: 20px;
      border: 1px solid #e3e3e3;
      margin: 0;
      border-radius: 0;
    }

    .wpcf7-list-item-label::after {
      content: "";
      position: absolute;
      top: 4px;
      left: 4px;
      height: 12px;
      width: 12px;
      background-color: #000;
      border-radius: 0;
      visibility: hidden;
    }

    input[type="checkbox"] {
      display: none;

      &:checked + .wpcf7-list-item-label::after {
        visibility: visible;
      }
    }

    .wpcf7-list-item-label {
      color: #000;
      font-size: 13px;
      line-height: 20px;
      font-style: normal;
      font-weight: inherit;
    }
  }

  .form-wrapper-button-row{
    display: flex;
    margin-top: 1.5rem;
    position: relative;

    .wpcf7-spinner {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 16px;
      margin: 0;
    }
  }
}

.comment-navigation a:hover, .post-navigation a:hover {
  color: var(--global-palette1) !important;
  border-color: var(--global-palette1) !important;
}

.single-post {
  .single-content p {
    margin-bottom: 1rem;
  }
}

h2.entry-related-title {
  position: relative;
  margin-bottom: 2.5rem;

  &::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #000;
  }
}

.entry-related-carousel h3.entry-title {
  font-size: 18px;
  line-height: 1.3;
}

.pagination .page-numbers {
  border-color: #444444;

  &:hover,
  &.current {
    border-color: var(--global-palette1);
    color: var(--global-palette1);
  }
}


.entry-related-carousel {
  .content-bg {
    background: transparent;
  }

  .entry-header {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;

    .entry-meta {
      margin-top: 0;
      text-align: center;
      justify-content: center;
    }
  }
}

.blog {
  .entry-hero-container-inner {
    background: transparent;

    .entry-header {
      min-height: 120px;
      justify-content: flex-end;
    }
  }
}
.no-posts {
  #archive-container {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.no-posts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  p {
    margin-top: 0;
  }
}