/*=================================================
            RESET
=================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Cairo",sans-serif;

    direction:rtl;

    background:linear-gradient(180deg,#eef8f2 0%,#f8fafc 100%);

    color:#1f2937;

    line-height:1.9;

}


/*=================================================
            HEADER
=================================================*/

.header{

    position:sticky;

    top:0;

    width:100%;

    background:rgba(15,139,87,.95);

    backdrop-filter:blur(12px);

    padding:18px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    z-index:999;

}

.header h2{

    color:#fff;

    font-size:28px;

    font-weight:800;

}


/* زر الرجوع */

.back-btn{

    text-decoration:none;

    color:white;

    background:rgba(255,255,255,.18);

    padding:10px 18px;

    border-radius:12px;

    transition:.35s;

    font-weight:700;

}

.back-btn:hover{

    background:white;

    color:#0f8b57;

}


/*=================================================
            CONTAINER
=================================================*/

.container{

    width:92%;

    max-width:950px;

    margin:55px auto;

}


/*=================================================
            ARTICLE
=================================================*/

.article{

    background:white;

    border-radius:28px;

    padding:50px;

    box-shadow:0 18px 45px rgba(0,0,0,.08);

}


/*=================================================
        READING TIME
=================================================*/

.reading-time{

    display:inline-block;

    background:#e8fff2;

    color:#0f8b57;

    padding:8px 18px;

    border-radius:30px;

    font-weight:700;

    margin-bottom:25px;

}


/*=================================================
            TITLE
=================================================*/

.article h1{

    font-size:46px;

    color:#123b2c;

    margin-bottom:25px;

    line-height:1.4;

}


/*=================================================
        INTRODUCTION
=================================================*/

.intro{

    font-size:22px;

    color:#475569;

    line-height:2.2;

    margin-bottom:45px;

}


/*=================================================
            HEADINGS
=================================================*/

.article h2{

    font-size:31px;

    color:#0f8b57;

    margin-top:45px;

    margin-bottom:20px;

    position:relative;

    padding-right:18px;

}


/* الخط الأخضر */

.article h2::before{

    content:"";

    position:absolute;

    right:0;

    top:6px;

    width:6px;

    height:38px;

    background:#22c55e;

    border-radius:50px;

}


/*=================================================
            PARAGRAPHS
=================================================*/

.article p{

    font-size:20px;

    color:#4b5563;

    line-height:2.15;

    margin-bottom:20px;

}
/*=================================================
                TIP BOX
=================================================*/

