.bottom-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 8rem) 1.5rem;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bottom-cta--books {
  padding-bottom: 0;
}

.bottom-cta__ribbon {
  position: absolute;
  top: 2.25rem;
  left: -4.5rem;
  z-index: 4;
  width: 15rem;
  padding: 0.95rem 0;
  background: #f6a623;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.bottom-cta__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.35;
}

.bottom-cta__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.65) 100%
  );
  z-index: 2;
}

.bottom-cta__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.bottom-cta__library-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
}

.bottom-cta__books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  justify-items: center;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.bottom-cta__book {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.bottom-cta__book-image {
  width: min(14rem, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.24));
}

.bottom-cta__author {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  height: 100%;
}

.bottom-cta__author-image {
  display: block;
  width: min(40rem, 100%);
  max-height: 38rem;
  object-fit: contain;
  object-position: center bottom;
  vertical-align: bottom;
}

.bottom-cta__box {
  border: 2px solid #e2e8f0;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  max-width: 48rem;
  width: 100%;
}

.bottom-cta__title {
  margin: 0 0 1.5rem;
  font-family:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.bottom-cta__subtitle {
  margin: 0 auto 2.5rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 35rem;
}

.bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: "Neuzeit Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 5px;
  color: #000000;
  background-color: var(--CTA-Default);
  transition: all 0.3s ease;
  border: none;
}

.bottom-cta__button:hover {
  box-shadow: var(--CTA-Shadow);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .bottom-cta {
    padding-top: 4rem;
  }

  .bottom-cta__ribbon {
    top: 1.5rem;
    left: -5.25rem;
    width: 14rem;
    font-size: 0.8rem;
  }

  .bottom-cta__library-layout,
  .bottom-cta__books {
    grid-template-columns: minmax(0, 1fr);
  }

  .bottom-cta__author {
    justify-content: center;
  }

  .bottom-cta__author-image {
    width: min(24rem, 100%);
  }

  .bottom-cta__box {
    border-width: 1px;
    padding: 3rem 1.5rem;
  }
}
