/* Ebook identity: navy and gold distinguish this catalogue */
.catalog-hero h1 span {
    color: #b7791f !important;
}

.catalog-hero .catalog-eyebrow span,
.partner-label span {
    background: #d7ae46;
}

.catalog-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(215, 174, 70, 0.16), transparent 28rem),
        linear-gradient(180deg, #fff, #f8fafc);
}

/* Ebook catalogue introduction */
.ebook-catalogue {
    padding: 4rem 0 7rem !important;
    background: #f8fafc;
}

.catalogue-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: 72rem;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 2.5rem;
}

.ebook-kicker {
    color: #9a6818;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ebook-grid {
    display: grid;
    gap: 2rem;
}

.ebook-card:hover {
    border-color: #d7ae46 !important;
}

/* Featured ebook card */
.ebook-card {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
    max-width: 72rem;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
}

.ebook-cover-wrap {
    position: relative;
    min-height: 34rem;
    overflow: hidden;
    background: #0b2345;
}

.ebook-cover-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(transparent, rgba(6, 26, 67, 0.38));
    pointer-events: none;
}

.ebook-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.featured-label {
    position: absolute;
    z-index: 2;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    color: #76500f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.18);
}

.ebook-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.partner-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.partner-label span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #2563eb;
}

.ebook-card h3 {
    color: #0f172a;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
}

.ebook-author {
    margin-top: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.ebook-description {
    max-width: 38rem;
    margin-top: 1.75rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}

.ebook-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.ebook-meta span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #f0ddb1;
    background: #fffaf0;
    color: #76500f;
    font-size: 0.75rem;
    font-weight: 700;
}

.ebook-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.details-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: 0.5rem;
    background: #1d3557;
    color: #fff;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

.details-button:hover {
    transform: translateY(-3px);
    background: #0b2a66;
}

.details-button span {
    transition: transform 0.25s ease;
}

.details-button:hover span {
    transform: translateX(4px);
}

.read-link {
    color: #9a6818;
    font-weight: 700;
}

.read-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

/* Collection information */
.ebook-note {
    padding: 6rem 0 !important;
    background: #fff;
}

.ebook-note-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem;
    border: 1px solid #ead9ae;
    border-radius: 1rem;
    background: linear-gradient(120deg, #fff, #fff8e8);
}

.note-mark {
    color: rgba(183, 121, 31, 0.18);
    font-family: "DM Sans", sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 767px) {
    .ebook-catalogue {
        padding: 3rem 0 5rem !important;
    }

    .catalogue-heading {
        display: block;
    }

    .catalogue-heading > p {
        margin-top: 1rem;
    }

    .ebook-card {
        grid-template-columns: 1fr;
    }

    .ebook-cover-wrap {
        min-height: 30rem;
    }

    .ebook-card-content {
        padding: 2rem 1.5rem;
    }

    .ebook-actions,
    .details-button {
        width: 100%;
    }

    .details-button {
        justify-content: center;
    }

    .ebook-note-card {
        padding: 2rem 1.5rem;
    }

    .note-mark {
        display: none;
    }
}