.tip{

    margin-top:40px;

    margin-bottom:40px;

    background:linear-gradient(135deg,#f0fff6,#ffffff);

    border-right:6px solid #16a34a;

    padding:28px;

    border-radius:22px;

    box-shadow:0 12px 30px rgba(34,197,94,.10);

}

.tip h3{

    color:#15803d;

    font-size:25px;

    margin-bottom:15px;

}

.tip p{

    margin:0;

}


/*=================================================
            WARNING BOX
=================================================*/

.warning{

    margin-top:45px;

    margin-bottom:45px;

    background:linear-gradient(135deg,#fff5f5,#ffffff);

    border-right:6px solid #ef4444;

    padding:28px;

    border-radius:22px;

    box-shadow:0 12px 30px rgba(239,68,68,.10);

}

.warning h3{

    color:#dc2626;

    font-size:25px;

    margin-bottom:15px;

}

.warning p{

    margin:0;

}


/*=================================================
            RELATED QUESTIONS
=================================================*/

.related{

    margin-top:60px;

    background:#f8fafc;

    padding:30px;

    border-radius:24px;

    border:1px solid #e2e8f0;

}

.related h3{

    font-size:28px;

    color:#0f8b57;

    margin-bottom:20px;

}

.related ul{

    list-style:none;

}

.related li{

    margin-bottom:14px;

}

.related a{

    display:flex;

    justify-content:space-between;

    align-items:center;

    text-decoration:none;

    color:#1f2937;

    background:white;

    padding:18px 22px;

    border-radius:16px;

    transition:.35s;

    box-shadow:0 5px 15px rgba(0,0,0,.05);

}

.related a:hover{

    transform:translateX(-6px);

    background:#16a34a;

    color:white;

}


/*=================================================
            NAVIGATION
=================================================*/

.navigation{

    margin-top:55px;

    display:flex;

    justify-content:space-between;

    gap:20px;

}

.navigation a{

    flex:1;

    text-align:center;

    text-decoration:none;

    padding:18px;

    border-radius:16px;

    font-size:19px;

    font-weight:700;

    transition:.35s;

}


/* زر الرجوع */

.navigation a:first-child{

    background:#e2e8f0;

    color:#1f2937;

}

.navigation a:first-child:hover{

    background:#cbd5e1;

}


/* زر التالي */

.navigation a:last-child{

    background:#16a34a;

    color:white;

}

.navigation a:last-child:hover{

    background:#15803d;

    transform:translateY(-4px);

}


/*=================================================
                SELECTION
=================================================*/

::selection{

    background:#16a34a;

    color:white;

}/*=================================================
            RESPONSIVE
=================================================*/

@media(max-width:900px){

.article{

padding:35px;

}

.article h1{

font-size:38px;

}

.article h2{

font-size:28px;

}

.intro{

font-size:20px;

}

.article p{

font-size:18px;

}

}


@media(max-width:768px){

.header{

padding:16px;

flex-direction:column;

gap:15px;

}

.header h2{

font-size:22px;

}

.back-btn{

width:100%;

text-align:center;

}

.container{

width:95%;

margin:30px auto;

}

.article{

padding:25px;

border-radius:22px;

}

.reading-time{

font-size:15px;

}

.article h1{

font-size:31px;

}

.article h2{

font-size:24px;

}

.intro{

font-size:18px;

line-height:2;

}

.article p{

font-size:17px;

line-height:2;

}

.tip,
.warning{

padding:20px;

}

.tip h3,
.warning h3{

font-size:21px;

}

.related{

padding:20px;

}

.related h3{

font-size:23px;

}

.related a{

padding:15px;

font-size:16px;

}

.navigation{

flex-direction:column;

}

.navigation a{

font-size:17px;

}

}


@media(max-width:480px){

.article{

padding:18px;

}

.article h1{

font-size:26px;

}

.article h2{

font-size:21px;

}

.intro{

font-size:16px;

}

.article p{

font-size:15px;

}

.tip h3,
.warning h3{

font-size:18px;

}

.related h3{

font-size:20px;

}

.reading-time{

font-size:14px;

padding:7px 14px;

}

}


/*=================================================
            SCROLL BAR
=================================================*/

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#edf2f7;

}

::-webkit-scrollbar-thumb{

background:#16a34a;

border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

background:#15803d;

}


/*=================================================
            ANIMATIONS
=================================================*/

.article{

animation:fadeUp .7s ease;

}

.tip{

animation:fadeUp .8s ease;

}

.warning{

animation:fadeUp .9s ease;

}

.related{

animation:fadeUp 1s ease;

}

.navigation{

animation:fadeUp 1.1s ease;

}


@keyframes fadeUp{

from{

opacity:0;

transform:translateY(30px);

}

to{

opacity:1;

transform:translateY(0);

}

}


/*=================================================
            HOVER EFFECT
=================================================*/

.article{

transition:.35s;

}

.article:hover{

box-shadow:0 25px 60px rgba(0,0,0,.12);

}


/*=================================================
            IMAGES
=================================================*/

.article img{

width:100%;

border-radius:20px;

margin:30px 0;

box-shadow:0 10px 30px rgba(0,0,0,.10);

}


/*=================================================
            LINKS
=================================================*/

.article a{

color:#16a34a;

font-weight:700;

text-decoration:none;

transition:.3s;

}

.article a:hover{

color:#15803d;

text-decoration:underline;

}