*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f5f5;
    color:#333;
    line-height:1.8;
}


/* HERO */

.hero{
    position:relative;
    height:360px;
    overflow:hidden;
}

.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,60,40,.60);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    padding:20px;
}

.overlay h1{
    color:white;
    font-size:50px;
    letter-spacing:1px;
    margin-bottom:8px;
}

.overlay p{
    color:#FFD700;
    font-size:24px;
    font-weight:bold;
}


/* BACK BUTTON */

.top-bar{
    max-width:1100px;
    margin:30px auto;
    padding:0 20px;
}

.back-btn{
    display:inline-block;
    background:#0B6E4F;
    color:white;
    text-decoration:none;
    padding:12px 25px;
    border-radius:30px;
    font-weight:bold;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.back-btn:hover{
    background:#FFD700;
    color:#0B6E4F;
}


/* CONTENT */

.content{
    width:92%;
    max-width:1100px;
    margin:auto;
    padding:10px 0 40px;
}


/* INTRO BOXES */

.intro-section{
    background:white;
    padding:30px;
    border-radius:15px;
    margin-bottom:25px;
    box-shadow:0 6px 18px rgba(0,0,0,.07);
}

.intro-section h2{
    color:#0B6E4F;
    margin-bottom:15px;
    font-size:30px;
}

.intro-section p{
    margin-bottom:12px;
    font-size:17px;
}

.arabic-section{
    direction:rtl;
    text-align:right;
}


/* BOOKS GRID */

.book-list{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:25px;
    margin-top:40px;
    align-items:start;
}


/* BOOK CARD */

.book{
    background:white;
    padding:12px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    text-align:center;
}

.book:hover{
    transform:translateY(-6px);
}


/* BOOK IMAGE */

.book img{
    width:100%;
    height:320px;
    object-fit:contain;
    display:block;
    border-radius:10px;
    background:white;
}


/* CONTACT BUTTON */

.contact-area{
    text-align:center;
    margin-top:45px;
}

.contact-btn{
    display:inline-block;
    background:#0B6E4F;
    color:white;
    text-decoration:none;
    padding:14px 30px;
    border-radius:30px;
    font-weight:bold;
    font-size:17px;
    transition:.3s;
}

.contact-btn:hover{
    background:#FFD700;
    color:#0B6E4F;
}


/* FOOTER */

footer{
    background:#0B6E4F;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:60px;
}


/* TABLET */

@media(max-width:900px){

    .book-list{
        grid-template-columns:repeat(2, 1fr);
    }

    .book img{
        height:300px;
    }

}


/* MOBILE */

@media(max-width:600px){

    .hero{
        height:260px;
    }

    .overlay h1{
        font-size:32px;
    }

    .overlay p{
        font-size:18px;
    }

    .book-list{
        grid-template-columns:1fr;
    }

    .book{
        max-width:320px;
        margin:0 auto;
        width:100%;
    }

    .book img{
        height:auto;
        max-height:420px;
    }

    .intro-section{
        padding:22px;
    }

    .intro-section h2{
        font-size:25px;
    }

}