#homepage #hero {
  background-color: #152139;
  background-image: url(/assets/images/web_homepage_elements_KV.png);
  background-repeat: no-repeat;
  background-position: center 100%;
  background-size: cover;
  margin: 0;
  height: 100vh;
}

@media only screen and (max-width: 767px) {
  #homepage #hero {
    height: 40vh;
  }
}

#homepage #header {
  background-color: none;
  background: none;
}

#homepage #header .ui.menu .logo.item {
  padding: 0.85714286em 1.14285714em;
}

#homepage #header .ui.menu .logo.image {
  height: 2.5rem;
  margin: -1.5rem 1em -1.5rem -1rem;
}

#homepage .sentence {
  display: inline-block;
  margin: 0 0.5em;
}

#homepage #about .about-us {
  margin: auto;
  margin-left: 0;
  width: 40%;

  @media only screen and (max-width: 767px) {
    padding: 2rem !important;
  }

  @media only screen and (min-width: 1280px) {
    margin: auto;
  }

  h2,
  p {
    color: var(--ocf-primary);
  }

  .read-more {
    a {
      color: var(--ocf-primary);
    }
  }
}

#homepage cite {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5em;
  opacity: 0.5;
  display: block;
}

#homepage .title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  color: var(--ocf-primary);
  width: 100%;

  @media only screen and (max-width: 767px) {
    display: flex;
    order: 1;
  }

  h2 {
    margin: 0;

    @media only screen and (max-width: 767px) {
      padding: 2rem 4rem;
    }
  }

  .divider {
    height: 4px;
    width: 100%;
    background-color: var(--ocf-white);

    @media only screen and (max-width: 767px) {
      display: none;
    }
  }
}

#homepage .read-more {
  text-align: end;
  color: var(--ocf-primary);
}

#homepage .support-us-button {
  background-color: var(--ocf-primary);
  color: var(--ocf-white);
  font-size: 1rem;
  opacity: 0.8;
  padding: 1rem 3rem;
}

#homepage #what_we_do .what_we_do_container {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  width: 100vw;
  background-color: var(--ocf-light);


  @media only screen and (max-width: 767px) {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
  }

  .top-item-container,
  .bottom-item-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;

    @media only screen and (max-width: 767px) {
      flex-direction: column;
      order: 2;
    }

    .item {
      color: var(--ocf-primary);
      width: 50%;

      p {
        a {
          line-height: 2.5rem;
        }
      }

      @media only screen and (min-width: 1280px) {
        padding: 1rem 4.45rem;
      }

      @media only screen and (max-width: 990px) {
        width: 100%;
        padding: 2rem 4rem;
      }

      .item-title-group {
        display: flex;
        justify-content: left;
        align-items: center;
        margin-bottom: 2rem;
        gap: 2rem;

        h2{
          margin: 0;
        }

        @media only screen and (max-width: 767px) {
          margin-bottom: 2rem;
        }

        img {
          max-width: 65px;

          @media only screen and (max-width: 767px) {
            max-width: 60px;
          }
        }
      }
    }

    .item-gap {
      width: 4px;
      height: 100%;
      background-color: var(--ocf-white);
    }
  }
}

#what_is_happening .project-result-container {
  background-color: var(--ocf-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem;

  @media only screen and (max-width: 767px) {
    padding: 2rem 0;
  }

  @media only screen and (max-width: 1280px) {
    padding: 4rem;
  }

  h2 {
    font-weight: 600;

    @media only screen and (max-width: 767px) {
      margin: 0;
    }
  }

  .project-items {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    gap: 4rem;
    padding: 0 3rem;

    @media only screen and (max-width: 1280px) {
      gap: 2rem;
      padding: 0;
    }

    @media only screen and (max-width: 1024px) {
      flex-direction: column;
    }
  }

  .project-items .item {
    width: 100%;
    max-width: 300px;
    height: 300px;
    padding: 1rem;
    position: relative;
    border: 10px solid var(--ocf-primary);
  }

  .project-items .item .item-icon {
    width: 4rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
  }

  .project-items .item h2 {
    position: absolute;
    color: var(--ocf-white);
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    font-weight: 600;
  }

  .project-items > :nth-child(1) {
    background-image: url("/assets/images/web_homepage_elements_What_foundation.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    h2 {
      width: 6rem;
    }
  }
  .project-items > :nth-child(2) {
    background-image: url("/assets/images/web_homepage_elements_What_community.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    h2 {
      width: 4rem;
    }
  }
  .project-items > :nth-child(3) {
    background-image: url("/assets/images/web_homepage_elements_What_upcoming events.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    h2 {
      width: 6rem;
    }
  }
}

#homepage #partners {
  text-align: center;
  padding: 4.5rem;

  .partners-container {
    border: 4px solid var(--ocf-primary);
    padding: 2rem;
    position: relative;

    h2 {
      color: var(--ocf-primary);
    }
  }
}

#homepage #partners .item-icon {
  width: 4rem;
  position: absolute;
  top: 2rem;
  left: 2rem;
}

#homepage #sponsors {
  text-align: center;
  padding: 4.5rem;

  .sponsors-container {
    border: 4px solid var(--ocf-primary);
    padding: 2rem;
    position: relative;

    h2 {
      color: var(--ocf-primary);
    }
  }
}

#homepage #sponsors .item-icon {
  width: 4rem;
  position: absolute;
  top: 2rem;
  left: 2rem;
}

#homepage cite:hover {
  opacity: 1;
}

#homepage #what_we_do .items > .item > .image:not(.ui) {
  width: 8rem;
}

#homepage #what_we_do .items > .item .bordered.icon {
  margin-right: 0;
  width: 100%;
}

#homepage #what_they_say .slick .small.container {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

#homepage .ui.reference.image {
  width: 5rem;
  height: 5rem;
  display: inline-block;
}

#homepage .blockquote {
  position: relative;
  display: inline-block;
}

#homepage .blockquote:before,
.blockquote:after {
  opacity: 0.5;
  position: absolute;
  top: 0;
  font-family: Icons;
  font-style: normal;
  font-weight: 400;
  font-size: 1.5rem;
  width: 1em;
  height: 1em;
  font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  speak: none;
}

#homepage .blockquote:before {
  content: "\f10d";
  left: -1.5em;
}

#homepage .blockquote:after {
  content: "\f10e";
  right: -1.5em;
}

#homepage #ads .ui.inverted.segment {
  background-color: #333;
}

@media only screen and (max-width: 767px) {
  #homepage #what_we_do hr.ui.hidden.divider {
    display: none;
  }

  #homepage #what_we_do .items > .item > .image {
    width: 100% !important;
  }
}
