/* Basic Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9fafb;
    color: #030303;
    line-height: 1.6;
}

/* Carousel Section */
.carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(to bottom, #f0f4f8, #ffffff);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.1);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation Dots */
.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 7px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #007bff;
    transform: scale(1.3);
}

/* Book Carousel Section */
.book-carousel {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.book-wrapper:hover {
    transform: translateY(-10px);
}

.book-page {
    flex: 1;
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 10px;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.book-page:hover {
    transform: scale(1.05);
}

.image-page img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.content-page {
    padding: 30px;
    background: linear-gradient(to right, #ff7b54, #ffb347);
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 10px;
    transition: all 0.3s ease-in-out;
}

.content-page:hover {
    background: linear-gradient(to right, #ffb347, #ff7b54);
    transform: translateY(-5px);
}

.content-page h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.content-page p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel {
        height: 350px; /* Adjust carousel height for tablets */
    }

    .carousel-text {
        font-size: 22px; /* Smaller text for tablets */
    }

    .book-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .content-page {
        border-radius: 15px;
        text-align: center;
    }

    .book-page {
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 300px; /* Smaller height for mobile */
    }

    .carousel-text {
        font-size: 18px;
        padding: 10px;
    }

    .book-page {
        margin: 5px 0;
    }

    .content-page h2 {
        font-size: 2rem; /* Smaller headline size */
    }

    .content-page p {
        font-size: 1rem; /* Smaller paragraph size */
    }
}
