/** Main styles */
.main {
  width: 100%;
}

.main__sections {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.main__section {
  width: 100%;
  padding: 3rem 1rem;
  position: relative;

  &:nth-child(odd) {
    background-color: var(--primary);
  }
}

.main__content {
  max-width: var(--content-width);
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main__title {
  margin-left: -0.75rem;
  font-size: 2rem;

  &.main__title--marked {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--text-marked);
  }
}

.main__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/** Hero styles */
.hero {
  width: 100%;
  height: 32rem;
  background: url("../img/home/hero.webp") no-repeat center center;
  background-size: cover;
}

.hero__content {
  height: 100%;
  width: 100%;
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hero__titles {
  width: 100%;
  padding: 0.5rem;
  background-color: #ffffff8c;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  opacity: 0;
  animation: fade-in 500ms ease-in 250ms forwards;
}

.hero__title,
.hero__subtitle {
  margin-inline: auto;
  max-width: var(--content-width);
}

.hero__title {
  font-size: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 550;
  color: var(--text-title);
}

.hero__link {
  padding: 0.75rem 1rem;
  border: 2px solid var(--secondary);
  border-radius: 10px;
  background-color: var(--primary);
  font-size: 1.25rem;
  font-weight: 650;
  opacity: 0;
  animation: fade-in 500ms ease-in 650ms forwards;
}

/** Card styles */
.feature-card {
  width: 12rem;
  height: 18rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background-color: var(--secondary);
  position: relative;
  /* translate: 0; */
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
  opacity: 1;
  visibility: visible;
  transition:
    translate 250ms ease-out,
    opacity 250ms ease-out,
    visibility 250ms ease-out;

  &.feature-card--hidden {
    translate: 0 100%;
    opacity: 0;
    visibility: hidden;
  }
}

.feature-card__icon {
  font-size: 3rem;
  text-align: center;
}

.feature-card__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.feature-card__title {
  color: var(--text-secondary);
}

/** News styles */
.news {
  width: 100%;
  padding: 1rem 1.5rem 2rem;
  border-bottom: 2px solid gray;
  display: flex;
  gap: 2rem;

  &:nth-child(even) {
    flex-direction: row-reverse;
    text-align: end;

    & .news__footer {
      flex-direction: row-reverse;
    }
  }

  &:last-child {
    border-bottom: none;
  }
}

.news__image {
  max-width: 26rem;
}

.news__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news__title {
  font-size: 1.35rem;
}

.news__text {
  font-size: 1.05rem;
}

.news__footer {
  margin-top: auto;
  padding-inline: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news__date {
  font-style: italic;
}

.news__button {
  padding: 0 0.25rem 0.5rem;
  background-color: transparent;
  border-style: none;
  border-bottom: 1px solid var(--secondary);
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 1rem;
  font-weight: 450;

  &:hover .news__icon {
    scale: 1.2;
  }
}

.news__icon {
  font-size: 1.1rem;
  color: var(--secondary);
  transition: scale 200ms ease-out;
}

@media (min-width: 28rem) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
    font-weight: 550;
  }
}
