@charset "utf-8";

:root {
    --dark_purple: hsl(245, 23%, 21%);
    --medium_purple: hsl(244, 11%, 50%);
    --light_purple: hsl(240, 22%, 90%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
    --button: rgba(133, 133, 168, 95%);
}

.aip_section {
    padding: 0 10% 0 10%;
}

.aip_section_title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--button);
    display: inline-flex;
    align-items: center;
}

.aip_section_title::after {
     content: "";
     display: inline-block;
     width: 2.5rem;
     height: 2.5rem;
     margin-left: 0px;
     background-image: url('/media/icons/chevron_right_light_purple.svg');
     background-size: contain;
     background-repeat: no-repeat;
     background-position: center;
}

.aip_section_title:hover {
    color: var(--medium_purple);
}

.aip_section_hr {
    border-bottom: 2px solid var(--light_purple);
    margin-bottom: 2rem;
}

.aip_articles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1rem;
    margin-bottom: 2rem;
}

.aip_article {
  position: relative;
  overflow: hidden;
  color: white;
  flex-basis: 32%;
  flex-grow: 1;
}

.aip_article_img {
  position: relative;
  z-index: 1;
}

.aip_article_img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  border-radius: 10px;
  object-fit: cover;
}


.aip_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 20px 20px 2rem 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 1rem;
  background-color: rgba(55, 53, 85, 55%);
  border-radius: 10px;
  transition: 0.3s ease;
}

.aip_article:hover .aip_overlay  {
  background-color: rgba(55, 53, 85, 75%);
  transition: 0.3s ease;
}

.aip_article_title {
  font-size: 1.5rem;
  color: white;
  line-height: 1;
}

.aip_article_arrow img {
    width: 30px;
}

@media (max-width: 650px) {

    .aip_section {
        padding: 0 10px;
    }

    .aip_article {
        flex-basis: 100%;
    }

    .aip_article_img img {
      max-height: 200px;
    }

}
