@import url("../js/libs/fastbootstrap-2-2-0/dist/css/fastbootstrap.min-0AQUDI_.css");
@import url("../vendor/aos/dist/aos-5Oc4Zvh.css");
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@400;500&display=swap');

:root {
    --bg-cream: #FAF8F5;
    --bg-dark-green: #293528;
    --text-cream: #EAE6DF;
    --accent-terracotta: #D38C56;
    --color-terracotta-subtle: #CBB59D;
    --on-torn-paper-color: #2C2C2C;
    --color-green: #1B4D3E;
    --color-sage-green: #7A8B7B;
    --color-border-green: #6A836CFF;
}

body {
    background-color: var(--bg-cream);
    color: var(--on-torn-paper-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

.bg-library-cream {
    background-color: var(--bg-cream);
}

p, .body-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

thead, tbody, tfoot, tr, td, th {
    border: none;
}

header, footer a, .title,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Playfair Display', serif;
}

.subtitle, .body-text {
    font-family: "Inter", sans-serif;
}

footer .nav-link {
    color: var(--bg-dark-green);
}

/* --- Hero Section (Top) --- */
.hero-section {
    background-color: var(--bg-cream);
    color: var(--on-torn-paper-color);
    position: relative;
    padding-bottom: 120px;
}

.hero-catchphrase {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    max-width: 70%;
}

.book-grid-container {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.book-item {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-5px);
}

.brand-title {
    color: var(--color-green);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.bg-cream {
    background-color: var(--bg-cream);
}

.text-terracotta {
    color: var(--accent-terracotta);
}

.text-terracotta-subtle {
    color: var(--color-terracotta-subtle);
}

.text-green {
    color: var(--color-green);
}

.text-green-subtle {
    color: var(--color-border-green);
}

/* --- Buttons & Navigation --- */
.navbar-custom .nav-link {
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover {
    color: var(--accent-terracotta);
}

.btn-custom-outline {
    border: 2px solid var(--accent-terracotta);
    color: var(--accent-terracotta);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 500;
    text-transform: capitalize;
    border-radius: 0; /* Sharp edges to match the design */
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-custom-outline:hover {
    background-color: var(--accent-terracotta);
    color: var(--bg-dark-green);
}

.btn-custom-solid {
    background-color: var(--bg-cream);
    color: var(--on-torn-paper-color);
    border: 2px solid var(--bg-dark-green);
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    border-radius: 0;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-custom-solid:hover {
    background-color: transparent;
    color: var(--bg-dark-green);
}

/* --- Author Call to Action Section --- */
.cta-section {
    position: relative;
    background-color: var(--bg-dark-green);
    padding: 4rem 2rem 6rem 2rem;
    clip-path: polygon(
        0% 4%, 5% 3%, 10% 4%, 15% 3%, 20% 4%, 25% 3%,
        30% 4%, 35% 2%, 40% 4%, 45% 3%, 50% 8%, 55% 2%,
        60% 4%, 65% 3%, 70% 3%, 75% 2%, 80% 4%, 85% 3%,
        90% 4%, 95% 3%, 100% 4%, 100% 100%, 0% 100%);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--bg-cream, #CBB59D);
    clip-path: polygon(
        0% 40%, 5% 35%, 10% 42%, 15% 30%, 20% 45%, 25% 35%,
        30% 40%, 35% 25%, 40% 45%, 45% 30%, 50% 38%, 55% 25%,
        60% 45%, 65% 30%, 70% 38%, 75% 25%, 80% 42%, 85% 35%,
        90% 45%, 95% 30%, 100% 40%, 100% 100%, 0% 100%
    );
    z-index: 2;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-terracotta);
}

.cta-section p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-cream);
}

/* --- Torn Paper Effect --- */
.torn-paper {
    width: 100%;
    background-color: var(--color-terracotta-subtle);
    /* Using a clip-path polygon for a jagged paper edge */
    clip-path: polygon(
        0% 4%, 5% 3%, 10% 4%, 15% 3%, 20% 4%, 25% 3%,
        30% 4%, 35% 2%, 40% 4%, 45% 3%, 50% 3%, 55% 2%,
        60% 4%, 65% 3%, 70% 3%, 75% 2%, 80% 4%, 85% 3%,
        90% 4%, 95% 3%, 100% 4%, 100% 100%, 0% 100%
    );
    z-index: 10;
}

/* --- Breadcrumb --- */
.breadcrumb-link {
    color: var(--on-torn-paper-color);
    text-decoration: none;
    font-size: 0.85rem;
}
.breadcrumb-link:hover {
    color: var(--color-green);
}
.breadcrumb-current {
    font-size: 0.85rem;
    font-weight: bold;
}

/* --- Carousel Adjustments --- */
.book-carousel-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* --- zoomable image --- */
.zoomable-image {
    cursor: zoom-in;
    transition: opacity 0.2s ease-in-out;
}

.zoomable-image:hover {
    opacity: 0.9;
}

.modal-backdrop.show {
    opacity: 0.85;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1199.98px) {
    .book-cover {
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 991.98px) {
    .book-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-title {
        font-size: 3.5rem;
    }
    .content-container {
        padding: 2rem;
    }
    .hero-catchphrase { max-width: max-content; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 575.98px) {
    .brand-title {
        font-size: 2.8rem;
    }
    .hero-catchphrase { font-size: 1.2rem; }
    .hero-title { font-size: 2rem; }
}
