/* ========= RESET ========= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:linear-gradient(
        180deg,
        #eefaf4 0%,
        #f8fafc 100%
    );
}
/* ========= HEADER ========= */

.header{

    width:100%;
    background:linear-gradient(
90deg,
#0f8b57,
#16a34a
);
    color:white;

    padding:18px;

    text-align:center;

    font-size:24px;
    font-weight:700;

    box-shadow:0 3px 12px rgba(0,0,0,.15);

    position:sticky;
    top:0;
    z-index:1000;
}

/* ========= HERO ========= */

.hero{

    width:90%;
    max-width:900px;

    margin:45px auto 30px;
    padding:35px 0 45px;    

    text-align:center;

}

.book{

    font-size:55px;

    margin-bottom:10px;

}

.hero h1{

    font-size:52px;

    color:#163d2d;

    margin-bottom:12px;

}

.hero p{

    color:#666;

    font-size:22px;

}

/* ========= SEARCH ========= */

.search{

    width:90%;

    max-width:900px;

    margin:auto;

    margin-bottom:35px;

}

.search input{

    width:100%;

    height:65px;

    border:none;

    outline:none;

    border-radius:20px;

    padding:0 25px;

    font-size:20px;

    background:white;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.search input::placeholder{

    color:#999;

}
/*==============================
          CATEGORY
==============================*/

.category{

    width:90%;
    max-width:900px;

    margin:35px auto;

    background:#fff;

    border-radius:22px;

    padding:22px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}


/* عنوان القسم */

.category-title{

    font-size:34px;

    font-weight:700;

    margin-bottom:22px;

    padding-bottom:15px;

    border-bottom:3px solid;

}


/* ألوان الأقسام */

.green{

    color:#0b7d3b;

    border-color:#0b7d3b;

}

.orange{

    color:#ff7b00;

    border-color:#ff7b00;

}

.red{

    color:#f44336;

    border-color:#f44336;

}


/*==============================
        QUESTIONS
==============================*/

.questions{

    display:flex;

    flex-direction:column;

    gap:14px;

}


/* السؤال */

.question{

    display:flex;

    justify-content:space-between;

    align-items:center;

    text-decoration:none;

    color:#222;

    background:#fff;

    padding:18px 22px;

    border-radius:16px;

    border:1px solid #e6e6e6;

    transition:.30s;

}


/* Hover */

.question:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 18px rgba(0,0,0,.10);

}


/* نص السؤال */

.question span:first-child{

    font-size:22px;

    font-weight:600;

}


/* السهم */

.question span:last-child{

    width:42px;

    height:42px;

    border-radius:50%;

    background:#f5f5f5;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    transition:.30s;

}


/* حركة السهم */

.question:hover span:last-child{

    background:#0b7d3b;

    color:#fff;

    transform:translateX(-5px);

}


/* مسافة آخر الصفحة */

body{

    padding-bottom:50px;

}
/*======================================
            RESPONSIVE
======================================*/

@media (max-width:900px){

    .hero h1{

        font-size:42px;

    }

    .hero p{

        font-size:20px;

    }

    .category-title{

        font-size:28px;

    }

    .question span:first-child{

        font-size:19px;

    }

}


@media (max-width:768px){

    .header{

        font-size:20px;

        padding:15px;

    }

    .hero{

        width:95%;

        margin-top:30px;

    }

    .book{

        font-size:46px;

    }

    .hero h1{

        font-size:34px;

    }

    .hero p{

        font-size:17px;

        line-height:1.8;

    }

    .search{

        width:95%;

    }

    .search input{

        height:56px;

        font-size:17px;

        border-radius:15px;

    }

    .category{

        width:95%;

        padding:18px;

        border-radius:18px;

    }

    .category-title{

        font-size:24px;

        margin-bottom:18px;

    }

    .question{

        padding:16px;

    }

    .question span:first-child{

        font-size:17px;

        width:85%;

    }

    .question span:last-child{

        width:36px;

        height:36px;

        font-size:20px;

    }

}


@media (max-width:480px){

    .book{

        font-size:40px;

    }

    .hero h1{

        font-size:29px;

    }

    .hero p{

        font-size:15px;

    }

    .category-title{

        font-size:21px;

    }

    .question{

        padding:14px;

    }

    .question span:first-child{

        font-size:15px;

        line-height:1.7;

    }

    .question span:last-child{

        width:32px;

        height:32px;

        font-size:17px;

    }

}


/*======================================
        SCROLLBAR
======================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#0b7d3b;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#ececec;

}


/*======================================
        ANIMATION
======================================*/

.category{

    animation:show .5s ease;

}

@keyframes show{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
