@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root{
    --primary:#2563eb;
    --dark:#0f172a;
    --text:#172033;
    --muted:#64748b;
    --bg:#f7f9fc;
    --card:#ffffff;
    --border:#e5edf7;
    --shadow:0 18px 45px rgba(15,23,42,.08);
    --radius:28px;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    width:100%;
    overflow-x:hidden;
    scroll-behavior:smooth;
}

body{
    width:100%;
    min-width:0;
    margin:0;
    padding:0;
    overflow-x:hidden;
    direction:rtl;
    text-align:right;
    font-family:Cairo,Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.8;
}

img,svg,video,iframe{
    max-width:100%;
    height:auto;
}

a{
    color:inherit;
    text-decoration:none;
}

.container{
    width:100%;
    max-width:1180px;
    margin-inline:auto;
    padding-inline:18px;
}

.site-header{
    width:100%;
    max-width:100%;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
}

.nav{
    width:100%;
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.logo{
    font-size:clamp(22px,4vw,32px);
    font-weight:900;
    color:var(--primary);
    white-space:normal;
    line-height:1.4;
}

.menu-toggle{
    display:none;
    width:46px;
    height:46px;
    border:0;
    border-radius:16px;
    background:var(--primary);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    flex:0 0 auto;
}

.menu{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px 22px;
}

.menu a{
    color:#334155;
    font-weight:700;
    font-size:16px;
}

.menu a:hover{
    color:var(--primary);
}

.hero{
    width:100%;
    max-width:100%;
    overflow:hidden;
    padding-block:clamp(60px,10vw,110px);
    background:
        radial-gradient(circle at 20% 20%, rgba(37,99,235,.5), transparent 32%),
        linear-gradient(135deg,#2563eb 0%,#0f172a 100%);
    color:#fff;
}

.hero .container{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:22px;
}

.hero h1{
    margin:0 0 12px;
    font-size:clamp(34px,8vw,64px);
    line-height:1.25;
    font-weight:900;
    max-width:900px;
}

.hero p{
    margin:0;
    font-size:clamp(18px,4.8vw,30px);
    line-height:1.9;
    opacity:.94;
    max-width:850px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    max-width:100%;
    margin-top:28px;
    padding:15px 28px;
    border-radius:22px;
    background:#fff;
    color:var(--primary);
    font-weight:900;
    font-size:clamp(17px,4.5vw,24px);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

.content{
    width:100%;
    max-width:100%;
    overflow:hidden;
    padding-block:clamp(38px,8vw,80px);
}

.page{
    width:100%;
    max-width:100%;
    overflow:hidden;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:clamp(24px,6vw,44px);
    box-shadow:var(--shadow);
}

.page h1,
.page h2,
.page h3{
    line-height:1.4;
    margin-top:0;
    color:var(--dark);
}

.posts{
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap:20px;
    margin-top:26px;
}

.post{
    min-width:0;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.post small{
    color:var(--muted);
    font-weight:700;
}

.post h3{
    margin:8px 0;
    line-height:1.45;
}

.post p{
    color:#475569;
    overflow-wrap:anywhere;
}

.footer{
    width:100%;
    max-width:100%;
    padding:28px 0;
    background:#0f172a;
    color:#dbeafe;
    overflow:hidden;
}

@media (max-width:760px){
    .container{
        padding-inline:14px;
    }

    .nav{
        min-height:68px;
        align-items:center;
    }

    .menu-toggle{
        display:inline-grid;
        place-items:center;
    }

    .menu{
        position:fixed;
        top:68px;
        right:0;
        left:0;
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        background:#fff;
        border-bottom:1px solid var(--border);
        box-shadow:0 18px 45px rgba(15,23,42,.12);
        padding:10px 14px 16px;
        z-index:99;
        max-height:calc(100vh - 68px);
        overflow:auto;
    }

    body.menu-open .menu{
        display:flex;
    }

    .menu a{
        display:block;
        width:100%;
        padding:13px 14px;
        border-radius:14px;
        font-size:17px;
    }

    .menu a:hover{
        background:#eff6ff;
    }

    .hero{
        padding-block:58px;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:22px;
    }

    .btn{
        width:100%;
        padding:14px 18px;
    }

    .page{
        border-radius:22px;
    }
}

@media (max-width:420px){
    .logo{
        font-size:22px;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:20px;
    }
}
