﻿/* Scoped to bookSection */

#bookSection {
    background-image: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 50px 0;
    position: relative;
}

#bookSection .section-clean-bg {
    background-color: #ffffff;
    padding: 100px 15px;
    position: relative;
}


    #bookSection .decorated-box {
        max-width: 850px;
        margin: 0 auto;
        padding: 50px;
        border: 2px solid #ccc;
        position: relative;
        background-color: #ffffff;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        background-image: url('https://www.transparenttextures.com/patterns/paper-e41.png');
        background-size: cover; /* Ensure the background image covers the container */
        background-position: center;
    }
 
#bookSection .section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

#bookSection .lead {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #444;
}

#bookSection .decorated-box p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

#bookSection .testimonial {
    font-size: 18px;
    font-style: italic;
    color: #222;
    border-left: 4px solid #5c9dff;
    padding-left: 15px;
    margin-top: 40px;
}



/* Corner images */
#bookSection .corner-img {
    width: 100px;
    height: 100px;
    position: absolute;
    z-index: 10; /* Higher z-index to ensure it's above other content */
}

#bookSection .top-left {
    top: -30px;
    left: -30px;
}

#bookSection .top-right {
    top: -30px;
    right: -30px;
}

#bookSection .bottom-left {
    bottom: -30px;
    left: -30px;
}

#bookSection .bottom-right {
    bottom: -30px;
    right: -30px;
}

/* Center image */
#bookSection .center-img {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    #bookSection .section-title {
        font-size: 28px;
    }

    #bookSection .lead {
        font-size: 16px;
    }

    #bookSection .decorated-box {
        padding: 30px;
    }

    #bookSection .corner-img {
        width: 70px;
        height: 70px;
    }

    #bookSection .center-img {
        width: 80px;
        height: 80px;
    }

    #bookSection .top-left {
        top: -9px;
        left: -9px;
    }

    #bookSection .top-right {
        top: -9px;
        right: -9px;
    }

    #bookSection .bottom-left {
        bottom: -9px;
        left: -9px;
    }

    #bookSection .bottom-right {
        bottom: -9px;
        right: -9px;
    }
}

#mobileSection {
    background-image: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 50px 0;
    position: relative;
}

    #mobileSection .decorated-box {
        background: #fff;
        border-radius: 30px; /* Rounded corners like a phone */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-width: 400px; /* Set width to mimic a mobile phone */
        margin: 0 auto;
        padding: 20px;
        position: relative;
        overflow: hidden;
    }

    #mobileSection .center-img {
        width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 15px; /* Rounded corners to mimic a phone screen */
    }

    #mobileSection .section-title {
        font-size: 28px;
        font-weight: bold;
        color: #333;
    }

    #mobileSection .testimonial {
        font-size: 18px;
        font-style: italic;
        color: #555;
        margin-top: 30px;
    }

    #mobileSection .lead {
        font-size: 20px;
        color: #666;
        line-height: 1.5;
    }




#calmTheNoise {
    padding: 60px 0;
    background-color: #fff;
}

    #calmTheNoise .section-title {
        font-size: 2.5rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 20px;
    }

    #calmTheNoise .lead {
        font-size: 1.25rem;
        color: #555;
        margin-bottom: 40px;
    }

    #calmTheNoise .content-text {
        font-size: 1.1rem;
        color: #666;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    #calmTheNoise .img-fluid {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
    }

    #calmTheNoise .testimonial {
        font-size: 1.2rem;
        font-style: italic;
        color: #555;
        margin-top: 30px;
        padding-left: 30px;
        padding-right: 30px;
        border-left: 4px solid #3484f5;
    }

        #calmTheNoise .testimonial footer {
            font-size: 1rem;
            font-style: normal;
            color: #777;
            text-align: right;
        }

    #calmTheNoise .cta-text {
        font-size: 1.25rem;
        color: #333;
    }

        #calmTheNoise .cta-text .btn {
            font-size: 1.1rem;
            padding: 15px 25px;
            background-color: #3484f5;
            color: #fff;
            border-radius: 25px;
            text-decoration: none;
        }

            #calmTheNoise .cta-text .btn:hover {
                background-color: #2767b2;
            }





