.book-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 4px 40px;
}

.book-stage {
    position: relative;
    border-radius: 24px;
    padding: 28px 22px 36px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(218, 178, 93, 0.16), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(56, 120, 180, 0.10), transparent 45%),
        var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: bookFade 0.7s ease-out both;
}

.book-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%);
}

.book-kicker {
    position: relative;
    display: inline-block;
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: var(--primary-color, #dab25d);
    font-family: Kalameh, Arial, sans-serif;
    letter-spacing: 0.02em;
}

.book-cover-wrap {
    position: relative;
    margin: 0 auto 22px;
    width: min(42vw, 220px);
    max-width: 220px;
    animation: bookCoverIn 0.85s cubic-bezier(.22, 1, .36, 1) 0.1s both;
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.book-cover-wrap:hover .book-cover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.book-title {
    position: relative;
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 4.2vw, 2rem);
    line-height: 1.45;
    color: var(--text-primary);
    font-family: Kalameh, Arial, sans-serif;
    font-weight: 700;
    animation: bookFade 0.7s ease-out 0.2s both;
}

.book-author {
    position: relative;
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-family: Kalameh, Arial, sans-serif;
}

.book-body {
    position: relative;
    margin: 0 auto 28px;
    max-width: 38rem;
    text-align: justify;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 2.05;
    font-family: Kalameh, Arial, sans-serif;
    animation: bookFade 0.75s ease-out 0.28s both;
}

.book-body p {
    margin: 0 0 1em;
}

.book-body p:last-child {
    margin-bottom: 0;
}

.book-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 14px;
    text-decoration: none;
    font-family: Kalameh, Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    background: linear-gradient(135deg, var(--primary-color, #dab25d), #c49a45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(218, 178, 93, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: bookFade 0.75s ease-out 0.38s both;
}

.book-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 34px rgba(218, 178, 93, 0.38);
    color: #111827;
}

.book-cta svg {
    flex-shrink: 0;
}

@keyframes bookFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bookCoverIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .book-page {
        padding: 0 0 28px;
    }

    .book-stage {
        padding: 22px 16px 28px;
        border-radius: 18px;
    }

    .book-cover-wrap {
        width: min(48vw, 170px);
        max-width: 170px;
        margin-bottom: 18px;
    }

    .book-body {
        font-size: 0.95rem;
        line-height: 1.95;
        text-align: right;
    }

    .book-cta {
        width: 100%;
        max-width: 320px;
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

@media (min-width: 900px) {
    .book-cover-wrap {
        width: 200px;
        max-width: 200px;
    }
}

.books-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 0 auto 2rem;
    width: 100%;
    min-width: 0;
}

.books-index__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    padding: 18px 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(218, 178, 93, 0.22);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.books-index__card:hover {
    transform: translateY(-4px);
    border-color: rgba(218, 178, 93, 0.45);
}

.books-index__cover {
    display: block;
    width: min(160px, 100%);
    height: auto;
    max-height: 220px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: transparent;
    border-radius: 10px;
    margin-bottom: 14px;
}

.books-index__title {
    margin: 0 0 8px;
    font-family: Kalameh, Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.books-index__desc {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.books-index__btn {
    display: inline-flex;
    margin-top: auto;
}

@media (max-width: 375px) {
    .books-index__card {
        padding: 14px 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-stage,
    .book-cover-wrap,
    .book-title,
    .book-body,
    .book-cta,
    .books-index__card {
        animation: none;
    }

    .book-cover-wrap:hover .book-cover,
    .book-cta:hover,
    .books-index__card:hover {
        transform: none;
    }
}
