/* ========================================
   HOME PAGE CSS
   ======================================== */

.home-book-card {
    flex: 0 0 auto;
}

.home-book-card a {
    display: block;
    background: var(--red-border);
    padding: 14px;
    border-radius: 5px;
    transition: transform 0.2s;
}

.home-book-card a:hover {
    transform: scale(1.02);
}

.home-book-cover {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #000;
}

.home-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px;
}

.home-quote {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--white);
}

.home-author {
    font-size: 1.05rem;
    opacity: 0.9;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.home-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    padding-bottom: 0px;
}

.card-image {
    max-width: 170px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .home-book-cover {
        max-width: 230px;
    }

    .home-quote {
        font-size: 1.05rem;
    }

    .home-nav-card {
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .home-book-card a {
        padding: 10px;
    }

    .home-book-cover {
        max-width: 170px;
    }

    .home-right-col {
        padding: 12px;
        gap: 18px;
    }

    .home-quote {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .home-author {
        font-size: 0.9rem;
    }

    .home-buttons {
        gap: 12px;
    }

    .home-nav-card {
        min-height: 110px;
        padding: 10px;
    }

    .card-image {
        max-width: 110px;
    }
}
