:root{
    --orange:#ff6b00;
    --navy:#071847;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f7f8fb;
    color:#222;
}
/* NAV */
.books-nav{
    position:absolute;
    top:0;
    left:0;
    width:100%;

    padding:25px 8%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    z-index:20;
}

.back-home{
    color:#fff;
    text-decoration:none;
    font-weight:600;
}

.author-name{
    color:rgba(255,255,255,.7);
}

/* HERO */

.books-hero{
    min-height:650px;

    background:
    linear-gradient(
        135deg,
        #04103f,
        #0b164d 60%,
        #10246b
    );

    color:#fff;

    display:flex;
    align-items:center;

    padding:120px 8% 80px;
}

.hero-inner{
    width:100%;
    max-width:1400px;
    margin:auto;

    display:grid;
    grid-template-columns:1.1fr 1fr;
    align-items:center;
    gap:60px;
}

.hero-label{
    display:inline-block;

    color:var(--orange);

    font-weight:700;
    letter-spacing:2px;

    margin-bottom:20px;
}

.hero-content h1{
    font-size:4rem;
    line-height:1.15;

    margin-bottom:25px;
}

.hero-content p{
    font-size:1.15rem;
    line-height:1.9;

    color:rgba(255,255,255,.85);

    max-width:650px;
}

.hero-author{
    margin-top:25px;

    color:rgba(255,255,255,.75);

    font-size:.95rem;
}

.hero-buttons{
    margin-top:35px;
}

.hero-btn{
    display:inline-block;

    background:var(--orange);
    color:#fff;

    padding:18px 35px;

    border-radius:16px;

    text-decoration:none;
    font-weight:700;
}

.hero-btn:hover{
    transform:translateY(-3px);
}


.hero-books{
    position:relative;

    height:500px;

    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-books img{
    position:absolute;

    width:240px;

    filter:
        drop-shadow(0 20px 30px rgba(0,0,0,.35));

    transition:.4s;
}

.hero-books img:hover{
    transform:translateY(-10px);
}

.book-center{
    width:280px !important;
    z-index:3;
}

.book-left{
    left:30px;

    transform:
        rotate(-12deg)
        translateY(40px);
    width:200px !important;
    z-index:2;
}

.book-right{
    right:30px;

    transform:
        rotate(12deg)
        translateY(40px);
    width:200px !important;
    z-index:1;
}

.hero-note{
    margin-top:15px;
    color:rgba(255,255,255,.65);
    font-size:.9rem;
}
/* FEATURED BOOK */

.featured-book{
    padding:100px 8%;
    background:#fff;
}

.featured-grid{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:60px;
    align-items:center;
}

.featured-cover img{
    width:100%;
}

.featured-content span{
    color:var(--orange);
    font-weight:700;
    letter-spacing:2px;
}

.featured-content h2{
    font-size:3rem;
    margin:15px 0;
    color:var(--navy);
}

.featured-content p{
    line-height:1.9;
    margin-bottom:25px;
}

.book-buttons{
    display:flex;
    gap:15px;
}

.btn-primary{
    background:var(--orange);
    color:#fff;
}

.btn-outline{
    border:2px solid var(--navy);
    color:var(--navy);
}

.book-buttons a{
    text-decoration:none;
    padding:15px 25px;
    border-radius:14px;
    font-weight:600;
}

/* COLLECTION */

.collection{
    padding:50px 8% 100px;

}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:3rem;
    color:var(--navy);
}

.books-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.book-card{
    background:#fff;
    border-radius:25px;
    overflow:hidden;
    text-decoration:none;
    color:#111;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.book-card:hover{
    transform:translateY(-10px);
}

.book-card img{
    width:100%;
    display:block;
}

.book-info{
    padding:25px;
}

.book-info h3{
    margin-bottom:10px;
}

.book-info p{
    color:#666;
    line-height:1.7;
}

/* WHY I WRITE */

.why-write{
    background:#fff;
    padding:100px 8%;
    text-align:center;
}

.why-write h2{
    font-size:3rem;
    color:var(--navy);
    margin-bottom:25px;
}

.why-write p{
    max-width:850px;
    margin:auto;
    line-height:2;
    font-size:1.1rem;
}



/* AUTHOR */

.author{
    background:#f7f8fb;
    padding:100px 8%;
}

