:root{
    --primary:#164863;
    --primary2:#427d9d;
    --accent:#f4b942;
    --dark:#102a43;
    --text:#334e68;
    --muted:#829ab1;
    --bg:#f5f7fa;
    --white:#fff;
    --border:#e5ebf0;
}

html{direction:rtl}

body,
button,
input,
select,
textarea{
    font-family:"Cairo",sans-serif!important;
}

body{
    background:var(--bg);
    color:var(--text);
    line-height:1.9;
}

/* HEADER */

.site-header{
    background:#fff;
    border-bottom:1px solid var(--border);
}

.inside-header{
    padding-top:20px;
    padding-bottom:20px;
}

.site-branding .main-title,
.site-branding .main-title a{
    color:var(--dark);
    font-weight:800;
}

.site-description{
    color:var(--muted);
}

/* MENU */

.main-navigation{
    background:linear-gradient(135deg,var(--primary),var(--primary2));
}

.main-navigation .main-nav ul li a{
    font-weight:700;
}

.main-navigation .main-nav ul li:hover>a,
.main-navigation .main-nav ul li[class*="current-menu-"]>a{
    background:rgba(255,255,255,.12);
}

/* CONTENT */

.site-content{
    padding-top:35px;
    padding-bottom:50px;
}

.site-main article{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    margin-bottom:25px;
    box-shadow:0 8px 30px rgba(16,42,67,.06);
    transition:.25s ease;
}

.site-main article:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 40px rgba(16,42,67,.10);
}

.site-main article .inside-article{
    padding:28px;
}

.entry-title,
.entry-title a{
    color:var(--dark);
    font-weight:800;
    line-height:1.5;
}

.entry-title a:hover{
    color:var(--primary2);
}

.entry-meta{
    color:var(--muted);
    font-size:13px;
}

.post-image img,
.featured-image img{
    border-radius:14px;
}

/* SIDEBAR */

.widget{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:22px;
    margin-bottom:22px;
    box-shadow:0 8px 30px rgba(16,42,67,.05);
}

.widget-title{
    color:var(--dark);
    font-size:18px;
    font-weight:800;
    border-right:4px solid var(--accent);
    padding-right:12px;
}

/* LINKS */

a{
    color:var(--primary2);
    transition:.2s;
}

/* BUTTONS */

button,
input[type="submit"],
.button{
    background:var(--primary);
    border-radius:10px;
    font-weight:700;
}

/* FOOTER */

.site-footer{
    background:var(--dark);
    color:#d9e2ec;
}

.site-footer a{
    color:#fff;
}

/* MOBILE */

@media(max-width:768px){

    .site-content{
        padding:18px 14px 35px;
    }

    .site-main article .inside-article{
        padding:20px;
    }

    .entry-title{
        font-size:21px;
    }

    .widget{
        padding:18px;
    }
}


/* ==================================================
   AL3AREEN MODERN — HOMEPAGE V2
   ================================================== */


.ar-home{
    background:#f6f8fb;
}

.ar-wrap{
    width:min(1180px,calc(100% - 40px));
    margin:auto;
}


/* HERO */

.ar-hero{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 15% 20%,rgba(244,185,66,.17),transparent 28%),
        radial-gradient(circle at 85% 70%,rgba(66,125,157,.28),transparent 35%),
        linear-gradient(135deg,#102f44,#164863 55%,#286784);
    color:#fff;
    padding:85px 0 75px;
}

.ar-hero:after{
    content:"";
    position:absolute;
    bottom:-80px;
    left:-5%;
    width:110%;
    height:130px;
    background:#f6f8fb;
    border-radius:50% 50% 0 0;
}

.ar-hero-inner{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1.25fr .75fr;
    align-items:center;
    gap:70px;
}

.ar-eyebrow{
    display:inline-flex;
    background:rgba(255,255,255,.11);
    border:1px solid rgba(255,255,255,.17);
    padding:7px 15px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
    margin-bottom:18px;
}

.ar-hero h1{
    color:#fff;
    font-size:48px;
    line-height:1.45;
    margin:0 0 18px;
    font-weight:800;
}

.ar-hero h1 strong{
    color:#ffd166;
}

.ar-hero-content>p{
    color:#dceaf2;
    font-size:17px;
    max-width:650px;
    margin:0 0 27px;
}

.ar-search{
    display:flex;
    max-width:620px;
    background:#fff;
    padding:7px;
    border-radius:14px;
    box-shadow:0 20px 45px rgba(0,0,0,.16);
}

.ar-search input{
    flex:1;
    border:0!important;
    background:transparent!important;
    padding:12px 16px!important;
    outline:0;
    color:#102a43;
}

