/*****************/
/***  BANNERS  ***/
/*****************/

/* HORIZONTAL BANNER STYLES */
.hor-banner-medium {
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
  background-color: #C8F3F1;
  overflow: hidden;

  @media (max-width: 600px) {
    flex-direction: column;
  }
}

.hor-banner-medium__title {
  flex: 3;
  display: inline;
  font-family: var(--text-fontfamily-accent);
  font-size: 40px;
  color: currentColor;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding: 30px 20px 30px 30px;

  & svg {
    flex: 3;
    display: inline;
    stroke: currentColor;
    margin-left: 8px;
    transform: translateY(6px);
  }

  @media (max-width: 600px) {
    padding: 20px 20px 10px 20px;
  }
}

.hor-banner-medium__image {
  flex: 3;
  overflow: hidden;
  object-fit: cover;
  object-position: left bottom;
  height: 100%;
}

/* VERTICAL BANNER STYLES */
.three-col-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  min-height: 340px;
  text-decoration: none;
  background-color: #C8F3F1;
  overflow: hidden;


  &:hover {
    color: var(--clr-text-1);
  }

  @media (max-width: 1020px) {
    flex-direction: row-reverse;
    min-height: 0;
  }

  @media (max-width: 600px) {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
}

.three-col-banner__image-bg {
  flex: 1;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;

  @media (max-width: 1020px) {
    flex: 2;
    min-height: 200px;
    aspect-ratio: 1.36;
    background-position: left center;
    margin: 30px 40px 30px 0;
  }

  @media (max-width: 600px) {
    background-position: right bottom;
    background-size: contain;
    /* width: 300px;
    min-height: 220px; */
    min-height: auto;
    margin: 0 20px 0 20px;
    aspect-ratio: 1.36;
    width: 100%;
  }
}

.three-col-banner__title {
  display: inline;
  font-family: var(--text-fontfamily-accent);
  font-size: 40px;
  color: currentColor;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding: 28px;
  width: 100%;
  margin: 0;

  @media (max-width: 1020px) {
    flex: 2;
    padding: 40px;
    font-size: 48px;
  }

  @media (max-width: 800px) {
    flex: 3;
    font-size: 40px;
  }

  @media (max-width: 600px) {
    padding: 20px;
    font-size: 36px;
  }
}

/*****************/
/***  FOOTERS  ***/
/*****************/

.footer {
  grid-column: empty / footnote;
  display: flex;
  gap: 50px;
  margin-top: 30px;
  margin-bottom: 40px;

  @media (max-width: 1020px) {
    flex-direction: column;
    margin-top: 30px;
  }

  @media (max-width: 720px) {
    margin-top: 0;
  }
}

.footer__banner {
  flex: 2.5;
  padding: 30px 36px 0;
  position: relative;
  display: flex;
  gap: 20px;
  border-radius: 20px;
  background-color: #A0DDDC;
  background-size: cover;

  @media (max-width: 720px) {
    padding: 24px 30px 0;
    flex-direction: column;
  }
}

.footer__banner__h1 {
  flex: 1;
  font-size: 54px;
  line-height: 1.2;
  font-family: var(--text-fontfamily-accent);
  margin: 0;

  @media (max-width: 1060px) {
    font-size: 48px;
  }
}

.footer__banner__img {
  width: 280px;
  margin: 0;
  margin-top: -74px;
  margin-right: -10px;

  @media (max-width: 1060px) {
    width: 260px;
  }

  @media (max-width: 720px) {
    width: 100%;
    margin: 0;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
  }
}

.footer__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;

  @media (max-width: 1020px) {
    justify-content: flex-start;
    flex-direction: row;
  }

  @media (max-width: 720px) {
    flex-direction: column;
  }
}

.footer__links-wrapper {
  display: flex;
  gap: 20px;

  @media (max-width: 1020px) {
    flex: 1;
  }
}

