  /*
Theme Name: Azraq
Theme URI:
Author: Dalia
Description: قالب مجلة أزرق الثقافية
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;700&display=swap');


/*=====================================================
RESET
=====================================================*/

*,
*::before,
*::after{

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    padding:0;

    direction:rtl;

    overflow-x:hidden;

    background:#faf8f2;

    color:#222;

    font-family:"Noto Naskh Arabic", serif;

    font-size:15px;

    line-height:1.8;

}

img{

    display:block;

    max-width:100%;

    height:auto;

}

a{

    color:inherit;

    text-decoration:none;

}

ul{

    margin:0;

    padding:0;

    list-style:none;

}

button,
input,
textarea,
select{

    font-family:"Noto Naskh Arabic", serif;

}

h1,
h2,
h3,
h4,
h5,
h6{

    margin:0;

    font-family:"Noto Naskh Arabic", serif;

    font-weight:700;

    letter-spacing:.2px;

}


/*=====================================================
CONTAINER
=====================================================*/

.container{

    width:min(1200px,94%);

    margin:40px auto;

}

/*=====================================================
HEADER
=====================================================*/

.site-header{

    position:relative;

    background:
        linear-gradient(rgba(7,29,54,.45), rgba(7,29,54,.45)),
        url("header-pattern.png") center top / cover no-repeat;

    padding:24px 20px 20px;

}

.header-inner{

    max-width:1200px;

    margin:0 auto;

    text-align:center;

    position:relative;

}

.logo{

    display:flex;

    justify-content:center;

    margin-bottom:10px;

}

.logo img{

    width:120px;

    height:auto;

}

.tagline{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:18px;

    color:#F4F1EA;

    font-size:15px;

    margin:8px 0 14px;

    letter-spacing:.3px;

}

.tagline::before,
.tagline::after{

    content:"";

    width:90px;

    height:1px;

    background:rgba(255,255,255,.30);

}

.header-line{

    display:none;

}
/*=====================================================
NAVIGATION
=====================================================*/

.main-nav{

    display:flex;

    justify-content:center;

}

.main-nav ul{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:32px;

    padding:16px 30px;

    background:#fff;

    border-radius:999px;

    box-shadow:0 10px 28px rgba(0,0,0,.06);

    flex-wrap:wrap;

}

.main-nav li{

    position:relative;

}

.main-nav a{

    color:#2b2b2b;

    font-size:15px;

    font-weight:600;

    position:relative;

    transition:.25s;

}

.main-nav a::after{

    content:"";

    position:absolute;

    right:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#8d7653;

    transition:.3s;

}

.main-nav a:hover{

    color:#071d36;

}

.main-nav a:hover::after{

    width:100%;

}


/*=====================================================
MOBILE MENU BUTTON
=====================================================*/

.menu-toggle{

    display:none;

    position:absolute;

    top:18px;

    right:18px;

    width:46px;

    height:46px;

    border:none;

    border-radius:50%;

    background:#fff;

    color:#071d36;

    font-size:24px;

    cursor:pointer;

    box-shadow:0 6px 18px rgba(0,0,0,.10);

}


/*=====================================================
MOBILE MENU
=====================================================*/

.mobile-menu{

    position:fixed;

    top:0;

    right:-320px;

    width:290px;

    height:100vh;

    background:#f8f5ef;

    padding:90px 35px 40px;

    display:flex;

    flex-direction:column;

    transition:.35s;

    z-index:9999;

    box-shadow:-8px 0 30px rgba(0,0,0,.12);

}

.mobile-menu.open{

    right:0;

}

.mobile-menu a{

    padding:16px 0;

    border-bottom:1px solid #e8dfd1;

    color:#071d36;

    font-size:18px;

    transition:.25s;

}

.mobile-menu a:hover{

    color:#8d7653;

    padding-right:8px;

}
/*=====================================================
HERO
=====================================================*/

.hero-article{

    position:relative;

    overflow:hidden;

    margin:20px auto 70px;

    border-radius:20px;

    background:#ddd;

    box-shadow:0 15px 40px rgba(0,0,0,.12);

}

.hero-article img{

    width:100%;

    height:560px;

    object-fit:cover;

}

.hero-article::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.72),
        rgba(0,0,0,.15) 55%,
        transparent
    );

}

.hero-overlay{

    position:absolute;

    right:50px;

    left:50px;

    bottom:45px;

    z-index:2;

    color:#fff;

    padding-top:55px;

}


.hero-category{

    position:absolute;

    top:25px;

    right:25px;

    z-index:10;

    display:inline-block;

    padding:8px 20px;

    background:#fff;

    color:#071d36;

    border-radius:999px;

    font-size:14px;

    font-weight:700;

}