.ar-search button{
    border:0;
    background:#f4b942;
    color:#102a43;
    padding:11px 27px;
    border-radius:10px;
    cursor:pointer;
}

.ar-hero-stats{
    display:flex;
    gap:34px;
    margin-top:30px;
}

.ar-hero-stats div{
    display:flex;
    flex-direction:column;
}

.ar-hero-stats strong{
    color:#fff;
    font-size:20px;
}

.ar-hero-stats span{
    color:#b9d0dc;
    font-size:12px;
}


/* HERO ART */

.ar-hero-art{
    position:relative;
    height:330px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ar-book{
    position:relative;
    z-index:3;
    width:205px;
    height:245px;
    background:linear-gradient(145deg,#fff,#eaf3f7);
    color:#164863;
    border-radius:12px 28px 28px 12px;
    box-shadow:25px 30px 60px rgba(0,0,0,.25);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    transform:rotate(-5deg);
    border-right:9px solid #f4b942;
}

.ar-book:after{
    content:"";
    position:absolute;
    right:13px;
    top:15px;
    bottom:15px;
    width:1px;
    background:#d5e1e8;
}

.ar-book-icon{
    width:65px;
    height:65px;
    display:grid;
    place-items:center;
    background:#164863;
    color:#fff;
    border-radius:50%;
    font-size:30px;
    font-weight:800;
    margin-bottom:15px;
}

.ar-book strong{
    text-align:center;
    font-size:22px;
    line-height:1.5;
}

.ar-orbit{
    position:absolute;
    border:1px solid rgba(255,255,255,.17);
    border-radius:50%;
}

.ar-orbit-one{
    width:310px;
    height:310px;
}

.ar-orbit-two{
    width:390px;
    height:220px;
    transform:rotate(30deg);
}

.ar-float{
    position:absolute;
    color:#ffd166;
}

.ar-float-1{top:30px;right:30px;font-size:25px}
.ar-float-2{bottom:35px;left:30px;font-size:13px}
.ar-float-3{top:70px;left:5px;font-size:17px}


/* SECTIONS */

.ar-section{
    padding:70px 0;
}

.ar-section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:30px;
    margin-bottom:30px;
}

.ar-section-head span{
    color:#427d9d;
    font-size:13px;
    font-weight:800;
}

.ar-section-head h2{
    margin:5px 0 0;
    color:#102a43;
    font-size:30px;
    font-weight:800;
}

.ar-section-head p{
    margin:0;
    color:#829ab1;
}


/* CATEGORIES */

.ar-categories{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.ar-category-card{
    position:relative;
    background:#fff;
    border:1px solid #e5ebf0;
    border-radius:16px;
    padding:24px;
    text-decoration:none;
    box-shadow:0 8px 30px rgba(16,42,67,.045);
    transition:.25s ease;
}

.ar-category-card:hover{
    transform:translateY(-5px);
    border-color:#b8d2df;
    box-shadow:0 15px 40px rgba(16,42,67,.10);
}

.ar-category-icon{
    width:45px;
    height:45px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:#edf5f8;
    color:#164863;
    font-size:19px;
    margin-bottom:15px;
}

.ar-category-card strong{
    display:block;
    color:#102a43;
    font-size:16px;
    margin-bottom:4px;
}

.ar-category-card small{
    color:#829ab1;
}

.ar-arrow{
    position:absolute;
    left:20px;
    bottom:23px;
    color:#427d9d;
}


/* POSTS */

.ar-latest-section{
    background:#fff;
}

.ar-post-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.ar-post-card{
    overflow:hidden;
    border:1px solid #e5ebf0;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 30px rgba(16,42,67,.05);
    transition:.25s;
}

.ar-post-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 45px rgba(16,42,67,.11);
}

.ar-post-image{
    display:block;
    height:215px;
    overflow:hidden;
    background:#eaf1f5;
}

.ar-post-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.ar-post-card:hover .ar-post-image img{
    transform:scale(1.04);
}

.ar-placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    background:
        linear-gradient(135deg,#164863,#427d9d);
}

.ar-placeholder span{
    width:70px;
    height:70px;
    border:2px solid rgba(255,255,255,.4);
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    font-size:30px;
    font-weight:800;
}

.ar-post-body{
    padding:22px;
}

.ar-post-cat{
    display:inline-block;
    color:#427d9d;
    background:#edf5f8;
    padding:4px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
    margin-bottom:10px;
}

.ar-post-card h3{
    font-size:18px;
    line-height:1.65;
    margin:0 0 10px;
}

.ar-post-card h3 a{
    color:#102a43;
    text-decoration:none;
}

.ar-post-card p{
    color:#627d98;
    font-size:13px;
    line-height:1.9;
    margin-bottom:18px;
}

.ar-post-footer{
    border-top:1px solid #edf1f4;
    padding-top:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    font-size:11px;
}

.ar-post-footer time{
    color:#9aabb8;
}

.ar-post-footer a{
    color:#164863;
    font-weight:800;
    text-decoration:none;
}


/* CTA */

.ar-cta{
    padding:70px 0;
}

.ar-cta-box{
    background:
        radial-gradient(circle at 10% 20%,rgba(244,185,66,.17),transparent 25%),
        linear-gradient(135deg,#102f44,#164863);
    border-radius:24px;
    padding:45px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    color:#fff;
}

.ar-cta-box span{
    color:#ffd166;
    font-size:13px;
    font-weight:700;
}

.ar-cta-box h2{
    color:#fff;
    margin:6px 0;
    font-size:27px;
}

.ar-cta-box p{
    margin:0;
    color:#c7dae4;
}

.ar-cta-box>a{
    flex:0 0 auto;
    background:#f4b942;
    color:#102a43;
    text-decoration:none;
    padding:13px 25px;
    border-radius:11px;
    font-weight:800;
}


/* RESPONSIVE */

@media(max-width:900px){

    .ar-hero-inner{
        grid-template-columns:1fr;
    }

    .ar-hero-art{
        display:none;
    }

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

    .ar-categories{
        grid-template-columns:repeat(2,1fr);
    }

    .ar-post-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){

    .ar-wrap{
        width:min(100% - 26px,1180px);
    }

    .ar-hero{
        padding:55px 0 80px;
    }

    .ar-hero h1{
        font-size:31px;
    }

    .ar-hero-content>p{
        font-size:14px;
    }

    .ar-search button{
        padding:10px 18px;
    }

    .ar-hero-stats{
        gap:18px;
        justify-content:space-between;
    }

    .ar-hero-stats strong{
        font-size:16px;
    }

    .ar-section{
        padding:45px 0;
    }

    .ar-section-head{
        display:block;
    }

    .ar-section-head h2{
        font-size:25px;
    }

    .ar-section-head p{
        margin-top:8px;
    }

    .ar-categories{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .ar-category-card{
        padding:17px;
    }

    .ar-post-grid{
        grid-template-columns:1fr;
    }

    .ar-post-image{
        height:210px;
    }

    .ar-cta-box{
        display:block;
        padding:30px 25px;
    }

    .ar-cta-box>a{
        display:inline-block;
        margin-top:20px;
    }
}

/* AL3AREEN HOMEPAGE DISPLAY FIX */
body.home #page,
body.home .site.grid-container,
body.home .site-content,
body.home #primary,
body.home #main{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

body.home #primary{
    float:none !important;
}

body.home #right-sidebar,
body.home #left-sidebar{
    display:none !important;
}

body.home .ar-home{
    display:block !important;
    width:100% !important;
    min-height:500px;
}

/* SINGLE POST FEATURED IMAGE */

.single-post .al3-single-featured{
    margin:0 0 25px;
    overflow:hidden;
    border-radius:18px;
    background:#edf2f5;
}

.single-post .al3-single-featured img{
    display:block;
    width:100%;
    height:auto;
    max-height:520px;
    object-fit:cover;
    margin:0;
}

@media(max-width:768px){
    .single-post .al3-single-featured{
        border-radius:12px;
        margin-bottom:18px;
    }
}

/* AL3AREEN HOMEPAGE — FINAL VISIBILITY FIX */

body.home #page,
body.home .site,
body.home .site-content,
body.home #primary,
body.home #main,
body.home .ar-home{
    display:block !important;
    width:100% !important;
    max-width:none !important;
}

body.home #page,
body.home .site-content,
body.home #primary,
body.home #main{
    margin:0 !important;
    padding:0 !important;
}

