/*
    Started on  : October 2, 2023
    Author      : __MeditaKnorr
    Project     : INAS IP - WebSite
    File        : Cascading Style Sheets (.CSS)
*/

// @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
// font-family: "Poppins", sans-serif;

// VARIABLES
$--fontFamily: 'Fira Sans',
sans-serif;
$--primaryGreen: rgba(#00986F, 0.95);
$--secondGreen: rgba(#D1E7DB, 1.0);
$--primaryBlack: rgba(#393939, 1.0);

// STYLING

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: all ease-in-out .3s;
  -moz-transition: all ease-in-out .3s;
  -o-transition: all ease-in-out .3s;
  transition: all ease-in-out .3s;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

.show-element {
  display: flex !important;
}

.hide-element {
  display: none !important;
}

a:link {
  /* unvisited link */
}

a:visited {
  /* visited link */
}

a:hover {
  /* hovered link */
  text-decoration: none;
}

a:active {
  /* active link in use */
}

a {
  text-decoration: none !important;
}

html {
  width: 100vw;
  height: 100vh;
  font-size: 16px;
}

body {
  width: 100%;
  height: 100%;
  direction: ltr;
  background: #ffffff;
  overflow-x: hidden;
  font-family: $--fontFamily !important; //'Open Sans', 'Segoe Ui', arial
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
  text-transform: none;
  vertical-align: middle;
  white-space: normal;
  outline-style: none;
  cursor: default;
  word-wrap: break-word;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 0.5;
}

header {
  position: relative;
  width: inherit;
  min-height: 3.125rem;
  display: flex;
  flex-direction: column;

  div.header--first-row {
    width: 100%;
    height: 2.6875rem;
    padding: 0 9.375rem;
    margin: 0;
    border: 0;
    display: flex;
    justify-content: space-between;
    background: rgba(#F1F1F1, 1.0);

    div.first-row__left-container {
      div#user-current-date {
        width: 22.5rem;
        font-weight: 500;
        font-size: 0.6875rem;
        height: 2.6875rem;
        line-height: 2.6875rem;
        color: #393939;
        text-transform: capitalize;
      }
    }

    div.first-row__right-container {
      display: flex;
      justify-content: center;
      align-items: center;

      div#site-webmaster {
        width: 6.25rem;
        height: 1.5625rem;
        border-radius: 0; // 0.625rem
        text-align: center;
        margin: 0 0 0 1.25rem;
        color: rgba(#FFFFFF, 1.0);
        border: 0.0625rem solid rgba(#8A5213, 1.0);
        background-color: rgba(#A26115, 1.0);
        //border: 0.0625rem solid rgba(#F1B406, 1.0);
        //background: rgba(#F1B406, 0.9);
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -o-transition: none !important;
        transition: none !important;

        a.button {
          width: 100%;
          height: 100%;
          font-weight: 600;
          text-align: center;
          line-height: 1.5rem;
          text-decoration: none;
          color: inherit;
        }

        &:hover {
          cursor: pointer;
          background-color: rgba(#8A5213, 1.0);
        }
      }

      div#site-language-selector {
        display: flex;
        width: auto;
        font-weight: 500;
        font-size: 0.6875rem;
        height: 2.6875rem;
        line-height: 2.6875rem;
        color: #393939;

        div.primary-language {
          width: 1.4375rem;
          height: 1.4375rem;
          border-radius: 50%;
          background: url("../../../../assets/images/icons/pt__icon.png") no-repeat;
          background-size: 1.5625rem 1.5625rem;
          background-position: center;
          border: 0.1875rem solid #FFFFFF;
          margin: auto 0.625rem auto 1.25rem;

          &:hover {
            cursor: pointer;
          }
        }

        div.second-language {
          width: 1.4375rem;
          height: 1.4375rem;
          border-radius: 50%;
          background: url("../../../../assets/images/icons/uk__icon.png") no-repeat;
          background-size: cover;
          background-position: center;
          border: 0.1875rem solid #FFFFFF;
          margin: auto 0;

          &:hover {
            cursor: pointer;
          }
        }
      }
    }
  }

  div.header--second-row {
    width: 100%;
    height: 6.625rem;
    padding: 0 9.375rem;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;

    div.second-row__left-container {
      div#site-logo-icon {
        width: 7.5rem;
        height: 5rem;
        background: url("../../../../assets/images/icons/inas__logo.png") no-repeat;
        background-size: contain;
        background-position: center;
        margin: auto 0;
        padding: 0;
        border: 0;

        &:hover {
          cursor: pointer;
        }
      }
    }

    div.second-row__right-container {
      div#site-search-and-socials {
        display: flex;

        form.site-search-bar {
          position: relative;
          width: auto;
          display: flex;
          justify-content: start;
          align-items: center;

          input {
            width: 14.75rem;
            font-weight: 500;
            font-size: 0.75rem;
            color: #393939;
            border-radius: 0;
            border: 0.0625rem solid rgba(#393939, 0.2);
            background-color: rgba(#ffffff, 1);
            margin: 0;
            padding: 0.5rem 1.25rem 0.5rem 2.5rem;
          }

          button.search-icon {
            position: absolute;
            top: 0.3125rem;
            left: 0.5rem;
            width: 1.375rem;
            height: 1.375rem;
            border-radius: 50%;
            color: rgba(#393939, 0);
            background: rgba(#393939, 0.2) url("../../../../assets/images/icons/magnifier__icon.svg") no-repeat;
            background-size: 40%;
            background-position: center;

            &:hover {
              cursor: pointer;
              background-color: #00986F;
            }
          }
        }

        div.socials-icons {
          display: flex;
          align-items: center;
          justify-content: space-between;
          width: 7.5rem;

          img {
            width: 1.25rem;
            height: 1.25rem;
            opacity: 0.9;
            margin: 0 0 0 0.3125rem;
            padding: 0;
            border: 0;
            filter: grayscale(100%) contrast(0%) brightness(0%);

            &:hover {
              filter: grayscale(0%);
              cursor: pointer;
              opacity: 1;
            }
          }

        }
      }
    }
  }

  div.header--third-row {
    width: 100%;
    height: auto;
    padding: 0 9.375rem;
    border: 0;
    margin: 0;
    position: relative;

    div.main-container {
      width: 100%;
      border: 0;
      margin: 0;
      padding: 0;
      position: relative;
      display: flex;
      justify-content: center;

      nav#site-navigation-links {
        width: 99%;
        height: 3.5rem;
        margin: 0.375rem auto;
        padding: 0;
        z-index: 50;
        position: absolute;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        div.navigation-link {
          min-width: 8.125rem;
          height: 3.3125rem;
          text-align: center;
          font-size: 0.875rem;
          font-weight: 650;
          line-height: 3.375rem;
          background-color: $--primaryGreen;
          color: $--secondGreen;
          margin: 0.09375rem;
          padding: 0;
          text-transform: uppercase;

          a.navigation-direct-link {
            min-width: 8.125rem;
            color: inherit !important;
            -webkit-transition: none;
            -moz-transition: none;
            -o-transition: none;
            transition: none;
            padding: 1.125rem 1.875rem;

            &:hover {
              cursor: pointer;
              color: $--primaryBlack !important;
              background-color: $--secondGreen;
            }

            &.active {
              color: $--primaryBlack !important;
              background-color: $--secondGreen !important;
            }
          }

          &:hover {
            cursor: pointer;
            color: $--primaryBlack;
            background-color: $--secondGreen;
          }
        }

        div.navigation-link-pane {
          position: absolute;
          top: 3.625rem;
          width: 100%;
          min-height: 19.125rem;
          background-color: rgba($--secondGreen, 0.98);
          display: none;
          padding: 1.875rem;
        }

        span.navigation-with-options {
          &::after {
            background-image: url("../../../../assets/images/icons/black-arrow__icon.svg");
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            content: '';
            height: 0.75rem;
            position: relative;
            right: -0.375rem;
            top: 0.5625rem;
            width: 0.5rem;
            transform: translateY(-50%);
            transition: transform 200ms ease-in-out;
            will-change: transform;
            display: inline-block;
            transform: translateY(-50%) rotate(0deg);
          }
        }
      }

      section#subpage-image-and-breadcrumbs {
        width: 100%;
        padding: 0;
        margin: 5.625rem 0 0 0;

        div.subpage-image {
          width: 100rem;
          height: 13.75rem;
          overflow: hidden;
          max-width: 100%;
          color: red;

          img {
            width: 100%;
          }
        }

        div.subpage-breadcrumbs {
          width: 100%;
          height: 3.75rem;
          display: flex;
          align-items: center;
          font-size: 1rem;
          font-weight: 600;
          color: $--primaryBlack !important;

          span.parent-page-link {
            height: 1.875rem;
            line-height: 1.875rem;
            padding: 0;
            text-transform: uppercase;

            &::after {
              content: '';
              padding: 0 1.875rem 0 0.9375rem;
              background-image: url("../../../../assets/images/icons/breadcrumb-green-arrow__icon.svg");
              background-position: center;
              background-repeat: no-repeat;
              display: inline-block;
              height: 1rem;
              position: relative;
              left: -0.25rem;
              top: 0.125rem;
            }

            a {
              text-decoration: underline !important;
              color: $--primaryBlack !important;
            }
          }

          span.current-page-link {
            text-transform: capitalize;
            height: 1.875rem;
            line-height: 1.875rem;
            margin: 0 0 0 0rem;
            opacity: 0.7;
          }
        }
      }
    }
  }
}

main {
  width: 100%;
  min-height: 18.75rem;
  padding: 0 9.375rem 4.375rem 9.375rem;
  margin: 6.25rem 0 0;
  display: flex;
  flex-direction: column;
  color: #393939;
  position: relative;

  div.news-title {
    width: 100%;
    text-align: left;
    margin: 0 0 3.125rem 0;

    h1 {
      opacity: 1.0;
      font-size: 2.0625rem;
      margin: 0 0 1.25rem 0;
    }
  }

  div.news-body {
    img {
      width: 100%;
      height: 18.75rem;
      margin: 1.25rem 0;
      object-fit: cover;
    }

    h4 {
      font-size: 1.125rem;
    }

    p {
      font-size: 1rem;
      line-height: 1rem;
      margin: 0 0 2.5rem 0;
    }
  }
}

footer {
  width: 100%;
  height: auto;
  position: relative;
  background: rgba(#F1F1F1, 1.0);
  border-top: 0.1875rem solid #e4e4e4;
  margin: 6.25rem 0 0 0;
  padding: 0 9.375rem 4.375rem 9.375rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;

  div.footer__icon {
    width: 3.875rem;
    height: 3.875rem;
    border: 0.0625rem solid #e4e4e4;
    background-image: url("../../../../assets/images/icons/emblem__logo.png");
    background-color: #e4e4e4;
    background-repeat: no-repeat;
    background-size: cover;
    margin: -1.9375rem 0 0 0;
    border-radius: 1.9375rem;
  }

  div.footer__container {
    width: 100%;
    min-height: 17.5rem;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1.875rem;
    margin: 1.25rem 0 2.5rem 0;

    div.footer__links {
      width: 9.375rem;
      height: 12.5rem;

      h4 {
        width: 100%;
        text-align: left;
        font-size: 0.9375rem !important;
      }

      ul {
        width: 100%;
        list-style: none;

        li {
          width: 100%;
          padding: 0;
          text-wrap: wrap;
          font-size: 0.8125rem !important;
          color: rgba($--primaryBlack, 0.8);
          line-height: 1.25rem;

          a {
            color: inherit;

            &:hover {
              text-decoration: underline !important;
            }
          }
        }
      }
    }
  }

  div.footer__copyright {
    width: 100%;
    min-height: 2.5rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #5a5a5a;

    span {
      display: flex;
      align-items: center !important;

      div {
        line-height: 1.375rem;
        margin: 1.25rem 0 0 0.75rem;
        text-transform: uppercase;
      }
    }
  }
}