.hero-overlay h1{

    margin:0 0 15px;

    font-size:34px;

    line-height:1.45;

}

.hero-overlay h1 a{

    color:#fff;

}

.hero-overlay p{

    max-width:650px;

    margin:0 0 25px;

    color:#f5f5f5;

    font-size:18px;

    line-height:2;

}

.hero-button{

    display:inline-block;

    padding:12px 28px;

    border-radius:999px;

    background:#071d36;

    color:#fff;

    transition:.3s;

}

.hero-button:hover{

    background:#153b64;

}
/*=====================================================
SECTION TITLES
=====================================================*/

.section-title{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:18px;

    margin:60px 0 40px;

}

.section-title span{

    width:70px;

    height:1px;

    background:#b99b6b;

}

.section-title h2{

    color:#071d36;

    font-size:22px;

    font-weight:700;

    white-space:nowrap;

}


/*=====================================================
AMA BA'D
=====================================================*/

.amabad-box{

    max-width:760px;

    margin:30px 0 70px auto;

    padding:30px 24px;

    text-align:right;

    background:transparent;

    border-right:3px solid #071d36;

}

.amabad-box h3{

    margin:0 0 18px;

    color:#071d36;

    font-size:28px;

    line-height:1.4;

}

.amabad-box p{

    margin:0;

    max-width:650px;

    color:#555;

font-size:16px;
line-height:1.85;

}

.amabad-box .read-more{

    display:inline-block;

    margin-top:18px;

    color:#071d36;

    font-weight:700;

    transition:.25s;

}

.amabad-box .read-more:hover{

    color:#8d7653;

}
/*=====================================================
FEATURED ARTICLES
=====================================================*/

.featured-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:30px;

    margin-bottom:70px;

}

.featured-item{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    min-width:0;

    transition:.3s;

}

.featured-item:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 36px rgba(0,0,0,.12);

}

.featured-item img{

    width:100%;

    height:320px;

    object-fit:cover;

}

.featured-content{

    padding:24px;

}

.featured-content h2{

    margin:12px 0;

    font-size:22px;

    line-height:1.45;

}

.featured-content h2 a{

    color:#071d36;

}

.featured-content p{

    color:#666;

    line-height:1.9;

}


/*=====================================================
ARTICLE CARDS
=====================================================*/

.articles-grid{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:28px;

}

.mag-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    min-width:0;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.mag-card:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 36px rgba(0,0,0,.12);

}

.mag-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.card-content{

    padding:22px;

}

.card-category{

    display:inline-block;

    margin-bottom:10px;

    color:#8d7653;

    font-size:13px;

    font-weight:700;

}

.card-content h3{

    margin:0 0 12px;

    font-size:18px;

    line-height:1.45;

}

.card-content h3 a{

    color:#071d36;

}

.card-content p{

    margin:0;

    color:#666;

    line-height:1.9;

}
/*=====================================================
SINGLE ARTICLE
=====================================================*/

.single-article{

    max-width:100%;

    overflow:hidden;

    margin-bottom:60px;

    padding:45px;

    background:#fff;

    border-radius:20px;

    box-shadow:0 12px 30px rgba(0,0,0,.06);

}

.single-article h1{

    margin-bottom:25px;

    color:#071d36;

    font-size:30px;

    line-height:1.4;

}

.article-meta{

    margin-bottom:35px;

    color:#8d7653;

    font-size:15px;

}

.article-content{
    color:#333;
    font-size:17px;
    line-height:1.8;
}

.article-content p{
    margin-bottom:20px;
}


.article-content h2,
.article-content h3,
.article-content h4{

    margin:40px 0 18px;

    color:#071d36;

    line-height:1.5;

}

.article-content img{

    display:block;

    max-width:100%;

    height:auto;

    margin:35px auto;

    border-radius:12px;

}

.article-content a{

    color:#071d36;

    text-decoration:underline;

    text-underline-offset:3px;

}

.article-content ul,
.article-content ol{

    margin:20px 0;

    padding-right:25px;

}

.article-content li{

    margin-bottom:10px;

}

.article-content,
.article-content p,
.article-content a,
.article-content li{

    overflow-wrap:break-word;

    word-break:break-word;

}



/*=====================================================
BOOK COVER
=====================================================*/

.book-cover{

    float:right;

    width:220px;

    margin:0 0 25px 35px;

}

.book-cover img{

    width:100%;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}



/*=====================================================
WRITER
=====================================================*/

.writer-box{

    display:flex;

    align-items:center;

    gap:25px;

    margin-bottom:35px;

}

.writer-image{

    width:120px;

    height:120px;

    flex-shrink:0;

    overflow:hidden;

    border-radius:50%;

}

.writer-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}



/*=====================================================
POET
=====================================================*/

