/*
 Theme Name:   Spark-e
 Template:     agata
 Version:      1.0.0
*/
.wp-block-navigation__responsive-container-open::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31' height='23' fill='none'%3E%3Cpath stroke='%23000000' stroke-linecap='round' stroke-width='3' d='M29.36 21H2m27.36-9.88H2M29.36 2H2'/%3E%3C/svg%3E") !important;
}

.svg-top-right {
  position: absolute;
  right: 0;
  top: -15%;
  width: 100px;
  text-align: right;
}
header .wp-block-navigation-item__label {
  padding-top: .2rem;
  padding-bottom: .2rem;
}
header .current-menu-item .wp-block-navigation-item__label {
  border-bottom: 1px solid white;

}

.wp-block-navigation__responsive-container-close {
  z-index: inherit !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {  
  
}
html.has-modal-open .wp-block-navigation__responsive-container-content {
  transform: translateY(5rem);
  padding: 2rem !important;
  border-radius: 32px !important;
  background-color: var(--wp--preset--color--secondary) !important;
}

/* NEWS */
li:first-child .latest-news--card {
  border-radius: 0 0 0 20px;
}

li:last-child .latest-news--card {
  border-radius: 0 0 20px 0;
}

/* BUTTONS - Override parent theme ::before overlay */
.wp-block-button__link,
.gform_button {
  transition: all 0.3s ease;  
  border-radius: 32px;
}

.wp-block-button__link:hover,
.gform_button:hover {
  background-color: var(--wp--preset--color--primary);
}

header .wp-block-button__link:hover {
  background-color: white;
  color: var(--wp--preset--color--secondary);
}

.wp-block-button__link:hover::before {
  opacity: 0;
}

/* NEWSLETTER */
#newsletter .gform_wrapper {
  width: 100%;
}
.gform_button {
  width: inherit !important;
  border-radius: 32px !important;
  background-color: var(--wp--preset--color--secondary) !important;
  transition: all .3s ease;
}
.gform_button:hover {
  background-color: var(--wp--preset--color--primary) !important;
}

#newsletter input[type="email"] {
  width: 100%;
  max-width: 350px;
}

#newsletter .gform_button.wp-block-button.wp-block-button__link {
  width: inherit !important;
}

/* OUR PROJECTS */
.asterisk-tab-wrapper .asterisk-circular-icon {
  border-radius: 0 !important;
  background-color: inherit !important;
  border: 0 !important;
  box-shadow: none !important;
}
.asterisk-tab-wrapper .asterisk-icon-label {
  color: var(--wp--preset--color--secondary) !important;
}
.asterisk-tab-sections-container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;  
}
.asterisk-tab-sections-container .wp-block-asterisk-icon-tabs-content {
  border-radius: 72px;
  padding: 4rem;
}
.asterisk-circular-icons-container {
  max-width: 600px !important; 
  margin: 0 auto;
}
.wp-block-asterisk-icon-tabs .asterisk-circular-icon-wrapper:focus .asterisk-circular-icon {
  box-shadow: none !important;
}

/* Our partners */
.asterisk-expandable-icon__content.ui-accordion-content-active {
  background-color: var(--wp--preset--color--secondary);
  border-radius: 32px;
  color: white;
}
.asterisk-expandable-icon__header h3 {
  color: var(--wp--preset--color--secondary);
}

/* NEWS */
.asterisk-posts-filters__selects {
  color: white;
}
.asterisk-posts-filter .select2-container--default .select2-selection--single {
  background-color: transparent;
}
.asterisk-results-filters__years .asterisk-results-filters__year-item {
  color: white;
}

/* CONTACT */
.contact-form .gform-body input:not(.gform_button):not([type="checkbox"]),
.contact-form .gform-body textarea,
.contact-newsletter input:not(.gform_button) {
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--wp--preset--color--secondary) !important;
  color: var(--wp--preset--color--secondary) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.contact-form .gform-body input:not(.gform_button):focus {
  background-color: transparent !important;
}

.contact-form .gform-body input::placeholder {
  color: var(--wp--preset--color--secondary) !important;
}

.gform-footer .gform_button.wp-block-button.wp-block-button__link {
  background-color: var(--wp--preset--color--secondary) !important;
  border-radius: 32px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.contact-newsletter form {
  display: flex;
  align-items: center;
  justify-content: row;
  gap: 1rem;
}

.contact-newsletter .gform-footer {
  margin-top: 0;
  margin-block-start: 0 !important;
}

.contact-newsletter .gform_button.wp-block-button.wp-block-button__link {
  font-size: 0 !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 2rem !important;
  border-radius: 32px !important;
  background-color: var(--wp--preset--color--primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  border: 0 !important;
}

/* OUR RESULTS */
.results__time-line--mobile .is-layout-grid  {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 600px) {
  .home--latests-grid,
  #newsletter .has-background {
    display: none !important;
  }

  .home--newsletter {
    background-color: white;
    margin: 0 2rem 3rem !important;
    width: calc(100vw - 4rem);
    border-radius: 20px;
  }

  .footer__menu {
    flex-direction: column;
  }

  .footer__menu nav ul {
    gap: 1rem;
    justify-content: center;
  }

  body .is-layout-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .results__time-line--desktop {
    display: none;
  }
  
}

@media (min-width: 600px) {
  .home--banner {
    min-height: 630px;
  }

  .home_banner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 !important;
    transform: translate(-50%, -100%);
  }

  .home_banner--description {
    max-width: 500px;
    text-align: right;
  }

  .svg-top-right {
    top: -30%;
    width: 200px;
  }

  .results__time-line--mobile {
    display: none;
  }
}

@media (min-width: 1080px) {
  .svg-top-right {
    width: 300px;
    top: -45%;
  }
  
  .column-left--wrap {
    max-width: calc(var(--wp--style--global--content-size) / 2);
    justify-self: end;
  }

  .column-right-video-full iframe {
     width: 100%;
     min-height: 500px;
  }
}