.hero {
  position: relative;
  height: 550px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.hero .container {
  height: 100%;
}

.hero .content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-bottom: 4rem;
}

.hero-copy {
  width: 500px;
  margin-left: 25%;
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  height: 29px;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-h4);
  letter-spacing: .015em;
  background: var(--red);
  border-radius: 3px 18px 18px 3px;
}

.hero h1 {
  margin: 1rem 0;
  color: var(--red);
  font-size: 3rem;
  font-weight: var(--weight-bold);
  line-height: var(--leading-h1);
  letter-spacing: .02em;
}

.hero h1 strong {
  color: #24201d;
  font-weight: var(--weight-bold);
}

.hero p {
  margin: 0 0 2.5rem;
  font-size: 1.2rem;
  line-height: var(--leading-body);
}

.hero .primary-btn {
  font-size: 1.5rem;
}
.benefits {
  padding: 20px 0 12px;
  margin-top: -100px;
  position: relative;
  z-index: 1;
}

.benefits .container {
  position: relative;
  border: 2px solid var(--red);
  padding: 5px;
  background-color: var(--paper);
  border-radius: 5px;
}

.benefits > .container > .head {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.benefits-decor-image {
  position: absolute;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.benefits-decor-image-top-left {
  top: 2px;
  left: 2px;
  transform: rotate(90deg);
}

.benefits-decor-image-top-right {
  top: 2px;
  right: 2px;
  transform: rotate(180deg);
}

.benefits-decor-image-bottom-left {
  bottom: 2px;
  left: 2px;
}

.benefits-decor-image-bottom-right {
  right: 2px;
  bottom: 2px;
  transform: rotate(-90deg);
}

.benefits .content {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit-item {
  padding: 1rem 2rem;
  text-align: center;
  border-right: 1px solid #d7a992;
}

.benefit-item:last-child {
  border-right: 0;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
  color: var(--red);
  font-size: var(--text-h4);
  line-height: 1;
  border: 1px solid #c58b79;
  border-radius: 50%;
}

.benefit-item h3 {
  margin: 0 0 6px;
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-h4);
}

.benefit-item p {
  margin: 0;
  color: #6d5b50;
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.courses {
  padding: 1rem 0;
  position: relative;
}

.courses .container,
.posts .container {
  position: relative;
}

.head {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.courses .head,
.posts .head {
  position: relative;
  height: 70px;
}

.title {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-h2);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.head-image {
  display: block;
  width: auto;
  object-fit: contain;
}

.head-image-before {
  max-width: 52px;
  max-height: 70px;
}

.head-image-after {
  max-width: 74px;
  max-height: 32px;
  margin-top: 6px;
}

.courses .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.courses .foot,
.posts .foot {
  position: absolute;
  top: 0;
  right: 0;
  height: 70px;
  display: grid;
  place-content: center;
}

.about {
  position: relative;
  padding: 13px 0 10px;
}

.about-decor-image {
  position: absolute;
  top: 0;
  right: -20px;
  height: 150%;
  pointer-events: none;
}

.about .content {
  display: grid;
  grid-template-columns: 33.33% 1fr 30%;
  gap: 1rem;
  align-items: center;
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    width: calc(min(100%, 1240px) / 3 + max((100% - 1240px) / 2, 0px));
    padding-right: .5rem;
    margin: 0 auto;
    pointer-events: none;
}

.about-copy .title {
  margin-bottom: 12px;
}

.about-copy p {
  margin: 0 0 14px;
  color: #574b44;
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

.about-panel {
  padding: 12px 18px 12px 22px;
  border: 1px solid #ddb99f;
  border-radius: 5px;
}

.about-panel article {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.about-panel article:last-child {
  margin-bottom: 0;
}

.about-panel article::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  content: "";
}

.about-panel h3 {
  margin: 0 0 7px;
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-h4);
}

.about-panel p {
  margin: 0;
  color: #67584e;
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.posts {
  position: relative;
  padding: 0 0 20px;
}

.posts .content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
  margin-top: 14px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card .card-body {
  padding: 7px 10px 8px;
}

.post-card time {
  display: block;
  margin-bottom: 4px;
  color: #9a5b42;
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.post-card h3 {
  min-height: 0;
  color: #2b211d;
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-h3);
}

.post-card p {
  min-height: 0;
  margin-bottom: 5px;
}

.posts .foot {
  top: 6px;
}