body.home #right-sidebar,
body.home #left-sidebar{
    display:none !important;
}

body.home .ar-home{
    min-height:600px;
}

/* ===== AL3AREEN HOMEPAGE V3 ===== */

body.home #page{
    max-width:none !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

body.home .ar-home{
    display:block !important;
    width:100% !important;
}

body.home .ar-hero{
    display:block !important;
}



/* ==================================================
   AL3AREEN — HOME MENU
   ================================================== */

.al3-home-menu>a{
    display:flex !important;
    align-items:center;
    gap:7px;
}

.al3-home-icon{
    font-size:17px;
    line-height:1;
}


/* ==================================================
   AL3AREEN — PREMIUM FOOTER
   ================================================== */

.al3-footer{
    position:relative;
    background:#0d293b;
    color:#bcd0dc;
    margin-top:0;
    overflow:hidden;
}

.al3-footer:before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(66,125,157,.10);
    top:-250px;
    left:-120px;
}

.al3-footer-top{
    position:relative;
    padding:65px 0 55px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.al3-footer-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1.5fr .75fr .85fr 1fr;
    gap:55px;
}


/* BRAND */

.al3-footer-logo{
    display:flex;
    align-items:center;
    gap:13px;
    text-decoration:none !important;
    margin-bottom:20px;
}

