.upper-footer {
  padding-bottom: var(--wp--custom--spacing--section-heading-gap);
  padding-top: var(--wp--custom--spacing--footer-gap);
  position: relative;

  .footer-title {
    font-weight: var(--wp--custom--typography--font-weight--bold);
    text-transform: uppercase;

    &.footer-site-title {
      font-family: var(--wp--preset--font-family--proza-libre);
      font-size: var(--wp--preset--font-size--large);
      line-height: 1;
    }
  }

  .wp-block-navigation li a {
    position: relative;
  }
}

.upper-col-wrap {
  padding-bottom: var(--wp--custom--spacing--section-heading-gap);
  padding-top: var(--wp--custom--spacing--footer-gap);

  .upper-footer {
    padding: 0;
  }
}

.footer-two-columns {
  .footer-title {
    font-family: var(--wp--preset--font-family--proza-libre);
  }
}

// NEWSLETTER FORM

.wp-block-tnp-minimal p {
  margin-bottom: 0;
  margin-block-end: 0;
  margin-block-start: 0;
}

.tnp.tnp-subscription-minimal input.tnp-submit {
  width: auto;
}

.subscribe-section {
  min-height: 100%;

  .tnp-subscription-minimal {
    form {
      @include flex;
      max-width: 530px;
      margin-left: auto;
      margin-right: auto;

      p {
        display: none;
      }
    }
  }
}

.subscribe-section .wp-block-column h2 {
  font-family: var(--wp--preset--font-family--hind);
  text-align: center;
}

.tnp.tnp-subscription .tnp-field input[type="submit"] {
  border: 2px solid;

  &:hover,
  &:focus {
    border-color: transparent;
  }
}

.tnp.tnp-subscription-minimal input.tnp-email:focus {
  outline: none;
}

.input-wrap {
  position: absolute;
  right: 30px;
  top: 50%;
  @include transform(translateY(-50%));

  &:after,
  &:before {
    content: "";
    transition: 0.3s;
    position: absolute;
    opacity: 1;
    z-index: 9;

  }

  &:before {
    display: block;
    background-color: var(--wp--preset--color--hover-color);
    height: 0.1rem;
    border-radius: 1px;
    top: 50%;
    @include transform(translateY(-50%) translateX(-50%));
    left: 50%;
    width: 1rem;
  }

  &:after {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border: 0.125rem solid var(--wp--preset--color--hover-color);
    border-bottom: 0;
    border-left: 0;
    border-radius: 1px;
    margin-left: 10px;
    margin-bottom: 2px;
    top: 50%;
    left: 50%;
    @include transform(translateY(55%) rotate(45deg) translateX(-150%));
  }
}

.tnp.tnp-subscription-minimal input.tnp-submit {
  border: 0;
  background-color: transparent;
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--hind);
  font-weight: var(--wp--custom--typography--font-weight--bold);
  height: auto;
  position: relative;
  padding: 0;
  text-transform: uppercase;
  text-indent: -99999px;
  z-index: 1;
}

.tnp.tnp-subscription-minimal form {
  @include flex;
  position: relative;
}

.tnp.tnp-subscription-minimal input.tnp-email {
  @include border(10px);
  background-color: transparent;
  color: var(--wp--preset--color--secondary-text-color);
  font-family: var(--wp--preset--font-family--proza-libre);
  height: 55px;
  max-width: 100%;
  margin: 0;
  padding: 28px;
  position: relative;
  width: 100%;
  z-index: 1;

  &::-webkit-input-placeholder {
    color: var(--wp--preset--color--secondary-text-color);
    font-family: var(--wp--preset--font-family--proza-libre);
    text-transform: capitalize;
  }

  &::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--wp--preset--color--secondary-text-color);
    font-family: var(--wp--preset--font-family--proza-libre);
    text-transform: capitalize;
  }

  &:-ms-input-placeholder {
    /* IE 10+ */
    color: var(--wp--preset--color--secondary-text-color);
    font-family: var(--wp--preset--font-family--proza-libre);
    text-transform: capitalize;
  }

  &:-moz-placeholder {
    /* Firefox 18- */
    color: var(--wp--preset--color--secondary-text-color);
    font-family: var(--wp--preset--font-family--proza-libre);
    text-transform: capitalize;
  }
}

.subscribe-section .wp-block-columns {
  margin-bottom: 0;
}

.footer-title+p a {
  text-decoration: none;
}

.wp-block-latest-posts__list li {
  overflow: hidden;

  .wp-block-latest-posts__featured-image {
    float: left;
    max-width: 60px;
    margin-right: 15px;

    &:has(a:empty) {
      margin: 0;
    }
  }
}

.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image img {
  width: 100%;
}

.wp-block-site-info .wp-block-social-link-anchor svg {
  font-size: var(--wp--preset--font-size--extra-large);
}

.footer {
  p {
    margin: 0;
  }

  .wp-block-navigation__container,
  .wp-block-page-list {
    text-transform: capitalize;
    font-weight: var(--wp--custom--typography--font-weight--normal);
    font-size: var(--wp--preset--font-size--upper-heading);
    gap: 0.8rem;
  }
}

/* Logo Section */

.wp-block-section:is(:last-child:nth-child(even)) {
  position: relative;

  &:after {
    bottom: 0;
    background-color: var(--wp--preset--color--background);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    width: 100%;
  }
}

.wp-block-section:nth-child(even):last-child {
  position: relative;

  &:before {
    content: none;
  }
}

.logo-section figure.wp-block-image {
  text-align: center;
}

.logo-section {
  .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    flex-basis: auto !important;
  }
}

.wp-block-site-generator li a.wp-block-navigation-item__content {
  font-size: var(--wp--preset--font-size--extra-small);
}

.wp-block-site-generator ul.wp-block-navigation__container>li:not(:last-child),
.wp-block-site-generator ul.wp-block-page-list>li:not(:last-child) {
  position: relative;

  &:after {
    content: "";
    position: absolute;
    right: -8px;
    height: 10px;
    width: 1px;
    background-color: var(--wp--preset--color--body-text);
    transform: translateY(-50%);
    top: 50%;
  }
}

.upper-footer .wp-block-social-links {
  gap: 0.5rem;
  margin-top: 15px;

  .wp-block-social-link .wp-block-social-link-anchor svg {
    fill: var(--wp--preset--color--secondary-text-color);
  }
}

.wp-block-social-links:not(.is-style-logos-only):not(.is-style-pill-shape):not(.is-style-circle-shape) .wp-social-link .components-button,
.wp-block-social-links:not(.is-style-logos-only):not(.is-style-pill-shape):not(.is-style-circle-shape) .wp-social-link a,
.wp-block-social-links.is-style-default .wp-social-link .components-button,
.wp-block-social-links.is-style-default .wp-social-link a {
  color: inherit;
}

.wp-block-footer .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container {
  color: var(--wp--preset--color--body-text);
}