/*
Theme Name: عين مراكش - News Portal
Author: Ain Marrakech
Version: 1.0
Description: قالب إخباري عربي RTL مستوحى من التصميم المرجعي.
*/
:root{
 --blue:#087b93;
 --blue2:#0c91aa;
 --brown:#087f98;
 --brown2:#086b80;
 --black:#087b93;
 --gray:#f4f4f4;
 --line:#e5e5e5;
 --text:#171717;
}
*{box-sizing:border-box}
html{direction:rtl}
body{margin:0;background:#fff;color:var(--text);font-family:Tahoma,Arial,sans-serif;font-size:14px;line-height:1.65}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{width:min(1320px,94%);margin:auto}

/* TOP BAR */
.topbar{height:40px;background:#087b93;color:#fff}
.topbar-inner{display:flex;align-items:center;height:40px}
.datebox{display:flex;align-items:center;gap:12px;min-width:370px;height:40px;padding:0 18px;font-size:13px}
.datebox .clock{font-weight:700;direction:ltr}
.breakingbar{height:40px;display:flex;align-items:center;flex:1;overflow:hidden}
.breaking-label{height:40px;background:#e00000;color:#fff;font-weight:800;padding:7px 25px;min-width:125px;text-align:center;font-size:17px}
.breaking-window{overflow:hidden;flex:1;background:var(--blue)}
.breaking-track{display:flex;gap:55px;width:max-content;white-space:nowrap;animation:ticker 35s linear infinite;padding:0 25px;color:#fff;font-weight:700}
.breaking-item:before{content:"●";font-size:8px;margin-left:8px;color:#bfe8ef}
.breaking-time{font-size:11px;color:#f3d2c0;margin-right:7px}
@keyframes ticker{from{transform:translateX(-10%)}to{transform:translateX(100%)}}

/* LOGO */
.logo-wrap{height:135px;display:flex;align-items:center;justify-content:center;background:#fff;border-bottom:1px solid #eee}
.logo{width:355px;height:105px;object-fit:contain}

/* NAV */
.navbar{background:#fff;border-bottom:3px solid var(--blue);box-shadow:0 1px 4px #0000000b}
.nav-inner{display:flex;align-items:stretch;min-height:49px}
.main-menu{list-style:none;padding:0;margin:0;display:flex;align-items:stretch;justify-content:center;gap:8px;width:100%}
.main-menu>li{position:relative}
.main-menu>li>a{display:flex;align-items:center;justify-content:center;height:49px;padding:0 22px;font-weight:800;white-space:nowrap}
.main-menu>li:hover>a,.main-menu>li.current-menu-item>a{background:#eef9fb;color:var(--brown)}
.main-menu>li:first-child>a{background:var(--blue);color:#fff;min-width:72px}
.sub-menu{display:none;position:absolute;right:0;top:49px;background:#fff;z-index:100;min-width:190px;margin:0;padding:5px 0;list-style:none;border-top:3px solid var(--blue);box-shadow:0 6px 18px #0002}
.menu-item-has-children:hover>.sub-menu{display:block}
.sub-menu li a{display:block;padding:9px 15px;border-bottom:1px solid #eee;font-weight:700}
.sub-menu li a:hover{background:#f5f5f5;color:var(--blue)}

/* HERO */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;margin-top:18px}
.slider{height:405px;position:relative;overflow:hidden;border-radius:4px;background:#0b7184}
.slide{display:none;position:relative;height:405px}.slide.active{display:block}
.slide>img{width:100%;height:405px;object-fit:cover}
.slide:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 25%,rgba(0,0,0,.84))}
.slide-info{position:absolute;right:26px;bottom:27px;z-index:2;color:#fff;left:30px}
.slide-cat{display:inline-block;background:var(--blue);padding:4px 12px;border-radius:3px;font-size:12px;font-weight:800}
.slide-title{font-size:28px;line-height:1.45;margin:8px 0 5px}
.slide-meta{font-size:12px}
.slide-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:48px;height:48px;border:0;border-radius:50%;background:#087b93cc;color:#fff;font-size:35px;cursor:pointer}
.prev{right:18px}.next{left:18px}
.dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:5}
.dot{width:10px;height:10px;border-radius:50%;background:#fff;cursor:pointer}.dot.active{background:var(--blue)}

/* NEWS24 */
.news24{height:405px;border:1px solid #e1e1e1;border-radius:4px;overflow:hidden;background:#fff}
.news24-head{height:49px;background:var(--blue);color:#fff;display:flex;align-items:center;padding:0 17px;font-size:21px;font-weight:900}
.news24-list{height:356px;overflow:auto}
.news24-item{display:flex;gap:9px;padding:10px 12px;border-bottom:1px solid #eee;min-height:66px}
.news24-thumb{width:72px;height:50px;object-fit:cover;border-radius:3px;order:0;flex:none}
.news24-text{flex:1}
.news24-title{font-size:13px;font-weight:800;line-height:1.5;display:block}
.news24-time{display:block;font-size:10px;color:#555;margin-top:3px}

/* SECTION */
.section{margin-top:20px}
.section-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--blue);height:40px;margin-bottom:14px}
.section-heading h2{margin:0;font-size:19px;font-weight:900;position:relative;padding:0 8px 6px 0}
.section-heading h2:after{content:"";position:absolute;right:0;bottom:-2px;width:55px;height:3px;background:var(--blue)}
.more{color:#888;font-weight:700;font-size:12px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{border:1px solid #e7e7e7;border-radius:4px;overflow:hidden;background:#fff}
.card-img{height:150px;width:100%;object-fit:cover}
.card-body{padding:9px 11px}
.card-cat{display:inline-block;background:var(--blue);color:#fff;padding:2px 7px;font-size:10px;border-radius:2px}
.card-title{font-size:14px;line-height:1.55;margin:6px 0 5px;font-weight:800}
.card-meta{font-size:10px;color:#777}

/* CATEGORY ROWS LIKE SCREENSHOT */
.category-section{margin-top:22px}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.mini-col{border-top:2px solid var(--blue);padding-top:5px}
.mini-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.mini-head h3{font-size:16px;margin:0;font-weight:900}
.mini-more{font-size:11px;color:#999}
.mini-post{display:flex;gap:7px;padding:8px 0;border-bottom:1px solid #eee;min-height:75px}
.mini-post img{width:67px;height:52px;object-fit:cover;border-radius:2px;flex:none}
.mini-post a{font-size:11px;line-height:1.45;font-weight:700}
.mini-time{display:block;font-size:9px;color:#777;margin-top:2px}

/* FOOTER */
.footer{background:#087b93;color:#fff;margin-top:35px;padding:30px 0;border-top:5px solid var(--brown)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:25px}
.footer h3{margin-top:0;border-bottom:1px solid #ffffff2a;padding-bottom:8px}

/* RESPONSIVE */
@media(max-width:1100px){
 .hero{grid-template-columns:1fr}.news24{height:300px}.news24-list{height:251px}
 .category-grid{grid-template-columns:repeat(3,1fr)}
 .main-menu{gap:0}.main-menu>li>a{padding:0 13px}
}
@media(max-width:700px){
 .topbar{height:auto}.topbar-inner{display:block;height:auto}.datebox{height:38px;justify-content:center;min-width:0}
 .breakingbar{height:38px}.breaking-label{height:38px;min-width:100px;font-size:14px;padding:7px 10px}
 .logo-wrap{height:105px}.logo{width:270px;height:90px}
 .nav-inner{overflow-x:auto}.main-menu{justify-content:flex-start;min-width:max-content}.main-menu>li>a{height:46px}
 .news-strip{margin-top:10px}.news-strip-title{padding:0 12px}
 .slider,.slide,.slide>img{height:310px}.slide-title{font-size:21px}
 .cards{grid-template-columns:repeat(2,1fr);gap:10px}.card-img{height:125px}
 .category-grid{grid-template-columns:repeat(2,1fr)}
 .footer-grid{grid-template-columns:1fr}
}

/* النسخة النهائية: لون العين الأزرق وإخفاء أي شريط أخبار ثانوي */
.news-strip{display:none!important}
.footer{color:#fff}
.footer h3{color:#fff}

/* تصنيفات موسعة ومتباعدة */
.main-menu{gap:14px}
.main-menu>li>a{padding-left:25px;padding-right:25px}
.category-grid{grid-template-columns:repeat(10,1fr);gap:10px}
.mini-col{min-width:0}
.mini-head h3{font-size:15px;color:var(--blue)}
/* شريط عاجل أزرق بالكامل */
.breaking-label{background:var(--blue)!important}
.breaking-window{background:var(--blue)!important}
.breaking-track{background:var(--blue)!important}
@media(max-width:1200px){.category-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:700px){.main-menu{gap:5px}.main-menu>li>a{padding-left:15px;padding-right:15px}.category-grid{grid-template-columns:repeat(2,1fr)}}

.author-meta{
    display:inline-block;
    margin-right:8px;
    color:var(--blue);
    font-size:10px;
    font-weight:700;
}
.article-author{
    color:var(--blue);
    font-size:13px;
    font-weight:700;
    margin:8px 0;
}
.single-author{
    display:inline-block;
    margin-right:8px;
    color:var(--blue);
    font-weight:800;
}

/* ترتيب صفحة المقال */
.single-article .article-title{
    font-size:40px;
    line-height:1.45;
    margin:0 0 20px;
    color:#17333a;
    font-weight:900;
}
.single-article .article-featured{
    width:100%;
    margin:0 0 15px;
}
.single-article .article-featured img{
    width:100%;
    max-height:600px;
    object-fit:cover;
    border-radius:4px;
}
.single-article .article-author{
    color:var(--blue);
    font-size:15px;
    font-weight:700;
    margin:8px 0 3px;
}
.single-article .article-date{
    color:#777;
    font-size:12px;
    margin-bottom:22px;
}
.single-article .article-content{
    font-size:18px;
    line-height:2;
}
@media(max-width:700px){
    .single-article .article-title{font-size:27px}
    .single-article .article-content{font-size:16px}
}

.category-full{margin-top:32px;padding-top:4px}
.category-full .section-heading{margin-bottom:14px}
.category-full .cards{grid-template-columns:repeat(4,1fr)}
.single-article{max-width:950px;margin:35px auto}
.single-article .article-title{font-size:40px;line-height:1.45;margin:0 0 20px;color:#17333a;font-weight:900}
.single-article .article-featured{width:100%;margin:0 0 14px}
.single-article .article-featured img{width:100%;max-height:600px;object-fit:cover;border-radius:4px}
.single-article .article-author{color:var(--blue);font-size:15px;font-weight:700;margin:8px 0 3px}
.single-article .article-date{color:#777;font-size:12px;margin-bottom:22px}
.single-article .article-content{font-size:18px;line-height:2}
@media(max-width:1000px){.category-full .cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.category-full .cards{grid-template-columns:1fr}.single-article .article-title{font-size:27px}.single-article .article-content{font-size:16px}}

/* آخر الأخبار: 4 مقالات فقط */
.latest-four{margin-top:30px}
.latest-four .cards{grid-template-columns:repeat(4,1fr)}
@media(max-width:1000px){.latest-four .cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.latest-four .cards{grid-template-columns:1fr}}

/* ترتيب المقال النهائي: الصورة ← التصنيف ← العنوان ← الكاتب والتاريخ والوقت */
.single-article{max-width:950px;margin:35px auto}
.single-article .article-featured{width:100%;margin:0 0 14px}
.single-article .article-featured img{display:block;width:100%;max-height:600px;object-fit:cover;border-radius:4px}
.single-article .article-category{margin:0 0 8px;font-size:14px;font-weight:800;color:var(--blue)}
.single-article .article-category a{color:var(--blue);text-decoration:none}
.single-article .article-title{font-size:40px;line-height:1.45;margin:0 0 10px;color:#17333a;font-weight:900}
.single-article .article-author-date{color:#777;font-size:13px;font-weight:700;margin-bottom:24px}
.single-article .article-content{font-size:18px;line-height:2}
@media(max-width:600px){
.single-article .article-title{font-size:27px}
.single-article .article-content{font-size:16px}
}

/* تصنيف المقال بنفس ستايل تصنيف بطاقة السلايدر */
.single-article .article-category{
    display:inline-block;
    margin:0 0 10px;
    padding:6px 12px;
    background:var(--blue);
    color:#fff;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
    border-radius:3px;
}
.single-article .article-category a{
    color:#fff;
    text-decoration:none;
}

/* بيانات المقال باللون الأزرق الخاص بالهوية وبخط أثقل */
.single-article .article-author-date{
    color:var(--blue);
    font-size:14px;
    font-weight:800;
    line-height:1.8;
    margin-bottom:24px;
}
.single-article .article-author-date a{color:var(--blue)}


/* ===== أحوال الطقس تحت السلايدر ===== */
.ain-weather24-wide{
    clear:both;width:100%;margin:20px 0 26px;padding:20px;box-sizing:border-box;
    border-radius:6px;background:var(--blue);color:#fff;direction:rtl;overflow:hidden;
}
.ain-weather24-top{display:flex;align-items:center;justify-content:space-between;gap:25px}
.ain-weather24-heading{font-size:24px;font-weight:900;align-self:flex-start}
.ain-weather24-main{display:flex;align-items:center;justify-content:center;gap:18px;flex:1}
.ain-weather24-main-icon{font-size:76px;line-height:1}
.ain-weather24-main-info{text-align:center}
.ain-weather24-city{font-size:27px;font-weight:900;line-height:1.2}
.ain-weather24-temp{font-size:52px;font-weight:900;line-height:1;margin:4px 0}
.ain-weather24-desc{font-size:14px;font-weight:800}
.ain-weather24-forecast{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:20px;padding-top:17px;border-top:1px solid rgba(255,255,255,.25)}
.ain-weather24-day{text-align:center;padding:8px 5px;border-radius:5px;background:rgba(255,255,255,.08)}
.ain-weather24-day-icon{font-size:34px;line-height:1.2}
.ain-weather24-day-name{font-size:13px;font-weight:900;margin-top:3px}
.ain-weather24-day-temp{font-size:20px;font-weight:900;margin-top:3px}
.ain-weather24-day-min{font-size:11px;opacity:.9}
@media(max-width:700px){
 .ain-weather24-wide{padding:17px 12px;margin-top:18px}
 .ain-weather24-top{display:block;text-align:center}
 .ain-weather24-heading{font-size:22px;margin-bottom:10px}
 .ain-weather24-main-icon{font-size:65px}
 .ain-weather24-city{font-size:24px}
 .ain-weather24-temp{font-size:48px}
 .ain-weather24-forecast{grid-template-columns:repeat(5,minmax(68px,1fr));overflow-x:auto}
 .ain-weather24-day{min-width:68px}
}
