.guides__container {
  display: flex;
  width: 100%;
  padding: var(--section-padding-lg, 64px) var(--page-padding, 20px);
  flex-direction: column;
  align-items: center;
  gap: var(--sizing-4xl);
  background: var(--color-iceland-100, #fbf9f6);

  @media screen and (min-width: 960px) {
    padding: var(--section-padding-lg, 112px) var(--page-padding, 64px);
    gap: var(--spacing-x10);
  }
}

.guides__content {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sizing-4xl);

  @media screen and (min-width: 960px) {
    max-width: 1440px;
    align-items: center;
    gap: var(--spacing-x10);
  }
}

.guides__headings {
  display: flex;
  max-width: 768px;
  flex-direction: column;
  align-items: center;
  gap: var(--sizing-s);

  @media screen and (min-width: 960px) {
    gap: var(--sizing-m);
  }
}

.guides__preHeading {
  font: var(--font-overline-lg);
  color: var(--color-contrast-200);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0 !important;
}

.guides__heading {
  font: var(--font-title-lg);
  color: var(--color-iceland-1000);
  text-align: center;
  margin-bottom: 0 !important;
}

.guides__cards-container {
  width: 100%;
}

.guides__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.guides__card:nth-of-type(4) {
  @media screen and (min-width: 960px) {
    flex-direction: row;
  }
}

.guides__card:first-of-type {
  @media screen and (min-width: 960px) {
    border-radius: 180px 0 0 0;
  }
}

.guides__card-image {
  min-height: 188px;
  object-fit: cover;
  aspect-ratio: 16/9;

  @media screen and (min-width: 960px) {
    height: 270px;
  }

  @media screen and (min-width: 1280px) {
    height: 360px;
  }
}

.guides__card:nth-of-type(3) .guides__card-image {
  min-height: 388px;
  object-fit: cover;
  aspect-ratio: 80/97;

  @media screen and (min-width: 960px) {
    height: 388px;
  }
}

.guides__card:first-of-type,
.guides__card:first-of-type .guides__card-image {
  border-radius: 120px 0 0 0;

  @media screen and (min-width: 960px) {
    border-radius: 180px 0 0 0;
  }
}

.guides__card-text-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px 24px 24px 24px;
  gap: var(--sizing-m);

  @media screen and (min-width: 960px) {
    padding: 32px 32px 24px 32px;
  }
}

.guides__card:nth-of-type(1) .guides__card-text-container,
.guides__card:nth-of-type(5) .guides__card-text-container {
  @media screen and (min-width: 960px) {
    padding: 40px 32px 24px 32px;
    height: 100%;
    justify-content: center;
  }
}

.guides__card-heading {
  font: var(--font-title-md);
  color: var(--color-iceland-1000);
  text-align: start;
  margin-bottom: 0 !important;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;

  @media screen and (min-width: 960px) {
    -webkit-line-clamp: 2;
  }

  @media screen and (min-width: 1280px) {
    -webkit-line-clamp: 4;
  }
}

.guides__card-paragraph {
  font: var(--font-body-md);
  color: var(--color-iceland-800);
  text-align: start;
  margin-bottom: 0 !important;
  font-feature-settings: "dlig" on;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;

  @media screen and (min-width: 960px) {
    -webkit-line-clamp: 4;
  }

  @media screen and (min-width: 1280px) {
    -webkit-line-clamp: 5;
  }
}

.guides__card-author-info {
  display: flex;
  align-items: center;
  gap: var(--sizing-s, 8px);
  margin-top: auto;
  padding: 0 24px 24px 24px;

  @media screen and (min-width: 960px) {
    padding: 0 32px 24px 32px;
  }
}

.guides__card-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.guides__card-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guides__card-author {
  font: var(--font-body-md);
  font-weight: 600;
  color: var(--color-iceland-1000);
  text-align: start;
  margin-bottom: 0 !important;
}

.guides__card-subtext {
  font: var(--font-body-sm);
  color: var(--color-iceland-700);
  text-align: start;
  margin-bottom: 0 !important;
}

@media (min-width: 960px) and (max-width: 1279px) {
  .guides__cards-container {
    display: grid;
    grid-template-columns: repeat(4, 240px);
    grid-auto-rows: 270px;
    justify-content: center;
    gap: 0;
  }

  .guides__card:nth-of-type(1) {
    grid-area: 1 / 1 / 3 / 3;
  }
  .guides__card:nth-of-type(2) {
    grid-area: 1 / 3 / 2 / 4;
  }
  .guides__card:nth-of-type(3) {
    grid-area: 1 / 4 / 2 / 5;
  }
  .guides__card:nth-of-type(4) {
    grid-area: 3 / 1 / 4 / 3;
  }
  .guides__card:nth-of-type(5) {
    grid-area: 2 / 3 / 4 / 5;
  }
}

@media (min-width: 1280px) {
  .guides__cards-container {
    display: grid;
    grid-template-columns: repeat(4, 320px);
    grid-auto-rows: 360px;
    justify-content: center;
  }

  .guides__card:nth-of-type(1) {
    grid-area: 1 / 1 / 3 / 3;
  }
  .guides__card:nth-of-type(2) {
    grid-area: 1 / 3 / 2 / 4;
  }
  .guides__card:nth-of-type(3) {
    grid-area: 1 / 4 / 2 / 5;
  }
  .guides__card:nth-of-type(4) {
    grid-area: 3 / 1 / 4 / 3;
  }
  .guides__card:nth-of-type(5) {
    grid-area: 2 / 3 / 4 / 5;
  }
}
