.drop-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-180px);

    animation: dropLetter 0.7s forwards;
    animation-delay: calc(var(--i) * 0.08s);
}

.drop-text span:nth-child(1)  { --i: 1; }
.drop-text span:nth-child(2)  { --i: 2; }
.drop-text span:nth-child(3)  { --i: 3; }
.drop-text span:nth-child(4)  { --i: 4; }
.drop-text span:nth-child(5)  { --i: 5; }
.drop-text span:nth-child(6)  { --i: 6; }
.drop-text span:nth-child(7)  { --i: 7; }
.drop-text span:nth-child(8)  { --i: 8; }
.drop-text span:nth-child(9)  { --i: 9; }
.drop-text span:nth-child(10) { --i: 10; }
.drop-text span:nth-child(11) { --i: 11; }
.drop-text span:nth-child(12) { --i: 12; }
.drop-text span:nth-child(13) { --i: 13; }
.drop-text span:nth-child(14) { --i: 14; }
.drop-text span:nth-child(15) { --i: 15; }
.drop-text span:nth-child(16) { --i: 16; }
.drop-text span:nth-child(17) { --i: 17; }
.drop-text span:nth-child(18) { --i: 18; }



/* =========================================
   BOOK COLLECTION SECTION
========================================= */

.book-collection-section {
    padding: 90px 0;
    background: #f4e5c5;
}


/* =========================================
   SECTION HEADING
========================================= */

.book-section-heading {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.book-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 2px;

    color: #9a6725;
}

.book-section-heading h2 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 48px;
    font-weight: 700;

    color: #4b2b17;
}

.book-heading-divider {
    width: 350px;
    height: 3px;

    margin: 20px auto;

    background: #b58a45;
}

.book-section-heading p {
    margin: 0;

    font-family: "Cormorant Garamond", Georgia, serif;

    font-size: 19px;
    line-height: 1.7;

    color: #60432a;
}


/* =========================================
   3 BOOKS GRID
========================================= */

.books-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;

    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================
   BOOK CARD
========================================= */

.book-card {
    display: flex;
    flex-direction: column;

    padding: 30px;

    

    border: 1px solid rgba(150, 105, 45, 0.2);

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(70, 40, 15, 0.18);
}


/* =========================================
   BOOK COVER
========================================= */

.book-cover-wrapper {
    margin-bottom: 25px;
}

.book-cover {
    width: 100%;
    max-width: 260px;

    height: 360px;

    object-fit: cover;

    display: block;

    margin: 0 auto;

    box-shadow:
        0 12px 25px rgba(60, 35, 15, 0.3);

    transition:
        transform 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.02);
}


/* =========================================
   BOOK INFORMATION
========================================= */

.book-info {
    display: flex;
    flex-direction: column;

    flex-grow: 1;

    align-items: center;
}

.book-info h3 {
    margin-bottom: 15px;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 27px;
    font-weight: 700;

    color: #4b2b17;
}

.book-info p {
    min-height: 90px;

    margin-bottom: 25px;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 18px;

    line-height: 1.6;

    color: #000000;
}


/* =========================================
   VIEW DETAILS BUTTON
========================================= */

.book-details-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: auto;

    padding: 12px 24px;

    border: none;

    border-radius: 3px;

    background: #6b3f1d;

    color: #fff5df;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-details-btn:hover {
    background: #8c5b22;

    color: #fff5df;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(70, 40, 15, 0.2);
}

.book-details-btn i {
    transition: transform 0.3s ease;
}

.book-details-btn:hover i {
    transform: translateX(4px);
}


/* =========================================
   BOOK MODAL
========================================= */

.book-modal {
    background: #f4e5c5;

    border: none;

    border-radius: 5px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(30, 15, 5, 0.4);
}


/* =========================================
   MODAL HEADER
========================================= */

.book-modal .modal-header {
    padding: 20px 30px;

    background: #4b2b17;

    border-bottom: 2px solid #b58a45;
}

.book-modal .modal-title {
    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 25px;
    font-weight: 700;

    color: #f4dfb0;
}

.book-modal .btn-close {
    filter: invert(1);

    opacity: 0.8;
}

.book-modal .btn-close:hover {
    opacity: 1;
}


/* =========================================
   MODAL BODY
========================================= */

.book-modal .modal-body {
    padding: 40px;
}

.modal-book-content {
    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 40px;

    align-items: center;
}


/* =========================================
   MODAL BOOK COVER
========================================= */

