/*
Theme Name: Ilmondoo Classic
Theme URI: https://ilmondoo.com/
Author: Ilmondoo
Description: قالب خفيف مخصص لموقع الموندو، يعيد روح تصميم Jannah بتقسيمات مألوفة، RTL، وموبايل بسيط وسريع.
Version: 3.8.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ilmondoo-classic
*/

:root{
  --im-blue:#0f7da8;
  --im-blue-dark:#0b6487;
  --im-ink:#1d1d1b;
  --im-text:#232323;
  --im-muted:#747b81;
  --im-line:#e7e9eb;
  --im-soft:#f7f7f7;
  --im-wrap:1430px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--im-text);font-family:Tahoma,Arial,sans-serif;direction:rtl;text-align:right;line-height:1.7}
a{color:inherit;text-decoration:none}
a:hover{color:var(--im-blue)}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--im-wrap),calc(100% - 44px));margin-inline:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* utility strip: قريب من شريط Jannah العلوي */
.im-utilitybar{background:#f4f4f4;border-bottom:1px solid #e5e5e5;color:#5e6266;font-size:13px}
.im-utility-row{height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.im-utility-menu{list-style:none;margin:0;padding:0;display:flex;gap:18px;align-items:center}
.im-utility-menu a{color:#575b5f}
.im-utility-search{border:0;background:transparent;color:#555;display:flex;align-items:center;gap:7px;cursor:pointer;font:inherit;padding:4px 0}
.im-utility-search span:first-child{font-size:20px;line-height:1}

/* header: logo + menu في سطر واحد */
.im-header{background:#fff;border-bottom:1px solid var(--im-line);position:relative;z-index:50}
.im-header-row{height:102px;display:flex;align-items:stretch;gap:0}
.im-brand{width:300px;min-width:300px;display:flex;align-items:center;justify-content:flex-start;overflow:visible}
.im-brand .custom-logo-link{display:flex;align-items:center}
.im-brand img{width:auto;max-width:275px;max-height:86px;object-fit:contain}
.im-nav-wrap{flex:1;min-width:0;display:flex;align-items:stretch}
.im-nav{width:100%;display:flex;align-items:stretch}
.im-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;flex-wrap:nowrap;width:100%}
.im-nav li{display:flex;align-items:stretch;position:relative}
.im-nav a{display:flex;align-items:center;justify-content:center;padding:0 16px;font-size:16px;font-weight:700;color:var(--im-ink);white-space:nowrap;border-bottom:3px solid transparent;transition:.16s ease}
.im-nav li.current-menu-item>a,.im-nav li.current_page_item>a,.im-nav li.current-menu-ancestor>a,.im-nav li.menu-item-home.current-menu-item>a,.im-nav a:hover{background:var(--im-blue);color:#fff;border-bottom-color:var(--im-blue-dark)}
.im-nav .menu-item-home>a:before{content:"⌂";font-size:18px;margin-left:6px;line-height:1}
.im-search-btn,.im-menu-toggle{border:0;background:transparent;color:var(--im-ink);width:55px;min-width:55px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.im-search-btn{font-size:25px;order:10}
.im-menu-toggle{display:none}
.im-search-panel{border-top:1px solid var(--im-line);background:#fff;padding:12px 0;box-shadow:0 8px 18px rgba(0,0,0,.05)}
.im-search-panel form{max-width:640px;margin-inline:auto;display:flex;gap:8px}
.im-search-panel input[type="search"]{flex:1;border:1px solid #d6d9dc;padding:11px 13px;font:inherit}
.im-search-panel input[type="submit"]{border:0;background:var(--im-blue);color:#fff;padding:0 18px;font:inherit;font-weight:700;cursor:pointer}

/* homepage */
.im-home{padding:32px 0 50px}
.im-hero-grid{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(285px,.78fr) minmax(275px,.70fr);gap:17px;align-items:stretch}
.im-card{position:relative;overflow:hidden;background:#111}
.im-card-image{position:absolute;inset:0;display:block}
.im-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.im-card:hover img{transform:scale(1.025)}
.im-card:after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(to top,rgba(0,0,0,.88) 0%,rgba(0,0,0,.32) 52%,rgba(0,0,0,.04) 100%);pointer-events:none}
.im-card-content{position:absolute;z-index:2;inset:auto 0 0 0;padding:24px;color:#fff}
.im-card-content a{color:#fff}
.im-badge{display:inline-block;background:rgba(15,125,168,.10);color:var(--im-blue)!important;font-size:12px;font-weight:800;padding:4px 9px;margin-bottom:9px;line-height:1.35;border:1px solid rgba(15,125,168,.18)}
.im-badge:hover{background:var(--im-blue);color:#fff!important;border-color:var(--im-blue)}
.im-hero-main{height:520px}
.im-hero-main h1{font-size:35px;line-height:1.32;margin:0 0 11px;font-weight:800;max-width:95%}
.im-meta{font-size:12px;display:flex;gap:11px;align-items:center;flex-wrap:wrap;color:inherit;opacity:.9}
.im-meta span+span:before{content:"•";margin-left:10px;opacity:.65}
.im-middle-stack{display:grid;grid-template-rows:1fr 1fr;gap:17px}
.im-hero-secondary{min-height:251px}
.im-hero-secondary h2{font-size:21px;line-height:1.42;margin:0 0 8px;font-weight:800}

.im-news-list{background:#fff;border-top:3px solid var(--im-blue);min-width:0}
.im-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;border-bottom:1px solid var(--im-line)}
.im-section-title{font-size:24px;line-height:1.3;margin:0;padding:0 0 9px;position:relative;color:var(--im-ink);font-weight:800}
.im-section-title:after{content:"";position:absolute;right:0;bottom:-1px;width:72px;height:3px;background:var(--im-blue)}
.im-news-list .im-section-head{margin-bottom:0}
.im-news-list-items{list-style:none;margin:0;padding:0}
.im-news-list-items li{border-bottom:1px solid var(--im-line);padding:11px 0}
.im-news-list-items li:last-child{border-bottom:0}
.im-news-list-items a{display:grid;grid-template-columns:86px 1fr;gap:10px;align-items:center}
.im-news-list-items img,.im-news-list-items .im-placeholder{width:86px;height:61px;object-fit:cover;background:#eee}
.im-news-list-items h3{margin:0;font-size:15px;line-height:1.5;font-weight:700}
.im-small-date{font-size:11px;color:var(--im-muted);margin-top:4px}

.im-section{margin-top:38px}
.im-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.im-post-tile{background:#fff;border:1px solid var(--im-line);transition:transform .18s ease,box-shadow .18s ease;overflow:hidden}
.im-post-tile:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.07)}
.im-post-tile-image{display:block;aspect-ratio:16/9;background:#eee;overflow:hidden}
.im-post-tile-image img,.im-post-tile-image .im-placeholder{width:100%;height:100%;object-fit:cover;background:#eee}
.im-post-tile-body{padding:14px 15px 16px}
.im-post-tile h3{font-size:18px;line-height:1.5;margin:5px 0 8px;color:var(--im-ink);font-weight:800}

/* أقسام الصفحة الرئيسية مثل Jannah */
.im-category-block{margin-top:42px}
.im-category-layout{display:grid;grid-template-columns:1.38fr .9fr;gap:22px}
.im-cat-feature{min-height:390px}
.im-cat-feature h3{font-size:27px;line-height:1.38;margin:0 0 8px;font-weight:800}
.im-cat-list{display:grid;align-content:start;border-top:1px solid var(--im-line)}
.im-cat-list article{display:grid;grid-template-columns:122px 1fr;gap:13px;padding:13px 0;border-bottom:1px solid var(--im-line);align-items:center}
.im-cat-thumb{display:block;width:122px;height:82px;background:#eee;overflow:hidden}
.im-cat-thumb img,.im-cat-thumb .im-placeholder{width:100%;height:100%;object-fit:cover;background:#eee}
.im-cat-list h3{font-size:16px;line-height:1.5;margin:0 0 4px;font-weight:700}

/* single/article */
.im-content-wrap{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:34px;padding:32px 0 50px;align-items:start}
.im-main,.im-sidebar{min-width:0}
.im-breadcrumbs{font-size:13px;color:var(--im-muted);margin-bottom:18px;display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.im-breadcrumbs a:hover{color:var(--im-blue)}
.entry-header{padding-bottom:10px}
.single-post .entry-title,.page .entry-title{font-size:42px;line-height:1.32;margin:8px 0 12px;color:var(--im-ink);font-weight:800}
.entry-header .im-meta{color:var(--im-muted);opacity:1;margin-bottom:13px}
.entry-featured{margin:0 0 24px}.entry-featured img{width:100%;height:auto}
.entry-content{font-size:19px;line-height:2.02;color:#242424}
.entry-content p{margin:0 0 22px}.entry-content h2{font-size:27px;line-height:1.48;margin:34px 0 14px;color:var(--im-ink);font-weight:800}.entry-content h3{font-size:23px;line-height:1.5;margin:29px 0 12px;font-weight:800}.entry-content img{margin:22px auto}.entry-content a{color:var(--im-blue);text-decoration:underline;text-underline-offset:3px}
.im-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:34px;padding:20px 0;border-top:1px solid var(--im-line);border-bottom:1px solid var(--im-line);font-size:14px;font-weight:700}.im-post-nav>div:last-child{text-align:left}
.im-related{margin-top:34px}.im-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.im-related-card{border:1px solid var(--im-line);background:#fff;overflow:hidden}.im-related-card>a{display:block;aspect-ratio:16/10;overflow:hidden;background:#eee}.im-related-card>a img{width:100%;height:100%;object-fit:cover}.im-related-body{padding:11px 12px 13px}.im-related-body h3{font-size:16px;line-height:1.5;margin:4px 0 7px}

/* sidebar */
.im-widget{margin-bottom:28px;background:#fff}.im-widget-title{font-size:22px;font-weight:800;margin:0 0 8px;padding-bottom:10px;border-bottom:1px solid var(--im-line);position:relative}.im-widget-title:after{content:"";position:absolute;right:0;bottom:-1px;width:70px;height:3px;background:var(--im-blue)}
.im-latest-list,.im-category-widget,.im-widget ul{list-style:none;margin:0;padding:0}.im-latest-list li,.im-category-widget li,.im-widget ul li{padding:11px 0;border-bottom:1px solid var(--im-line)}.im-latest-list a,.im-category-widget a,.im-widget ul a{font-weight:700;font-size:15px;line-height:1.55;color:var(--im-ink)}
.im-widget .wp-block-heading{font-size:22px!important;font-weight:800;margin:0 0 8px!important;padding-bottom:10px!important;border-bottom:1px solid var(--im-line)!important;position:relative}.im-widget .wp-block-heading:after{content:"";position:absolute;right:0;bottom:-1px;width:70px;height:3px;background:var(--im-blue)}
.im-widget .wp-block-latest-posts{margin:0;padding:0}.im-widget .wp-block-latest-posts li{padding:11px 0;border-bottom:1px solid var(--im-line)}.im-widget .wp-block-latest-posts a{color:var(--im-ink);font-size:15px;line-height:1.55;font-weight:700;text-decoration:none}.im-widget .wp-block-latest-posts a:hover{color:var(--im-blue)}

/* archives */
.im-archive-title{font-size:32px;margin:0 0 22px;color:var(--im-blue);font-weight:800}
.im-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.im-archive-card{display:grid;grid-template-columns:180px 1fr;gap:16px;border-bottom:1px solid var(--im-line);padding-bottom:18px}.im-archive-card img,.im-archive-card .im-placeholder{width:180px;height:120px;object-fit:cover;background:#eee}.im-archive-card h2{font-size:20px;line-height:1.45;margin:3px 0 7px}.im-excerpt{color:#555;font-size:14px}

/* footer */
.im-footer{background:#1b2025;color:#dce2e7;margin-top:32px}.im-footer-top.im-footer-centered{padding:34px 0 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px}.im-footer-brand{display:flex;flex-direction:column;align-items:center;justify-content:center}.im-footer-brand img{display:block;max-width:235px;filter:brightness(0) invert(1);opacity:.95;margin:0 auto}.im-footer ul{list-style:none;margin:0;padding:0}.im-footer-links ul{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 24px}.im-footer-links li{margin:0}.im-footer a{color:#dce2e7}.im-footer a:hover{color:#fff}.im-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:13px 0;font-size:13px;color:#aeb8c0;text-align:center}

/* tablet */
@media(max-width:1120px){
  .im-brand{width:260px;min-width:260px}.im-brand img{max-width:230px}.im-nav a{padding-inline:10px;font-size:14px}
  .im-hero-grid{grid-template-columns:1.5fr .78fr}.im-news-list{grid-column:1/-1}.im-news-list-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.im-news-list-items li:nth-last-child(-n+1){display:none}
  .im-post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* mobile */
@media(max-width:820px){
  .container{width:min(100% - 24px,var(--im-wrap))}
  .im-utilitybar{display:none}
  .im-header-row{height:72px;min-height:72px;position:relative;align-items:center}
  .im-brand{order:2;flex:1;width:auto;min-width:0;justify-content:center}.im-brand img{max-width:185px;max-height:58px}
  .im-menu-toggle{display:flex;order:1;width:48px;min-width:48px;height:48px;flex-direction:column;gap:5px}.im-menu-toggle span{display:block;width:23px;height:2px;background:var(--im-ink);border-radius:2px}
  .im-search-btn{order:3;width:48px;min-width:48px;height:48px;font-size:24px}
  .im-nav-wrap{position:absolute;top:72px;right:0;left:0;display:none;z-index:999;background:#fff;border-top:1px solid var(--im-line);box-shadow:0 12px 24px rgba(0,0,0,.1)}
  .im-nav-wrap.is-open{display:block}.im-nav{display:block}.im-nav ul{display:block;width:100%}.im-nav li{display:block}.im-nav a{display:block;padding:13px 18px;font-size:15px;border-bottom:1px solid var(--im-line)}.im-nav li.current-menu-item>a,.im-nav li.current_page_item>a,.im-nav a:hover{background:var(--im-blue);color:#fff;border-bottom-color:var(--im-blue)}
  .im-search-panel{padding:10px 0}
  .im-home{padding-top:16px}
  .im-hero-grid{display:block}.im-hero-main{height:385px;margin-bottom:13px}.im-hero-main h1{font-size:26px;line-height:1.4}.im-card-content{padding:18px}
  .im-middle-stack{grid-template-columns:1fr 1fr;grid-template-rows:none;gap:12px;margin-bottom:14px}.im-hero-secondary{min-height:215px}.im-hero-secondary h2{font-size:18px}
  .im-news-list-items{display:block}.im-news-list-items li{display:block!important}.im-news-list-items a{grid-template-columns:96px 1fr}.im-news-list-items img,.im-news-list-items .im-placeholder{width:96px;height:68px}
  .im-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.im-post-tile h3{font-size:16px}.im-post-tile-body{padding:11px 12px 13px}
  .im-category-layout{grid-template-columns:1fr}.im-cat-feature{min-height:315px}.im-cat-feature h3{font-size:23px}
  .im-content-wrap{grid-template-columns:1fr;gap:24px;padding-top:20px}.im-sidebar{order:2}.single-post .entry-title,.page .entry-title{font-size:30px;line-height:1.42}.entry-content{font-size:18px;line-height:1.95}.im-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.im-archive-grid{grid-template-columns:1fr}
  .im-footer-top.im-footer-centered{padding:28px 0 22px}.im-footer-brand img{margin-inline:auto}.im-footer-links ul{gap:9px 18px}
}

@media(max-width:520px){
  .im-brand img{max-width:168px}
  .im-hero-main{height:330px}.im-hero-main h1{font-size:23px}
  .im-middle-stack{grid-template-columns:1fr}.im-hero-secondary{min-height:235px}
  .im-post-grid{grid-template-columns:1fr}.im-post-tile{display:grid;grid-template-columns:124px 1fr}.im-post-tile-image{aspect-ratio:auto;height:100%;min-height:112px}.im-post-tile-body{padding:10px 11px}.im-post-tile h3{font-size:15px}
  .im-category-layout{display:block}.im-cat-feature{min-height:290px;margin-bottom:8px}.im-cat-list article{grid-template-columns:105px 1fr}.im-cat-thumb{width:105px;height:74px}
  .im-related-grid{grid-template-columns:1fr}.im-related-card{display:grid;grid-template-columns:120px 1fr}.im-related-card>a{aspect-ratio:auto;height:100%;min-height:100px}
  .im-post-nav{grid-template-columns:1fr;gap:10px}.im-post-nav>div:last-child{text-align:right}
  .im-archive-card{grid-template-columns:118px 1fr}.im-archive-card img,.im-archive-card .im-placeholder{width:118px;height:90px}.im-archive-card h2{font-size:17px}.im-excerpt{display:none}
}


/* social profiles + share tools */
.im-utility-left{display:flex;align-items:center;gap:13px}
.im-social-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.im-social{width:26px;height:26px;border-radius:0;display:inline-flex;align-items:center;justify-content:center;color:#596068;background:transparent;border:0;transition:.16s ease}
.im-social svg,.im-share-button svg{width:15px;height:15px;fill:currentColor}
.im-social:hover{background:transparent;color:var(--im-blue)}
.im-social-mobile{display:none;padding:12px 18px;border-top:1px solid var(--im-line)}
.im-footer .im-social-links{margin-top:17px}.im-footer .im-social{background:transparent;border-color:rgba(255,255,255,.22);color:#dce2e7}.im-footer .im-social:hover{background:transparent;color:var(--im-blue)}
.im-share-row{display:flex;gap:8px;align-items:center;margin-top:14px;padding-top:13px;border-top:1px solid var(--im-line)}
.im-share-button{width:36px;height:36px;border:1px solid #dfe3e6;background:#fff;color:#454b50;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:2px;transition:.15s ease}
.im-share-button:hover,.im-share-button.is-copied{color:#fff;background:var(--im-blue);border-color:var(--im-blue)}
.im-footer-fallback{list-style:none;margin:0;padding:0}

@media(max-width:820px){
  .im-social-top{display:none}
  .im-social-mobile{display:flex}
  .im-social-mobile .im-social{width:34px;height:34px}
}

/* v1.4 - Jannah fidelity refinements */
.im-utilitybar{min-height:36px}
.im-utility-right:empty{min-width:1px}
.im-social-top{gap:10px}
.im-social-top .im-social svg{width:16px;height:16px}
.im-header-row{height:98px}
.im-brand{width:290px;min-width:290px}
.im-brand img{max-width:268px;max-height:82px}
.im-nav a{padding-inline:15px}
.im-hero-grid{grid-template-columns:minmax(0,1.78fr) minmax(285px,.78fr) minmax(275px,.70fr);gap:16px}
.im-news-list{padding-inline:0}
.im-section-title{letter-spacing:0}
.im-category-block{margin-top:34px}
.im-footer .im-social{width:31px;height:31px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:transparent}
.im-footer .im-social:hover{background:var(--im-blue);color:#fff}
@media(max-width:820px){
  .im-header-row{height:70px;min-height:70px}
  .im-nav-wrap{top:70px}
  .im-social-mobile .im-social{border:1px solid #dde1e4;border-radius:50%;background:#fff}
}


/* v1.7: placeholder محترم عند فقدان ملفات الصور القديمة */
.im-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f0f2f3,#e5e8ea);color:#8a9298;overflow:hidden}
.im-placeholder span{font-weight:700;font-size:13px;opacity:.75}
.im-card-image>.im-placeholder{position:absolute;inset:0;width:100%;height:100%}

/* =========================================================
   v1.9 - YouTube playlist + visual polish
   ========================================================= */
.im-youtube-section{margin-top:48px;padding:38px 0 8px;border-top:1px solid var(--im-line)}
.im-youtube-heading{display:flex;align-items:center;justify-content:center;gap:28px;margin-bottom:8px}
.im-youtube-heading h2{margin:0;color:var(--im-blue);font-size:34px;line-height:1.2;font-weight:800}
.im-youtube-heading-line{height:2px;background:var(--im-blue);width:min(18vw,250px);opacity:.88}
.im-youtube-channel-wrap{display:flex;justify-content:center;margin:0 0 22px}
.im-youtube-channel{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--im-blue);padding:7px 11px;border:1px solid rgba(15,125,168,.22);background:rgba(15,125,168,.04)}
.im-youtube-channel svg{width:18px;height:18px;fill:currentColor}.im-youtube-channel:hover{background:var(--im-blue);color:#fff}
.im-youtube-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,.92fr);grid-template-areas:"player playlist";gap:0;border:1px solid var(--im-line);background:#fff;direction:ltr;box-shadow:0 6px 24px rgba(18,31,39,.05)}
.im-youtube-player-card{grid-area:player;min-width:0;background:#111;direction:rtl}
.im-youtube-frame-wrap{position:relative;aspect-ratio:16/9;background:#0c0c0c;overflow:hidden}
.im-youtube-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.im-youtube-now{background:#14181c;color:#fff;padding:13px 16px 15px;display:flex;gap:14px;align-items:center;justify-content:space-between}
.im-youtube-now h3{font-size:16px;line-height:1.5;margin:0;max-width:80%}.im-youtube-now a{color:#8fd0eb;font-size:12px;font-weight:700;white-space:nowrap}.im-youtube-now a:hover{color:#fff}
.im-youtube-playlist{grid-area:playlist;direction:rtl;max-height:610px;overflow:auto;background:#fff;scrollbar-width:thin;scrollbar-color:#b8c0c5 #f1f3f4}
.im-youtube-item{appearance:none;width:100%;border:0;border-bottom:1px solid var(--im-line);background:#fff;color:var(--im-ink);display:grid;grid-template-columns:28px 100px 1fr;gap:10px;align-items:center;text-align:right;padding:10px;cursor:pointer;font:inherit;transition:background .16s ease,border-color .16s ease;position:relative}
.im-youtube-item:last-child{border-bottom:0}.im-youtube-item:hover{background:#f8fbfc}.im-youtube-item.is-active{background:rgba(15,125,168,.055)}
.im-youtube-item.is-active:after{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--im-blue)}
.im-youtube-number{font-size:14px;color:var(--im-blue);font-weight:800;text-align:center}
.im-youtube-item img{width:100px;height:66px;object-fit:cover;background:#eee}
.im-youtube-info{display:block;min-width:0}.im-youtube-info strong{display:block;font-size:14px;line-height:1.45;font-weight:800}.im-youtube-info small{display:block;color:var(--im-muted);font-size:11px;margin-top:3px;direction:ltr;text-align:right}

/* لمسات بصرية خفيفة من دون تغيير روح Jannah */
.im-section-title a{transition:color .15s ease}.im-section-title a:hover{color:var(--im-blue)}
.im-cat-list article,.im-news-list-items li{transition:background .15s ease}.im-cat-list article:hover,.im-news-list-items li:hover{background:#fafcfd}
.im-post-tile h3 a,.im-cat-list h3 a,.im-archive-card h2 a{transition:color .15s ease}.im-post-tile:hover h3 a,.im-cat-list article:hover h3 a,.im-archive-card:hover h2 a{color:var(--im-blue)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid rgba(15,125,168,.32);outline-offset:2px}

@media(max-width:1000px){
  .im-youtube-grid{grid-template-columns:minmax(0,1.65fr) minmax(285px,.9fr)}
  .im-youtube-item{grid-template-columns:24px 84px 1fr}.im-youtube-item img{width:84px;height:58px}.im-youtube-info strong{font-size:13px}
}
@media(max-width:820px){
  .im-youtube-section{margin-top:34px;padding-top:28px}.im-youtube-heading{gap:14px}.im-youtube-heading h2{font-size:27px}.im-youtube-heading-line{width:22vw}
  .im-youtube-grid{display:flex;flex-direction:column;border-left:0;border-right:0;box-shadow:none}.im-youtube-player-card{order:1}.im-youtube-playlist{order:2;max-height:none;overflow:visible}
  .im-youtube-now{display:block}.im-youtube-now h3{max-width:none;font-size:15px;margin-bottom:5px}.im-youtube-now a{font-size:12px}
  .im-youtube-item{grid-template-columns:24px 92px 1fr;padding:9px 6px}.im-youtube-item img{width:92px;height:60px}
}
@media(max-width:520px){
  .im-youtube-heading{gap:10px}.im-youtube-heading h2{font-size:24px}.im-youtube-heading-line{width:18vw}
  .im-youtube-channel span{display:none}.im-youtube-channel{padding:7px 10px}
  .im-youtube-item{grid-template-columns:22px 82px 1fr;gap:8px}.im-youtube-item img{width:82px;height:55px}.im-youtube-info strong{font-size:12.5px;line-height:1.4}
}

/* =========================================================
   v2.0 - Editorial polish: article, archive, sticky header
   ========================================================= */

/* Sticky header: remains compact while the utility strip scrolls away. */
.im-header.im-sticky-enabled{position:sticky;top:0;z-index:220;transition:box-shadow .2s ease,background .2s ease}
.im-header.im-sticky-enabled.is-scrolled{box-shadow:0 7px 22px rgba(21,35,43,.10)}
.im-header.im-sticky-enabled .im-header-row{transition:height .2s ease,min-height .2s ease}
.im-header.im-sticky-enabled .im-brand img{transition:max-width .2s ease,max-height .2s ease}
.im-header.im-sticky-enabled.is-scrolled .im-header-row{height:76px}
.im-header.im-sticky-enabled.is-scrolled .im-brand img{max-width:230px;max-height:66px}
body.admin-bar .im-header.im-sticky-enabled{top:32px}

/* Reading progress */
.im-reading-progress{position:fixed;z-index:100000;top:0;right:0;left:0;height:3px;background:transparent;pointer-events:none}
.im-reading-progress span{display:block;width:0;height:100%;background:var(--im-blue);box-shadow:0 0 8px rgba(15,125,168,.35);transition:width .06s linear}
body.admin-bar .im-reading-progress{top:32px}

/* Article layout */
.im-content-wrap.im-single-layout{grid-template-columns:minmax(0,970px) 310px;gap:44px;padding-top:26px;max-width:1360px}
.im-single-layout .im-main{min-width:0}
.im-single-article{background:#fff}
.im-single-layout .im-breadcrumbs{max-width:900px;margin:0 auto 20px;padding-bottom:12px;border-bottom:1px solid #f0f1f2;font-size:12.5px}
.im-article-header{max-width:900px;margin-inline:auto;padding:4px 0 24px;border-bottom:1px solid var(--im-line)}
.im-article-kicker{margin-bottom:10px}
.single-post .im-article-header .entry-title{font-size:clamp(38px,3.35vw,51px);line-height:1.27;letter-spacing:-.015em;margin:0 0 16px;font-weight:800;color:var(--im-ink);text-wrap:balance}
.im-article-deck{max-width:820px;font-size:19px;line-height:1.85;color:#5b6267;margin:0 0 18px}
.im-article-meta-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.im-article-meta{display:flex;align-items:center;gap:0;color:var(--im-muted);font-size:12.5px}
.im-article-meta span{display:inline-flex;align-items:center}
.im-article-meta span+span:before{content:"•";margin:0 9px;color:#b5bbc0}
.im-article-header .im-share-row{margin:0;padding:0;border:0;gap:7px}
.im-article-header .im-share-button{width:34px;height:34px;border-radius:50%;background:#fff}

.entry-featured{max-width:970px;margin:24px auto 36px;background:#f2f3f4}
.entry-featured img{width:100%;height:auto;max-height:680px;object-fit:cover}
.entry-featured figcaption{font-size:12.5px;line-height:1.65;color:var(--im-muted);padding:9px 3px 0;text-align:center}

/* The reading column is intentionally narrower than the hero image. */
.single-post .entry-content.im-reading-column{max-width:820px;margin-inline:auto;font-size:20px;line-height:2.12;color:#202326;letter-spacing:.003em}
.single-post .entry-content.im-reading-column p{margin:0 0 29px}
.single-post .entry-content.im-reading-column > p:first-child{font-size:20.5px;color:#1e2022}
.single-post .entry-content.im-reading-column h2{position:relative;font-size:28px;line-height:1.48;margin:46px 0 19px;padding-right:17px;color:var(--im-ink);font-weight:800}
.single-post .entry-content.im-reading-column h2:before{content:"";position:absolute;right:0;top:.28em;width:4px;height:1.25em;background:var(--im-blue);border-radius:4px}
.single-post .entry-content.im-reading-column h3{font-size:23px;line-height:1.55;margin:38px 0 16px;padding-bottom:9px;border-bottom:1px solid var(--im-line);font-weight:800;color:var(--im-ink)}
.single-post .entry-content.im-reading-column h4{font-size:20px;line-height:1.55;margin:30px 0 13px;color:var(--im-ink)}
.single-post .entry-content.im-reading-column ul,
.single-post .entry-content.im-reading-column ol{margin:0 0 28px;padding-right:26px}
.single-post .entry-content.im-reading-column li{margin:9px 0;padding-right:3px}
.single-post .entry-content.im-reading-column blockquote{margin:34px 0;padding:20px 24px;background:#f6fafc;border-right:4px solid var(--im-blue);color:#3e474d;font-size:19px;line-height:1.95}
.single-post .entry-content.im-reading-column blockquote p:last-child{margin-bottom:0}
.single-post .entry-content.im-reading-column figure{margin:34px 0}
.single-post .entry-content.im-reading-column figure img,
.single-post .entry-content.im-reading-column > img{margin:0 auto}
.single-post .entry-content.im-reading-column figcaption,
.single-post .entry-content.im-reading-column .wp-caption-text{color:var(--im-muted);font-size:12.5px;line-height:1.65;text-align:center;margin-top:8px}
.single-post .entry-content.im-reading-column iframe,
.single-post .entry-content.im-reading-column video{max-width:100%;margin:32px auto;display:block}
.single-post .entry-content.im-reading-column hr{border:0;border-top:1px solid var(--im-line);margin:42px 0}
.single-post .entry-content.im-reading-column table{width:100%;border-collapse:collapse;margin:30px 0;font-size:16px;line-height:1.7}
.single-post .entry-content.im-reading-column th,
.single-post .entry-content.im-reading-column td{border:1px solid var(--im-line);padding:11px 12px;text-align:right}
.single-post .entry-content.im-reading-column th{background:#f7f9fa}

/* Compact previous/next cards instead of large empty bands. */
.im-post-nav{max-width:820px;margin:48px auto 6px;padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.im-post-nav-card{display:block;border:1px solid var(--im-line);padding:14px 16px;min-height:94px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.im-post-nav-card:hover{border-color:rgba(15,125,168,.35);box-shadow:0 7px 20px rgba(18,31,39,.06);transform:translateY(-1px)}
.im-post-nav-card span{display:block;color:var(--im-blue);font-size:11.5px;font-weight:800;margin-bottom:5px}
.im-post-nav-card strong{display:block;font-size:14px;line-height:1.55;color:var(--im-ink)}
.im-post-nav-next{text-align:left}

/* Sidebar feels like part of an editorial page, but never crowds reading. */
.im-single-layout .im-sidebar,.im-archive-layout .im-sidebar{position:sticky;top:104px}
body.admin-bar .im-single-layout .im-sidebar,body.admin-bar .im-archive-layout .im-sidebar{top:136px}
.im-single-layout .im-widget{padding:0 2px;margin-bottom:26px}
.im-single-layout .im-widget-title,.im-single-layout .im-widget .wp-block-heading{font-size:20px!important}
.im-single-layout .im-widget ul li{padding:12px 0}
.im-single-layout .im-widget ul a{font-size:14.5px;line-height:1.55}

/* Category/archive redesign */
.im-content-wrap.im-archive-layout{grid-template-columns:minmax(0,1fr) 300px;gap:40px;padding-top:30px;max-width:1360px}
.im-archive-hero{margin:0 0 26px;padding:0 0 18px;border-bottom:2px solid rgba(15,125,168,.18);position:relative}
.im-archive-eyebrow{display:none}
.im-archive-hero .im-archive-title{font-size:38px;line-height:1.25;margin:0;color:var(--im-blue)}
.im-archive-description{max-width:780px;color:#5c6368;font-size:15px;line-height:1.8;margin-top:9px}
.im-archive-description p{margin:0}
.im-archive-count{display:none}
.im-archive-grid-modern{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.im-archive-card-modern{display:block!important;padding:0!important;border:1px solid var(--im-line)!important;background:#fff;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.im-archive-card-modern:hover{transform:translateY(-2px);box-shadow:0 9px 26px rgba(18,31,39,.07);border-color:#dde3e6!important}
.im-archive-thumb{display:block;aspect-ratio:16/9;background:#eef0f1;overflow:hidden}
.im-archive-thumb img,.im-archive-thumb .im-placeholder{width:100%!important;height:100%!important;object-fit:cover}
.im-archive-card-body{padding:15px 16px 17px}
.im-archive-card-modern h2{font-size:20px;line-height:1.5;margin:5px 0 8px;font-weight:800}
.im-archive-card-modern .im-excerpt{font-size:13.5px;line-height:1.75;color:#62696e;margin-top:8px}
.im-pagination{margin-top:32px;padding-top:20px;border-top:1px solid var(--im-line)}
.im-pagination .nav-links{display:flex;gap:7px;flex-wrap:wrap}
.im-pagination .page-numbers{display:inline-flex;min-width:36px;height:36px;padding:0 11px;align-items:center;justify-content:center;border:1px solid var(--im-line);font-size:13px;font-weight:700;background:#fff}
.im-pagination .current,.im-pagination a:hover{background:var(--im-blue);color:#fff;border-color:var(--im-blue)}

/* Distinct homepage section patterns so every category is not a clone. */
.im-category-layout.is-reverse .im-cat-feature{order:2}
.im-category-layout.is-reverse .im-cat-list{order:1}
.im-section-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.im-section-card{border:1px solid var(--im-line);background:#fff;overflow:hidden;transition:transform .17s ease,box-shadow .17s ease}
.im-section-card:first-child{grid-column:span 2}
.im-section-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(18,31,39,.06)}
.im-section-card-image{display:block;aspect-ratio:16/9;background:#eee;overflow:hidden}
.im-section-card-image img,.im-section-card-image .im-placeholder{width:100%;height:100%;object-fit:cover}
.im-section-card-body{padding:13px 14px 15px}
.im-section-card h3{font-size:17px;line-height:1.5;margin:4px 0 7px;font-weight:800}
.im-section-card:first-child h3{font-size:23px}
.im-gastro-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;grid-template-rows:repeat(2,220px);gap:14px}
.im-gastro-card{min-height:220px}.im-gastro-feature{grid-row:1/3;min-height:454px}.im-gastro-card h3{font-size:19px;line-height:1.42;margin:0}.im-gastro-feature h3{font-size:27px}
.im-compact-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;border-top:1px solid var(--im-line)}
.im-compact-news{display:grid;grid-template-columns:145px 1fr;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--im-line)}
.im-compact-thumb{display:block;width:145px;height:94px;background:#eee;overflow:hidden}
.im-compact-thumb img,.im-compact-thumb .im-placeholder{width:100%;height:100%;object-fit:cover}
.im-compact-news h3{font-size:17px;line-height:1.5;margin:0 0 5px;font-weight:800}

@media(max-width:1120px){
  .im-content-wrap.im-single-layout,.im-content-wrap.im-archive-layout{grid-template-columns:minmax(0,1fr) 285px;gap:30px}
  .im-gastro-grid{grid-template-columns:1.35fr 1fr;grid-template-rows:repeat(3,190px)}
  .im-gastro-feature{grid-row:1/3}.im-gastro-card{min-height:190px}
}

@media(max-width:820px){
  body.admin-bar .im-header.im-sticky-enabled{top:46px}
  body.admin-bar .im-reading-progress{top:46px}
  .im-header.im-sticky-enabled.is-scrolled .im-header-row{height:64px;min-height:64px}
  .im-header.im-sticky-enabled.is-scrolled .im-nav-wrap{top:64px}
  .im-header.im-sticky-enabled.is-scrolled .im-brand img{max-width:155px;max-height:50px}

  .im-content-wrap.im-single-layout,.im-content-wrap.im-archive-layout{display:block;padding-top:17px}
  .im-single-layout .im-breadcrumbs{margin-bottom:14px;padding-bottom:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .im-single-layout .im-breadcrumbs span,.im-single-layout .im-breadcrumbs a{margin-left:5px}
  .im-article-header{padding-bottom:18px}
  .single-post .im-article-header .entry-title{font-size:30px;line-height:1.4;margin-bottom:13px}
  .im-article-deck{font-size:16.5px;line-height:1.75}
  .im-article-meta-row{display:block}.im-article-meta{font-size:11.5px;margin-bottom:13px}.im-article-header .im-share-row{justify-content:flex-start}
  .entry-featured{margin:18px 0 27px}.entry-featured figcaption{padding-inline:6px}
  .single-post .entry-content.im-reading-column{font-size:18px;line-height:2.0;max-width:none}
  .single-post .entry-content.im-reading-column > p:first-child{font-size:18.5px}
  .single-post .entry-content.im-reading-column p{margin-bottom:24px}
  .single-post .entry-content.im-reading-column h2{font-size:24px;margin-top:37px;padding-right:14px}
  .single-post .entry-content.im-reading-column h3{font-size:21px;margin-top:31px}
  .im-post-nav{grid-template-columns:1fr;margin-top:38px}.im-post-nav-next{text-align:right}
  .im-single-layout .im-sidebar,.im-archive-layout .im-sidebar{position:static;margin-top:36px}

  .im-archive-hero{margin-bottom:20px}.im-archive-hero .im-archive-title{font-size:31px}.im-archive-count{position:static;margin-top:8px}
  .im-archive-grid-modern{grid-template-columns:1fr 1fr;gap:14px}.im-archive-card-modern h2{font-size:17px}.im-archive-card-modern .im-excerpt{display:none}

  .im-section-card-grid{grid-template-columns:1fr 1fr;gap:13px}.im-section-card:first-child{grid-column:span 2}.im-section-card:first-child h3{font-size:20px}
  .im-gastro-grid{grid-template-columns:1fr 1fr;grid-template-rows:300px 190px}.im-gastro-feature{grid-column:1/3;grid-row:auto;min-height:300px}.im-gastro-card{min-height:190px}.im-gastro-feature h3{font-size:23px}
  .im-compact-news-grid{grid-template-columns:1fr}.im-compact-news{grid-template-columns:120px 1fr}.im-compact-thumb{width:120px;height:80px}
}

@media(max-width:520px){
  .single-post .im-article-header .entry-title{font-size:27px;line-height:1.42}
  .single-post .entry-content.im-reading-column{font-size:17.5px;line-height:1.98}
  .single-post .entry-content.im-reading-column h2{font-size:22px}
  .single-post .entry-content.im-reading-column blockquote{padding:16px 17px;font-size:17px}
  .im-archive-grid-modern{grid-template-columns:1fr}.im-archive-thumb{aspect-ratio:16/9}
  .im-section-card-grid{display:block}.im-section-card{margin-bottom:13px}.im-section-card:first-child h3{font-size:19px}
  .im-gastro-grid{display:block}.im-gastro-card,.im-gastro-feature{min-height:255px;margin-bottom:12px}.im-gastro-card h3,.im-gastro-feature h3{font-size:20px}
  .im-compact-news{grid-template-columns:105px 1fr;gap:11px}.im-compact-thumb{width:105px;height:74px}.im-compact-news h3{font-size:15px}
}

/* =========================================================
   v2.1 - Picked for you + restore classic homepage layout
   ========================================================= */
.im-picked-for-you{max-width:970px;margin:46px auto 8px;padding-top:28px;border-top:1px solid var(--im-line)}
.im-picked-heading{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.im-picked-heading h2{margin:0;color:var(--im-blue);font-size:28px;line-height:1.35;font-weight:800;white-space:nowrap}
.im-picked-line{height:2px;background:var(--im-blue);opacity:.78;flex:1}
.im-picked-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.im-picked-card{background:#fff;border:1px solid var(--im-line);overflow:hidden;transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
.im-picked-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(18,31,39,.06);border-color:#dce4e8}
.im-picked-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#eef0f1}
.im-picked-image img,.im-picked-image .im-placeholder{width:100%;height:100%;object-fit:cover;display:block}
.im-picked-body{padding:13px 14px 15px}
.im-picked-body h3{font-size:17px;line-height:1.55;font-weight:800;margin:7px 0 8px}
.im-picked-body h3 a{color:var(--im-ink)}
.im-picked-body h3 a:hover{color:var(--im-blue)}

@media(max-width:820px){
  .im-picked-for-you{margin-top:38px;padding-top:22px}
  .im-picked-heading{gap:12px}.im-picked-heading h2{font-size:24px}
  .im-picked-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .im-picked-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:135px 1fr}
  .im-picked-card:last-child .im-picked-image{aspect-ratio:auto;height:100%}
}
@media(max-width:520px){
  .im-picked-heading h2{font-size:22px}
  .im-picked-grid{display:block}
  .im-picked-card,.im-picked-card:last-child{display:grid;grid-template-columns:112px 1fr;margin-bottom:12px}
  .im-picked-image,.im-picked-card:last-child .im-picked-image{height:94px;aspect-ratio:auto}
  .im-picked-body{padding:10px 11px}
  .im-picked-body h3{font-size:15px;line-height:1.5;margin:4px 0 6px}
}


/* =========================================================
   v2.2 - Article experience inspired by Al Jazeera's clean editorial rhythm
   (original implementation for Ilmondoo, not a copy of Al Jazeera code)
   ========================================================= */
.single-post .im-single-wrap{max-width:1240px;padding-top:34px;padding-bottom:52px}
.single-post .im-article-main{width:100%}
.single-post .im-aj-article{background:#fff}
.single-post .im-aj-header{max-width:980px;margin:0 auto;padding:0 0 24px;border-bottom:0}
.single-post .im-aj-header .im-article-kicker{margin-bottom:13px}
.single-post .im-aj-header .im-cat-badge{background:#edf7fb!important;color:var(--im-blue)!important;border:1px solid #d8edf5!important;padding:5px 10px!important;font-size:12px!important}
.single-post .im-aj-header .entry-title{font-size:clamp(42px,4vw,58px);line-height:1.2;letter-spacing:-.022em;margin:0 0 18px;font-weight:800;max-width:970px;text-wrap:balance}
.single-post .im-aj-header .im-article-deck{max-width:900px;font-size:20px;line-height:1.82;color:#50575c;margin-bottom:22px}
.im-aj-byline-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:2px}
.im-aj-author{display:flex;align-items:center;gap:11px;min-width:0}
.im-aj-avatar{width:44px!important;height:44px!important;border-radius:50%;object-fit:cover;background:#f1f3f4}
.im-aj-author-copy{min-width:0}
.im-aj-author-name{display:inline-block;font-size:14px;font-weight:800;color:var(--im-blue);margin-bottom:4px}
.im-aj-author-name:hover{color:var(--im-blue-dark)}
.im-aj-dates{display:flex;gap:0;flex-wrap:wrap;color:#767e84;font-size:12px;line-height:1.55}
.im-aj-dates span{display:inline-flex;align-items:center}
.im-aj-dates span+span:before{content:"|";margin:0 8px;color:#c6cbd0}
.im-aj-share-top{display:flex;align-items:center;gap:7px;flex-shrink:0}
.im-aj-share-label{font-size:12px;font-weight:800;color:#687178;margin-left:2px}
.single-post .im-aj-share-top .im-share-button,.single-post .im-aj-share-rail .im-share-button{width:36px;height:36px;border:1px solid #dfe4e7;border-radius:50%;background:#fff;color:#4b555c;display:inline-flex;align-items:center;justify-content:center;transition:.15s ease}
.single-post .im-aj-share-top .im-share-button:hover,.single-post .im-aj-share-rail .im-share-button:hover{border-color:var(--im-blue);color:var(--im-blue);background:#f4fbfe}

.single-post .im-aj-featured{max-width:1040px;margin:12px auto 34px}
.single-post .im-aj-featured img{width:100%;height:auto;border-radius:0}
.single-post .im-aj-featured figcaption{max-width:900px;margin:9px auto 0;color:#747c82;font-size:12.5px;line-height:1.65}

.im-aj-reading-shell{position:relative;max-width:940px;margin:0 auto}
.single-post .im-aj-reading-column{max-width:790px!important;margin:0 auto!important;font-size:20px!important;line-height:2.08!important;color:#202326!important;letter-spacing:0!important}
.single-post .im-aj-reading-column p{margin:0 0 30px!important}
.single-post .im-aj-reading-column > p:first-child{font-size:21px!important;line-height:2.05!important;color:#1d2022!important}
.single-post .im-aj-reading-column h2{font-size:29px!important;line-height:1.45!important;margin:48px 0 18px!important;padding:0!important;color:#171a1d!important;font-weight:800!important}
.single-post .im-aj-reading-column h2:before{display:none!important}
.single-post .im-aj-reading-column h3{font-size:24px!important;line-height:1.5!important;margin:38px 0 15px!important;padding:0 0 8px!important;border-bottom:2px solid #eef1f2!important;color:#191c1f!important}
.single-post .im-aj-reading-column h4{font-size:21px!important;line-height:1.55!important;margin:31px 0 13px!important}
.single-post .im-aj-reading-column a{color:#0877a7!important;text-decoration:underline!important;text-decoration-thickness:1px;text-underline-offset:4px}
.single-post .im-aj-reading-column ul,.single-post .im-aj-reading-column ol{margin:0 0 30px!important;padding-right:27px!important}
.single-post .im-aj-reading-column li{margin:10px 0!important}
.single-post .im-aj-reading-column blockquote{margin:38px 0!important;padding:22px 26px!important;background:#f6fafc!important;border:0!important;border-right:4px solid var(--im-blue)!important;font-size:19.5px!important;line-height:1.95!important;color:#354047!important}
.single-post .im-aj-reading-column figure{margin:38px 0!important}
.single-post .im-aj-reading-column figcaption{font-size:12.5px!important;color:#777f85!important;line-height:1.7!important}

.im-read-also{margin:36px 0 38px;padding:19px 22px 18px;background:#f7f8f9;border-top:3px solid var(--im-blue)}
.im-read-also-title{font-size:18px;font-weight:800;color:var(--im-blue);margin-bottom:8px}
.im-read-also ul{list-style:none!important;margin:0!important;padding:0!important}
.im-read-also li{margin:0!important;padding:10px 0!important;border-top:1px solid #e4e7e9}
.im-read-also li:first-child{border-top:0}
.im-read-also a{font-size:17px!important;line-height:1.65!important;font-weight:800!important;color:#202326!important;text-decoration:none!important}
.im-read-also a:hover{color:var(--im-blue)!important}

.im-aj-share-rail{position:absolute;top:10px;right:calc(50% + 415px);display:flex;flex-direction:column;gap:8px;z-index:5}
.im-aj-share-rail .im-share-button{box-shadow:0 2px 7px rgba(18,31,39,.04)}

.single-post .im-picked-for-you{max-width:1040px;margin-top:58px;padding-top:34px}
.single-post .im-picked-heading{margin-bottom:22px}
.single-post .im-picked-heading h2{font-size:29px}

/* Article pages intentionally remove the generic sidebar: related reading is integrated into the story. */
.single-post .im-sidebar{display:none!important}

@media(max-width:1120px){
  .im-aj-share-rail{display:none}
  .single-post .im-aj-header{max-width:900px}
  .single-post .im-aj-featured{max-width:980px}
}
@media(max-width:820px){
  .single-post .im-single-wrap{width:min(100% - 26px,var(--im-wrap));padding-top:18px;padding-bottom:34px}
  .single-post .im-aj-header{padding-bottom:18px}
  .single-post .im-aj-header .entry-title{font-size:31px;line-height:1.36;letter-spacing:-.01em;margin-bottom:13px}
  .single-post .im-aj-header .im-article-deck{font-size:17px;line-height:1.72;margin-bottom:17px}
  .im-aj-byline-row{display:block}
  .im-aj-author{margin-bottom:14px}
  .im-aj-avatar{width:38px!important;height:38px!important}
  .im-aj-share-top{justify-content:flex-start}
  .im-aj-share-label{display:none}
  .single-post .im-aj-featured{margin:8px 0 26px}
  .single-post .im-aj-reading-column{max-width:none!important;font-size:18px!important;line-height:2!important}
  .single-post .im-aj-reading-column > p:first-child{font-size:18.5px!important;line-height:1.98!important}
  .single-post .im-aj-reading-column p{margin-bottom:25px!important}
  .single-post .im-aj-reading-column h2{font-size:24px!important;margin-top:38px!important}
  .single-post .im-aj-reading-column h3{font-size:21px!important;margin-top:31px!important}
  .im-read-also{margin:30px 0;padding:16px 17px}
  .im-read-also-title{font-size:17px}
  .im-read-also a{font-size:16px!important}
}
@media(max-width:520px){
  .single-post .im-aj-header .entry-title{font-size:28px;line-height:1.4}
  .im-aj-dates{font-size:11px}.im-aj-dates span+span:before{margin:0 6px}
  .single-post .im-aj-share-top .im-share-button{width:34px;height:34px}
  .single-post .im-aj-reading-column{font-size:17.5px!important;line-height:1.98!important}
  .single-post .im-aj-reading-column h2{font-size:22px!important}
  .single-post .im-picked-heading h2{font-size:25px}
}

/* ================================================================
   v2.3 - تبسيط رأس المقال: بدون اسم الكاتب أو صورته أو بيانات زائدة
   ================================================================ */
.im-aj-simple-row{padding-top:3px}
.im-aj-simple-meta{display:flex;align-items:center;gap:0;flex-wrap:wrap;color:#747c82;font-size:12.5px;line-height:1.6}
.im-aj-simple-meta span{display:inline-flex;align-items:center}
.im-aj-simple-meta span+span:before{content:"•";margin:0 9px;color:#c4cacf}
@media(max-width:700px){
  .im-aj-simple-row{display:block}
  .im-aj-simple-meta{font-size:11.5px;margin-bottom:13px}
}


/* =========================================================
   v2.4 - Mobile header: true centered logo
   Keep hamburger on the right and search on the left.
   This final override intentionally comes after legacy rules.
   ========================================================= */
@media (max-width:820px){
  .im-header-row{
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) 48px !important;
    align-items:center !important;
    height:70px !important;
    min-height:70px !important;
    gap:0 !important;
  }
  .im-brand{
    grid-column:2 !important;
    grid-row:1 !important;
    order:unset !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    height:70px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    padding:0 6px !important;
  }
  .im-brand .custom-logo-link{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  .im-brand img,
  .im-brand .custom-logo{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:200px !important;
    max-height:58px !important;
    margin:0 auto !important;
    object-fit:contain !important;
  }
  .im-menu-toggle{
    grid-column:1 !important;
    grid-row:1 !important;
    order:unset !important;
    justify-self:center !important;
    width:48px !important;
    min-width:48px !important;
  }
  .im-search-btn{
    grid-column:3 !important;
    grid-row:1 !important;
    order:unset !important;
    justify-self:center !important;
    width:48px !important;
    min-width:48px !important;
  }
  .im-nav-wrap{
    top:70px !important;
    right:0 !important;
    left:0 !important;
    width:100% !important;
  }
  .im-header.im-sticky-enabled.is-scrolled .im-brand img,
  .im-header.im-sticky-enabled.is-scrolled .im-brand .custom-logo{
    max-width:185px !important;
    max-height:52px !important;
  }
}

@media (max-width:420px){
  .im-brand img,
  .im-brand .custom-logo{
    max-width:182px !important;
    max-height:54px !important;
  }
}

/* =========================================================
   v2.5 - Mobile homepage inspired by the original Jannah mobile layout
   Reference: centered Ilmondoo logo, search left, hamburger right,
   one large lead story followed by a clean two-column news grid.
   Desktop is intentionally unchanged.
   ========================================================= */
.im-search-icon{width:24px;height:24px;display:block}

@media (max-width:820px){
  /* Header: search | centered logo | hamburger, with generous white breathing room */
  .im-header{background:#fff;border-bottom:1px solid #eceeef;box-shadow:0 4px 12px rgba(18,31,39,.045)}
  .im-header-row{
    grid-template-columns:54px minmax(0,1fr) 54px !important;
    height:86px !important;
    min-height:86px !important;
    width:100% !important;
    padding-inline:8px !important;
  }
  .im-brand{
    height:86px !important;
    padding:0 !important;
    overflow:visible !important;
  }
  .im-brand .custom-logo-link{overflow:visible !important}
  .im-brand img,
  .im-brand .custom-logo{
    max-width:218px !important;
    max-height:72px !important;
    width:auto !important;
    height:auto !important;
  }
  .im-menu-toggle,
  .im-search-btn{
    width:54px !important;
    min-width:54px !important;
    height:54px !important;
    color:#202326 !important;
  }
  .im-menu-toggle span{width:28px !important;height:2.5px !important;gap:0;background:#202326 !important}
  .im-menu-toggle{gap:6px !important}
  .im-search-icon{width:27px;height:27px}
  .im-nav-wrap{top:86px !important}

  /* Home starts with the same airy gap as the original mobile Jannah view */
  .im-home{padding:38px 0 42px !important}
  .im-home>.container{width:calc(100% - 26px) !important}

  /* Lead story: true 16:9 visual, restrained typography, no category chip */
  .im-hero-grid{display:block !important}
  .im-hero-main{
    width:100% !important;
    height:auto !important;
    aspect-ratio:16/9 !important;
    margin:0 0 13px !important;
    border-radius:0 !important;
  }
  .im-hero-main:after{background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.22) 54%,rgba(0,0,0,.02) 100%) !important}
  .im-hero-main .im-badge{display:none !important}
  .im-hero-main .im-card-content{padding:18px 17px 15px !important;text-align:right !important}
  .im-hero-main h1{font-size:23px !important;line-height:1.42 !important;margin:0 0 9px !important;font-weight:800 !important;max-width:100% !important}
  .im-hero-main .im-meta{font-size:12px !important;justify-content:flex-start !important;color:#fff !important}

  /* The two secondary hero stories become ordinary cards, exactly like the mobile reference. */
  .im-middle-stack{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:none !important;
    gap:14px !important;
    margin:0 0 4px !important;
  }
  .im-hero-secondary{
    min-height:0 !important;
    background:#fff !important;
    overflow:visible !important;
    display:flex !important;
    flex-direction:column !important;
  }
  .im-hero-secondary:after{display:none !important}
  .im-hero-secondary .im-card-image{
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    aspect-ratio:16/10 !important;
    overflow:hidden !important;
    background:#eef0f1 !important;
  }
  .im-hero-secondary .im-card-image img,
  .im-hero-secondary .im-card-image .im-placeholder{width:100% !important;height:100% !important;object-fit:cover !important}
  .im-hero-secondary .im-card-content{
    position:static !important;
    inset:auto !important;
    padding:7px 0 18px !important;
    color:var(--im-ink) !important;
    display:flex !important;
    flex-direction:column !important;
  }
  .im-hero-secondary .im-badge{display:none !important}
  .im-hero-secondary h2{order:2 !important;font-size:16px !important;line-height:1.52 !important;margin:4px 0 0 !important;font-weight:800 !important}
  .im-hero-secondary h2 a{color:var(--im-ink) !important}
  .im-hero-secondary .im-meta{order:1 !important;color:#858b90 !important;opacity:1 !important;font-size:11.5px !important;justify-content:flex-start !important}

  /* The desktop latest-news rail is intentionally removed from the mobile homepage. */
  .im-hero-grid>.im-news-list{display:none !important}

  /* Continue the same two-column visual language below the hero. */
  .im-latest-home{margin-top:0 !important}
  .im-latest-home>.im-section-head{display:none !important}
  .im-latest-home .im-post-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }
  .im-latest-home .im-post-tile{
    display:block !important;
    border:0 !important;
    box-shadow:none !important;
    background:#fff !important;
    transform:none !important;
    overflow:visible !important;
  }
  .im-latest-home .im-post-tile:hover{box-shadow:none !important;transform:none !important}
  .im-latest-home .im-post-tile-image{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:16/10 !important;
    overflow:hidden !important;
    background:#eef0f1 !important;
  }
  .im-latest-home .im-post-tile-image img,
  .im-latest-home .im-post-tile-image .im-placeholder{width:100% !important;height:100% !important;object-fit:cover !important}
  .im-latest-home .im-post-tile-body{
    padding:7px 0 19px !important;
    display:flex !important;
    flex-direction:column !important;
  }
  .im-latest-home .im-post-tile .im-badge{display:none !important}
  .im-latest-home .im-post-tile h3{order:2 !important;font-size:16px !important;line-height:1.5 !important;margin:4px 0 0 !important;font-weight:800 !important}
  .im-latest-home .im-post-tile .im-small-date{order:1 !important;font-size:11.5px !important;color:#8a8f93 !important;margin:0 !important}

  /* Keep later sections, but make them calmer and more coherent on phones. */
  .im-category-block{margin-top:30px !important}
  .im-category-block .im-section-title{font-size:22px !important}
  .im-category-block .im-cat-feature{min-height:300px !important;margin-bottom:10px !important}
  .im-category-block .im-cat-feature h3{font-size:21px !important}
}

@media (max-width:520px){
  /* Override legacy 1-column/horizontal mobile rules: reference uses a 2-column grid. */
  .im-middle-stack,
  .im-latest-home .im-post-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .im-brand img,
  .im-brand .custom-logo{max-width:208px !important;max-height:68px !important}
  .im-hero-main h1{font-size:21px !important;line-height:1.43 !important}
  .im-hero-secondary h2,
  .im-latest-home .im-post-tile h3{font-size:15.5px !important;line-height:1.52 !important}
}

@media (max-width:380px){
  .im-header-row{grid-template-columns:48px minmax(0,1fr) 48px !important;padding-inline:4px !important}
  .im-brand img,
  .im-brand .custom-logo{max-width:188px !important;max-height:64px !important}
  .im-middle-stack,
  .im-latest-home .im-post-grid{gap:10px !important}
  .im-hero-secondary h2,
  .im-latest-home .im-post-tile h3{font-size:14.5px !important}
}

/* =========================================================
   v2.7 - Mobile category section headings
   Exact centered editorial treatment: title between two lines.
   ========================================================= */
@media (max-width:820px){
  .im-category-block > .im-section-head{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    gap:22px !important;
    margin:42px 0 28px !important;
    padding:0 !important;
    border:0 !important;
    text-align:center !important;
  }

  .im-category-block .im-section-title{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    text-align:center !important;
    font-size:32px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    color:#181818 !important;
    white-space:nowrap !important;
  }

  .im-category-block .im-section-title a{
    color:#181818 !important;
  }

  /* Remove the old blue underline. */
  .im-category-block .im-section-title:after{
    display:none !important;
    content:none !important;
  }

  /* The two editorial rules, matching the requested reference. */
  .im-category-block > .im-section-head:before,
  .im-category-block > .im-section-head:after{
    content:"" !important;
    display:block !important;
    flex:0 1 90px !important;
    width:90px !important;
    max-width:24vw !important;
    height:3px !important;
    background:#181818 !important;
    border:0 !important;
  }
}

@media (max-width:520px){
  .im-category-block > .im-section-head{
    gap:20px !important;
    margin:40px 0 26px !important;
  }
  .im-category-block .im-section-title{
    font-size:32px !important;
  }
  .im-category-block > .im-section-head:before,
  .im-category-block > .im-section-head:after{
    flex-basis:76px !important;
    width:76px !important;
  }
}



/* =========================================================
   v2.8 - Ilmondoo original brand palette
   Exact logo colors: blue #0F7DA8 / black #1D1D1B.
   Homepage editorial headings alternate between both colors.
   ========================================================= */
.im-category-block.im-tone-blue .im-section-title,
.im-category-block.im-tone-blue .im-section-title a{
  color:#0F7DA8 !important;
}
.im-category-block.im-tone-blue .im-section-title:after{
  background:#0F7DA8 !important;
}
.im-category-block.im-tone-black .im-section-title,
.im-category-block.im-tone-black .im-section-title a{
  color:#1D1D1B !important;
}
.im-category-block.im-tone-black .im-section-title:after{
  background:#1D1D1B !important;
}

/* Continue the blue/black rhythm with the YouTube section. */
.im-youtube-section.im-tone-black .im-youtube-heading h2{
  color:#1D1D1B !important;
}
.im-youtube-section.im-tone-black .im-youtube-heading-line{
  background:#1D1D1B !important;
}

@media (max-width:820px){
  /* Keep the exact requested 32px size; only alternate brand colors. */
  .im-category-block .im-section-title{
    font-size:32px !important;
  }
  .im-category-block.im-tone-blue > .im-section-head:before,
  .im-category-block.im-tone-blue > .im-section-head:after{
    background:#0F7DA8 !important;
  }
  .im-category-block.im-tone-blue .im-section-title,
  .im-category-block.im-tone-blue .im-section-title a{
    color:#0F7DA8 !important;
  }
  .im-category-block.im-tone-black > .im-section-head:before,
  .im-category-block.im-tone-black > .im-section-head:after{
    background:#1D1D1B !important;
  }
  .im-category-block.im-tone-black .im-section-title,
  .im-category-block.im-tone-black .im-section-title a{
    color:#1D1D1B !important;
  }

  .im-youtube-section.im-tone-black .im-youtube-heading h2{
    color:#1D1D1B !important;
  }
  .im-youtube-section.im-tone-black .im-youtube-heading-line{
    background:#1D1D1B !important;
  }
}


/* =========================================================
   v2.9 - Category headings use the EXACT Videos heading system
   Same structure, size, alignment, spacing and side rules.
   Only the approved Ilmondoo blue/black rhythm changes by section.
   ========================================================= */
.im-category-block > .im-category-heading{
  /* Intentionally inherits .im-youtube-heading dimensions exactly. */
  margin-bottom:22px;
}
.im-category-block > .im-category-heading h2,
.im-category-block > .im-category-heading h2 a{
  color:inherit;
}
.im-category-block.im-tone-blue > .im-category-heading h2,
.im-category-block.im-tone-blue > .im-category-heading h2 a{
  color:#0F7DA8 !important;
}
.im-category-block.im-tone-blue > .im-category-heading .im-youtube-heading-line{
  background:#0F7DA8 !important;
}
.im-category-block.im-tone-black > .im-category-heading h2,
.im-category-block.im-tone-black > .im-category-heading h2 a{
  color:#1D1D1B !important;
}
.im-category-block.im-tone-black > .im-category-heading .im-youtube-heading-line{
  background:#1D1D1B !important;
}

/* Do not let legacy section-title rules affect the new unified heading. */
.im-category-heading .im-category-heading-title{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  position:static !important;
  font-size:34px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
}

@media (max-width:760px){
  .im-category-block > .im-category-heading{
    gap:14px;
    margin:34px 0 24px;
  }
  .im-category-heading .im-category-heading-title{
    font-size:27px;
  }
}

@media (max-width:520px){
  .im-category-block > .im-category-heading{
    gap:10px;
  }
  .im-category-heading .im-category-heading-title{
    font-size:24px;
  }
}

/* =========================================================
   v3.0 - Sidebar "اخترنا لكم" من أقسام متعددة
   ========================================================= */
.im-picked-widget{margin-bottom:30px}
.im-picked-widget .im-widget-title{font-size:24px;line-height:1.3;margin-bottom:4px;color:var(--im-blue)}
.im-picked-sidebar{list-style:none!important;margin:0!important;padding:0!important}
.im-picked-sidebar>li{padding:13px 0!important;border-bottom:1px solid var(--im-line)!important}
.im-picked-sidebar>li:last-child{border-bottom:0!important}
.im-picked-sidebar-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center;direction:rtl}
.im-picked-sidebar-thumb{display:block;width:92px;height:68px;overflow:hidden;background:#eef0f1}
.im-picked-sidebar-thumb img,.im-picked-sidebar-thumb .im-placeholder{width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
.im-picked-sidebar-body{min-width:0}
.im-picked-sidebar-cat{display:inline-block;color:var(--im-blue)!important;font-size:11.5px!important;font-weight:800!important;line-height:1.2;margin-bottom:4px}
.im-picked-sidebar-body h4{margin:0 0 4px;font-size:14.5px;line-height:1.55;font-weight:800}
.im-picked-sidebar-body h4 a{font-size:inherit!important;line-height:inherit!important;color:var(--im-ink)!important}
.im-picked-sidebar-body h4 a:hover{color:var(--im-blue)!important}
.im-picked-sidebar-body time{display:block;color:var(--im-muted);font-size:11.5px;line-height:1.3;direction:ltr;text-align:right}

@media(max-width:820px){
  .im-picked-widget .im-widget-title{font-size:25px}
  .im-picked-sidebar-card{grid-template-columns:104px minmax(0,1fr);gap:13px}
  .im-picked-sidebar-thumb{width:104px;height:76px}
  .im-picked-sidebar-body h4{font-size:15.5px}
}


/* =========================================================
   v3.1 - اخترنا لكم في أعلى الصفحة الرئيسية
   ========================================================= */
.im-home-picked .im-news-list-cat{
  display:inline-block;
  margin-bottom:3px;
  color:var(--im-blue);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}

/* =========================================================
   v3.2 - Unified Ilmondoo blue editorial headings
   All homepage section titles use the same centered Videos
   heading system and exact Ilmondoo blue (#0F7DA8).
   ========================================================= */
.im-category-block > .im-category-heading h2,
.im-category-block > .im-category-heading h2 a,
.im-youtube-section .im-youtube-heading h2,
.im-latest-home > .im-latest-heading h2{
  color:var(--im-blue) !important;
}

.im-category-block > .im-category-heading .im-youtube-heading-line,
.im-youtube-section .im-youtube-heading-line,
.im-latest-home > .im-latest-heading .im-youtube-heading-line{
  background:var(--im-blue) !important;
}

/* Latest Articles now matches category/video headings exactly. */
.im-latest-home > .im-latest-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  margin:0 0 22px;
  width:100%;
  text-align:center;
}
.im-latest-home > .im-latest-heading .im-latest-heading-title{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  position:static !important;
  font-size:34px;
  line-height:1.2;
  font-weight:800;
  color:var(--im-blue) !important;
  white-space:nowrap;
}
.im-latest-home > .im-latest-heading .im-youtube-heading-line{
  height:2px;
  width:min(18vw,250px);
  opacity:.88;
}

/* Remove any legacy blue underline from the old Latest heading system. */
.im-latest-home > .im-section-head{display:none !important;}

@media (max-width:760px){
  .im-latest-home > .im-latest-heading{
    gap:14px;
    margin:34px 0 24px;
  }
  .im-latest-home > .im-latest-heading .im-latest-heading-title{
    font-size:27px;
  }
  .im-latest-home > .im-latest-heading .im-youtube-heading-line{
    width:22vw;
  }
}

@media (max-width:520px){
  .im-latest-home > .im-latest-heading{gap:10px;}
  .im-latest-home > .im-latest-heading .im-latest-heading-title{
    font-size:24px;
  }
  .im-latest-home > .im-latest-heading .im-youtube-heading-line{
    width:18vw;
  }
}


/* v3.3 - Simplified category header: no archive eyebrow/count; title in Ilmondoo blue */
.im-archive-hero .im-archive-title{color:var(--im-blue)!important;}


/* =========================================================
   v3.4 - performance and security hardening
   ========================================================= */
.im-picked-widget .im-widget-title{color:var(--im-blue)!important}


/* v3.5 - force the Picked for You sidebar heading to Ilmondoo blue */
.im-sidebar .im-picked-widget > .im-widget-title,
.im-sidebar .im-picked-widget > h3.im-widget-title{
  color:#0f7da8 !important;
  -webkit-text-fill-color:#0f7da8 !important;
}
.im-sidebar .im-picked-widget > .im-widget-title::after{background:#0f7da8 !important;}


/* =========================================================
   v3.6 - Unified "اخترنا لكم" heading color everywhere
   Homepage + article/sidebar + article recommendations.
   Integrated in the theme; no Customizer CSS required.
   ========================================================= */
.im-home-picked .im-section-title,
.im-sidebar .im-picked-widget > .im-widget-title,
.im-sidebar .im-picked-widget > h3.im-widget-title,
.im-picked-for-you .im-picked-heading h2 {
  color:var(--im-blue) !important;
  -webkit-text-fill-color:var(--im-blue) !important;
}

.im-home-picked .im-section-title::after,
.im-sidebar .im-picked-widget > .im-widget-title::after,
.im-picked-for-you .im-picked-line {
  background:var(--im-blue) !important;
  border-color:var(--im-blue) !important;
}


/* =========================================================
   v3.8 - AdSense: articles + homepage, collapse unfilled units.
   The ad itself stays visible while requesting, as recommended by Google.
   ========================================================= */
.im-ad-slot{
  width:100%;
  max-width:820px;
  margin:36px auto;
  padding:0;
  border:0;
  text-align:center;
  clear:both;
  overflow:visible;
  transition:margin .16s ease;
}
.im-home .im-ad-slot{
  max-width:1120px;
  margin:34px auto;
}
.im-ad-slot .adsbygoogle{
  display:block;
  width:100%;
  min-width:250px;
  min-height:90px;
  margin:0 auto;
}

/* Google sets data-ad-status after the request. */
.im-ad-slot.is-unfilled,
.im-ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]){
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
}

@media(max-width:820px){
  .im-ad-slot,
  .im-home .im-ad-slot{
    margin:28px auto;
  }
  .im-ad-slot .adsbygoogle{
    min-height:90px;
  }
}

@media(max-width:520px){
  .im-ad-slot,
  .im-home .im-ad-slot{
    margin:24px auto;
  }
  .im-ad-slot .adsbygoogle{
    min-width:0;
    min-height:80px;
  }
}
