/* Responsive Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* Ensure no horizontal overflow */
}

.nav-toggle {
    display: none;
    /* Hide hamburger menu by default */
}

.social-icons.footer{
    display: flex;
    flex-direction: row;
    max-width: 100vw;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .books-header h2 {
        font-size: 5vw;
    }


    header {
        
        flex-direction: row;
        align-items: center;
        text-align: center;
        position: relative;
    }

    .social-icons {

        display: none;
    }

    .award img {
        width: 100%;
        margin-bottom: 30px;
    }



    nav {
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        max-width: 100vw;
        text-align: center;
        padding: 7px 0;
        position: relative;
    }


    .hero,
    .author-story,
    .stats,
    .footer-header {
        overflow-x: hidden;
        /* Prevent overflow in specific sections */
    }

    .hero {
        flex-direction: row;
        text-align: center;
    }

    .hero .text {
        max-width: 100%;
    }

    .hero-image img {
        max-width: 90%;
        margin-top: 25px;
        transform: none;
    }

    .author-story {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .author-story p {
        padding: 0;
    }

    .author-story img {
        width: 100%;
        margin-bottom: 20px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stats div::before {
        width: 0;
    }


    .footer-header {
        flex-direction: column;
        text-align: center;
    }

    .footer-header nav {
        flex-direction: column;
        gap: 10px;
    }

    .intro {
        align-items: center;
    }

    .overlay {
        text-align: justify;
        box-shadow: 8px 8px 8px rgba(61, 61, 61, 1);
    }

    /* Headings and paragraph styling */
    #inspiration h2 {
        font-size: 36px;
        margin-bottom: 1rem;
    }

    #inspiration p {
        font-size: 18px;
        line-height: 1.5;
    }

    .discover-button {
        margin-top: 50px;
        cursor: pointer;

    }

    .discover-button a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 800;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        color: #ffb03a;
        letter-spacing: 1px;

        border-radius: 6px;
        background-color: rgba(61, 61, 61, 0.6);
        max-width: 400px;
        padding: 20px 25px;
        transition: all 1s ease-in-out;
    }

    .discover-button a:hover {
        transition: all 0.3s ease-in-out;
        background-color: #462500;
        color: rgb(243, 228, 201);
        box-shadow: 4.5px 5px #000000;

    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 20px 5%;
        z-index: 1000;
    }

    .logo img {
        max-width: 25vw;
    }


    .hero h1 {
        font-size: 36px;
    }

    .social-icons li {
        display: block;
    }

    nav ul {
        width: 100%;
        gap: 10px;

    }

    nav ul li {

        padding: 5px;

    }

    nav ul li a {
        font-size: 15px;
        text-shadow: none;
    }

    .hero {
        display: block;

    }

    .hero .text {
        width: 100%;
        ;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-image {
        margin-top: 20px;
    }

    .text .title-p {
        font-size: 1.1rem;
    }

    .stats div::before {
        width: 0;
    }

    
    .submenu li a{
        font-size: 12px;
    }


    .newsletter-section {
        background-color: aliceblue;
        padding: 50px 10;

    }

    .welcome-section {
        padding: 60px 2vw;
    }

    .welcome-section h2 {
        min-width: 100%;
    }

    .email-author {
        padding-top: 150px;
    }

    .newsletter-section h2 {
        font-size: 22px;
    }

    .newsletter-section input {
        width: 300px;
        padding: 10px;
        font-size: 16px;
        margin-top: 10px;
    }

    .newsletter-section button {
        padding: 10px;
        margin-top: 10px;
        font-size: 16px;

    }

    .books{
        padding-bottom: 30px;
    }
    .award img {
        width: 90%;
        margin: 30px 0;
        transform: scale(1.05);
    }

    .view-all-books {
        position: relative;
        display: inline-block;
        margin: 50px;
    }

    .view-all-books a {
        color: rgb(95, 90, 90);
        font-family: Helvetica, sans-serif;
        background-color: #cff5ff;
        font-weight: bold;
        font-size: 16px;
        margin-top: 50px;
        text-align: center;
        text-decoration: none;
        display: block;
        position: relative;
        padding: 10px 20px;




        -webkit-box-shadow: inset 0 1px 0 #def7ff, 0 5px 0 #70b5ca;
        -moz-box-shadow: inset 0 1px 0 #def7ff, 0 5px 0 #70b5ca;
        box-shadow: inset 0 1px 0 #def7ff, 0 5px 0 #70b5ca;

        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }

    .view-all-books a:active {
        top: 10px;
        background-color: #70b5ca;

        -webkit-box-shadow: inset 0 1px 0 #012530, inset 0 -3px 0 #012530;
        -moz-box-shadow: inset 0 1px 0 #012530, inset 0 -3pxpx 0 #012530;
        box-shadow: inset 0 1px 0 #012530, inset 0 -3px 0 #012530;
    }

    .view-all-books:after {
        content: "";
        height: 80%;
        width: 100%;

        position: absolute;
        /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        bottom:-10px;
        left:4px; */
        z-index: -1;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }

    .author-story {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .author-story img {
        width: 110vw;
    }

    .author-story .text {
        min-width: 90vw;
    }

    .author-story .btn {
        padding: 10px 5px;
        color: white;
        border-radius: 5px;
        opacity: 0.7;
        background-color: #012530;
        width: 130px;
    }

    .awards {
        flex-direction: column;
        gap: 20px;
    }


    .books-header {
        width: 90vw;
    }

    .books-header h2 {
        font-size: 2.2rem;
    }

    .view-all {
        display: none;
    }

    .book-container {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .book {

        margin-bottom: 100px;
        justify-content: space-between;
        text-align: center;
        align-items: center;
    }

    .book:last-child {
        margin-bottom: 20px;
    }

    .book h3 {
        padding: 5px;
        margin-top: 20px;
        font-size: 16px;
        margin: 10px 18%;
    }







    .footer-header .social-icons a {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }



    .award img {
        width: 90%;
        margin: 12px 0;
        transform: scale(1.05);
    }

    .nav ul li:hover {
        background: transparent;
        ;
    }


    .hero p {
        font-size: 16px;
    }

    .stats span {
        font-size: 36px;
    }

    .read-more {
        font-size: 16px;
    }

    footer {
        font-size: 14px;
    }
}