/* Explore eBooks page styles only. */
.ebooks-page {
  --ebooks-ink: #203b35;
  --ebooks-muted: #667a75;
  --ebooks-green: #78b90d;
  --ebooks-gold: #f5ad28;
  color: var(--ebooks-ink);
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.ebooks-page h1,
.ebooks-page h2,
.ebooks-page h3,
.ebooks-page .ebooks-footer-brand {
  font-family: "Raleway", sans-serif;
}

.ebooks-hero {
  overflow: hidden;
  padding: 205px 0 62px;
  background: linear-gradient(115deg, #f7f8ee 0%, #fbf8f0 58%, #f3f7ed 100%);
}

.ebooks-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #bd8320;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ebooks-eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--ebooks-gold);
}

.ebooks-hero h1 {
  margin: 0 0 17px;
  color: var(--ebooks-ink);
  font-size: clamp(2.6rem, 5.2vw, 4.55rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.ebooks-lead {
  max-width: 560px;
  margin: 0 0 27px;
  color: var(--ebooks-muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.ebooks-primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 20px;
  border: 1px solid #6eaa0b;
  border-radius: 999px;
  background: var(--ebooks-green);
  color: #fff;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.ebooks-primary-link:hover,
.ebooks-primary-link:focus-visible {
  transform: translateY(-2px);
  background: #639c05;
  color: #fff;
}

.ebooks-hero-art {
  position: relative;
  display: flex;
  min-height: 350px;
  align-items: center;
  justify-content: center;
}

.ebooks-cover {
  position: absolute;
  width: min(52%, 245px);
  height: 310px;
  border: 7px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(34, 58, 49, 0.2);
  object-fit: cover;
}

.ebooks-cover-back {
  left: 14%;
  transform: rotate(-9deg) translateY(8px);
}

.ebooks-cover-front {
  right: 15%;
  transform: rotate(7deg) translateY(-4px);
}

.ebooks-art-note {
  position: absolute;
  right: 2%;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid #e9eee1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 58, 49, 0.1);
  color: #526660;
  font-size: 0.82rem;
  font-weight: 600;
}

.ebooks-art-note i {
  color: var(--ebooks-green);
}

.ebooks-catalog {
  padding: 76px 0 84px;
}

.ebooks-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.ebooks-catalog-heading .ebooks-eyebrow {
  margin-bottom: 9px;
}

.ebooks-catalog-heading h2 {
  margin: 0;
  color: var(--ebooks-ink);
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.ebooks-catalog-intro {
  margin: 9px 0 0;
  color: var(--ebooks-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ebooks-search {
  display: flex;
  width: min(100%, 340px);
  min-height: 48px;
  flex: 0 0 340px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #dfe8dc;
  border-radius: 999px;
  background: #fff;
  color: #7d9184;
}

.ebooks-search:focus-within {
  border-color: #9bc96b;
  box-shadow: 0 0 0 3px rgba(120, 185, 13, 0.12);
}

.ebooks-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ebooks-ink);
  font: inherit;
  font-size: 0.86rem;
}

.ebooks-search input::placeholder {
  color: #98a69e;
}

.ebooks-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.ebook-filter {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #e2eae0;
  border-radius: 999px;
  background: #fff;
  color: #53685f;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ebook-filter:hover,
.ebook-filter.is-active {
  border-color: #76b50d;
  background: #78b90d;
  color: #fff;
}

.ebook-filter:focus-visible {
  outline: 3px solid rgba(120, 185, 13, 0.25);
  outline-offset: 2px;
}

.ebooks-result-count {
  margin: 0 0 17px;
  color: #84918c;
  font-size: 0.82rem;
}

.ebook-result[hidden] {
  display: none !important;
}

.ebook-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #78b90d;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 61, 49, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ebook-card:hover {
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.22);
}

.ebook-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: #f3f5ef;
}

.ebook-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px 13px 0 0;
  object-fit: cover;
  object-position: center;
  transition: transform 250ms ease;
}

.ebook-card:hover .ebook-card-cover img {
  transform: scale(1.06);
}

.ebook-card-cover span {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #446451;
  font-size: 0.69rem;
  font-weight: 700;
}

.ebook-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 26px 26px;
}

.ebook-card-category {
  display: block;
  margin: 0 0 6px;
  color: #7b8790;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.ebook-card h3 {
  min-height: 1.4em;
  margin: 0 0 8px;
  color: #45595b;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.ebook-card-body > p:not(.ebook-card-category) {
  min-height: 4.5em;
  margin: 0 0 18px;
  color: #7b8790;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.ebook-card-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 0;
}

.ebook-card-offer { min-width: 0; }
.ebook-card-rating { color: #f3ad00; font-size: 1.15rem; letter-spacing: -.08em; line-height: 1.1; white-space: nowrap; }
.ebook-card-mrp { margin: 4px 0 0; color: #7b8790; font-size: .88rem; line-height: 1.2; white-space: nowrap; }
.ebook-card-mrp del { color: #7b8790; }
.ebook-card-price { margin: 3px 0 0; color: #45595b; font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.ebook-card-link { display: inline-flex; flex: 0 0 auto; min-height: 46px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid #ffb524; border-radius: 999px; background: #fff; color: #78b90d; font-size: .92rem; font-weight: 700; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.ebook-card-link:hover, .ebook-card-link:focus-visible { border-color: #78b90d; background: #78b90d; color: #fff; }
.ebook-card-link:focus-visible { outline: 3px solid rgba(120, 185, 13, .25); outline-offset: 2px; }


.ebooks-empty {
  margin: 22px 0 0;
  padding: 28px;
  border: 1px dashed #d9e4d3;
  border-radius: 14px;
  background: #f8faf6;
  color: var(--ebooks-muted);
  text-align: center;
}

.ebooks-bottom-cta {
  padding: 36px 0;
  background: #f5f8ef;
}

.ebooks-bottom-cta .ebooks-eyebrow {
  margin-bottom: 7px;
}

.ebooks-bottom-cta h2 {
  margin: 0;
  color: var(--ebooks-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
}

.ebooks-footer {
  padding: 24px 0;
  border-top: 1px solid #edf1ec;
  background: #fff;
}

.ebooks-footer-brand {
  color: var(--ebooks-ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.ebooks-footer-brand span {
  color: var(--ebooks-green);
}

.ebooks-footer p {
  margin: 0;
  color: #778780;
  font-size: 0.84rem;
}

.ebooks-footer > .container > div:last-child {
  display: flex;
  gap: 18px;
}

.ebooks-footer > .container > div:last-child a {
  color: #526660;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .ebooks-hero {
    padding-top: 145px;
  }

  .ebooks-catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .ebooks-search {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 767.98px) {
  .ebooks-hero {
    padding: 140px 0 40px;
  }

  .ebooks-hero-art {
    min-height: 285px;
    max-width: 460px;
    margin: 0 auto;
  }

  .ebooks-cover {
    height: 250px;
  }

  .ebooks-catalog {
    padding: 54px 0 62px;
  }
}

@media (max-width: 575.98px) {
  .ebooks-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
  }

  .ebooks-lead {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .ebooks-hero-art {
    min-height: 250px;
  }

  .ebooks-cover {
    width: 46%;
    height: 220px;
    border-width: 5px;
  }

  .ebooks-cover-back {
    left: 16%;
  }

  .ebooks-cover-front {
    right: 15%;
  }

  .ebooks-art-note {
    right: 0;
    bottom: -1px;
    padding: 9px 12px;
    font-size: 0.72rem;
  }

  .ebooks-filters {
    gap: 7px;
  }

  .ebook-filter {
    padding: 7px 10px;
    font-size: 0.73rem;
  }

  .ebook-card-body {
    padding: 18px 20px 22px;
  }

  .ebook-card h3 {
    min-height: 0;
  }

  .ebooks-bottom-cta .ebooks-primary-link {
    width: 100%;
  }

  .ebooks-footer > .container {
    align-items: flex-start !important;
  }
}