.footer__links {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;

  & li {
    margin: 0;
    padding: 0;
    margin-bottom: 14px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  & a {
    font-size: 16px;

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

  @media (max-width: 720px) {
    margin-bottom: 20px;
  }
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;

  & p,
  a,
  span {
    margin: 0;
    font-size: 12px;
    color: var(--clr-text-2);
  }

  @media (max-width: 1020px) {
    align-self: flex-end;
  }

  @media (max-width: 720px) {
    align-self: flex-start;
  }
}

.footer__meta__links {
  display: flex;
  gap: 8px;
}

/*****************/
/*** POST CARD ***/
/*****************/

/* ARTICLE */
.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;

  &:hover {
    & .post-card__title {
      text-decoration-line: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 3px;
      text-decoration-color: var(--clr-theme-pop-element);
    }
  }
}

.post-card__content {
  display: flex;
  flex-direction: column;
}

.post-card__image {
  border-radius: 10px;
  overflow: hidden;
  object-fit: cover;
  margin-bottom: 28px;

  @media (max-width: 600px) {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

.post-card__title {
  font-family: var(--text-fontfamily-accent);
  line-height: 1.1;
  text-wrap: balance;
  color: var(--clr-text-1);
  text-decoration: none;
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 8px;

  @media (max-width: 600px) {
    font-size: 34px;
  }
}

.post-card__caption {
  display: flex;
  gap: 5px;

  flex-direction: row;
  font-size: 12px;
  color: var(--clr-text-2);
  margin-bottom: 14px;
}

.post-card__excerpt {
  font-size: 16px;
  font-weight: 400;
  color: var(--clr-text-1);
  line-height: 1.6;
  margin: 0;
}

/* MODS */
.post-card--hor {
  flex-direction: row;

  & .post-card__content {
    flex: 2;
  }

  & .post-card__image {
    flex: 1;
    margin-bottom: 0;
    margin-right: 34px;
  }
}

.post-card--tablet-hor {
  @media (max-width: 1020px) and (min-width: 600px) {
    flex-direction: row;

    & .post-card__content {
      flex: 2;
    }

    & .post-card__image {
      flex: 1;
      margin-bottom: 0;
      margin-right: 34px;
    }
  }
}


/*****************/
/*** POST ROWS ***/
/*****************/

.three-post-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 64px;

  @media (max-width: 1020px) {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 40px;
  }
}

/*****************/
/*** SUBSCRIBE ***/
/*****************/

.subscription {
  grid-column: empty / footnote;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  margin-left: -60px;
  margin-right: -60px;
  padding: 60px;
  border-radius: 20px;
  color: #000;

  @media (max-width: 1020px) {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
    margin-left: -40px;
    margin-right: -40px;
    padding: 40px;
    border-radius: 0;
  }

  @media (max-width: 640px) {
    padding: 30px 20px 40px;
    margin-left: -20px;
    margin-right: -20px;
  }
}

.subscription__text-wrap {
  flex: 2;
  display: flex;
  flex-direction: column;
  width: 100%;

}

.subscription__title {
  font-size: 60px;
  color: currentColor;
  font-family: var(--text-fontfamily-accent);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  margin-bottom: 20px;

  @media (max-width: 640px) {
    font-size: 52px;
  }
}

.subscription__description {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: currentColor;
  opacity: 0.7;
  max-width: 400px;
  margin: 0;
  text-wrap: balance;

  @media (max-width: 640px) {
    font-size: 14px;
    max-width: 100%;
  }
}

.subscription__form {
  flex: 3;
  display: flex;
  align-items: flex-end;
  gap: 28px;

  @media (max-width: 1020px) {
    width: 100%;
  }
}

.subscription__input {
  flex: 1;
  padding: 20px 0;
  border-radius: 0;
  border-bottom: 2px solid currentColor;
  height: fit-content;
  font-size: 40px;
  background-color: transparent;

  &::placeholder {
    color: currentColor;
    opacity: 0.3;
  }

  &:focus {
    outline: none;
    border-bottom: 2px solid var(--clr-theme-pop-element);
  }

  @media (max-width: 640px) {
    font-size: 20px;
  }
}

.subscription__button {
  display: flex;
  flex-direction: column;
  gap: 12px;

  & span {
    font-size: 20px;
    color: currentColor;
    font-weight: 500;
    opacity: 0.7;
  }

  &:hover {
    & .subscription__button-arrow svg {
      right: 0;
    }

    & .subscription__button-arrow:after {
      width: calc(100% - 2px);
    }
  }

  @media (max-width: 640px) {
    gap: 8px;

    & span {
      font-size: 12px;
    }
  }
}

.subscription__button-arrow {
  position: relative;
  width: 100%;
  height: 46px;

  & svg {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 26px;
    height: 48px;
    transform: translateY(-50%);
    stroke: currentColor;
    transition: all 0.16s ease;

  }

  &:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: calc(100% - 22px);
    height: 2px;
    background-color: currentColor;
    border-radius: 20px;
    transition: all 0.16s ease;
  }

  @media (max-width: 640px) {
    height: 36px;

    & svg {
      right: 0;
      width: 20px;
      height: 36px;
    }

    &:after {
      width: calc(100% - 4px);
    }
  }
}

/* Subscription success message */
.subscription__success-message {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subscription__success-message h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.subscription__success-message p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
}