/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Cairo',sans-serif;
    direction:rtl;
    overflow-x:hidden;
    background:
    radial-gradient(circle at left bottom,#f5e3c5 0%,transparent 25%),
    linear-gradient(90deg,#f7f3eb 0%,#2d1c67 55%,#24134b 100%);
    min-height:100vh;
}

a{
    text-decoration:none;
    color:#222;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* ===========================
   HEADER
=========================== */

header{
    background:#fff;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    border-radius:0 0 18px 18px;
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo img{
    height:65px;
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    font-size:18px;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#bb8d3b;
}

/* ===========================
   SEARCH
=========================== */

.search{
    display:flex;
    justify-content:center;
    margin-top:40px;
}

.search-box{
    width:720px;
    height:62px;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    border:3px solid #d3b069;
}

.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:0 25px;
    font-size:20px;
    background:white;
}

.search-box button{
    width:85px;
    border:none;
    background:#d7a850;
    color:white;
    font-size:24px;
    cursor:pointer;
}

/* ===========================
   PREMIUM
=========================== */

.premium{
    display:flex;
    justify-content:center;
    margin:35px 0;
}

.premium-box{

    width:86%;

    background:linear-gradient(90deg,#29125e,#f0a545);

    color:#fff;

    padding:18px 25px;

    border-radius:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:22px;

    box-shadow:0 12px 25px rgba(0,0,0,.15);

}

.premium button{

    background:#23114e;

    color:white;

    border:none;

    padding:12px 30px;

    border-radius:12px;

    cursor:pointer;

    font-size:18px;

}
/* ===========================
   CATEGORIES
=========================== */

.categories{

width:86%;

margin:auto;

background:rgba(255,255,255,.25);

backdrop-filter:blur(8px);

padding:18px;

border-radius:28px;

box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:18px;

}

.card{

background:white;

border-radius:20px;

height:120px;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

font-size:28px;

font-weight:700;

transition:.35s;

box-shadow:0 10px 20px rgba(0,0,0,.12);

}

.card i{

margin-bottom:10px;

font-size:36px;

color:#b98b42;

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 18px 35px rgba(0,0,0,.18);

}

.large{

grid-column:span 2;

height:250px;

background:linear-gradient(135deg,#173450,#32596c);

color:#deb160;

position:relative;

overflow:hidden;

}

.large i{

position:absolute;

left:40px;

bottom:30px;

font-size:120px;

color:#e9d2a0;

}

.novel{

height:250px;

background:linear-gradient(#f4b15b,#ca6f4d);

color:white;

}

.novel i{

font-size:90px;

color:#ffe9b5;

}
/*==============================
  ANNOUNCEMENT
===============================*/

.announce{
    width:86%;
    margin:30px auto;
    padding:18px;
    text-align:center;
    background:#fff;
    border-radius:18px;
    font-size:20px;
    font-weight:700;
    color:#6c4a0b;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

/*==============================
  FOOTER
===============================*/

footer{
    margin-top:50px;
    background:#fff;
    padding:25px;
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
    box-shadow:0 -8px 20px rgba(0,0,0,.08);
}

footer a{
    color:#333;
    font-weight:600;
    transition:.3s;
}

footer a:hover{
    color:#c79d4b;
}

/*==============================
  SCROLLBAR
===============================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#ececec;
}

::-webkit-scrollbar-thumb{
    background:#c89d4a;
    border-radius:20px;
}

/*==============================
  ANIMATION
===============================*/

.card,
.search-box,
.premium-box{
    animation:fadeUp .7s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/*==============================
  RESPONSIVE
===============================*/

@media(max-width:1200px){

.grid{
grid-template-columns:repeat(3,1fr);
}

.large{
grid-column:span 3;
}

}

@media(max-width:900px){

header .container{
flex-direction:column;
gap:20px;
}

nav{
flex-wrap:wrap;
justify-content:center;
gap:15px;
}

.grid{
grid-template-columns:repeat(2,1fr);
}

.large{
grid-column:span 2;
}

.search-box{
width:95%;
}

.premium-box{
flex-direction:column;
gap:15px;
text-align:center;
}

}

@media(max-width:600px){

.grid{
grid-template-columns:1fr;
}

.large{
grid-column:span 1;
height:220px;
}

.novel{
height:180px;
}

.card{
height:100px;
}

nav a{
font-size:15px;
}

.search-box input{
font-size:16px;
}

}