.al3-footer-logo-icon{
    width:53px;
    height:53px;
    flex:0 0 53px;

    display:grid;
    place-items:center;

    background:#f4b942;
    color:#102a43;

    border-radius:15px;

    font-size:25px;
    font-weight:800;
}

.al3-footer-logo>span:last-child{
    display:flex;
    flex-direction:column;
}

.al3-footer-logo strong{
    color:#fff;
    font-size:19px;
    font-weight:800;
}

.al3-footer-logo small{
    color:#86a9bc;
    font-size:11px;
    margin-top:2px;
}

.al3-footer-brand>p{
    max-width:390px;
    color:#9db7c5;
    font-size:13px;
    line-height:2;
    margin:0 0 20px;
}


/* SEARCH */

.al3-footer-search{
    display:flex;
    max-width:370px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.10);
    border-radius:11px;
    padding:5px;
}

.al3-footer-search input{
    flex:1;
    min-width:0;
    background:transparent !important;
    border:0 !important;
    color:#fff !important;
    padding:8px 11px !important;
    outline:0;
}

.al3-footer-search input::placeholder{
    color:#789aaa;
}

.al3-footer-search button{
    border:0;
    border-radius:8px;
    background:#f4b942;
    color:#102a43;
    padding:8px 17px;
    font-weight:800;
    cursor:pointer;
}


/* COLUMNS */

.al3-footer-column h3{
    position:relative;
    color:#fff;
    font-size:15px;
    font-weight:800;
    margin:7px 0 22px;
    padding-bottom:11px;
}

.al3-footer-column h3:after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;

    width:28px;
    height:3px;

    background:#f4b942;
    border-radius:10px;
}

.al3-footer-column ul{
    list-style:none;
    padding:0;
    margin:0;
}

.al3-footer-column li{
    margin-bottom:10px;
}

.al3-footer-column li a{
    color:#a8c0cd;
    text-decoration:none;
    font-size:13px;
    transition:.2s;
}

.al3-footer-column li a:before{
    content:"←";
    display:inline-block;
    margin-left:7px;
    color:#f4b942;
    opacity:.7;
}

.al3-footer-column li a:hover{
    color:#fff;
    padding-right:4px;
}


/* ABOUT */

.al3-footer-about>p{
    color:#9db7c5;
    font-size:13px;
    line-height:2;
}

.al3-footer-badge{
    display:flex;
    align-items:center;
    gap:11px;

    margin-top:17px;
    padding:12px;

    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.07);
    border-radius:11px;
}

.al3-footer-badge>span{
    color:#f4b942;
    font-size:20px;
}

.al3-footer-badge div{
    display:flex;
    flex-direction:column;
}

.al3-footer-badge strong{
    color:#fff;
    font-size:12px;
}

.al3-footer-badge small{
    color:#789aaa;
    font-size:10px;
}


/* BOTTOM */

.al3-footer-bottom{
    background:#092131;
    padding:19px 0;
}

.al3-footer-bottom-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.al3-footer-bottom p{
    margin:0;
    color:#7998a8;
    font-size:11px;
}

.al3-footer-bottom p strong{
    color:#bcd0dc;
}

.al3-footer-bottom a{
    color:#789aaa;
    text-decoration:none;
    font-size:11px;
}


/* HIDE GENERATEPRESS DEFAULT FOOTER */

.site-footer{
    display:none !important;
}


/* MOBILE */

@media(max-width:900px){

    .al3-footer-grid{
        grid-template-columns:1fr 1fr;
        gap:40px;
    }

}

@media(max-width:600px){

    .al3-footer-top{
        padding:45px 0 35px;
    }

    .al3-footer-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .al3-footer-brand>p{
        max-width:none;
    }

    .al3-footer-search{
        max-width:none;
    }

    .al3-footer-bottom-inner{
        display:block;
        text-align:center;
    }

    .al3-footer-bottom a{
        display:inline-block;
        margin-top:7px;
    }

}

/* Hide old search area above main navigation */
.site-header .search-form,
.site-header .widget_search,
.site-header .wp-block-search,
.inside-header .search-form,
.inside-header .widget_search,
.inside-header .wp-block-search,
.header-widget .search-form,
.header-widget .widget_search,
.header-widget .wp-block-search,
.header-widget{
    display:none !important;
}

/* Keep header clean after removing search */
.inside-header{
    min-height:0 !important;
}
