@import url('/_assets/tmp/layout.css');

#section-banner {
    position: relative;
    width: 100%;
    min-height: 20dvh;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
}

.background-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-cover-hero {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255, 255, 255, 1) 70%);
}

#container-banner {
    text-align: center;
}

.web-title {
    text-transform: uppercase;
    line-height: 1.5;
    font-size: 2rem;
    font-family: Montserrat-Black, sans-serif;
    font-weight: 900;
    color: var(--dark-color);
}

@media (max-width: 1200px) {
    #section-banner {
        min-height: 30dvh;
    }
    
    #container-banner {
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: auto;
        padding-top: 4rem;
        width: 90%;
        gap: 2rem;
    }

    #web-title {
        text-align: center;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px){
    #container-banner {
        padding-top: 3rem;
    }
}

.container {
  width: 66%;
  margin: 0 auto;
  min-width: 1100px;
}

@media (max-width: 1200px){
  .container {
    width: 90%;
    min-width: 0;
  }

  html {
    font-size: 14px;
  }
}

#section-head {
  width: 99.9%;
  margin-left: auto;
  margin-right: auto;
  margin: 5.5rem auto 4rem auto;
}

#directory {
  padding: .75rem 0;
}

#page-title {
  font-family: Lato-Light, Helvetica, sans-serif;
  font-size: 3rem;
  margin: 2rem 0 1rem 0;
  line-height: 1;
  color: var(--primary-color);
}

#page-tagline {
  font-size: 2rem;
  font-family: Helvetica;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary-color);
}

@media (max-width: 900px){
  #section-head {
    margin: 5rem auto 2rem auto;
  }
  
  #page-title {
    font-size: 2.8rem;
  }
}

/* ================================================================================================== */

#section-articles {
  width: 100%;
  padding: 3rem 0;
  font-size: 1.1rem;
}

#container-article {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.article {
  width: 32%;
  display: inline-block;
  margin-bottom: 1rem;
}

.article:hover > .article-image img {
  transition: all .3s ease-in-out;
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -ms-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
}

.article:hover > .article-title {
  text-decoration: underline;
  color: var(--secondary-color);
}

.article-image {
  width: 100%;
  aspect-ratio: 7/4;
  overflow: hidden;
  margin-bottom: .5rem;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -ms-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
}

.article-title {
  color: var(--dark-color-2);
  margin-bottom: .5rem;
}

.article-snippet span {
  color: var(--tertiary-color);
}

@media (max-width: 1050px){
  .article {
    width: 48%;
  }
}

@media (max-width: 600px){
  .article {
    width: 100%;
  }
}
