/*
Theme Name: News Plus Pro
Theme URI: https://wordpress.org/themes/news-plus-pro/
Author: مهندس محمد الرفاعي
Author URI: https://wordpress.org/
Description: News Plus Pro v6.0 - قالب ووردبريس إخباري احترافي من الطراز العالمي. مفتوح المصدر 100% بدون ionCube، متوافق مع PHP 8.4/8.5. يحتوي على نظام SEO عالمي المستوى (Schema.org JSON-LD + Open Graph + Twitter Card + IndexNow + Speakable)، شريط أخبار عاجلة، أزرار مشاركة، نظام إعلانات متكامل، تحميل كسول، عدّاد مشاهدات، شريط تقدم القراءة، وقت القراءة المُقدّر، مقالات ذات صلة، زر العودة للأعلى، مساعد ذكاء اصطناعي في لوحة الإدارة، وبتصميم عصري متجاوب.
Version: 6.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 ********************/

/* =====================================================================
   News Plus Pro v5.2.0 - Modern features CSS
   ===================================================================== */

/* ===== 1. Dark Mode ===== */
.a4h-dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    margin-inline-start: 8px;
}
.a4h-dark-mode-toggle:hover { background: rgba(255,255,255,0.1); }
.a4h-dark-mode-toggle .dark-icon-moon,
.a4h-dark-mode-toggle .dark-icon-sun { font-size: 16px; }