.author-card{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:50px;
    align-items:center;

    background:#fff;
    border-radius:30px;
    padding:40px;

    border-left:8px solid var(--orange);

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.author-card img{
    width:100%;
    border-radius:20px;
}

.author-content h2{
    font-size:2.5rem;
    color:var(--navy);
    margin-bottom:10px;
}

.author-content h4{
    color:#777;
    margin-bottom:20px;
}

.author-content p{
    line-height:1.9;
}

.stats-strip{
    margin-top:-50px;
    position:relative;
    z-index:10;

    padding:0 8%;
}

.stats-container{
    max-width:1000px;
    margin:auto;

    background:#fff;

    border-radius:24px;

    display:grid;
    grid-template-columns:repeat(3,1fr);

    overflow:hidden;

    box-shadow:
        0 20px 45px rgba(0,0,0,.08);
}

.stat{
    padding:35px 25px;
    text-align:center;
}

.stat:not(:last-child){
    border-right:1px solid #ececec;
}

.stat h3{
    font-size:2.6rem;
    font-weight:800;
    color:var(--orange);
    line-height:1;
    margin-bottom:8px;
}

.stat span{
    color:#666;
    font-size:.95rem;
    font-weight:500;
    letter-spacing:.5px;
}


.final-cta{
    background:
    linear-gradient(
        135deg,
        #04103f,
        #0b164d 60%,
        #10246b
    );
    
    color:#fff;

    text-align:center;
    border-top:6px solid var(--orange);
    padding:100px 8%;
}

.final-cta h2{
    font-size:3rem;
    margin-bottom:20px;
    line-height:1.2;
}

.final-cta p{
    max-width:700px;
    margin:0 auto 35px;

    font-size:1.1rem;
    line-height:1.9;

    color:rgba(255,255,255,.85);
}

.final-cta .hero-btn{
    display:inline-block;

    background:var(--orange);
    color:#fff;

    padding:18px 35px;

    border-radius:16px;

    text-decoration:none;
    font-weight:700;

    transition:.3s;
}

.final-cta .hero-btn:hover{
    transform:translateY(-4px);
    box-shadow:
        0 15px 30px rgba(255,107,0,.25);
}

@media(max-width:900px){

    .final-cta{
        padding:80px 8%;
        border-top:6px solid var(--orange);
    }

    .final-cta h2{
        font-size:2.2rem;
    }

    .final-cta p{
        font-size:1rem;
    }


    .featured-grid,
    .author-card{
        grid-template-columns:1fr;
    }

    .featured-cover{
        text-align:center;
    }

    .featured-cover img{
        max-width:300px;
    }

   

    .section-title h2,
    .why-write h2{
        font-size:2.2rem;
    }

    .hero-inner{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-content p{
        margin:auto;
    }

    .hero-content h1{
        font-size:2.7rem;
    }

    .hero-books{
        height:300px;
        max-width:320px;
        margin:30px auto 0;
    }

    .hero-books img{
        width:170px;
    }

    .book-left{
        left:0;
    }

    .book-right{
        right:0;
    }
}


    @media (max-width:768px){
        .books-hero{
    padding:90px 6% 60px;
}


.hero-books{
        position:relative;
        width:300px;
        height:300px;
        margin:30px auto 0;
    }

.hero-books img{
    width:130px;
}

.book-center{
        position:absolute;
        left:50%;
        transform:translateX(-50%);
        width:160px !important;
        z-index:3;
    }

    .book-left{
        position:absolute;
        left:50%;
        transform:translateX(-120px) rotate(-12deg) translateY(35px);
        width:110px !important;
    }

.book-right{
        position:absolute;
        left:50%;
        transform:translateX(10px) rotate(12deg) translateY(35px);
        width:110px !important;
    }



.hero-content p{
    line-height:1.7;
    font-size:1rem;
    margin:auto;
    max-width:600px;
}

.hero-btn{
    width:100%;
    max-width:320px;
    text-align:center;
}

.stats-container{
    grid-template-columns:1fr;
}

.stat{
    border-right:none !important;
    border-bottom:1px solid #eee;
}

.stat:last-child{
    border-bottom:none;
}

.author-card img{
    max-width:220px;
    margin:auto;
    display:block;
}
}


@media (max-width:480px){
    .hero-content{
        padding:0 10px;
    }


    .hero-content h1{
        font-size:2.2rem;
    }

    .section-title h2,
    .why-write h2,
    .featured-content h2,
    .author-content h2,
    .final-cta h2{
        font-size:1.9rem;
    }

    .hero-books{
        height:250px;
    }

    .hero-books img{
        width:110px;
    }

    .book-center{
        width:135px !important;
    }

    .book-left,
    .book-right{
        width:95px !important;
    }

    .hero-btn{
        max-width:none;
    }
}

@media (hover:hover){

    .book-card:hover{
        transform:translateY(-10px);
    }

    .hero-btn:hover{
        transform:translateY(-3px);
    }

    .hero-books img:hover{
        transform:translateY(-10px);
    }
}