.book-banner {
    position: relative;
    overflow: hidden;
    padding-top: 95px;
    height: 400px;
}

.book-banner-img {
    display: block;
    width: 100%;
    height: 305px;
    object-fit: cover;
    filter: blur(15px);
    transform: scale(1.05);
}

.book-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-shades-secondary);
    pointer-events: none;
    z-index: 1;
}

.book-banner .breadcrumbs {
    position: absolute;
    right: 0;
    left: 0;
    top: 135px;
    z-index: 2;
}

/* --- Layout container --------------------------------------------------- */
.book-info {
    align-items: flex-start;
    gap: 24px;
    padding-top: 0;
    padding-bottom: 48px;
}

/* --- Book cover --------------------------------------------------------- */
.book-info .book-cover {
    flex-shrink: 0;
    width: 333px;
    height: 490px;
    object-fit: cover;
    border: 4px solid var(--color-surface);
    transform: translateY(-150px);
    margin-bottom: -150px;
    z-index: 2;
    position: relative;
}

/* --- Card / text column ------------------------------------------------- */
.book-info .book-card {
    flex: 1;
    min-width: 0;
    padding-top: 32px;
    text-align: right;
    gap: 25px;
    width: 100%;
}

/* --- Title -------------------------------------------------------------- */
.book-card .book-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: var(--weight-medium);
    line-height: 1.5;
    color: var(--color-shades-primary);
    margin: 0 0 16px;
    max-width: 600px;
}

/* --- Metadata list ------------------------------------------------------ */
.book-card .book-metadata {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;

}

.book-metadata__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
}

.book-metadata__label {
    color: var(--color-shades-secondary);
    font-weight: var(--weight-medium);
}

.book-metadata__separator {
    color: var(--color-shades-tertiary);
    margin: 0 4px;
}

.book-metadata__value {
    color: var(--color-shades-primary);
    font-weight: var(--weight-medium);
}

/* --- Links / action buttons --------------------------------------------- */
.book-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    gap: 10px;
    width: 100%;

}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .book-info {
        flex-direction: column;
        /* cover comes first on mobile */
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 450px) {
    .book-banner {
        padding-top: 95px;
        height: 272px;
    }

    .book-banner-img {
        display: block;
        width: 100%;
        height: 177px;
        object-fit: cover;
        filter: blur(15px);
        transform: scale(1.05);
    }

    .book-info .book-cover {
        width: 200px;
        height: 294px;
        transform: translateY(-70px);
        margin-bottom: -70px;
    }

    .book-info .book-card {
        padding-top: 0;
        text-align: start;
        width: 100%;
    }

    .book-card .book-title {
        font-size: 22px;
    }

    .book-metadata__row {
        justify-content: start;
        flex-wrap: wrap;
    }

}


/* ==========================================================================
   Book action buttons
   ========================================================================== */

/* --- Shared base -------------------------------------------------------- */
.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 32px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: var(--weight-medium);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.book-btn--download span,
.book-btn--download i {
    color: var(--color-on-primary);
}

.book-btn--read span {
    color: var(--color-primary);
}

.book-btn:hover {
    transform: translateY(-2px);
}

.book-btn:active {
    transform: translateY(0);
}


/* --- Download button (filled, masked) ----------------------------------- */
.book-btn--download {
    min-width: 158px;
    color: var(--color-on-primary);
    background-color: var(--color-primary);

    -webkit-mask-image: url("/images/assets/download-btn-shape.svg");
    mask-image: url("/images/assets/download-btn-shape.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.book-btn--download .book-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--color-on-primary);
    color: var(--color-primary);
    font-size: 11px;
}

.book-btn--download:hover {
    filter: brightness(0.9);
}


/* --- Read button (outline, background-image) ---------------------------- */
.book-btn--read {
    min-width: 150px;
    color: var(--color-primary);
    background-color: transparent;
    background-image: url("/images/assets/read-btn-shape.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.book-btn--read:hover {
    filter: brightness(0.85);
}

.book-fair {
    gap: 24px;
    margin-bottom: 60px;
}

.book-fair__description {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    font-weight: var(--weight-medium);
    color: var(--color-shades-primary);
}

.book-fair .book-fair__branches {
    gap: 24px;
}

.book-fair__branch .location-icon {
    width: 48px;
    height: 48px;
    border-radius: 100%;
    border: 1px solid var(--color-shades-quad);
    color: var(--color-shades-primary);
    font-size: 20px;
}

.book-fair__branch-name {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    font-weight: var(--weight-medium);
    color: var(--color-shades-primary);
    max-width: 260px;
}

.book-fair__branch-address {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    font-weight: var(--weight-medium);
    color: var(--color-shades-secondary);
}

.book-fair__branch .address-name {
    gap: 8px;
}

.book-fair__branch-phone {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    unicode-bidi: embed;
}

.book-fair__branch-phone:hover {
    color: var(--color-primary);
}


.book-metadata__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.book-metadata__link:hover {
    opacity: 0.75;
    text-decoration: underline;
}







/* ==========================================================================
   Description (text_editor) — mirrors news profile pattern
   ========================================================================== */

.export-profile-content {
    margin-top: 32px;
    margin-bottom: 48px;
    text-align: justify;
    max-width: 100%;
}

.export-profile-content p {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-shades-primary);
    margin: 0 0 16px;
    text-align: justify;
}

.export-profile-content p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .export-profile-content {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .export-profile-content p {
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 450px) {
    .export-profile-content p {
        font-size: 14px;
    }
}