/* Book Page Specific Styles */

/* Hero Section */
.book-hero {
    min-height: 60vh;
    width: 100%;
    background-image: url('images/second.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 50px 0;
}

.book-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.book-hero .content-overlay {
    position: relative;
    z-index: 2;
}

/* Book Content Section */
.book-content-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, /* 135 degrees = upper left to lower right */
                #4b2510 0%,    /* Dark brown */
                #8B4513 30%,   /* Medium brown */
                #e8e2d6 70%,   /* Off-white/cream */
                #ffffff 100%); /* Pure white */
}

.book-container {
    max-width: 1200px;
    margin: 0 auto;
}

.book-item {
    display: flex;
    flex-direction: row-reverse; /* Keep book cover on the right */
    align-items: center;
    background-color: transparent; /* Changed from white to transparent */
    border-radius: 0; /* Removed border radius */
    overflow: visible; /* Changed from hidden to visible */
    box-shadow: none; /* Removed shadow */
    margin-bottom: 40px;
}

.book-cover {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 30px;
    display: flex;
    justify-content: center;    
    align-items: center;
}

.book-cover img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    box-shadow: none; /* Removed the shadow */
    border-radius: 0; /* Removed border radius */
}

.book-cover img:hover {
    transform: scale(1.02);
}

.book-info {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 30px;
}

.book-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'EB Garamond', serif;
    color: #fff;           /* White text for better contrast on dark background */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.book-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;        /* Light text for better contrast */
    margin-bottom: 15px;
    font-family: 'EB Garamond', serif;
}

.book-info p:last-of-type {
    margin-bottom: 25px;
}


.book-buttons {
    display: flex;
    gap: 20px;
}

.purchase-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 25px;
    background: #6e4903;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border: 2px solid #8B4513;
    transition: 0.3s;
    text-decoration: none;
}

.purchase-button:hover {
    background: #d66305;
    border-color: #de6705;
}

/* Book Features Section */
.book-features-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, 
                #ffffff 0%,
                #d2b48c 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-container h2 {
    font-size: 3.5rem;
    margin-bottom: 50px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #8B4513;
}

.feature-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.feature-item p {
    font-size: 1.1rem;
    color: #666;
    font-family: 'EB Garamond', serif;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .book-container,
    .features-container {
        max-width: 900px;
    }
    
    .feature-item i {
        font-size: 2.2rem;
    }
    
    .feature-item h3 {
        font-size: 1.6rem;
    }
}

.book-content-section.second-book {
    background: linear-gradient(135deg, /* Same angle but reversed colors */
                #ffffff 0%,    /* Start with white */
                #e8e2d6 30%,   /* Off-white/cream */
                #8B4513 70%,   /* Medium brown */
                #4b2510 100%); /* End with dark brown */
    margin-top: -1px; /* Prevent gap between sections */
}

/* Adjust text colors for second book section for readability */
.second-book .book-info h3 {
    color: #333; /* Darker text since background starts lighter */
    text-shadow: none;
}

.second-book .book-info p {
    color: #444; /* Darker text color */
}




@media (max-width: 992px) {
    .book-item {
        flex-direction: column-reverse; /* Stack elements with book on top */
    }
    
    .book-cover,
    .book-info {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .book-info {
        padding: 30px 30px 0;
    }
    
    .book-cover {
        padding: 0 30px 30px;
    }
    
    /* Rest of media query remains the same */
    .book-cover img {
        max-width: 60%;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-container h2 {
        font-size: 3rem;
    }
    
    .book-info h3 {
        font-size: 2.2rem;
        text-align: center;
        text-shadow: none;
    }
    
    .book-info p {
        text-align: center;
    }
    
    .book-buttons {
        justify-content: center;
    }

    .second-book .book-info h3 {
        color: #fff; /* Change to light color as content shifts to darker gradient areas */
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .second-book .book-info p {
        color: #f0f0f0; /* Lighter text for contrast */
    }
}

@media (max-width: 768px) {
    .book-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }
    
    .book-content-section,
    .book-features-section {
        padding: 50px 20px;
    }
    
    .book-item {
        margin-bottom: 30px;
    }
    
    .book-cover img {
        max-width: 70%;
    }
    
    .book-info h3 {
        font-size: 2rem;
    }
    
    .book-info p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .features-container h2 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .book-hero {
        min-height: 40vh;
    }
    
    .book-content-section,
    .book-features-section {
        padding: 40px 15px;
    }
    
    .book-cover {
        padding: 20px 20px 0;
    }
    
    .book-cover img {
        max-width: 80%;
    }
    
    .book-info p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .book-info h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .book-info p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .book-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .purchase-button,
    .learn-more-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .feature-item i {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .feature-item h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .features-container h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .second-book .book-item {
        margin-bottom: 0; /* Reduce space at bottom on mobile */
    }
}

@media (max-width: 380px) {
    .book-info h3 {
        font-size: 1.6rem;
    }
    
    .book-cover img {
        max-width: 90%;
    }
    
    .features-container h2 {
        font-size: 1.8rem;
    }
    
    .feature-item {
        padding: 15px 10px;
    }
    
    .feature-item i {
        font-size: 1.8rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
    
    .feature-item p {
        font-size: 0.8rem;
    }
}