.modal-book-cover {
    text-align: center;
}

.modal-book-cover img {
    width: 100%;

    max-width: 220px;

    height: auto;

    display: block;

    margin: 0 auto;

    box-shadow:
        0 10px 25px rgba(60, 35, 15, 0.3);
}


/* =========================================
   MODAL BOOK INFORMATION
========================================= */

.modal-book-info {
    color: #4b2b17;
}

.modal-genre {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 600;

    color: #9a6725;
}

.modal-genre i {
    font-size: 14px;
}

.modal-book-info h3 {
    margin-bottom: 15px;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 30px;
    font-weight: 700;

    color: #4b2b17;
}

.modal-book-info p {
    margin-bottom: 15px;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 18px;

    line-height: 1.8;

    color: #60432a;

    text-align: justify;
}


/* =========================================
   AMAZON BUTTON
========================================= */

.amazon-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 10px;

    padding: 13px 24px;

    background: #6b3f1d;

    color: #fff5df;

    text-decoration: none;

    border-radius: 3px;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.amazon-btn:hover {
    background: #8c5b22;

    color: #fff5df;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(70, 40, 15, 0.2);
}

.amazon-btn i {
    font-size: 18px;
}


/* =========================================
   MODAL BACKDROP
========================================= */

.modal-backdrop.show {
    opacity: 0.7;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .books-grid {
        grid-template-columns: repeat(2, 1fr);

        max-width: 800px;
    }

    .book-card {
        padding: 25px;
    }

    .book-cover {
        height: 330px;
    }

    .modal-book-content {
        grid-template-columns: 200px 1fr;

        gap: 30px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .book-collection-section {
        padding: 60px 20px;
    }

    .book-section-heading {
        margin-bottom: 40px;
    }

    .book-section-heading h2 {
        font-size: 38px;
    }

    .book-section-heading p {
        font-size: 18px;
    }

    .books-grid {
        grid-template-columns: 1fr;

        max-width: 400px;
    }

    .book-cover {
        height: auto;

        max-width: 280px;
    }

    .book-info h3 {
        font-size: 25px;
    }

    .book-info p {
        min-height: auto;

        font-size: 18px;
    }

    /* Modal */

    .book-modal .modal-body {
        padding: 25px 20px;
    }

    .modal-book-content {
        grid-template-columns: 1fr;

        gap: 25px;

        text-align: center;
    }

    .modal-book-cover img {
        max-width: 200px;
    }

    .modal-book-info h3 {
        font-size: 26px;
    }

    .modal-book-info p {
        font-size: 17px;

        text-align: left;
    }

    .modal-genre {
        justify-content: center;
    }

    .amazon-btn {
        width: 100%;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .book-collection-section {
        padding: 50px 15px;
    }

    .book-card {
        padding: 20px;
    }

    .book-cover {
        max-width: 240px;
    }

    .book-section-heading h2 {
        font-size: 34px;
    }

}







.modal-book-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: block;
}

.modal-book-info {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.modal-book-info p {
    font-size: 22px;
    line-height: 1.75;

    text-align: left;

    margin-bottom: 25px;
}




/* =========================================
   MEDIUM-WIDE BOOK MODAL
========================================= */

.book-modal-dialog {
    width: 80vw !important;
    max-width: 1200px !important;

    margin: 4vh auto !important;
}


/* MODAL */
.book-modal {
    width: 100%;
    background: #f4e5c5;

    border: none;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}


/* HEADER */
.book-modal .modal-header {
    padding: 22px 35px;

    background: #4b2b17;

    border-bottom: 2px solid #b58a45;
}

.book-modal .modal-title {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 30px;
    font-weight: 700;

    color: #f4dfb0;
}


/* BODY */
.book-modal .modal-body {
    padding: 45px 65px;

    max-height: 82vh;

    overflow-y: auto;
}


/* TEXT CONTENT */
.modal-book-content {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;
}

.modal-book-info {
    width: 100%;
}


/* GENRE */
.modal-genre {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    font-family: "Inter", sans-serif;

    font-size: 16px;
    font-weight: 600;

    color: #9a6725;
}


/* TITLE */
.modal-book-info h3 {
    margin: 0 0 22px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 38px;

    color: #4b2b17;
}


/* DESCRIPTION */
.modal-book-info p {
    margin: 0 0 24px;

    font-family: "Cormorant Garamond", Georgia, serif;

    font-size: 22px;

    line-height: 1.65;

    color: #60432a;

    text-align: left;

    word-spacing: normal;

    letter-spacing: normal;
}


/* AMAZON BUTTON */
.amazon-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 10px;

    padding: 14px 28px;

    background: #6b3f1d;

    color: #fff5df;

    text-decoration: none;

    border-radius: 5px;

    font-family: "Inter", sans-serif;

    font-size: 15px;
    font-weight: 600;

    transition: 0.3s ease;
}

.amazon-btn:hover {
    background: #8c5b22;

    color: #fff5df;

    transform: translateY(-2px);
}


/* TABLET */
@media (max-width: 992px) {

    .book-modal-dialog {
        width: 90vw !important;
        max-width: 900px !important;
    }

    .book-modal .modal-body {
        padding: 40px;
    }

    .modal-book-info p {
        font-size: 20px;
    }

}


/* MOBILE */
@media (max-width: 576px) {

    .book-modal-dialog {
        width: 94vw !important;

        margin: 2vh auto !important;
    }

    .book-modal .modal-header {
        padding: 18px 20px;
    }

    .book-modal .modal-body {
        padding: 30px 25px;

        max-height: 85vh;
    }

    .book-modal .modal-title {
        font-size: 24px;
    }

    .modal-book-info h3 {
        font-size: 30px;
    }

    .modal-book-info p {
        font-size: 19px;

        line-height: 1.6;
    }

    .amazon-btn {
        width: 100%;
    }

}


.modal-book-info p {
    margin: 0 0 24px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    line-height: 1.65;

    color: #60432a;

    text-align: justify;
    text-indent: 35px;
}




/* Center the book title in the modal header */
.book-modal .modal-title {
    text-align: center;
    width: 100%;
}

/* Center the genre */
.modal-book-info .modal-genre {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Center "About the Book" */
.modal-book-info h3 {
    text-align: center;
}












/* =========================================
   BOOK COVER - SLIGHTLY BIGGER
========================================= */

.book-cover-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover {
    width: 100%;
    max-width: 330px;
    height: auto;

    display: block;

    transition: transform 0.3s ease;
}


/* =========================================
   BOOK TITLE - SLIGHTLY BIGGER
========================================= */

.book-info h3 {
    font-size: 27px;
    line-height: 1.3;

    margin-top: 20px;
    margin-bottom: 12px;
}


/* =========================================
   BOOK DESCRIPTION - SLIGHTLY BIGGER
========================================= */

.book-info p {
    font-size: 25px;
    line-height: 1.65;

    margin-bottom: 20px;
}


/* =========================================
   VIEW DETAILS BUTTON
========================================= */

.book-details-btn {
    font-size: 15px;
    padding: 12px 22px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .book-cover {
        max-width: 280px;
    }

    .book-info h3 {
        font-size: 24px;
    }

    .book-info p {
        font-size: 17px;
    }

}



.book-section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 8px 25px rgba(139, 111, 34, 0.5);
}



.book-section-heading p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.3px;
    max-width: 750px;
    margin: 0 auto;
}
















