/* Global Layout */
.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 3rem 3rem 3rem; /* Increased top padding */
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        rgba(229, 240, 243, 0) 10%,
        rgba(229, 240, 243, 0) 80%,
        #E5F0F3 100%
    );
}

.book-title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-family: "Jost", serif;
    color: #5a4132;
    gap: 1.2rem;
    width: 80%;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 1.5rem;
}

.book-title-the {
    font-weight: 400;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 0.2em;
    color: #8b6c5a;
}

.book-title-coffee {
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 0.1em;
}

.book-title-code {
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 0.15em;
    color: #715744;
}

.promo-banner {
    background: linear-gradient(90deg, transparent -40%, #5a4132 25%, #5a4132 75%, transparent 140%);
    color: white;
    text-align: center;
    padding: 0.6rem .75rem;
    font-family: "Poppins", serif;
    font-weight: 700;
    font-size: clamp(0.7rem, 2.2vw, 0.9rem);
    width: 120%;
}

.promo-banner p {
    margin: 0;
    letter-spacing: 0.15em;
    word-spacing: 0.05em;
}

.quote-book-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.desktop-quote {
    display: none;
}

.quote-text {
    font-family: "Poppins", serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.0rem;
    color: #4A3426;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.author-thumbnail {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200, 174, 127, 0.3);
}

.quote-author {
    font-family: "Poppins", serif;
    font-weight: 700;
    font-style: normal;
    color: rgba(200, 174, 127);
    margin: 0;
}

.book-image-container {
    display: flex;
    justify-content: center;
}

.book-cover {
    max-height: 28rem;
}

.author-name-title {
    font-family: "Jost", serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(1.1rem, 3.5vw, 1.575rem);
    color: rgba(200, 174, 127);
    margin-bottom: 2rem;
}

.cta-container {
    margin-top: 3rem;
}

.cta-button {
    font-family: "Poppins", serif;
    font-weight: 500;
    display: inline-block;
    background-color: #5a4132;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: rgb(114, 88, 69);
    scale: 1.02;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #E5F0F3;
    padding: 3rem 3rem;
    min-height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: "Jost", serif;
    font-weight: 800;
    font-style: normal;
    font-size: clamp(1.5rem, 5vw, 1.975rem);
    color: #5a4132;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.section-description {
    font-family: "Poppins", serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #4A3426;
    max-width: 48rem;
    margin: 0 auto;
}

.testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    overflow: hidden;
    background-color: white;
    height: 400px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    opacity: 0;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
}


.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    background-color: white;
    border: 2.5px solid rgba(200, 174, 127, 1);

}


.testimonial-image::after {
    font-size: 2rem;
    font-family: sans-serif;
    line-height: 150%;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    position: absolute;

}

.testimonial-name {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #4A3426;
}

.testimonial-role {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #C6B5A1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.5;
    color: #4A3426;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 0.2rem;
}

.arrow-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}


.testimonial-header {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #5a4132;
    margin-bottom: 1rem;
    text-align: center;
}


.arrow {
    width: 20px;
    height: 20px;
    border: solid #5a4132;
    border-width: 0 3px 3px 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.arrow:hover {
    transform: scale(1.15);
}

.left-arrow-wrap {
    left: 3%;
    transform: rotate(135deg);
}

.right-arrow-wrap {
    right: 3%;
    transform: rotate(-45deg);
}

/* About Section */
.about-contact-section {
    min-height: 90vh;
    padding: 4rem 1rem;
    background: linear-gradient(
        to top,
        #ffffff 0%,
        rgba(229, 240, 243, 0) 10%,
        rgba(229, 240, 243, 0) 80%,
        #E5F0F3 100%
    );
}

.two-column-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-container {
    display: flex;
    justify-content: center;
}

.author-image {
    border-radius: 20px;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.bio-container {
    padding: 0 1rem;
}

.author-bio {
    font-family: "Poppins", serif;
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.75;
    color: #4A3426;
}

/* Social Links Section */
.social-links-container {
    text-align: center;
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.social-icon {
    width: 64px;
    height: 64px;
    transition: 0.4s;
    fill: #4A3426;
}

.social-icon:hover {
    filter: invert(20%);
}

.footer {
    text-align: center;
    font-family: "Poppins", serif;
    font-weight: 300;
    font-size: 1.0rem;
    margin-bottom: 20px;
    color: #4A3426;
}

/* Responsive Design */
@media (min-width: 768px) and (max-width: 1023px) {
    .quote-book-container {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    .desktop-quote.quote-left {
        display: block;
    }

    .mobile-quote, .desktop-quote.quote-right {
        display: none;
    }

    .author-bio {
        text-align: left;
    }

    .book-cover {
        max-height: 28rem;
    }

    .author-name-title {
        font-size: clamp(1.05rem, 3.4vw, 1.5rem);
    }

    .book-title {
        gap: 1.1rem;    
    }

    .testimonial-text {
        font-size: 1.0rem;
        text-align: left;
    }

    .testimonial-role {
        font-size: 1.0rem;
    }

    .testimonial-name {
        font-size: 1.1rem;
    }


    .testimonial-slider-wrapper {
        width: 90%;
    }

    .arrow {
        width: 15px;
        height: 15px;
    }
}

@media (min-width: 1024px) {
    .quote-book-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .desktop-quote {
        display: block;
    }

    .mobile-quote {
        display: none;
    }

    .two-column-grid {
        flex-direction: row;
    }

    .about-container {
        flex: 1;
    }

    .bio-container {
        flex: 2;
        padding: 0 2rem;
    }

    .author-bio {
        text-align: left;
    }

    .author-image {
        margin: 0;
    }
    
    .book-title {
        gap: 1.0rem;    
    }

    .testimonial-text {
        font-size: 1.05rem;
        text-align: left;
    }

    .testimonial-role {
        font-size: 0.9rem;
    }

    .testimonial-name {
        font-size: 1.0rem;
    }

}

@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 1rem 1rem 1rem; /* Adjusted for mobile */
    }
    
    .book-title {
        margin-top: 1rem; /* Slightly less margin on mobile */
        gap: 0.2rem; 
        width: 95%;
    }

    .mobile-quote {
        display: block;
        padding: 1.0rem 1.0rem;
    }

    .desktop-quote {
        display: none;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .book-cover {
        max-height: 22rem;
    }
 

    .footer {
        font-size: 10pt;
    }

    .testimonials-section {
        padding: 3rem 1.5rem;
    }

    .testimonial-slider-wrapper {
        width: 97%;
    }

    .testimonial-text {
        font-size: 0.82rem;
        text-align: left;
    }

    .testimonial-role {
        font-size: 0.9rem;
        text-align: center;
        line-height: -30%;
    }

    .testimonial-name {
        font-size: 0.95rem;
    }

    .arrow {
        width: 12px;
        height: 12px;
    }


    .testimonial-header {
        font-size: 0.75rem;
        margin-top: -0.8rem;
        
    }
}