.poet-profile{

    display:flex;

    align-items:center;

    margin-bottom:35px;

}

.poet-profile img{

    width:130px;

    height:130px;

    border-radius:50%;

    object-fit:cover;

}

.poem{

    margin:40px auto;

    text-align:center;

}

.poem .verse{

    margin-bottom:30px;

}

.poem .verse span{

    display:block;

    font-size:20px;

    line-height:2.4;

}
/*=====================================================
CATEGORY PAGES
=====================================================*/

.archive-title{

    margin:40px 0;

    text-align:center;

    color:#071d36;

    font-size:32px;

    line-height:1.4;

}

.archive-grid{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:30px;

}

.archive-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.archive-card:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 36px rgba(0,0,0,.12);

}

.archive-card img{

    width:100%;

    height:240px;

    object-fit:cover;

}

.archive-card-content{

    padding:22px;

}

.archive-card-content h2{

    margin:0 0 12px;

    color:#071d36;

    font-size:22px;

    line-height:1.45;

}

.archive-card-content p{

    margin:0;

    color:#666;

    line-height:1.9;

}


/*=====================================================
FOOTER
=====================================================*/

.site-footer{

    margin-top:80px;

    padding:50px 20px;

    background:#071d36;

    color:#fff;

    text-align:center;

}

.site-footer p{

    margin:0;

    color:#e7e7e7;

    font-size:15px;

    line-height:1.8;

}
/*=====================================================
RESPONSIVE
=====================================================*/

@media (max-width:1024px){

    .container{

        width:92%;

    }

    .main-nav ul{

        gap:20px;

        padding:14px 22px;

    }

    .featured-grid{

        grid-template-columns:1fr;

    }

    .articles-grid,
    .archive-grid{

        grid-template-columns:repeat(2,minmax(0,1fr));

    }

}


/*=====================================================
MOBILE
=====================================================*/

@media (max-width:768px){

    body{

        font-size:15px;

    }

    .container{

        width:92%;

        margin:25px auto;

    }

    .site-header{

        padding:18px 15px 15px;

        background:
            linear-gradient(rgba(7,29,54,.50),rgba(7,29,54,.50)),
            url("header-pattern.png") center top / cover no-repeat;

    }

   .logo img{

    width:100px;

    max-width:90%;

    height:auto;

}


    .tagline{

        font-size:13px;

        gap:10px;

    }

    .tagline::before,
    .tagline::after{

        width:35px;

    }

    .main-nav{

        display:none;

    }

    .menu-toggle{

        display:block;

    }

.hero-article{

    margin-bottom:40px;

    border-radius:15px;

    position:relative;

}

.hero-article img{

    height:320px;

}


.hero-overlay{

    right:20px;

    left:20px;

    bottom:20px;

}


/* مكان شارة التصنيف في الجوال */

.hero-category{

    top:18px;

    right:18px;

}


    .hero-overlay h1{

        font-size:24px;

    }

    .hero-overlay p{

        display:none;

    }

    .section-title{

        gap:8px;

        margin:40px 0 25px;

    }

    .section-title span{

        width:28px;

    }

    .section-title h2{

        font-size:20px;

    }

    .featured-grid,
    .articles-grid,
    .archive-grid{

        grid-template-columns:1fr;

        gap:20px;

    }

    .featured-item img{

        height:230px;

    }

    .mag-card img{

        height:210px;

    }

    .single-article{

        padding:25px 18px;

    }

    .single-article h1{

        font-size:28px;

    }

    .book-cover{

        float:none;

        width:180px;

        margin:25px auto;

    }

    .writer-box{

        flex-direction:column;

        text-align:center;

    }

    .poet-profile{

        justify-content:center;

    }

}


/*=====================================================
SMALL PHONES
=====================================================*/

@media (max-width:380px){

    .logo img{

        width:145px;

    }

    .tagline{

        font-size:12px;

    }

    .tagline::before,
    .tagline::after{

        width:20px;

    }

    .hero-overlay h1{

        font-size:21px;

    }

    .section-title h2{

        font-size:18px;

    }

    .section-title span{

        width:18px;

    }

    .single-article h1{

        font-size:24px;

    }

    .poem .verse span{

        font-size:16px;

    }

}
.featured-item,
.mag-card{

    position:relative;

}

.poet-info{

    width:110px;

    height:110px;

    margin:25px auto;

    border-radius:50%;

    overflow:hidden;

}

.poet-info{

    width:110px;

    height:110px;

    margin:25px 0 25px auto;

    border-radius:50%;

    overflow:hidden;

}


.featured-item .card-category,
.mag-card .card-category{

    position:absolute;

    top:18px;

    right:18px;

    z-index:3;

    background:#fff;

    padding:6px 15px;

    border-radius:999px;

}
