*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Arial, sans-serif;
}


body{

    background:#f5f7fb;
    color:#111827;

    min-height:100vh;

    transition:0.3s;

}



/* Dark mode */

body.dark{

    background:#111827;
    color:white;

}



body.dark header{

    background:#1f2937;

}



body.dark .section-box,
body.dark .course,
body.dark .resource,
body.dark .login-box{

    background:#1f2937;
    color:white;

}



/* Header */

header{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:15px 30px;

    background:white;

    box-shadow:0 3px 10px rgba(0,0,0,0.1);

}



.logo{

    width:60px;
    height:60px;

    border-radius:50%;

    object-fit:cover;

}



header h1{

    flex:1;

    margin-left:15px;

}





/* Navigation */

nav{

    display:flex;

    align-items:center;

    gap:15px;

}



nav a{

    text-decoration:none;

    color:inherit;

    font-weight:bold;

}



nav button{

    border:none;

    background:#2563eb;

    color:white;

    padding:10px 15px;

    border-radius:20px;

    cursor:pointer;

}





/* Main */

main{

    padding:40px;

}





.hero{

    text-align:center;

    padding:80px 20px;

}



.hero h2{

    font-size:40px;

    margin-bottom:20px;

}



.hero p{

    font-size:20px;

    margin-bottom:30px;

}





/* Buttons */

.button{

    display:inline-block;

    background:#2563eb;

    color:white;

    padding:12px 25px;

    border-radius:25px;

    text-decoration:none;

    border:none;

    cursor:pointer;

}





/* Content boxes */

.section-box,
.course,
.resource,
.login-box{


    background:white;

    padding:25px;

    margin:20px 0;

    border-radius:20px;

    box-shadow:0 8px 20px rgba(0,0,0,0.1);

}



.course h3,
.resource h3{

    margin-bottom:15px;

}





/* Login */

.login-box{

    max-width:400px;

    margin:auto;

}



.login-box input{

    width:100%;

    padding:12px;

    margin:10px 0 20px;

    border-radius:10px;

    border:1px solid #ccc;

}





/* Footer */

footer{

    text-align:center;

    padding:30px;

    margin-top:50px;

}





/* Arabic support */

[dir="rtl"]{

    text-align:right;

}



[dir="rtl"] nav{

    direction:rtl;

}





/* Mobile */

@media(max-width:800px){


header{

    flex-direction:column;

    gap:15px;

}



nav{

    flex-wrap:wrap;

    justify-content:center;

}



main{

    padding:20px;

}



.hero h2{

    font-size:30px;

}


}
