
/* ==============================
   ABOUT THE AUTHOR BANNER
============================== */

.contact-banner {
    position: relative;
    width: 100%;
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 20px;
    text-align: center;

    overflow: hidden;
    isolation: isolate;
}

/* BACKGROUND IMAGE */

.contact-banner-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 10%;

    z-index: -2;
}

/* IMAGE OVERLAY */

.contact-banner-overlay {
    position: absolute;
    inset: 0;

    background: rgba(245, 165, 0, 0.31);

    z-index: -1;
}

/* CONTENT */

.contact-banner-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1100px;

    margin: auto;
}

.contact-banner-content h2 {
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;

    color: #ffffff;

    line-height: 1.2;
    letter-spacing: 1.5px;

    margin: 0;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 768px) {
    .contact-banner {
        min-height: 380px;
        padding: 65px 20px;
    }

    .contact-banner-content h2 {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        min-height: 320px;
        padding: 55px 18px;
    }

    .contact-banner-content h2 {
        font-size: 29px;
        letter-spacing: 0.5px;
    }
}
































/* =========================================
   BOOK SHOWCASE SECTION
========================================= */

.books-showcase {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 55px 30px 80px;
    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.77),
            rgba(255, 255, 255, 0.82)
        ),
        url("images/books-background.jpg") center / cover no-repeat,
        #eee9e8;
}

/* BACKGROUND IMAGE */

.books-bg-image {
    position: absolute;
    inset: 0;
    z-index: -1;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 100% 40%;

    transform: scale(1.1);
    transform-origin: 100% 40%;

    opacity: 0.35;
    filter: blur(15px);

    pointer-events: none;
}

/* MAIN CONTAINER */

.books-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;

    align-items: start;
}

/* BOOK ITEM */

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

/* BOOK COVER IMAGE */

.book-image {
    width: 100%;
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

.book-image img {
    width: 400px;
    height: 370px;

    object-fit: contain;

    filter: drop-shadow(
        7px 10px 7px rgba(0, 0, 0, 0.30)
    );

    transition: transform 0.4s ease;
}

.book-item:hover .book-image img {
    transform: translateY(-6px);
}

/* BOOK TITLE */

.book-content {
    width: 100%;
    max-width: 330px;
}

.book-content h2 {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;

    line-height: 1.5;
    letter-spacing: -0.45px;

    color: #87352f;

    margin: 0 0 8px;
}

/* BOOK DESCRIPTION */

.book-content p {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;

    line-height: 1.78;
    letter-spacing: 0;

    color: #666666;

    text-indent: 35px;
    text-align: justify;

    margin: 0 0 25px;
}

/* BUY BUTTON */

.book-button {
    display: inline-block;

    padding: 9px 20px;

    font-family: "Poppins", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;

    color: #87352f;
    background: #ffad29;

    text-decoration: none;
    border-radius: 30px;

    transition: all 0.3s ease;
}

.book-button:hover {
    background: #87352f;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 6px 16px rgba(135, 53, 47, 0.20);
}

/* TABLET RESPONSIVE */

@media (max-width: 900px) {

    .books-container {
        gap: 25px;
    }

    .book-image {
        height: 270px;
    }

    .book-image img {
        width: 190px;
        height: 245px;
    }

    .book-content h2 {
        font-size: 18px;
    }

    .book-content p {
        font-size: 13px;
    }
}

/* MOBILE RESPONSIVE */

@media (max-width: 650px) {

    .books-showcase {
        padding: 45px 20px 65px;
    }

    .books-container {
        grid-template-columns: 1fr;
        gap: 55px;
        max-width: 430px;
    }

    .book-image {
        height: 300px;
        margin-bottom: 10px;
    }

    .book-image img {
        width: 220px;
        height: 280px;
    }

    .book-content {
        max-width: 100%;
    }

    .book-content h2 {
        font-size: 21px;
    }

    .book-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .book-button {
        font-size: 15px;
    }
}

























/* ==============================
   GET IN TOUCH SECTION
============================== */

.contact-cta {
    position: relative;
    width: 100%;
    min-height: 440px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 80px 25px;

    overflow: hidden;
    isolation: isolate;
}

/* BACKGROUND IMAGE */

.contact-cta-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: -2;
}

/* IMAGE OVERLAY */

.contact-cta-overlay {
    position: absolute;
    inset: 0;

    z-index: -1;
}

/* CONTENT */

.contact-cta-content {
    position: relative;

    width: 100%;
    max-width: 800px;

    margin: auto;
    z-index: 1;
}

.contact-cta-content h2 {
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;

    color: #842b25;

    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-cta-content p {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;

    line-height: 1.8;
    color: #171717;

    margin-bottom: 42px;
}

.contact-cta-button {
    display: inline-block;

    padding: 11px 24px;

    background: #842b25;
    color: #ffffff;

    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;

    text-decoration: none;
    border-radius: 50px;

    transition: all 0.3s ease;
}

.contact-cta-button:hover {
    background: #171717;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 768px) {
    .contact-cta {
        min-height: 380px;
        padding: 65px 22px;
    }

    .contact-cta-content h2 {
        font-size: 32px;
    }

    .contact-cta-content p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .contact-cta {
        min-height: 350px;
        padding: 55px 20px;
    }

    .contact-cta-content h2 {
        font-size: 27px;
    }

    .contact-cta-content p {
        font-size: 14px;
    }
}
















/* BOOK IMAGE SCROLL ANIMATION */

.book-image {
    opacity: 0;
    transform: translateY(-70px);

    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-image.show {
    opacity: 1;
    transform: translateY(0);
}