/* Dark mode colour overrides - applied to <html class="a4h-dark"> */
html.a4h-dark body { background: #181a1f !important; color: #e4e6eb !important; }
html.a4h-dark .light-color,
html.a4h-dark .site-header,
html.a4h-dark .site-footer,
html.a4h-dark .widget-inner,
html.a4h-dark .site-section { background-color: #1e2025 !important; color: #e4e6eb !important; }
html.a4h-dark .dark-color,
html.a4h-dark .medium-color { color: #b8bcc4 !important; }
html.a4h-dark a { color: #c9a86a; }
html.a4h-dark a:hover { color: #e0bd80; }
html.a4h-dark .widget-title,
html.a4h-dark .header-logo-inner { background-color: #2a2d33 !important; color: #fff; }
html.a4h-dark .breadcrumb { background: #2a2d33 !important; }
html.a4h-dark .breadcrumbs-list a { color: #b8bcc4; }
html.a4h-dark input,
html.a4h-dark textarea,
html.a4h-dark select { background: #2a2d33 !important; color: #e4e6eb !important; border-color: #3a3d43 !important; }
html.a4h-dark .meta-pill { background: #2a2d33 !important; color: #b8bcc4 !important; }
html.a4h-dark .meta-pill-author { background: #1e3a5f !important; color: #7cb5ff !important; }
html.a4h-dark .meta-pill-category { background: #5f3a1e !important; color: #ffb877 !important; }
html.a4h-dark .meta-pill-updated { background: #3a1e5f !important; color: #c08bff !important; }
html.a4h-dark .meta-pill-views { background: #1e5f4a !important; color: #6affb8 !important; }
html.a4h-dark .related-post-title { color: #e4e6eb; }
html.a4h-dark .breaking-news-bar { background: #990000; }

/* =====================================================================
   v5.6.0 - AI Chatbot + Modern Design Polish
   ===================================================================== */

/* ===== AI Chatbot Widget ===== */
.a4h-ai-chatbot {
    position: fixed;
    bottom: 20px;
    inset-inline-end: 20px;
    z-index: 9998;
}
.a4h-ai-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color, #931800), #6a1b9a);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.a4h-ai-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.a4h-ai-toggle i { pointer-events: none; }
.a4h-ai-badge {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}
.a4h-ai-badge.show { display: block; animation: a4h-ai-pulse 2s ease-in-out infinite; }
@keyframes a4h-ai-pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.a4h-ai-panel {
    position: absolute;
    bottom: 70px;
    inset-inline-end: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    animation: a4h-ai-slide-up .3s ease;
}
@keyframes a4h-ai-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.a4h-ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--main-color, #931800), #6a1b9a);
    color: #fff;
}
.a4h-ai-title { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.a4h-ai-platform-select {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    max-width: 120px;
}
.a4h-ai-platform-select option { color: #333; }
.a4h-ai-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s ease;
}
.a4h-ai-close:hover { background: rgba(255,255,255,0.3); }

.a4h-ai-prompts {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    max-height: 90px;
    overflow-y: auto;
}
.a4h-ai-prompts-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.a4h-ai-prompts-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.a4h-ai-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all .15s ease;
}
.a4h-ai-prompt-btn:hover { background: var(--main-color, #931800); color: #fff; border-color: var(--main-color, #931800); }
.a4h-ai-prompt-btn.active { background: var(--main-color, #931800); color: #fff; border-color: var(--main-color, #931800); }

.a4h-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.a4h-ai-welcome { text-align: center; color: #888; padding: 20px; }
.a4h-ai-welcome i { font-size: 36px; color: var(--main-color, #931800); margin-bottom: 8px; }
.a4h-ai-welcome p { font-size: 13px; line-height: 1.6; margin: 0 0 8px; }
.a4h-ai-no-key { color: #e65100; font-size: 12px; }

.a4h-ai-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.a4h-ai-msg-user {
    align-self: flex-end;
    background: var(--main-color, #931800);
    color: #fff;
    border-bottom-end-radius: 4px;
}
.a4h-ai-msg-ai {
    align-self: flex-start;
    background: #f0f2f5;
    color: #333;
    border-bottom-start-radius: 4px;
}
.a4h-ai-msg-ai .a4h-ai-msg-content { white-space: pre-wrap; }
.a4h-ai-typing {
    align-self: flex-start;
    background: #f0f2f5;
    color: #888;
    font-style: italic;
}

.a4h-ai-input-area {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}
.a4h-ai-input-area textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    resize: none;
    margin-bottom: 8px;
    font-family: inherit;
}
.a4h-ai-input-area textarea:focus { outline: none; border-color: var(--main-color, #931800); }
.a4h-ai-input-actions { display: flex; gap: 6px; }
.a4h-ai-send {
    flex: 1;
    padding: 8px;
    background: var(--main-color, #931800);
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: opacity .15s ease;
}
.a4h-ai-send:hover { opacity: 0.9; }
.a4h-ai-send:disabled { opacity: 0.5; cursor: not-allowed; }
.a4h-ai-clear {
    padding: 8px 12px;
    background: #f0f0f0;
    color: #666;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.a4h-ai-clear:hover { background: #e0e0e0; }

.a4h-ai-response-actions {
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 6px;
}
.a4h-ai-copy, .a4h-ai-export {
    flex: 1;
    padding: 6px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: opacity .15s ease;
}
.a4h-ai-copy { background: #e3f2fd; color: #1565c0; }
.a4h-ai-export { background: #e8f5e9; color: #2e7d32; }
.a4h-ai-copy:hover, .a4h-ai-export:hover { opacity: 0.85; }
.a4h-ai-copy.copied { background: #2e7d32; color: #fff; }

@media (max-width: 575.98px) {
    .a4h-ai-panel { width: calc(100vw - 40px); height: calc(100vh - 120px); }
}
html.a4h-dark .a4h-ai-panel { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-ai-msg-ai { background: #2a2d33; color: #e4e6eb; }
html.a4h-dark .a4h-ai-input-area textarea { background: #2a2d33; color: #e4e6eb; border-color: #3a3d43; }
html.a4h-dark .a4h-ai-prompts { border-color: #3a3d43; }
html.a4h-dark .a4h-ai-prompt-btn { background: #2a2d33; border-color: #3a3d43; color: #b8bcc4; }

/* ===== Modern Design Polish ===== */
.site-section { border-radius: 8px; }
.widget-inner { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.entry-content { line-height: 1.9; font-size: 17px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.4em; margin-top: 1.5em; margin-bottom: 0.7em; font-weight: 700; }
.entry-content h3 { font-size: 1.2em; margin-top: 1.3em; margin-bottom: 0.6em; font-weight: 700; }
.entry-content img { border-radius: 8px; margin: 16px 0; }
.entry-content blockquote {
    border-inline-start: 4px solid var(--main-color, #931800);
    padding: 12px 20px;
    margin: 16px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
html.a4h-dark .entry-content blockquote { background: #1e2025; }
.post-image img { border-radius: 8px; }

/* =====================================================================
   v6.0.0 - Professional Features CSS
   ===================================================================== */

/* ===== Reading Progress Bar ===== */
.a4h-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.05);
    z-index: 9999;
    pointer-events: none;
}
.a4h-reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--main-color, #931800);
    transition: width .1s linear;
}

/* ===== Related Posts ===== */
.a4h-related-posts { margin: 20px 0; }
.a4h-related-inner { gap: 12px; }
.a4h-related-item { padding: 0; }
.a4h-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease;
}
.a4h-related-link:hover { transform: translateY(-2px); }
.a4h-related-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f0f0f0;
}
.a4h-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.a4h-related-link:hover .a4h-related-thumb img { transform: scale(1.06); }
.a4h-related-thumb.a4h-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}
.a4h-related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
}
.a4h-related-date { font-size: 12px; color: #888; }

/* ===== Back to Top Button ===== */
.a4h-back-to-top {
    position: fixed;
    bottom: 20px;
    inset-inline-end: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--main-color, #931800);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 999;
}
.a4h-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.a4h-back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }

/* ===== Modern Design Polish ===== */
.site-section { border-radius: 8px; }
.widget-inner { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.entry-content { line-height: 1.9; font-size: 17px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.4em; margin-top: 1.5em; margin-bottom: 0.7em; font-weight: 700; }
.entry-content h3 { font-size: 1.2em; margin-top: 1.3em; margin-bottom: 0.6em; font-weight: 700; }
.entry-content img { border-radius: 8px; margin: 16px 0; }
.entry-content blockquote {
    border-inline-start: 4px solid var(--main-color, #931800);
    padding: 12px 20px;
    margin: 16px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
html.a4h-dark .entry-content blockquote { background: #1e2025; }

/* ===== 2. Reading Progress Bar ===== */
.a4h-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.05);
    z-index: 9999;
    pointer-events: none;
}
.a4h-reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--main-color, #931800);
    transition: width .1s linear;
}
html.a4h-dark .a4h-reading-progress { background: rgba(255,255,255,0.05); }

/* ===== 3. Font Size Adjuster ===== */
.a4h-font-size-adjuster {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin-inline-end: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
}
.a4h-fsa-label { color: #666; font-size: 14px; }
.a4h-fsa-btn {
    border: 0;
    background: transparent;
    color: #495057;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background .15s ease, color .15s ease;
}
.a4h-fsa-btn:hover { background: var(--main-color, #931800); color: #fff; }
.a4h-fsa-btn.active { background: var(--main-color, #931800); color: #fff; }
/* Font size classes applied to <html> */
html.a4h-fs-small .entry-content { font-size: 14px !important; }
html.a4h-fs-normal .entry-content { font-size: 18px !important; }
html.a4h-fs-large .entry-content { font-size: 20px !important; }
html.a4h-dark .a4h-font-size-adjuster { background: #2a2d33; border-color: #3a3d43; }

/* ===== 4. Related Posts ===== */
.related-posts { margin-top: 24px; }
.related-posts-inner { gap: 12px; }
.related-post-item { padding: 0; }
.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease;
}
.related-post-link:hover { transform: translateY(-2px); }
.related-post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
    margin-bottom: 8px;
}
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-thumb.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}
.related-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
    color: inherit;
}
.related-post-date { font-size: 12px; color: #888; }
html.a4h-dark .related-post-thumb { background: #2a2d33; }

/* ===== 5. Article Reactions ===== */
.a4h-article-reactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    margin: 24px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.a4h-reactions-label {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}
.a4h-reactions-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.a4h-reaction-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all .15s ease;
    min-width: 80px;
}
.a4h-reaction-btn:hover {
    transform: translateY(-2px);
    border-color: var(--main-color, #931800);
    color: var(--main-color, #931800);
}
.a4h-reaction-btn.voted {
    background: var(--main-color, #931800);
    color: #fff;
    border-color: var(--main-color, #931800);
}
.a4h-reaction-btn i { font-size: 22px; }
.a4h-reaction-label { font-size: 12px; font-weight: 600; }
.a4h-reaction-count {
    font-size: 14px;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
    padding: 1px 8px;
    border-radius: 999px;
}
.a4h-reaction-btn.voted .a4h-reaction-count { background: rgba(255,255,255,0.25); }
html.a4h-dark .a4h-article-reactions { border-color: #3a3d43; }
html.a4h-dark .a4h-reaction-btn { background: #2a2d33; border-color: #3a3d43; color: #b8bcc4; }

/* ===== 6. Bookmark Button ===== */
.a4h-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .15s ease;
    margin-inline-end: 12px;
}
.a4h-bookmark-btn:hover { border-color: var(--main-color, #931800); color: var(--main-color, #931800); }
.a4h-bookmark-btn.saved { background: #28a745; color: #fff; border-color: #28a745; }
.a4h-bookmark-btn.saved .bookmark-icon-save { display: none; }
.a4h-bookmark-btn.saved .bookmark-icon-saved { display: inline-block; }
html.a4h-dark .a4h-bookmark-btn { background: #2a2d33; border-color: #3a3d43; color: #b8bcc4; }

/* ===== 7. Table of Contents ===== */
.a4h-toc {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 20px 0;
    font-size: 15px;
}
.a4h-toc details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--main-color, #931800);
    list-style: none;
    padding: 4px 0;
}
.a4h-toc details summary::-webkit-details-marker { display: none; }
.a4h-toc details summary::before {
    content: "\f054";
    font-family: 'Font Awesome\ 5 Free';
    font-weight: bold;
    display: inline-block;
    margin-inline-end: 8px;
    transition: transform .15s ease;
}
.a4h-toc details[open] summary::before { transform: rotate(90deg); }
.a4h-toc-list {
    margin: 8px 0 0;
    padding-inline-start: 20px;
    line-height: 1.8;
}
.a4h-toc-list a { color: #495057; text-decoration: none; }
.a4h-toc-list a:hover { color: var(--main-color, #931800); text-decoration: underline; }
html.a4h-dark .a4h-toc { background: #2a2d33; border-color: #3a3d43; }
html.a4h-dark .a4h-toc-list a { color: #b8bcc4; }

/* ===== 8. Back to Top Button ===== */
.a4h-back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--main-color, #931800);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 999;
}
.a4h-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.a4h-back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }

/* ===== 9. Enhanced Author Box ===== */
.a4h-enhanced-author-box {
    display: flex;
    gap: 18px;
    padding: 20px;
    margin: 24px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-inline-start: 4px solid var(--main-color, #931800);
}
.a4h-enhanced-author-box .author-avatar img { border-radius: 50%; }
.a4h-enhanced-author-box .author-info { flex: 1; }
.a4h-enhanced-author-box .author-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}
.a4h-enhanced-author-box .author-name a { color: var(--main-color, #931800); text-decoration: none; }
.a4h-enhanced-author-box .author-meta { font-size: 13px; color: #888; display: block; margin-bottom: 8px; }
.a4h-enhanced-author-box .author-description { font-size: 14px; line-height: 1.7; color: #555; }
.a4h-enhanced-author-box .author-social-links { margin-top: 10px; display: flex; gap: 8px; }
.a4h-enhanced-author-box .author-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #495057;
    border: 1px solid #e0e0e0;
    transition: all .15s ease;
}
.a4h-enhanced-author-box .author-social-links a:hover { transform: translateY(-2px); }
.a4h-enhanced-author-box .author-social-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.a4h-enhanced-author-box .author-social-twitter:hover { background: #000; color: #fff; border-color: #000; }
.a4h-enhanced-author-box .author-social-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.a4h-enhanced-author-box .author-social-youtube:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.a4h-enhanced-author-box .author-social-instagram:hover { background: #c13584; color: #fff; border-color: #c13584; }
html.a4h-dark .a4h-enhanced-author-box { background: #2a2d33; }
html.a4h-dark .a4h-enhanced-author-box .author-description { color: #b8bcc4; }
html.a4h-dark .a4h-enhanced-author-box .author-social-links a { background: #1e2025; border-color: #3a3d43; }

/* ===== 10. Newsletter Form ===== */
.a4h-newsletter-form {
    background: linear-gradient(135deg, var(--main-color, #931800), #b3382a);
    color: #fff;
    padding: 24px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}
.a4h-newsletter-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.a4h-newsletter-title i { margin-inline-end: 8px; }
.a4h-newsletter-inner {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}
.a4h-newsletter-inner input {
    flex: 1;
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
}
.a4h-newsletter-submit {
    padding: 10px 20px;
    background: #fff;
    color: var(--main-color, #931800);
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease;
}
.a4h-newsletter-submit:hover { transform: scale(1.05); }
.a4h-newsletter-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.85;
}
@media (max-width: 575.98px) {
    .a4h-newsletter-inner { flex-direction: column; }
}

/* ===== 11. Live Search Results ===== */
.a4h-live-search-form { position: relative; }
.a4h-live-search-results {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.a4h-live-search-results.show { display: block; }
.a4h-live-search-results .ls-loading,
.a4h-live-search-results .ls-empty {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.a4h-live-search-results .ls-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}
.a4h-live-search-results .ls-item:last-child { border-bottom: 0; }
.a4h-live-search-results .ls-item:hover { background: #f8f9fa; }
.a4h-live-search-results .ls-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 50px;
}
.a4h-live-search-results .ls-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: #f0f0f0;
    flex: 0 0 50px;
}
.a4h-live-search-results .ls-info { flex: 1; min-width: 0; }
.a4h-live-search-results .ls-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
    color: #333;
}
.a4h-live-search-results .ls-date { font-size: 12px; color: #888; }
html.a4h-dark .a4h-live-search-results { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-live-search-results .ls-item:hover { background: #2a2d33; }
html.a4h-dark .a4h-live-search-results .ls-title { color: #e4e6eb; }

/* ===== 12. Hijri date styling ===== */
.hijri-date {
    color: #888;
    font-size: 0.9em;
    font-weight: normal;
}
html.a4h-dark .hijri-date { color: #888; }

/* =====================================================================
   News Plus Pro v5.3.0 - Homepage Builder + Sports Section CSS
   ===================================================================== */

/* ===== Featured Posts Slider ===== */
.a4h-featured-slider {
    position: relative;
    margin: 12px 0;
    overflow: hidden;
    border-radius: 8px;
}
/* Hide all slides by default until Owl Carousel initializes */
.a4h-featured-slider:not(.owl-loaded) .a4h-featured-item { display: none; }
.a4h-featured-slider:not(.owl-loaded) .a4h-featured-item:first-child { display: block; }
.a4h-featured-slider.owl-loaded .a4h-featured-item { display: block; }

.a4h-featured-slider .owl-stage-outer { border-radius: 8px; }
.a4h-featured-item { position: relative; overflow: hidden; border-radius: 8px; }
.a4h-featured-link { display: block; text-decoration: none; color: inherit; }
.a4h-featured-thumb {
    position: relative;
    width: 100%;
    height: 380px;
    max-height: 50vh;
    overflow: hidden;
    background: #1a1a1a;
}
.a4h-featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.a4h-featured-link:hover .a4h-featured-thumb img { transform: scale(1.05); }
.a4h-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.a4h-featured-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 24px; color: #fff;
}
.a4h-featured-cat {
    display: inline-block; background: var(--main-color, #931800); color: #fff;
    padding: 3px 12px; border-radius: 4px; font-size: 11px; font-weight: 700;
    margin-bottom: 8px; text-transform: uppercase;
}
.a4h-featured-title {
    margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 700px;
}
.a4h-featured-meta { font-size: 11px; opacity: 0.9; }
.a4h-featured-meta span { margin-inline-end: 12px; }
.a4h-featured-meta i { margin-inline-end: 4px; }

/* Owl Carousel navigation arrows */
.a4h-featured-slider .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}
.a4h-featured-slider .owl-nav .owl-prev,
.a4h-featured-slider .owl-nav .owl-next {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.85) !important;
    color: #333 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 8px;
    transition: background .15s ease, transform .15s ease;
}
.a4h-featured-slider .owl-nav .owl-prev:hover,
.a4h-featured-slider .owl-nav .owl-next:hover {
    background: rgba(255,255,255,1) !important;
    transform: scale(1.1);
}
/* Owl Carousel dots */
.a4h-featured-slider .owl-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
}
.a4h-featured-slider .owl-dots .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    margin: 0 3px;
    transition: background .15s ease;
}
.a4h-featured-slider .owl-dots .owl-dot.active {
    background: #fff;
}
.a4h-featured-slider .owl-dots .owl-dot:hover {
    background: rgba(255,255,255,0.7);
}

@media (max-width: 767.98px) {
    .a4h-featured-thumb { height: 240px; max-height: 35vh; }
    .a4h-featured-title { font-size: 14px; }
    .a4h-featured-content { padding: 12px 14px; }
    .a4h-featured-slider .owl-nav .owl-prev,
    .a4h-featured-slider .owl-nav .owl-next { width: 32px; height: 32px; font-size: 14px; }
}

/* ===== Trending Strip ===== */
.a4h-trending-strip {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 0 16px;
    padding: 8px 0;
    overflow: hidden;
}
.a4h-trending-strip-inner { display: flex; align-items: center; gap: 14px; }
.a4h-trending-label {
    flex: 0 0 auto;
    background: var(--main-color, #931800); color: #fff;
    padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 700;
    white-space: nowrap;
}
.a4h-trending-label i { margin-inline-end: 6px; }
.a4h-trending-track {
    flex: 1 1 auto; display: flex; gap: 22px;
    overflow: hidden; white-space: nowrap;
    animation: a4h-trending-scroll 50s linear infinite;
}
.a4h-trending-strip:hover .a4h-trending-track { animation-play-state: paused; }
@keyframes a4h-trending-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
[dir="rtl"] .a4h-trending-track { animation-direction: reverse; }
.a4h-trending-item {
    display: inline-flex; align-items: center; gap: 8px;
    color: #495057; text-decoration: none; font-size: 14px; font-weight: 500;
    flex: 0 0 auto;
}
.a4h-trending-item:hover { color: var(--main-color, #931800); }
.a4h-trending-thumb { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: 0 0 30px; }
.a4h-trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
html.a4h-dark .a4h-trending-strip { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-trending-item { color: #b8bcc4; }

/* ===== Category Boxes ===== */
.a4h-category-box { margin: 16px 0; }
.a4h-category-box .widget-title h2 a { color: inherit; text-decoration: none; }
.a4h-category-box .widget-title h2 a:hover { color: var(--main-color, #931800); }
.a4h-category-box .widget-title h2 i { font-size: 0.7em; opacity: 0.6; }
.a4h-category-box-inner { gap: 12px; }
.a4h-cat-box-item { padding: 0; }
.a4h-cat-box-link {
    display: block; text-decoration: none; color: inherit;
    transition: transform .15s ease;
}
.a4h-cat-box-link:hover { transform: translateY(-2px); }
.a4h-cat-box-thumb {
    width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px;
    margin-bottom: 8px; background: #f0f0f0;
}
.a4h-cat-box-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.a4h-cat-box-link:hover .a4h-cat-box-thumb img { transform: scale(1.06); }
.a4h-cat-box-first .a4h-cat-box-thumb { aspect-ratio: 16/10; }
.a4h-cat-box-title {
    font-size: 14px; font-weight: 600; line-height: 1.4;
    margin: 0 0 4px; color: inherit;
}
.a4h-cat-box-first .a4h-cat-box-title { font-size: 18px; font-weight: 700; }
.a4h-cat-box-date { font-size: 12px; color: #888; }
html.a4h-dark .a4h-cat-box-thumb { background: #2a2d33; }

/* ===== Video Posts Section ===== */
.a4h-video-posts { margin: 16px 0; }
.a4h-video-posts-inner { gap: 12px; }
.a4h-video-item { padding: 0; }
.a4h-video-link {
    display: block; text-decoration: none; color: inherit;
    transition: transform .15s ease;
}
.a4h-video-link:hover { transform: translateY(-2px); }
.a4h-video-thumb {
    position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
    border-radius: 6px; margin-bottom: 8px; background: #000;
}
.a4h-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.a4h-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.9); color: var(--main-color, #931800);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    transition: transform .15s ease;
}
.a4h-video-link:hover .a4h-video-play { transform: translate(-50%, -50%) scale(1.15); }
.a4h-video-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; }

/* ===== Boxed Layout ===== */
body.a4h-boxed-layout #site {
    max-width: 1200px; margin: 0 auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}
body.a4h-boxed-layout .site-header,
body.a4h-boxed-layout .site-footer { width: 100%; }

/* ===== Header Styles ===== */
.a4h-header-style-2 .site-header-inner-2 { background: transparent; box-shadow: none; }
.a4h-header-style-2 .site-header { background: var(--main-color, #931800); color: #fff; }
.a4h-header-style-2 .site-header a,
.a4h-header-style-2 .main-navigation a { color: #fff !important; }
.a4h-header-style-3 .site-header-inner-1 { display: block !important; }

/* ===== Most Viewed Widget ===== */
.a4h-most-viewed-list { list-style: none; padding: 0; margin: 0; counter-reset: mv; }
.a4h-most-viewed-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f0f0f0;
}
.a4h-most-viewed-item:last-child { border-bottom: 0; }
.a4h-mv-rank {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--main-color, #931800); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.a4h-mv-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.a4h-mv-thumb { width: 50px; height: 50px; border-radius: 4px; overflow: hidden; flex: 0 0 50px; }
.a4h-mv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a4h-mv-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 2px; }
.a4h-mv-views { display: block; font-size: 11px; color: #888; }
.a4h-mv-views i { margin-inline-start: 2px; }
html.a4h-dark .a4h-most-viewed-item { border-color: #3a3d43; }

/* ===== Authors List Widget ===== */
.a4h-authors-list { list-style: none; padding: 0; margin: 0; }
.a4h-author-item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.a4h-author-item:last-child { border-bottom: 0; }
.a4h-author-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
}
.a4h-author-avatar { border-radius: 50%; }
.a4h-author-info { display: flex; flex-direction: column; }
.a4h-author-name { font-weight: 600; font-size: 14px; }
.a4h-author-count { font-size: 11px; color: #888; }
html.a4h-dark .a4h-author-item { border-color: #3a3d43; }

/* ===== Sports Section: Match Cards ===== */
.a4h-matches-list { display: flex; flex-direction: column; gap: 12px; }
.a4h-match-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 14px 18px; transition: box-shadow .15s ease;
}
.a4h-match-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.a4h-match-live { border-color: #f44336; box-shadow: 0 0 0 2px rgba(244,67,54,0.15); }
.a4h-match-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e0e0e0;
}
.a4h-match-league { font-size: 12px; color: #888; font-weight: 600; }
.a4h-match-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.a4h-status-upcoming { background: #fff3e0; color: #e65100; }
.a4h-status-live { background: #ffebee; color: #c62828; }
.a4h-status-finished { background: #e8f5e9; color: #2e7d32; }
.a4h-live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f44336;
    margin-inline-end: 4px; animation: a4h-pulse-live 1s ease-in-out infinite;
}
@keyframes a4h-pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}
.a4h-match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.a4h-match-team { display: flex; align-items: center; gap: 8px; }
.a4h-team-home { justify-content: flex-end; }
.a4h-team-away { justify-content: flex-start; }
.a4h-team-logo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.a4h-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.a4h-team-name { font-weight: 600; font-size: 14px; }
.a4h-match-score { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.a4h-score-sep { color: #888; }
.a4h-penalty { font-size: 11px; color: #888; text-align: center; margin-top: 4px; }
.a4h-vs { font-size: 16px; color: #888; font-weight: 700; }
.a4h-match-countdown { font-size: 14px; color: var(--main-color, #931800); font-weight: 600; text-align: center; }
.a4h-match-footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e0e0e0; font-size: 12px; color: #666;
}
.a4h-match-stadium i, .a4h-match-date { margin-inline-end: 4px; }
.a4h-match-stream {
    background: #c62828; color: #fff !important; padding: 4px 12px;
    border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 12px;
}
.a4h-match-stream:hover { background: #d32f2f; }
.a4h-no-matches { padding: 20px; text-align: center; color: #888; background: #f8f9fa; border-radius: 6px; }
html.a4h-dark .a4h-match-card { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-match-header { border-color: #3a3d43; }
html.a4h-dark .a4h-match-footer { border-color: #3a3d43; }

/* ===== Sports News Section ===== */
.a4h-sport-news { margin: 16px 0; }
.a4h-sport-news-inner { gap: 12px; }
.a4h-sport-news-item { padding: 0; }
.a4h-sport-news-link { display: block; text-decoration: none; color: inherit; transition: transform .15s ease; }
.a4h-sport-news-link:hover { transform: translateY(-2px); }
.a4h-sport-news-thumb {
    width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px;
    margin-bottom: 8px; background: #f0f0f0;
}
.a4h-sport-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a4h-sport-news-first .a4h-sport-news-thumb { aspect-ratio: 16/10; }
.a4h-sport-news-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; }
.a4h-sport-news-first .a4h-sport-news-title { font-size: 18px; font-weight: 700; }
.a4h-sport-news-date { font-size: 12px; color: #888; }

/* ===== Home matches table wrapper ===== */
.a4h-home-matches-table { margin: 16px 0; }

/* ===== Match Results Table ===== */
.a4h-match-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    font-size: 14px;
}
.a4h-match-results-table thead { background: var(--main-color, #931800); color: #fff; }
.a4h-match-results-table th { padding: 10px 14px; text-align: center; font-weight: 700; }
.a4h-match-results-table td { padding: 10px 14px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.a4h-match-results-table tr:last-child td { border-bottom: 0; }
.a4h-match-results-table tr:hover { background: #f8f9fa; }
.a4h-mr-team { font-weight: 600; }
.a4h-mr-score { font-weight: 700; font-size: 16px; color: var(--main-color, #931800); font-variant-numeric: tabular-nums; }
.a4h-mr-pen { font-size: 11px; color: #888; margin-inline-start: 4px; }
.a4h-mr-date { font-size: 12px; color: #888; }
html.a4h-dark .a4h-match-results-table { background: #1e2025; }
html.a4h-dark .a4h-match-results-table tr:hover { background: #2a2d33; }
html.a4h-dark .a4h-match-results-table td { border-color: #3a3d43; }

/* =====================================================================
   v5.4.1 - Match Detail Page + New Display Styles + Tabs
   ===================================================================== */

/* ===== Match Detail Page ===== */
.a4h-match-detail { padding: 0; margin: 0; }
.a4h-match-detail-header {
    background: linear-gradient(135deg, var(--main-color, #931800), #b3382a);
    color: #fff;
    padding: 32px 24px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}
.a4h-md-league {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}
.a4h-md-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.a4h-md-team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a4h-md-team-logo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.1); }
.a4h-md-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.a4h-md-team-name { font-size: 18px; font-weight: 700; }
.a4h-md-score-block { text-align: center; }
.a4h-md-score { font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.a4h-md-score-sep { opacity: 0.6; margin: 0 8px; }
.a4h-md-penalty { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.a4h-md-vs { font-size: 28px; font-weight: 700; opacity: 0.8; }
.a4h-md-countdown { font-size: 16px; font-weight: 600; margin-top: 8px; background: rgba(0,0,0,0.25); padding: 6px 14px; border-radius: 6px; display: inline-block; }
.a4h-md-status { margin-top: 12px; font-size: 14px; font-weight: 700; }
.a4h-md-status .a4h-live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #fff; margin-inline-end: 4px; animation: a4h-pulse-live 1s ease-in-out infinite; }
.a4h-md-date, .a4h-md-stadium { font-size: 14px; opacity: 0.9; margin-top: 6px; }
.a4h-md-date i, .a4h-md-stadium i { margin-inline-end: 6px; }

/* Streaming section */
.a4h-md-streams { margin: 20px 0; }
.a4h-md-streams-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.a4h-md-streams-title i { color: var(--main-color, #931800); }
.a4h-md-player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}
.a4h-md-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.a4h-md-servers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}
.a4h-md-servers-label { font-weight: 700; margin-inline-end: 4px; }
.a4h-md-server-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .15s ease;
}
.a4h-md-server-btn:hover { border-color: var(--main-color, #931800); color: var(--main-color, #931800); }
.a4h-md-server-btn.active { background: var(--main-color, #931800); color: #fff; border-color: var(--main-color, #931800); }
.a4h-md-quality {
    font-size: 11px;
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 3px;
}
.a4h-md-server-btn.active .a4h-md-quality { background: rgba(255,255,255,0.25); }
.a4h-md-upcoming-notice {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #e65100;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
    text-align: center;
}
.a4h-md-upcoming-notice i { margin-inline-end: 8px; font-size: 18px; }
html.a4h-dark .a4h-match-detail-header { background: linear-gradient(135deg, #1a1a2e, #16213e); }
html.a4h-dark .a4h-md-server-btn { background: #2a2d33; border-color: #3a3d43; color: #b8bcc4; }
html.a4h-dark .a4h-md-upcoming-notice { background: #3d2e1a; border-color: #5d4620; color: #ffb877; }

/* ===== Table View Style ===== */
.a4h-matches-table-view {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    font-size: 14px;
}
.a4h-matches-table-view thead { background: var(--main-color, #931800); color: #fff; }
.a4h-matches-table-view th { padding: 10px 12px; text-align: center; font-weight: 700; font-size: 13px; }
.a4h-matches-table-view td { padding: 10px 12px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.a4h-matches-table-view tr:last-child td { border-bottom: 0; }
.a4h-mtv-row { cursor: pointer; transition: background .15s ease; }
.a4h-mtv-row:hover { background: #f8f9fa; }
.a4h-mtv-live { background: #fff5f5; }
.a4h-mtv-live:hover { background: #ffe8e8; }
.a4h-mtv-league { font-size: 12px; color: #888; }
.a4h-mtv-teams { font-weight: 600; }
.a4h-mtv-score { font-weight: 700; color: var(--main-color, #931800); font-variant-numeric: tabular-nums; }
.a4h-mtv-status { font-size: 12px; font-weight: 700; }
.a4h-mtv-status.a4h-status-live { color: #c62828; }
.a4h-mtv-status.a4h-status-upcoming { color: #e65100; }
.a4h-mtv-status.a4h-status-finished { color: #2e7d32; }
.a4h-mtv-date { font-size: 12px; color: #888; }
html.a4h-dark .a4h-matches-table-view { background: #1e2025; }
html.a4h-dark .a4h-mtv-row:hover { background: #2a2d33; }
html.a4h-dark .a4h-matches-table-view td { border-color: #3a3d43; }

/* ===== Slider View Style ===== */
.a4h-matches-slider .a4h-match-slide {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 4px;
}
.a4h-match-slide.a4h-match-live { border-color: #f44336; box-shadow: 0 0 0 2px rgba(244,67,54,0.1); }
.a4h-slide-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 12px; }
.a4h-slide-league { color: #888; font-weight: 600; }
.a4h-slide-teams { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.a4h-slide-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.a4h-slide-team img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.a4h-slide-team span { font-size: 13px; font-weight: 600; }
.a4h-slide-score { font-size: 22px; font-weight: 700; color: var(--main-color, #931800); }
.a4h-slide-date { font-size: 12px; color: #888; margin-bottom: 10px; }
.a4h-slide-date i { margin-inline-end: 4px; }
.a4h-slide-link {
    display: inline-block;
    padding: 6px 16px;
    background: var(--main-color, #931800);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.a4h-slide-link:hover { opacity: 0.9; }
html.a4h-dark .a4h-matches-slider .a4h-match-slide { background: #1e2025; border-color: #3a3d43; }

/* ===== Simple View Style ===== */
.a4h-matches-simple { display: flex; flex-direction: column; gap: 6px; }
.a4h-simple-match {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    transition: background .15s ease;
}
.a4h-simple-match:hover { background: #f8f9fa; }
.a4h-simple-match.a4h-simple-live { border-inline-start: 3px solid #f44336; }
.a4h-simple-status { flex: 0 0 20px; text-align: center; }
.a4h-simple-status .a4h-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f44336; animation: a4h-pulse-live 1s ease-in-out infinite; }
.a4h-simple-status i { font-size: 14px; color: #888; }
.a4h-simple-teams { flex: 1; font-weight: 600; }
.a4h-simple-score { font-weight: 700; color: var(--main-color, #931800); font-variant-numeric: tabular-nums; }
html.a4h-dark .a4h-simple-match { background: #1e2025; border-color: #3a3d43; }

/* ===== Match Tabs (today/yesterday/tomorrow) ===== */
.a4h-match-tabs { margin: 16px 0; }
.a4h-match-tabs-nav {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    border-bottom: 2px solid var(--main-color, #931800);
}
.a4h-mt-nav {
    padding: 10px 22px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    font-size: 14px;
    transition: all .15s ease;
}
.a4h-mt-nav.active { background: var(--main-color, #931800); color: #fff; }
.a4h-mt-nav:hover:not(.active) { background: #e0e0e0; }
.a4h-match-tabs-content { padding-top: 8px; }
.a4h-mt-content { display: none; }
.a4h-mt-content.active { display: block; animation: a4h-tab-fade .25s ease; }
@keyframes a4h-tab-fade { from { opacity: 0; } to { opacity: 1; } }
html.a4h-dark .a4h-mt-nav { background: #2a2d33; color: #b8bcc4; }

/* ===== Streams Meta Box Table (admin) ===== */
.a4h-streams-table { margin-top: 10px; }
.a4h-streams-table th { font-weight: 700; }
.a4h-stream-row td { vertical-align: top; }
.a4h-remove-stream { color: #c62828 !important; font-size: 18px !important; line-height: 1 !important; }

/* =====================================================================
   v5.5.0 - Text-to-Speech + Performance Features CSS
   ===================================================================== */

/* ===== Text-to-Speech Controls ===== */
.a4h-tts-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin-inline-end: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
}
.a4h-tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 0;
    border-radius: 4px;
    background: var(--main-color, #931800);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
}
.a4h-tts-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.a4h-tts-btn.a4h-tts-pause { background: #ff9800; }
.a4h-tts-btn.a4h-tts-stop { background: #f44336; }
.a4h-tts-btn.playing { animation: a4h-tts-pulse 2s ease-in-out infinite; }
@keyframes a4h-tts-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(147, 24, 0, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(147, 24, 0, 0); }
}
.a4h-tts-container select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
}
.a4h-tts-status {
    font-size: 12px;
    color: #888;
    min-width: 80px;
}
.a4h-tts-status.listening { color: #2e7d32; }
html.a4h-dark .a4h-tts-container { background: #2a2d33; border-color: #3a3d43; }
html.a4h-dark .a4h-tts-container select { background: #1e2025; color: #e4e6eb; border-color: #3a3d43; }

/* =====================================================================
   News Plus Pro v5.4.0 - Premium Features CSS
   ===================================================================== */

/* ===== Sticky Share Buttons (vertical floating rail) ===== */
.a4h-sticky-share {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 16px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.a4h-sticky-share a,
.a4h-sticky-share button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    transition: transform .15s ease, opacity .15s ease;
}
.a4h-sticky-share a:hover,
.a4h-sticky-share button:hover { transform: scale(1.15); opacity: 0.9; }
.a4h-sticky-share .a4h-ss-fb { background: #1877f2; }
.a4h-sticky-share .a4h-ss-x  { background: #000; }
.a4h-sticky-share .a4h-ss-wa { background: #25d366; }
.a4h-sticky-share .a4h-ss-tg { background: #0088cc; }
.a4h-sticky-share .a4h-ss-li { background: #0a66c2; }
.a4h-sticky-share .a4h-ss-em { background: #6c757d; }
.a4h-sticky-share .a4h-ss-copy { background: #495057; }
.a4h-sticky-share .a4h-ss-copy.copied { background: #28a745; }
.a4h-sticky-share .a4h-ss-count { font-size: 14px; font-weight: 700; text-align: center; color: var(--main-color, #931800); line-height: 1; }
.a4h-sticky-share .a4h-ss-count-label { font-size: 9px; color: #888; text-align: center; line-height: 1; margin-top: 2px; }
@media (max-width: 991.98px) { .a4h-sticky-share { display: none; } }
html.a4h-dark .a4h-sticky-share { background: #1e2025; border-color: #3a3d43; }

/* ===== Masonry Layout ===== */
.a4h-masonry-layout .posts { display: block; }
.a4h-masonry-layout .posts-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}
.a4h-masonry-layout .posts-inner .post { width: 100% !important; }

/* ===== Rating / Review Box ===== */
.a4h-review-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    border-inline-start: 4px solid var(--main-color, #931800);
}
.a4h-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.a4h-review-label {
    background: var(--main-color, #931800);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}
.a4h-review-stars { display: flex; align-items: center; gap: 4px; color: #ffc107; font-size: 18px; }
.a4h-review-stars .a4h-star-empty { color: #e0e0e0; }
.a4h-review-score { margin-inline-start: 8px; font-size: 20px; font-weight: 700; color: #333; }
.a4h-review-summary { font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 12px; }
.a4h-review-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a4h-review-pros, .a4h-review-cons { padding: 10px; border-radius: 6px; }
.a4h-review-pros { background: #e8f5e9; }
.a4h-review-cons { background: #ffebee; }
.a4h-review-pros h4, .a4h-review-cons h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}
.a4h-review-pros h4 { color: #2e7d32; }
.a4h-review-cons h4 { color: #c62828; }
.a4h-review-pros h4 i, .a4h-review-cons h4 i { margin-inline-end: 6px; }
.a4h-review-pros ul, .a4h-review-cons ul { margin: 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.7; }
@media (max-width: 575.98px) { .a4h-review-proscons { grid-template-columns: 1fr; } }
html.a4h-dark .a4h-review-box { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-review-summary { color: #b8bcc4; }

/* ===== FAQ Accordion ===== */
.a4h-faq { margin: 24px 0; }
.a4h-faq-title { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--main-color, #931800); }
.a4h-faq-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.a4h-faq-item details summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    transition: background .15s ease;
}
.a4h-faq-item details summary::-webkit-details-marker { display: none; }
.a4h-faq-item details summary::before {
    content: "\f054";
    font-family: 'Font Awesome\ 5 Free';
    font-weight: bold;
    margin-inline-end: 10px;
    transition: transform .15s ease;
    color: var(--main-color, #931800);
}
.a4h-faq-item details[open] summary { background: #f8f9fa; }
.a4h-faq-item details[open] summary::before { transform: rotate(90deg); }
.a4h-faq-answer { padding: 12px 18px 18px; font-size: 14px; line-height: 1.8; color: #555; }
.a4h-faq-answer p { margin: 0; }
html.a4h-dark .a4h-faq-item { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-faq-item details[open] summary { background: #2a2d33; }
html.a4h-dark .a4h-faq-answer { color: #b8bcc4; }

/* ===== Comparison Table ===== */
.a4h-compare { margin: 24px 0; }
.a4h-compare-title { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--main-color, #931800); }
.a4h-compare-table-outer { overflow-x: auto; }
.a4h-compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; }
.a4h-compare-table tr { border-bottom: 1px solid #f0f0f0; }
.a4h-compare-table tr:last-child { border-bottom: 0; }
.a4h-compare-row:hover { background: #f8f9fa; }
.a4h-compare-row.a4h-compare-highlight { background: #fffde7; }
.a4h-compare-row.a4h-compare-highlight:hover { background: #fff9c4; }
.a4h-compare-feature { padding: 12px 16px; font-weight: 600; width: 35%; background: #f8f9fa; }
.a4h-compare-value { padding: 12px 16px; }
html.a4h-dark .a4h-compare-table { background: #1e2025; }
html.a4h-dark .a4h-compare-feature { background: #2a2d33; }
html.a4h-dark .a4h-compare-row:hover { background: #2a2d33; }

/* ===== Countdown Timer ===== */
.a4h-countdown { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; background: linear-gradient(135deg, var(--main-color, #931800), #b3382a); color: #fff; border-radius: 8px; margin: 16px 0; }
.a4h-countdown-label { font-size: 16px; font-weight: 700; }
.a4h-countdown-digits { display: flex; gap: 8px; }
.a4h-cd-unit { background: rgba(0,0,0,0.25); padding: 8px 12px; border-radius: 6px; text-align: center; min-width: 60px; }
.a4h-cd-num { display: block; font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.a4h-cd-lbl { display: block; font-size: 11px; opacity: 0.85; margin-top: 4px; }

/* ===== Animated Counter ===== */
.a4h-counter { text-align: center; padding: 20px; margin: 16px 0; background: #f8f9fa; border-radius: 8px; }
.a4h-counter-num { font-size: 36px; font-weight: 700; color: var(--main-color, #931800); line-height: 1; font-variant-numeric: tabular-nums; }
.a4h-counter-label { font-size: 14px; color: #666; margin-top: 6px; }
html.a4h-dark .a4h-counter { background: #1e2025; }

/* ===== Tabs ===== */
.a4h-tabs { margin: 20px 0; }
.a4h-tabs-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; border-bottom: 2px solid var(--main-color, #931800); }
.a4h-tab-nav-item {
    padding: 10px 18px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}
.a4h-tab-nav-item.active { background: var(--main-color, #931800); color: #fff; }
.a4h-tab-nav-item:hover:not(.active) { background: #e0e0e0; }
.a4h-tabs-content { padding: 16px 0; }
.a4h-tab-content { display: none; animation: a4h-tab-fade .25s ease; }
.a4h-tab-content.active { display: block; }
@keyframes a4h-tab-fade { from { opacity: 0; } to { opacity: 1; } }
html.a4h-dark .a4h-tab-nav-item { background: #2a2d33; color: #b8bcc4; }

/* ===== Weather Widget ===== */
.a4h-weather-widget { text-align: center; padding: 12px; }
.a4h-weather-city { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--main-color, #931800); }
.a4h-weather-main { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.a4h-weather-icon { font-size: 36px; color: #ffc107; }
.a4h-weather-temp { font-size: 28px; font-weight: 700; }
.a4h-weather-desc { font-size: 13px; color: #666; margin-bottom: 4px; }
.a4h-weather-wind { font-size: 12px; color: #888; }
.a4h-weather-wind i { margin-inline-end: 4px; }

/* ===== Prayer Times Widget ===== */
.a4h-prayer-widget { text-align: center; }
.a4h-prayer-hijri { font-size: 12px; color: var(--main-color, #931800); font-weight: 700; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e0e0e0; }
.a4h-prayer-list { list-style: none; margin: 0; padding: 0; }
.a4h-prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.a4h-prayer-item:last-child { border-bottom: 0; }
.a4h-prayer-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.a4h-prayer-name i { color: var(--main-color, #931800); width: 16px; }
.a4h-prayer-time { font-weight: 700; color: var(--main-color, #931800); font-variant-numeric: tabular-nums; }
html.a4h-dark .a4h-prayer-hijri { border-color: #3a3d43; }
html.a4h-dark .a4h-prayer-item { border-color: #2a2d33; }

/* ===== Currency Widget ===== */
.a4h-currency-list { list-style: none; margin: 0; padding: 0; }
.a4h-currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.a4h-currency-item:last-child { border-bottom: 0; }
.a4h-currency-code { font-weight: 600; color: #666; font-family: monospace; }
.a4h-currency-rate { font-weight: 700; color: var(--main-color, #931800); font-variant-numeric: tabular-nums; }
html.a4h-dark .a4h-currency-item { border-color: #2a2d33; }
html.a4h-dark .a4h-currency-code { color: #b8bcc4; }

/* ===== Audio Player ===== */
.a4h-audio-player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
}
.a4h-audio-cover { width: 80px; height: 80px; border-radius: 6px; overflow: hidden; flex: 0 0 80px; }
.a4h-audio-cover img { width: 100%; height: 100%; object-fit: cover; }
.a4h-audio-info { flex: 1; min-width: 0; }
.a4h-audio-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.a4h-audio-player audio { width: 100%; height: 36px; }
html.a4h-dark .a4h-audio-player { background: #1e2025; }

/* ===== GDPR Cookie Banner ===== */
.a4h-gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.97);
    color: #fff;
    padding: 14px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform .3s ease;
}
.a4h-gdpr-banner.show { transform: translateY(0); }
.a4h-gdpr-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.a4h-gdpr-text { flex: 1; min-width: 280px; margin: 0; font-size: 13px; line-height: 1.6; }
.a4h-gdpr-link { color: var(--main-color, #931800); text-decoration: underline; }
.a4h-gdpr-accept {
    background: var(--main-color, #931800);
    color: #fff;
    border: 0;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s ease;
    white-space: nowrap;
}
.a4h-gdpr-accept:hover { opacity: 0.9; }
@media (max-width: 575.98px) {
    .a4h-gdpr-inner { flex-direction: column; align-items: stretch; }
    .a4h-gdpr-accept { width: 100%; }
}

/* ===== Infinite Scroll Loader ===== */
.a4h-infinite-loader {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 14px;
}
.a4h-infinite-loader .a4h-loader-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--main-color, #931800);
    border-radius: 50%;
    animation: a4h-spin 0.8s linear infinite;
    margin-inline-end: 8px;
    vertical-align: middle;
}
@keyframes a4h-spin { to { transform: rotate(360deg); } }
.a4h-infinite-end { text-align: center; padding: 20px; color: #aaa; font-size: 13px; }
/* =====================================================================
   v6.0 Engagement & Retention Features CSS
   ===================================================================== */

/* ===== Dark Mode Toggle ===== */
.a4h-dark-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; margin-inline-start: 8px; font-size: 15px; transition: background .15s ease; }
.a4h-dark-toggle:hover { background: rgba(255,255,255,0.1); }
html.a4h-dark body { background: #181a1f !important; color: #e4e6eb !important; }
html.a4h-dark .light-color, html.a4h-dark .site-header, html.a4h-dark .site-footer, html.a4h-dark .widget-inner, html.a4h-dark .site-section { background-color: #1e2025 !important; color: #e4e6eb !important; }
html.a4h-dark a { color: #c9a86a; }
html.a4h-dark .widget-title, html.a4h-dark .header-logo-inner { background-color: #2a2d33 !important; }
html.a4h-dark input, html.a4h-dark textarea, html.a4h-dark select { background: #2a2d33 !important; color: #e4e6eb !important; border-color: #3a3d43 !important; }
html.a4h-dark .meta-pill { background: #2a2d33 !important; color: #b8bcc4 !important; }

/* ===== Table of Contents ===== */
.a4h-toc { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 18px; margin: 20px 0; font-size: 15px; }
.a4h-toc details summary { cursor: pointer; font-weight: 700; color: var(--main-color, #931800); list-style: none; padding: 4px 0; }
.a4h-toc details summary::-webkit-details-marker { display: none; }
.a4h-toc details summary::before { content: "\f054"; font-family: 'Font Awesome\ 5 Free'; font-weight: bold; margin-inline-end: 8px; transition: transform .15s ease; }
.a4h-toc details[open] summary::before { transform: rotate(90deg); }
.a4h-toc-list { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.8; }
.a4h-toc-list a { color: #495057; text-decoration: none; }
.a4h-toc-list a:hover { color: var(--main-color, #931800); text-decoration: underline; }
html.a4h-dark .a4h-toc { background: #2a2d33; border-color: #3a3d43; }
html.a4h-dark .a4h-toc-list a { color: #b8bcc4; }

/* ===== Helpful Rating ===== */
.a4h-helpful-rating { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 20px 0; background: #f8f9fa; border-radius: 8px; border: 1px solid #e0e0e0; flex-wrap: wrap; }
.a4h-helpful-label { font-weight: 700; font-size: 14px; }
.a4h-helpful-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 2px solid #e0e0e0; border-radius: 8px; background: #fff; color: #495057; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .15s ease; }
.a4h-helpful-btn:hover { border-color: var(--main-color, #931800); }
.a4h-helpful-btn.voted { background: var(--main-color, #931800); color: #fff; border-color: var(--main-color, #931800); }
.a4h-helpful-btn .count { background: rgba(0,0,0,0.08); padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.a4h-helpful-btn.voted .count { background: rgba(255,255,255,0.25); }
html.a4h-dark .a4h-helpful-rating { background: #1e2025; border-color: #3a3d43; }
html.a4h-dark .a4h-helpful-btn { background: #2a2d33; border-color: #3a3d43; color: #b8bcc4; }

/* ===== Click to Tweet ===== */
.a4h-click-tweet { margin: 20px 0; padding: 16px 20px; background: #f0f8ff; border-inline-start: 4px solid #1da1f2; border-radius: 0 8px 8px 0; }
.a4h-click-tweet p { margin: 0 0 10px; font-size: 16px; font-weight: 600; line-height: 1.6; color: #333; }
.a4h-tweet-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #000; color: #fff !important; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 13px; }
.a4h-tweet-link:hover { opacity: 0.85; }
html.a4h-dark .a4h-click-tweet { background: #1a2332; }
html.a4h-dark .a4h-click-tweet p { color: #e4e6eb; }

/* ===== Sticky Header ===== */
.site-header { position: sticky; top: 0; z-index: 1000; transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
