/*
Theme Name: News Plus Pro
Theme URI: https://wordpress.org/themes/news-plus-pro/
Author: مهندس محمد الرفاعي
Author URI: https://wordpress.org/
Description: News Plus Pro - قالب ووردبريس إخباري احترافي مفتوح المصدر، متوافق مع PHP 8.4/8.5 وآخر معايير SEO والبيانات الهيكلية Schema.org (NewsArticle + BreadcrumbList). يدعم شريط أخبار عاجلة، أزرار مشاركة اجتماعية متطورة (Facebook / X / WhatsApp / Telegram / LinkedIn / Email)، نظام إعلانات متكامل، تحميل كسول للصور، وأكواد خفيفة بدون مكتبات جافاسكريبت ثقيلة. متجاوب 100% مع الحاسوب والهاتف والتابلت وجميع المتصفحات الحديثة.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsplus
Tags: news, magazine, rtl, right-to-left, two-columns, three-columns, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, block-styles, wide-blocks
*/

/******************** start ********************/

/******************** vars ********************/
:root {
        --widget-padding: 20px;
        --widget-spacing: 6px;
        --posts-gap: 20px;
        --post-width: 225px;
        --sidebar-side-width: 300px;
        --mark-color: #FFF5DF;
        /* New SEO/UX tokens */
        --breaking-bg: #d20000;
        --breaking-fg: #ffffff;
        --breaking-label-bg: #990000;
        --share-facebook: #1877f2;
        --share-x: #000000;
        --share-whatsapp: #25d366;
        --share-telegram: #0088cc;
        --share-linkedin: #0a66c2;
        --share-email: #6c757d;
        --breadcrumb-bg: #f8f9fa;
        --breadcrumb-fg: #495057;
        --breadcrumb-active: #931800;
}
/******************** vars fallback ********************/
.widget-inner, .site-section { padding: 20px; margin-bottom: 20px; }
.header-logo-inner, .widget-title, input[type="submit"], input[type="reset"], input[type="button"], button { background-color: #333333; }
/******************** fix ********************/
body { overflow-y: scroll; font-family: tahoma; text-align: right; }
button:focus, input:focus, a:focus { outline: none !important; }
a { text-decoration: none !important; }
/******************** bootstrap fix ********************/
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { line-height: 1.5; }
h1, .h1 { font-size: 1.4em; }
h2, .h2 { font-size: 1.2em; }
h3, .h3 { font-size: 1em; }
h4, .h4 { font-size: 0.9em; }
h5, .h5 { font-size: 0.8em; }
h6, .h6 { font-size: 0.7em; }
.carousel { direction: ltr; }
.carousel-inner { direction: rtl; }
.carousel-control { z-index: 50; max-width: 60px; }
.carousel-control, .carousel-control a { color: #FFFFFF !important; }
.carousel-control .icon-prev::before, .carousel-control .icon-next::before { font-family: 'Font Awesome\ 5 Free'; font-weight: bold; }
.carousel-control .icon-prev::before { content: '\f053'; }
.carousel-control .icon-next::before { content: '\f054'; }
.close { float: left; font-size: 20px !important; }
.tooltip { font: normal 13px/1.5 tahoma; }
.list-unstyled, .list-inline { padding-right: 0; }
.list-inline-item:not(:last-child) { margin-right: 0; margin-left: 5px; }
.blockquote { border-left: none; border-right: 0.25rem solid #eceeef; }
.form-control { font-family: tahoma; }
/******************** flex ********************/
.flex-grow { flex-grow: 1; }
.flex-grow-children > * { flex-grow: 1; }
.flex-grow-over { flex-grow: 1000; }
.flex-grow-none { flex-grow: 0; }
.flex-basis-100 { flex-basis: 100%; }
/******************** colors ********************/
.light-color, .light-color a, a.light-color { color: #EEEEEE !important; }
.light-color a:hover, .light-color a:focus, a.light-color:hover, a.light-color:focus { color: #FFFFFF !important; }
.medium-color, .medium-color a, a.medium-color { color: #888888 !important; }
.medium-color a:hover, .medium-color a:focus, a.medium-color:hover, a.medium-color:focus { color: #333333 !important; }
.dark-color, .dark-color a, a.dark-color { color: #333333 !important; }
.dark-color a:hover, .dark-color a:focus, a.dark-color:hover, a.dark-color:focus { color: #111111 !important; }
/******************** forms ********************/
form { max-width: 500px; margin-right: auto; margin-left: auto; }
input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]), textarea, select { -moz-appearance: none; -webkit-appearance: none; padding: calc(0.375em - 1px) calc(0.625em - 1px); font-weight: normal; line-height: 1.5; border: 1px solid #DBDBDB; border-radius: 2px; color: #363636; box-shadow: 0px 1px 2px rgba(10,10,10,0.1) inset; width: 100%; }
input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]):hover, textarea:hover, select:hover { border-color: #B5B5B5; }
input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]):focus, textarea:focus, select:focus { border-color: #42A0FF; box-shadow: 0px 0px 0px 3px #CAE4FF; }
input[type="submit"], input[type="reset"], input[type="button"], button { display: inline-block; font-weight: normal; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; border: none; padding: 10px 20px; line-height: 1.25; border-radius: 2px; transition: all 0.15s ease-in-out; cursor: pointer; color: #FFFFFF; transition: 0.3s; background-color: var(--main-color); }
input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, button:hover { box-shadow: 0px 0px 0px 100px rgba(0,0,0,0.2) inset; }
input[type="submit"]:focus, input[type="reset"]:focus, input[type="button"]:focus, button:focus { box-shadow: 0px 0px 0px 100px rgba(0,0,0,0.3) inset; }
/******************** search-form ********************/
.search-inner { position: relative; min-width: 200px; }
.search-form .search-field { padding-left: 54px !important; }
.search-form .search-submit { position: absolute; top: 1px; bottom: 1px; left: 1px; margin: 0px; padding: 0px 13px; border: none; border-right: 1px solid rgba(0,0,0,0.1); background: transparent; transition: 0.3s; cursor: pointer; color: #777777; font-size: 18px !important; border-radius: 0px; }
.search-form .search-submit:hover { color: #333333; }
.search-form .search-submit:hover, .search-form .search-submit:focus { box-shadow: none; }
.site-main .search-form { padding: 10px; background: #F8F8F8; }
/******************** social links ********************/
.social-links ul { margin: -2px; padding: 0px; list-style: none; font-weight: normal; }
.social-links li { margin: 2px; }
.social-links a { position: relative; background: #444444; }
.social-links a, .social-links a:hover, .social-links a:focus { color: #FFFFFF !important; }
.social-links .sb-facebook a, .social-links .sb-facebook a:hover { background-color: #4a6ea9; border-color: #4a6ea9; }
.social-links .sb-twitter a, .social-links .sb-twitter a:hover { background-color: #00abf0; border-color: #00abf0; }
.social-links .sb-instagram a, .social-links .sb-instagram a:hover { background-color: #a57d60; border-color: #a57d60; }
.social-links .sb-youtube a, .social-links .sb-youtube a:hover { background-color: #e64a41; border-color: #e64a41; }
.social-links .sb-tumblr a, .social-links .sb-tumblr a:hover { background-color: #395976; border-color: #395976; }
.social-links .sb-linkedin a, .social-links .sb-linkedin a:hover { background-color: #0097bd; border-color: #0097bd; }
.social-links .sb-pinterest a, .social-links .sb-pinterest a:hover { background-color: #d73532; border-color: #d73532; }
.social-links .sb-android a, .social-links .sb-android a:hover { background-color: #689f38; border-color: #689f38; }
.social-links .sb-ios a, .social-links .sb-ios a:hover { background-color: #a8b1b8; border-color: #a8b1b8; }
.social-links .sb-rss a, .social-links .sb-rss a:hover { background-color: #f4b83f; border-color: #f4b83f; }
.light-color .social-links a { background: rgba(0,0,0,0.3); }
/******************** social links styles ********************/
.social-links.style1 span { display: none; }
.social-links.style1 a { display: block; padding: 0.5em; text-align: center; line-height: 1.2; font-size: 2em; }
.social-links.style2 li { -webkit-flex-basis: 100%; flex-basis: 100%; -webkit-flex-grow: 1; flex-grow: 1; }
.social-links.style2 a { display: block; text-align: left; }
.social-links.style2 i, .social-links.style2 span { display: inline-block; }
.social-links.style2 span { margin-left: 50px; padding: 10px 20px; direction: ltr; font-weight: bold; }
.social-links.style2 i { position: absolute; top: 0px; left: 0px; bottom: 0px; padding: 10px 0px; width: 50px; background: rgba(0,0,0,0.2); font-size: 1.4em; }
/******************** layout ********************/
.site { z-index: 100; }
.site-header { z-index: 90; }
.site-main { z-index: 80; }
.site-footer { z-index: 70; }
.site, .site-header, .site-main, .site-footer { position: relative; }
@media (max-width: 575px) {
        .wrapper-outer, .sidebar { overflow: hidden; }
}
.content, .sidebar { min-width: 0px; }
.content { flex-basis: 800px; flex-basis: calc(100% - var(--sidebar-side-width) - var(--widget-padding) - var(--widget-padding) - var(--widget-spacing)); }
.sidebar-side { flex-basis: 346px; flex-basis: calc(var(--sidebar-side-width) + var(--widget-padding) + var(--widget-padding) + var(--widget-spacing)); }
.sidebar-side { flex-shrink: 0; }
body:not(.single):not(.page) .content { flex-grow: 1; }
body.post-template-singular-full-width .content, body.page-template-singular-full-width .content { flex-grow: 1; }
.row-min { margin-right: calc(var(--widget-spacing) / -2); margin-left: calc(var(--widget-spacing) / -2); }
.row-min > * { padding-right: calc(var(--widget-spacing) / 2); padding-left: calc(var(--widget-spacing) / 2); }
.widget-content img, .post-content img { max-width: 100%; height: auto; }
/******************** styling ********************/
a, a:focus { color: var(--link-color); }
a:hover { color: var(--link-hover-color); }
.site { background-color: var(--bg-color); }
.widget-inner, .site-section { padding: var(--widget-padding); background: #FFFFFF; border-top: 3px solid var(--main-color); }
.widget-inner, .site-section { margin-bottom: var(--widget-spacing); }
.site-header { margin-bottom: 20px; }
.site-footer { margin-top: 10px; }
.page-header { position: relative; margin-bottom: 20px; }
/******************** header ********************/
.site-header { background-color: #222222; border-top: 3px solid var(--main-color); }
.header-logo { margin-bottom: 10px; z-index: 1; }
.header-logo-inner { background-color: var(--main-color); }
.header-search .search-field { line-height: 22px !important; font-size: 14px !important; }
.light-color .header-search .search-field { border-color: rgba(0,0,0,0.1) !important; }
.header-search-button { position: relative; }
.header-mobile-button a, .header-search-button a { position: relative; padding: 10px 20px; font-size: 20px; }
.header-search-form { position: absolute; top: 100%; left: 0px; padding: 10px; width: 100vw; min-width: 300px; background: #FFFFFF; box-shadow: 0px 0px 5px rgba(0,0,0,0.5); z-index: 30; display: none; }
.site-header .search-form { max-width: 100%; }
.site-header .social-links a { padding: 2px 6px; font-size: 23px; line-height: 29px; border-radius: 2px; }
.site-header-inner-1 { padding: 6px 0px; background: #FFFFFF; }
.site-header-inner-1-inner, .site-header-inner-2 .header-main-navigation-outer { position: relative; padding-right: 250px; }
.site-header-inner-1-inner > div { margin-right: 30px; }
.header-logo img, .header-logo-img { width: auto; height: 40px; }
@media (min-width: 992px) {
        .header-logo { position: absolute; top: 0px; bottom: 0px; } 
        .header-logo img, .header-logo-img { width: auto; height: 60px; max-width: 220px; }
}
/******************** footer ********************/
.site-footer.light-color { background-color: #202020; border-top: 3px solid var(--main-color); }
.site-footer.light-color .widget-inner, .site-footer.light-color .site-section { background-color: rgba(0,0,0,0.15); border-color: rgba(0,0,0,0.3); }
.site-footer.light-color .widget-inner .widget-inner { background: transparent; }
.site-footer.light-color .widget-title { background-color: #111111; }
.site-footer-inner-1 { padding-top: var(--widget-padding); padding-bottom: calc(var(--widget-padding) - var(--widget-spacing)); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer-inner-2 { padding-top: 10px; padding-bottom: 10px; }
.footer-navigation ul { margin: 0px; padding: 0px; list-style: none; }
.footer-navigation ul li { display: inline-block; }
.ws-copyrights { order: -1; }
.ws-copyrights p:last-of-type { margin-bottom: 0px; }
.site-footer.light-color .posts .post, .site-footer.light-color .terms li:not(.dummy) { box-shadow: 0px 0px 2px rgba(0,0,0,0.5); }
/******************** post content ********************/
.post-content { position: relative; margin: 0px auto; margin-bottom: var(--widget-padding); min-width: 0px; line-height: 1.8; text-align: justify; }
.post-content a { color: var(--main-color); }
.post-content table { text-align: initial; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 { margin-top: 1em; margin-bottom: 1em; }
.post-content h1:not(.plain), .post-content h2:not(.plain), .post-content h3:not(.plain), .post-content h4:not(.plain), .post-content h5:not(.plain), .post-content h6:not(.plain) { display: inline-block; padding: 5px 15px; background-color: var(--mark-color); border-top: 2px solid rgba(0,0,0,0.1); }
.post-content blockquote { position: relative; padding: 10px 60px; background-color: var(--mark-color); border-right: 2px solid rgba(0,0,0,0.1); }
.post-content blockquote::before, .post-content blockquote::after { position: absolute; font-family: 'Font Awesome\ 5 Free'; font-size: 1.2em; font-weight: bold; opacity: 0.1; }
.post-content blockquote::before { top: 0px; right: 10px; content: "\f10e"; }
.post-content blockquote::after { bottom: 0px; left: 10px; content: "\f10d"; }
.post-content blockquote p:last-of-type { margin-bottom: 0px; }
.aligncenter { display: table; margin-right: auto; margin-left: auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.post-inner .share-buttons-bottom:last-of-type { margin-bottom: calc(var(--widget-padding) * -1); border-bottom: none; }
/******************** post header ********************/
.section-post.style2 .page-header { margin: calc(var(--widget-padding) * -1); margin-bottom: var(--widget-padding); height: 400px; max-height: 80vw; background-size: cover; background-position: center; overflow: hidden; }
.section-post.style2 .page-header-inner { position: relative; margin: 0px 4vw; padding: 20px; box-shadow: 0px 0px 10px rgba(0,0,0,0.6); background: rgba(255,255,255,0.9); text-align: center; }
.section-post.style2 .page-header .post-meta { margin-top: -15px; }
.section-post.style2 .page-header .meta-item.meta-taxonomies { position: absolute; top: -14px; right: 0px; left: 0px; }
.section-post.style2 .page-header .meta-item.meta-taxonomies .meta-item-content { position: relative; }
.section-post.style2 .page-header .meta-item.meta-taxonomies a { position: relative; display: inline-block; margin-right: 20px; margin-left: 20px; padding: 5px 20px; color: #FFFFFF !important; background-color: var(--main-color); }
.section-post.style2 .page-header .meta-item.meta-taxonomies a::before, .page-header .meta-item.meta-taxonomies a::after { content: ""; position: absolute; top: 0px; border: 7px solid transparent; }
.section-post.style2 .page-header .meta-item.meta-taxonomies a::before { left: -14px; border-color: transparent #000000 #000000 transparent; }
.section-post.style2 .page-header .meta-item.meta-taxonomies a::after { right: -14px; border-color: transparent transparent #000000 #000000; }
.section-post.style2 .page-header .meta-item.meta-taxonomies::after, .section-post.style2 .page-header .meta-item.meta-taxonomies .meta-item-prefix { display: none; }
.section-post.style2 .page-header .meta-item.meta-taxonomies .sep { display: none; }
.section-post.style2 .page-title { margin-top: 15px; margin-bottom: 15px; }
.section-post.style2 .share-buttons-top { margin-top: calc(var(--widget-padding) * -1); border-top: none; }
/******************** post image ********************/
.post-image { margin-bottom: var(--widget-padding); }
.post-image img { object-fit: cover; max-height: 350px; }
.post-image-inner { position: relative; margin-right: calc(var(--widget-padding) * -1); margin-left: calc(var(--widget-padding) * -1); }
.post-caption, .wp-caption-text { position: absolute; right: 10px; bottom: 10px; max-width: 80%; padding: 8px 10px; background: rgba(0,0,0,0.7); line-height: 1.3; color: #FFFFFF; }
.wp-caption { position: relative; display: table; max-width: 100%; width: auto !important; }
/******************** main navigation ********************/
.main-navigation ul { margin: 0px; padding: 0px; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation .menu > li { border-left: 1px solid rgba(255,255,255,0.08); }
.main-navigation .menu > li:last-child { border-left: none; }
.main-navigation .menu > li.menu-item-has-posts { position: static; }
.main-navigation .menu > li.menu-item-has-children > a::after, .main-navigation .sub-menu li.menu-item-has-children > a::after { position: relative; padding-right: 10px; font-family: 'Font Awesome\ 5 Free'; font-size: 12px; font-weight: bold; }
.main-navigation .menu > li.menu-item-has-children > a::after { content: "\f107"; }
.main-navigation .sub-menu li.menu-item-has-children > a::after { content: "\f104"; float: left; padding-top: 2px; }
.main-navigation .menu > li > a, .main-navigation .sub-menu > li > a { position: relative; display: block; padding: 12px 20px; }
.main-navigation .menu > li:hover > a { background: rgba(0,0,0,0.3); }
.main-navigation .sub-menu::after { display: block; clear: both; content: ""; }
.main-navigation .sub-menu > li:hover > a { background: #EEEEEE; }
.main-navigation .sub-menu-outer { position: absolute; top: 100%; right: 0px; left: 0px; min-width: 220px;  opacity: 0; transform: translate(0px,10px); transition: 0.3s; z-index: 10; visibility: hidden; }
.main-navigation .menu > li:not(.menu-item-has-posts):last-child .sub-menu-outer { right: auto; left: 0px; }
.main-navigation .sub-menu-inner { padding: 0px !important; background: #FFFFFF; box-shadow: 0px 0px 20px rgba(0,0,0,0.6); }
.main-navigation .menu > li.menu-item-has-children:hover > .sub-menu-outer, .main-navigation .menu > li.menu-item-has-posts:hover > .sub-menu-outer { opacity: 1; transform: translate(0px,0px); visibility: visible; }
.main-navigation .menu > li.menu-item-has-children > a::before, .main-navigation .menu > li.menu-item-has-posts > a::before { content: ""; position: absolute; bottom: -5px; border: 10px solid; border-color: transparent transparent #FFFFFF transparent; z-index: 20; opacity: 0; transform: translate(0px,10px); transition: 0.3s; visibility: hidden; }
.main-navigation .menu > li.menu-item-has-children:hover > a::before, .main-navigation .menu > li.menu-item-has-posts:hover > a::before { opacity: 1; transform: translate(0px,0px); visibility: visible; }
.main-navigation .sub-menu { width: 100%; padding: 10px; background: #FFFFFF; box-shadow: 0px 0px 20px rgba(0,0,0,0.6); z-index: 50; }
.main-navigation .sub-menu .sub-menu { position: absolute; top: -10px; right: 100%; display: none; }
.main-navigation .sub-menu li:hover > .sub-menu { display: block; }
.main-navigation .menu > li.menu-item-has-children.menu-item-has-posts .sub-menu-outer .posts-menu { margin-right: 240px; }
.main-navigation .menu > li.menu-item-has-children.menu-item-has-posts .sub-menu-outer .sub-menu-inner > .sub-menu { width: 240px; float: right; box-shadow: none; }
.main-navigation .posts-menu .posts-inner { grid-template-columns: repeat(4, 1fr) !important; padding: 20px; }
/******************** top navigation ********************/
.top-navigation .menu > li { margin-left: 20px; border-left: none; }
.top-navigation .menu > li > a { padding: 5px 10px; }
.top-navigation .menu > li:hover > a { background: transparent; }
/******************** widgets ********************/
.widget { display: flex; flex-direction: column; }
.widget-mb { margin-bottom: var(--widget-spacing) !important; }
.widget-header { position: relative; margin-top: calc((var(--widget-padding) + 3px) * -1); margin-bottom: var(--widget-padding); }
.widget-header h2, .widget-header h3 { margin-bottom: 0px; }
.widget-header a { display: block; }
.widget-header, .widget-header a, .widget-header a:hover, .widget-header a:focus { color: #FFFFFF; }
.widget-title { position: relative; display: inline-block; margin-bottom: 0px; padding: 7px 20px; background-color: var(--main-color); z-index: 1; }
.widget-title i { margin-left: 10px; vertical-align: middle; }
.widget_a4h_widgets_list > .widget-inner {  padding: 0px; }
.widget_a4h_widgets_list > .widget-inner > .widget-content { margin-bottom: calc(var(--widget-spacing) * -1); }
.widget_a4h_widgets_list > .widget-inner > .widget-header { margin-top: -3px; margin-bottom: 0px; margin-right: var(--widget-padding); }
.widget_a4h_widgets_list .widget-inner .widget-inner { border: none; }
/******************** posts list ********************/
.posts { position: relative; }
.posts + .posts { margin-top: var(--posts-gap); }
.posts h2, .posts h3 { margin: 0px; }
.posts .title { z-index: 20; }
.posts .thumb-wrap { z-index: 10; background-size: cover; background-position: center; }
.posts .post { flex-basis: 250px; flex-grow: 1; position: relative; box-shadow: 0px 0px 2px rgba(0,0,0,0.3); }
.posts .post-link { position: relative; border: 1px solid transparent; }
/******************** posts layout ********************/
.posts .posts-inner { position: relative; display: flex; flex-wrap: wrap; display: grid; grid-gap: var(--posts-gap); grid-template-columns: repeat(auto-fill, minmax(var(--post-width), 1fr)); }
.posts .overlay { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; z-index: 15; background: rgba(0,0,0,0.2); transition: 0.2s; visibility: hidden; }
.posts .post:hover .overlay { background: transparent; }
/******************** posts styles ********************/
.posts .post.style1 .title { margin: 10px; margin-left: calc(40% + 20px); height: 6em; overflow: hidden; }
.posts .post.style1 .thumb-wrap { position: absolute; top: 0px; bottom: 0px; left: 0px; width: 40%; }
.posts .post.style2 .thumb-wrap { min-height: 150px; border-bottom-width: 3px; }
.posts .post.style2 .title { padding: 10px; }
.posts .post.style3 .post-link { height: 100%; }
.posts .post.style3 .thumb-wrap { height: 100%; min-height: 200px; }
.posts .post.style3 .title { position: absolute; right: 0px; bottom: 0px; left: 0px; padding: 20px 40px; padding-top: 50px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7) 40%, #000000); color: #FFFFFF; text-shadow: 0px 1px 1px #000000; }
.posts .post.style3 .overlay { visibility: visible; }
/******************** posts extra settings ********************/
.hide-thumb .thumb-wrap { display: none; }
.hide-thumb .post.style1 .title { margin-left: 10px !important; min-height: 3em; height: auto !important; }
.hide-thumb .post.style3 { min-height: 300px; }
/******************** posts grid styles ********************/
@media (min-width: 992px) {
        .posts.grid1 .posts-inner, .posts.grid2 .posts-inner, .posts.grid3 .posts-inner, .posts.grid4 .posts-inner { grid-template-columns: repeat(4, 1fr); }
        .posts .post.cols2 { grid-column: span 2; }
        .posts .post.colsx { grid-column: 1 / -1; }
        .posts .post.rows2 { grid-row: span 2; }
        .posts .post.rows3 { grid-row: span 3; }
        .posts .post.lg-image .thumb-wrap { min-height: 250px; }
        .posts .post.xl-image .thumb-wrap { min-height: 300px; }
        .posts .lg-font .title { font-size: 1.5em; }
        .posts .xl-font .title { font-size: 2em; }
}
/******************** post meta ********************/
.meta-item.meta-updated .post-date-published { display: none; }
.meta-item.meta-published .post-date-updated { display: none; }
/******************** loop post meta ********************/
.loop-post-meta { position: absolute; top: 1px; left: 1px; z-index: 30; }
.loop-post-meta .meta-item { float: left; clear: both; background: rgba(0,0,0,0.7); }
.loop-post-meta .meta-sticky, .loop-post-meta .meta-comments, .loop-post-meta .meta-views, .loop-post-meta .meta-author a, .loop-post-meta .meta-taxonomies a, .loop-post-meta .meta-taxonomy a, .loop-post-meta .meta-published a, .loop-post-meta .meta-updated a { display: inline-block; padding: 3px 10px; }
.loop-post-meta .meta-item, .loop-post-meta .meta-item a { color: #EEEEEE !important; transition: 0.3s; }
.loop-post-meta .meta-item a:hover { background: #000000; }
.loop-post-meta .meta-item { margin-bottom: 2px; }
/******************** main post meta ********************/
.main-post-meta .meta-item { position: relative; display: inline-block; margin: 0px 2px; white-space: nowrap; }
.main-post-meta .meta-item::after { content: "/"; margin-right: 5px; font-size: 0.7em; opacity: 0.5; }
.main-post-meta .meta-item:last-child:after { display: none; }
.main-post-meta .main-color-bg-link a { display: inline-block; padding: 4px 10px; color: #FFFFFF; color: #FFFFFF; }
.main-post-meta .main-color-bg-link a:hover { background: #000000; }
.main-post-meta .meta-item-prefix::after { content: ":"; }
.main-post-meta .meta-item.meta-sticky .meta-item-prefix::after { content: ""; }
/******************** pagination ********************/
.pages-navigation { margin-top: var(--widget-padding); margin-bottom: var(--widget-padding); }
.nav-links > span, .nav-links > a { position: relative; display: inline-block; margin: 8px 2px 0px 2px; padding: 10px 20px; background: #FFFFFF; border: 1px solid #DDDDDD; }
.nav-links > span::before, .nav-links > span::after, .nav-links > a::before, .nav-links > a::after { content: ""; position: absolute; top: 100%; right: -1px; left: calc(100% + 1px); height: 3px; transition: 0.3s; }
.nav-links > span::before, .nav-links > a::before { left: -1px; background: #DDDDDD; }
.nav-links > a:hover::after { left: -1px; z-index: 1; }
.nav-links .current, .pages-navigation-post .nav-links > span { color: var(--main-color); }
.nav-links a::after, .nav-links > .current::before, .pages-navigation-post .nav-links > span::before { background-color: var(--main-color); }
.load-more-btn { min-width: 150px; }
/******************** mobile menu ********************/
.mobile-menu { border-top: 1px solid rgba(255,255,255,0.08); display: none; }
.mobile-menu-inner { padding-right: var(--widget-padding); padding-left: var(--widget-padding); }
.mobile-navigation { max-width: 250px; margin: 0px auto; }
.mobile-navigation ul { margin: 0px; padding: 0px; list-style: none; }
.mobile-navigation li { position: relative; }
.mobile-navigation li li { margin-right: 20px; }
.mobile-navigation a { position: relative; display: block; margin: 0px 1px 2px 1px; padding: 10px 15px; background: rgba(0,0,0,0.4); }
.mobile-navigation li li a { background: rgba(0,0,0,0.6);}
.mobile-navigation li li li a { background: rgba(0,0,0,0.8);}
.mobile-navigation li li li li a { background: rgba(0,0,0,1);}
.mobile-navigation .toggle { position: absolute; top: 0px; left: 0px; bottom: 0px; width: 40px; cursor: pointer; border-right: 1px solid rgba(255,255,255,0.1); background-color: rgba(0,0,0,0.2); }
.mobile-navigation .toggle::after { position: relative; font-family: 'Font Awesome\ 5 Free'; font-weight: bold; }
.mobile-navigation .toggle::after { content: "\f078"; }
.mobile-navigation .toggle.toggled::after { content: "\f077"; }
/******************** ads ********************/
.ad { margin: 20px 0px; text-align: center; }
.ad.site-section { margin: 0px; margin-bottom: var(--widget-spacing); }
.ad img { max-width: 100%; height: auto; }
.section-post.style2 .ad-location_title_above { margin-bottom: 40px; }
.ad-location_wrapper_right { flex-shrink: 0; margin-top: 0px; margin-bottom: var(--widget-spacing); }
.ad-location_wrapper_left { flex-shrink: 0; margin-top: 0px; margin-bottom: var(--widget-spacing); }
.ad[class*="ad-location_archive_middle_"] { grid-column: 1 / -1; }
.site-header-inner-1 .ad { display: inline-block; margin: 0px; padding: 0px; margin-right: 30px; }
.ad .ad-inner { display: block !important; }
/******************** carousel slider ********************/
.posts.slider .posts-inner:not(.owl-loaded) { visibility: hidden; opacity: 0; pointer-events: none; }
.posts.slider .posts-inner:not(.owl-loaded) .post { grid-area: 1 / 1 / 1 / 1; }
.posts.slider .posts-inner.owl-loaded { display: block; -webkit-tap-highlight-color: transparent; z-index: 1; }
.posts.slider .posts-inner { margin: -10px; overflow: hidden; }
.posts.slider .posts-inner .post { margin: 10px; }
.posts.slider .posts-inner .owl-stage { position: relative; -ms-touch-action: pan-Y; -moz-backface-visibility: hidden; }
.posts.slider .posts-inner .owl-stage:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.posts.slider .posts-inner .owl-stage-outer { position: relative; overflow: hidden; }
.posts.slider .posts-inner .owl-wrapper, .posts.slider .posts-inner .owl-item { -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visibility: hidden; }
.posts.slider .posts-inner .owl-item { position: relative; min-height: 1px; -webkit-backface-visibility: hidden; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.posts.slider .posts-inner.owl-drag .owl-item { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.posts.slider .posts-inner .owl-prev, .posts.slider .posts-inner .owl-next, .posts.slider .posts-inner .owl-dot { cursor: pointer; cursor: hand; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.posts.slider .posts-inner.owl-grab { cursor: move; cursor: grab; }
.posts.slider .owl-prev, .posts.slider .owl-next { position: absolute; top: calc(50% - 45px); width: 70px; height: 70px; text-align: center; background: #FFFFFF; box-shadow: 0px 0px 2px rgba(0,0,0,0.3); border-radius: 100%; }
.posts.slider .owl-prev { right: -30px; }
.posts.slider .owl-next { left: -30px; }
.posts.slider .owl-prev::after, .posts.slider .owl-next::after { position: relative; font-family: 'Font Awesome\ 5 Free'; font-size: 2.5em; font-weight: bold; line-height: 70px; z-index: 20; }
.posts.slider .owl-prev::after { right: 10px; content: "\f105"; }
.posts.slider .owl-next::after { left: 10px; content: "\f104"; }
.posts.slider .owl-prev:hover::after, .posts.slider .owl-next:hover::after { color: var(--main-color); }
.posts.slider .owl-dots { text-align: center; display: none; }
.posts.slider .owl-dot { display: inline-block; margin: 0px 5px; }
.posts.slider .owl-dot span { display: inline-block; width: 8px; height: 8px; background: rgba(0,0,0,0.7); border-radius: 100%; }
.posts.slider .owl-dot.active span, .owl-thumb.active { background-color: var(--main-color); }
.posts.slider .owl-thumbs { position: relative; background: #222222; border: 1px solid #FFFFFF; box-shadow: 0px 0px 2px rgba(0,0,0,0.3); z-index: 40; display: none; }
.posts.slider .owl-thumb { display: block; padding: 10px; color: #FFFFFF; }
.posts.slider .owl-thumb .title { line-height: 27px; overflow: hidden; }
/******************** carousel slider styles ********************/
.posts.slider1 .owl-prev, .posts.slider.slider1 .owl-next { top: 50px; }
.posts.slider1 .posts-inner { margin: calc(var(--posts-gap) * -0.5); }
.posts.slider1 .posts-inner .post { margin: calc(var(--posts-gap) * 0.5); }
.posts.slider3 .owl-thumbs { position: absolute; top: 10px; left: 0px; width: 250px; }
.posts.slider3 .owl-thumb .title { height: 54px; }
.posts.slider4 .owl-thumb { float: right; width: 25%; }
.posts.slider4 .owl-thumb .title { height: 108px; }
@media (min-width: 768px) {
        .posts.slider .post.style3 .thumb-wrap { height: 370px; }
        .posts.slider3 .posts-inner { margin-left: 250px; }
        .posts.slider3 .owl-thumbs, .posts.slider4 .owl-thumbs { display: block; }
        .posts.slider4 .posts-inner:not(.owl-loaded)::after { content: ""; display: block; grid-column: 1 / -1; margin-top: -18px; height: 128px; }
}
/******************** comments ********************/
.comments .fb_iframe_widget, .comments .fb_iframe_widget span, .comments .fb_iframe_widget span iframe[style] { max-width: 100% !important; width: 100% !important; }
.comments .comments-item { margin-bottom: 20px; min-height: 250px; }
.comments .comment-list, .comments .children { margin: 0px; padding: 0px; list-style: none; }
.comments .children { margin-right: 40px; }
.comment-list { counter-reset: comments-counter; }
.comment-list .comment { position: relative; }
.comment-list .comment .reply::before { content: "#" counter(comments-counter); counter-increment: comments-counter; margin-left: 30px; font: italic 15px/1.5 tahoma; color: #666666; display: none; }
.comment-list .reply { padding: 10px 20px; text-align: left; }
.comment-list .comment-reply-link { display: inline-block; padding: 4px 15px; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.1); text-align: center; border-radius: 2px; z-index: 2; }
.comment-list .comment-reply-link:hover { border-color: rgba(0,0,0,0.2); }
.comment-list img { max-width: 100%; height: auto; }
.comment-list .says { display: none; }
.comment-list .avatar { position: absolute; right: -60px; max-width: 50px; padding: 4px; border-radius: 100%; box-shadow: 0px 0px 4px rgba(0,0,0,0.4); }
body.comments-avatars .comment-list > li { margin-right: 60px; }
.comment-list .comment-body { position: relative; margin: 6px 0px; background: #F6F7F9; border-top: 2px solid rgba(0,0,0,0.06); }
.comment-list .comment.byteammember > .comment-body, .comment-list .comment.bypostauthor > .comment-body { background: #F3F8FE; }
.comment-list .comment.byteammember > .comment-body .fn::before, .comment-list .comment.bypostauthor > .comment-body .fn::before { content: "\f058"; position: relative; display: inline-block; margin-left: 5px; font-family: 'Font Awesome\ 5 Free'; font-weight: bold; line-height: 1; color: #5181E8; }
.comment-list .comment-meta { position: relative; padding: 10px 20px; }
.comment-list .comment-meta::after { display: block; clear: both; content: ""; }
.comment-list .comment-author { float: right; }
.comment-list .comment-metadata { float: left; margin-right: 20px; }
.comment-list .comment-metadata, .comment-list .comment-metadata a { color: #777777; }
.comment-list .comment-metadata a:hover { color: #333333; }
.comment-list .edit-link { display: inline-block; margin-right: 20px; }
.comment-list .comment-content, .comment-list .pingback .comment-body { padding: 10px 20px; }
.comment-list .comment-content p:last-of-type { margin-bottom: 0px; }
.comment-list .comment-awaiting-moderation { clear: both; }
.leave-comment-title { position: relative; margin: 40px auto; text-align: center; }
.leave-comment-title small { float: left; margin-right: 20px; }
.leave-comment-title::before { content: ""; position: absolute; top: 45%; right: 0px; left: 0px; border-top: 2px solid #EEEEEE; }
.leave-comment-title .title { position: relative; display: inline-block; margin: 0px; padding: 0px 10px; background: #FFFFFF; }
html:not(.no-js) body:not(.logged-in) .comment-form .comment-notes, html:not(.no-js) body:not(.logged-in) .comment-form .comment-form-author, html:not(.no-js) body:not(.logged-in) .comment-form .comment-form-email { display: none; }
/******************** share buttons ********************/
.share-buttons { position: relative; margin-right: calc(var(--widget-padding) * -1); margin-left: calc(var(--widget-padding) * -1); margin-bottom: 20px; padding: calc(var(--widget-padding) / 2) var(--widget-padding); border-top: 1px solid; border-bottom: 1px solid; border-color: #EEEEEE; }
.share-buttons-inner { position: relative; margin: 0px auto; max-width: 900px; }
li.sb-label { position: relative; margin-left: 30px; font: bold 16px/1 'Droid Arabic Kufi' !important; }
li.sb-label::before { content: "شارك"; }
.share-buttons-default { font: bold 13px/1.5 tahoma !important; }
.share-buttons-default, .share-buttons-default a { color: #FFFFFF !important; }
.share-buttons-default i { font-size: 20px; }
.share-buttons-default .ss-label { display: inline-block; margin-right: 10px; }
.share-buttons-default a { display: block; padding: 10px 5px; }
.share-buttons-default .ss-button { position: relative; padding: 3px; transition: 0.2s; text-align: center; white-space: nowrap; }
.share-buttons-default .ss-button > div, .share-buttons-default .ss-button > a { box-shadow: 0px -2px 0px 0px rgba(0,0,0,0.2) inset; }
.share-buttons-default .ss-facebook a { background-color: #4a6ea9; border-color: #4a6ea9; }
.share-buttons-default .ss-messenger a { background-color: #0084ff; border-color: #0084ff; }
.share-buttons-default .ss-twitter a { background-color: #00abf0; border-color: #00abf0; }
.share-buttons-default .ss-whatsapp a { background-color: #128C7E; border-color: #128C7E; }
.share-buttons-default .ss-short-link > div { padding: 5px; background-color: #545454; border-color: #545454; }
.share-buttons-default .ss-short-link input { margin-right: 10px; padding: 2px 10px; width: auto !important; min-width: 160px; height: 100%; border: none; border-radius: 0px; cursor: pointer; box-shadow: none !important; border: none !important; border-radius: 0px !important; }
/******************** post tags ********************/
.post-tags ul { margin: 0px; padding: 0px; list-style: none; }
.post-tags li { position: relative; }
.post-tags li.tags-label { margin-top: 3px; margin-left: 10px; font-size: 20px; }
.post-tags a { display: block; margin: 2px 2px; padding: 5px 10px; background: #F8F8F8; border: 1px solid #DDDDDD; border-radius: 2px; }
/******************** terms list widget ********************/
.terms .terms-inner { margin: -3px; }
.terms ul { margin: 0px; padding: 0px; list-style: none; }
.terms li:not(.dummy) { position: relative; margin: 3px; box-shadow: 0px 0px 2px rgba(0,0,0,0.3); }
.terms li.dummy { margin: 0px 3px; }
.terms.show-count li { padding-left: 60px; }
.terms.style1 li { -webkit-flex-basis: 150px; flex-basis: 150px; flex-grow: 1; }
.terms li a { display: block; padding: 5px 10px; }
.terms li .count { position: absolute; top: 0px; bottom: 0px; left: 0px; padding: 5px 10px; border-right: 1px solid rgba(0,0,0,0.066); }
.terms li h3 { margin: 0px; }
/******************** animation ********************/
@keyframes circleIn {
        0%              { transform: scale(0); opacity: 0.4; }
        100%    { transform: scale(1); opacity: 0; }   
} 
.circleIn a, a.circleIn { position: relative; overflow: hidden; }
.circleIn a::before, a.circleIn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin-top: -60px; margin-left: -60px; background: #FFFFFF; border-radius: 100%; display: none; }
.circleIn a:hover::before, a.circleIn:hover::before { display: block; animation: circleIn 0.4s linear; animation-fill-mode:forwards; }
/******************** misc ********************/
img.fluid-img, .fluid-img img { width: 100%; height: auto; }
.header-time { padding: 5px 10px; background: rgba(0,0,0,0.066); border: 1px solid rgba(0,0,0,0.1); border-radius: 2px; }
.video-outer { margin-bottom: 20px; }
.fb-video { position: absolute !important; top: 0px; right: 0px; bottom: 0px; left: 0px; }
.dir-rtl { direction: rtl; }
.dir-ltr { direction: ltr; }
.read-more { display: inline-block; }
.fa.inline, .fas.inline, .fab.inline { margin-left: 0.5em; }
.loader-placeholder { padding: 50px 20px; font-size: 36px; text-align: center; }
.loader-placeholder.lg { padding: 75px 20px; }
.loader-placeholder.xl { padding: 100px 20px; }
.widget-cat-link::after { content: "\f104"; position: relative; padding-right: 10px; font-family: 'Font Awesome\ 5 Free'; font-weight: bold; line-height: 1; }
.author-avatar-inner img { width: 100px; height: 100px; border-radius: 100%; }
.author-social-links .social-links a { padding: 0.3em; font-size: 1.5em; border-radius: 100%; }
.author-social-links .sb-label::before { content: "تابع الكاتب على"; }
.breadcrumbs { display: block; }
.wp-caption-text { font-size: 0.9em; }
.sm-font { font-size: 0.9em !important; }
.lg-font { font-size: 1.1em !important; }

/******************** News Plus Pro 5.0 additions ********************/

/* ===== Breaking news ticker ===== */
.breaking-news-bar {
    background: var(--breaking-bg);
    color: var(--breaking-fg);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}
.breaking-news-inner { padding: 6px 0; }
.breaking-news-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--breaking-label-bg);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 700;
    flex: 0 0 auto;
    margin-inline-end: 14px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
    animation: a4h-pulse 1.6s ease-in-out infinite;
}
.breaking-news-label .fa-bolt { animation: a4h-bolt 0.7s steps(2, end) infinite; }
@keyframes a4h-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
    50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0.16); }
}
@keyframes a4h-bolt {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.breaking-news-ticker {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.breaking-news-ticker-list {
    display: inline-flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: a4h-ticker 60s linear infinite;
}
.breaking-news-ticker:hover .breaking-news-ticker-list { animation-play-state: paused; }
@keyframes a4h-ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
[dir="rtl"] .breaking-news-ticker-list { animation-name: a4h-ticker-rtl; }
@keyframes a4h-ticker-rtl {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.breaking-news-item a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.breaking-news-item a:hover { text-decoration: underline; }
.breaking-news-time {
    background: rgba(255,255,255,0.18);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 700;
}
.breaking-news-title { font-weight: 600; }

@media (max-width: 575.98px) {
    .breaking-news-label .breaking-news-label-text { display: none; }
    .breaking-news-ticker-list { gap: 22px; }
}

/* ===== Breadcrumbs (visual + Schema.org) ===== */
.breadcrumbs {
    background: var(--breadcrumb-bg);
    color: var(--breadcrumb-fg);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 0.9em;
}
.breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs-list li { display: flex; align-items: center; }
.breadcrumbs-list li:not(:last-child)::after {
    content: "›";
    margin-inline-start: 6px;
    color: #adb5bd;
    font-weight: 700;
}
[dir="rtl"] .breadcrumbs-list li:not(:last-child)::after { content: "‹"; }
.breadcrumbs-list li.active { color: var(--breadcrumb-active); font-weight: 700; }
.breadcrumbs-list a { color: var(--breadcrumb-fg); text-decoration: none; }
.breadcrumbs-list a:hover { color: var(--breadcrumb-active); text-decoration: underline; }

/* ===== Share buttons (Facebook / X / WhatsApp / Telegram / LinkedIn / Email / Copy) ===== */
/* Override the original share-button rules at line ~421-437 so the new
   flat design wins (equal heights, no negative-margin overflow, no
   short-link input field). */
.share-buttons {
    position: relative;
    margin: 16px 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 10px 0 !important;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-color: #eee;
}
.share-buttons-inner { gap: 6px; flex-wrap: wrap; position: static; max-width: none; }
.share-buttons-default {
    gap: 6px;
    flex-wrap: wrap;
    font: 600 14px/1 Tahoma, Arial, sans-serif !important;
}

/* Equal-height button shells - fixes the height mismatch between
   coloured share buttons and the gray Copy/Email buttons. */
.share-buttons .ss-button {
    display: flex;
    flex: 1 1 auto;
    min-width: 44px;
    padding: 0 !important;          /* override original padding:3px */
    transition: none;
}
.share-buttons .ss-button > a,
.share-buttons .ss-button > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    padding: 0 12px !important;     /* override original padding:10px 5px */
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;    /* override original inset box-shadow */
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.share-buttons .ss-button > a:hover,
.share-buttons .ss-button > button:hover {
    transform: translateY(-1px);
    opacity: .92;
    box-shadow: 0 4px 10px rgba(0,0,0,.18) !important;
}
.share-buttons .ss-button > a:focus-visible,
.share-buttons .ss-button > button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Brand colours - override the original hex values too. */
.share-buttons .ss-facebook  > a { background: var(--share-facebook) !important; }
.share-buttons .ss-x         > a { background: var(--share-x) !important; }
.share-buttons .ss-whatsapp  > a { background: var(--share-whatsapp) !important; }
.share-buttons .ss-telegram  > a { background: var(--share-telegram) !important; }
.share-buttons .ss-linkedin  > a { background: var(--share-linkedin) !important; }
.share-buttons .ss-email     > a { background: var(--share-email) !important; }
.share-buttons .ss-copy-link > button {
    background: #495057 !important;
    color: #fff !important;
}
.share-buttons .ss-copy-link > button.copied {
    background: #28a745 !important;
}

/* Icons inside buttons - keep size consistent across FA glyphs and the
   inline SVG used for the X logo. Override the original i {font-size:20px}. */
.share-buttons .ss-button i,
.share-buttons .ss-button svg {
    font-size: 16px !important;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.share-buttons .ss-button .ss-label {
    display: inline-block;
    margin: 0 !important;           /* override original margin-right:10px */
    white-space: nowrap;
}

/* Legacy short-link field is removed in 5.0.1 - hide any leftover
   instances (e.g. cached custom share code or original markup). */
.share-buttons .ss-short-link,
.share-buttons .ss-short-link > div,
.share-buttons .ss-short-link input { display: none !important; }
/* Hide the legacy Twitter bird icon button if a child theme still prints it */
.share-buttons .ss-twitter,
.share-buttons .ss-messenger { display: none !important; }

/* Mobile: icon-only buttons, equal widths, no wrapping issues */
@media (max-width: 575.98px) {
    .share-buttons .ss-button {
        flex: 1 1 44px;
        min-width: 44px;
    }
    .share-buttons .ss-button > a,
    .share-buttons .ss-button > button {
        padding: 0 !important;
        height: 44px;
    }
    .share-buttons .ss-button .ss-label { display: none !important; }
}

/* ===== Lazy-loading fade-in (avoid blank-flash) ===== */
img[loading="lazy"] { transition: opacity .25s ease; }
img[loading="lazy"]:not(.is-loaded) { opacity: 0; }
img[loading="lazy"].is-loaded,
img[loading="lazy"][src]:not([src=""]) { opacity: 1; }

/* ===== Print styles for articles ===== */
@media print {
    .breaking-news-bar,
    .site-header,
    .site-footer,
    .share-buttons,
    .post-author-block .author-social-links,
    .sidebar,
    .pages-navigation,
    .breadcrumbs { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .entry-content a { color: #000 !important; text-decoration: underline !important; }
    .entry-content a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
    .post-image, .post-image img { max-width: 100% !important; height: auto !important; }
}

/* ===== Mobile typography improvements ===== */
@media (max-width: 575.98px) {
    body { font-size: 15px; }
    h1, .h1 { font-size: 1.6em; }
    h2, .h2 { font-size: 1.35em; }
    .page-title { font-size: 1.4em !important; }
    .entry-content { font-size: 16px; line-height: 1.8; }
}

/* ===== Focus outline for accessibility (replaces the global outline:none above) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--breadcrumb-active) !important;
    outline-offset: 2px !important;
}

/* ===== Article JSON-LD friendly markup tweaks ===== */
.entry-content-inner img { max-width: 100%; height: auto; border-radius: 4px; }
.post-image figure { margin: 0; }
.post-image figcaption { padding: 6px 10px; background: #f8f9fa; border-radius: 0 0 4px 4px; }

/* ===== Post meta pill badges (author / category / updated / views) =====
   Renders as a row of rounded "pill" badges with light pastel
   backgrounds. Each pill has an icon + label and is clickable when
   it has a URL (author + category). */
.post-meta-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin: 0 0 8px;
    line-height: 1.4;
}
.post-meta-pills .meta-item,
.post-meta-pills .meta-item-prefix,
.post-meta-pills .meta-item-content,
.post-meta-pills .meta-item-postfix { display: none !important; }
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;                       /* full pill shape */
    background: #f1f3f5;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.meta-pill i {
    font-size: 12px;
    opacity: 0.85;
    flex: 0 0 12px;
}
.meta-pill a {
    color: inherit;
    text-decoration: none;
}
.meta-pill a:hover,
.meta-pill:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Per-pill pastel colours (each matches the badge colour shown in the
   article header screenshot uploaded by the user). */
.meta-pill-author   { background: #e7f5ff; color: #1971c2; }
.meta-pill-author:hover,
.meta-pill-author a:hover { background: #d0ebff; color: #1864ab; }
.meta-pill-category { background: #fff4e6; color: #e8590c; }
.meta-pill-category:hover,
.meta-pill-category a:hover { background: #ffe8cc; color: #d9480f; }
.meta-pill-updated  { background: #f3f0ff; color: #5f3dc2; }
.meta-pill-views    { background: #e6fcf5; color: #0c8599; }

/* On mobile: keep all 4 pills but allow wrapping to a second row. */
@media (max-width: 575.98px) {
    .post-meta-pills { gap: 6px; padding: 8px 0; }
    .meta-pill { font-size: 12px; padding: 5px 10px; }
}

/******************** end ********************/