.list-check1 {
    list-style: disc;
    padding: 30px;
    margin-bottom: 4px;
    line-height: 40px;
}

.bio-section, praise-section {
    padding: 50px 0;
    font-family: "abril-display", serif;
    color: #373737;
    font-size: 26px;
    line-height: 26px;
    -webkit-font-smoothing: antialiased;
}

    .bio-section .btn {
        font-family: "abril-display", serif;
        color: #fff;
        font-size: 26px;
        line-height: 26px;
        -webkit-font-smoothing: antialiased;
        width: fit-content;
        white-space: nowrap; /* Prevent wrapping if needed */
        text-align:right;

    }

p, .list-check1 {
    font-family: "abril-display", serif;
    color: #373737;
    font-weight: 400;
}

h1,h3, h2,h4 {
    font-family: "abril-display", serif;
    color: #373737;
    font-weight: 400;
    margin-bottom: 5px;
}


.bio-text {
    padding: 20px;
}

.bio-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bio-section {
    display: flex;
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    flex-wrap: wrap;
    padding: 10px 0; /* Optional spacing */
    text-align: left;
}

.bio-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically inside column */
    height: 100%; /* Ensures full height alignment */
}

.bio-img {
    max-width: 100%;
    height: auto;
}

.section-heading {
    font-family: 'abril-display', serif;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

.book-section, .praise-section {
    padding: 60px 20px;
}

.book-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-purchase {
    margin: 5px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #3763eb;
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}

    .btn-purchase:hover {
        background-color: #2a4db0;
    }

.praise-item {
    margin-bottom: 60px;
}

.praise-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.praise-text {
    flex: 1;
    min-width: 280px;
    font-size: 18px;
    line-height: 1.6;
}

.praise-img-wrapper {
    flex: 0 0 auto;
    text-align: center;
}

.praise-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.praise-item:nth-child(even) .praise-row {
    flex-direction: row-reverse;
}

.show-more-btn {
    text-align: center;
    margin-top: 30px;
}


.book-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.book-popup {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    max-width: 800px; /* Increased from 360px */
    max-height: 90vh;
    width: 95%;
    text-align: center;
    position: relative;
    animation: popupFadeIn 0.4s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.book-popup h2 {
    font-size: 24px;
    margin-top: 15px;
}

.book-popup p {
    font-size: 16px;
    margin: 10px 0;
}



.book-popup .book-image {
    max-width: 100%; /* Stretches inside the popup */
    height: auto;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}


.book-popup .book-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff6f61;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

    .book-popup .book-cta:hover {
        background-color: #e65a4e;
    }

.book-popup .close-btn {
    position: absolute;
    top: 6px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.media-card .thumbnail {
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

    .media-card .thumbnail:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

.media-card img {
    border-bottom: 1px solid #ddd;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.media-card .caption {
    padding: 15px;
}

    .media-card .caption h4 {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 10px;
        min-height: 40px;
    }

.media-card .btn {
    background-color: #3484f5;
    border-color: #3484f5;
    padding: 6px 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: #fff;
    font-family: 'abril-display', serif;
}

    .media-card .btn:hover {
        background-color: #286fd3;
        color: #fff;
    }


.fontSize34 {
   font-size:34px;
}

@media (max-width: 768px) {

    .fontSize34 {
        font-size: 26px;
    }

    .bio-section {
        flex-direction: column;
        text-align: center;
    }

    .bio-text, .bio-img {
        width: 100%;
        padding: 10px;
    }

    .praise-row {
        flex-direction: column !important;
        text-align: center;
    }

    .media-card .caption h4 {
        font-size: 14px;
    }

    .media-card .btn {
        font-size: 13px;
        padding: 5px 12px;
    }
}