/* =========================================
   BOOK SECTION SCROLL ANIMATION
========================================= */

/* Hidden state before scrolling */
.book-collection-section .book-section-heading,
.book-collection-section .book-card {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


/* Visible state after scrolling */
.book-collection-section.animate .book-section-heading,
.book-collection-section.animate .book-card {
    opacity: 1;
    transform: translateY(0);
}


/* Book cards appear one by one */
.book-collection-section.animate .book-card:nth-child(1) {
    transition-delay: 0.2s;
}

.book-collection-section.animate .book-card:nth-child(2) {
    transition-delay: 0.4s;
}

.book-collection-section.animate .book-card:nth-child(3) {
    transition-delay: 0.6s;
}















/* ==========================================
   BOOK COLLECTION SECTION BACKGROUND
========================================== */

.book-collection-section {
    position: relative;
    padding: 100px 0;
    background-image: url("Images/about bg.png"); /* Change path if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

/* Overlay */
.book-collection-section::before {
    content: "";
    position: absolute;
    inset: 0;
   background: rgba(0, 0, 0, 0.055);
    z-index: 1;
}

/* Keep everything above the overlay */
.book-collection-section .container {
    position: relative;
    z-index: 2;
}












.book-section-label {
    font-family: Georgia, serif;
    font-size: 2rem; /* Adjust as needed */
    font-weight: bold;
    color: #8b5a24;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.book-section-label i {
    font-size: 0.95em;
}