/*
Theme Name: Horus Valley Ultra
Theme URI: https://www.horusvalley.com/
Author: Horus Valley
Description: قالب عربي Premium فائق الخفة لموقع Horus Valley، مع لوحة تحكم، أدوات تفاعلية، تحسينات SEO/Core Web Vitals وتكامل Rank Math.
Version: 2.2.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horus-valley
Tags: rtl-language-support, blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root{--hv-navy:#071c2c;--hv-navy-2:#0c2940;--hv-gold:#d9a441;--hv-gold-2:#f0c66c;--hv-ink:#102233;--hv-muted:#697685;--hv-bg:#f7f8fa;--hv-card:#fff;--hv-line:#e8edf2;--hv-radius:14px;--hv-shadow:0 10px 30px rgba(13,32,48,.07);--hv-container:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--hv-bg);color:var(--hv-ink);font-family:Tahoma,Arial,"Noto Sans Arabic",system-ui,-apple-system,sans-serif;line-height:1.75;text-rendering:optimizeLegibility}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}a:hover{color:var(--hv-gold)}button,input,select,textarea{font:inherit}button{cursor:pointer}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{clip:auto!important;width:auto;height:auto;margin:12px;padding:10px 14px;z-index:99999;background:#fff;color:#000;top:0;right:0}.hv-container{width:min(calc(100% - 32px),var(--hv-container));margin-inline:auto}.hv-section{margin-block:28px;content-visibility:auto;contain-intrinsic-size:600px}.hv-card{background:var(--hv-card);border:1px solid var(--hv-line);border-radius:var(--hv-radius);box-shadow:var(--hv-shadow);overflow:hidden}.hv-label{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:var(--hv-gold);color:#172331;font-size:.78rem;font-weight:700}.hv-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:0;border-radius:10px;background:var(--hv-gold);color:#172331;font-weight:800}.hv-btn:hover{background:var(--hv-gold-2);color:#172331}.hv-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.hv-title-row h2{margin:0;font-size:clamp(1.25rem,2vw,1.7rem)}.hv-title-row h2:after{content:"";display:inline-block;width:26px;height:3px;background:var(--hv-gold);margin-inline-start:10px;vertical-align:middle;border-radius:2px}.hv-more{font-size:.9rem;font-weight:700;color:var(--hv-muted)}

/* Header */
.hv-topbar{background:var(--hv-navy);color:#dce5ec;font-size:.8rem}.hv-topbar-inner{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hv-top-links,.hv-social{display:flex;align-items:center;gap:16px}.hv-top-links ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:16px}.hv-site-header{background:#fff;border-bottom:1px solid var(--hv-line);position:sticky;top:0;z-index:100}.admin-bar .hv-site-header{top:32px}.hv-header-main{min-height:76px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px}.hv-brand{display:flex;align-items:center;gap:11px;min-width:max-content}.hv-brand img{max-height:54px;width:auto}.hv-brand-fallback{display:flex;align-items:center;gap:10px}.hv-eye{font-size:2.1rem;line-height:1}.hv-brand-text strong{display:block;font-family:Georgia,serif;letter-spacing:.04em;font-size:1.22rem;color:var(--hv-navy)}.hv-brand-text small{display:block;color:var(--hv-gold);font-size:.76rem;font-weight:700}.hv-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}.hv-nav a{display:block;padding:10px 11px;border-radius:8px;font-size:.92rem;font-weight:700}.hv-nav .current-menu-item>a,.hv-nav a:hover{background:#fff8e9;color:#9d6f12}.hv-header-actions{display:flex;align-items:center;gap:8px}.hv-icon-btn{border:1px solid var(--hv-line);background:#fff;color:var(--hv-navy);width:42px;height:42px;border-radius:10px;display:grid;place-items:center}.hv-mobile-toggle{display:none}.hv-search-panel{display:none;padding:0 0 14px}.hv-search-panel.is-open{display:block}.hv-search-form{display:flex;gap:8px}.hv-search-form input{width:100%;height:46px;border:1px solid var(--hv-line);border-radius:10px;padding-inline:14px;background:#fff}.hv-search-form button{min-width:90px;border:0;border-radius:10px;background:var(--hv-navy);color:#fff;font-weight:700}

/* Hero */
.hv-hero{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:0;background:var(--hv-navy);border-radius:16px;overflow:hidden;min-height:440px;box-shadow:var(--hv-shadow)}.hv-hero-main{position:relative;isolation:isolate;min-height:440px;display:flex;align-items:end;padding:clamp(26px,4vw,52px);color:#fff}.hv-hero-main:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,28,44,.94) 0%,rgba(7,28,44,.58) 45%,rgba(7,28,44,.15) 100%)}.hv-hero-media{position:absolute;inset:0;z-index:-2}.hv-hero-media img{width:100%;height:100%;object-fit:cover}.hv-hero-copy{max-width:650px}.hv-kicker{display:block;color:var(--hv-gold-2);font-weight:800;margin-bottom:8px}.hv-hero h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.28;margin:0 0 12px;color:#fff}.hv-hero-excerpt{color:#e8edf2;font-size:1.05rem;margin:0 0 22px;max-width:56ch}.hv-hero-side{background:#081724;padding:14px;display:grid;gap:10px}.hv-hero-side-item{display:grid;grid-template-columns:1fr 96px;gap:10px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.09);border-radius:11px;color:#fff;background:rgba(255,255,255,.03)}.hv-hero-side-item img{width:96px;height:72px;object-fit:cover;border-radius:8px}.hv-hero-side-item h3{font-size:.9rem;line-height:1.55;margin:3px 0 0;color:#fff}.hv-hero-side-item small{font-size:.72rem;color:var(--hv-gold-2)}

/* Categories */
.hv-categories{display:grid;grid-template-columns:repeat(7,1fr);background:#fff;border:1px solid var(--hv-line);border-radius:14px;overflow:hidden}.hv-cat{min-height:100px;padding:18px 10px;text-align:center;border-inline-start:1px solid var(--hv-line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.hv-cat:first-child{border-inline-start:0}.hv-cat-icon{font-size:1.45rem}.hv-cat strong{font-size:.88rem}.hv-cat span{font-size:.72rem;color:var(--hv-muted)}

/* Content */
.hv-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.hv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hv-post-card{height:100%;display:flex;flex-direction:column}.hv-card-media{position:relative;aspect-ratio:16/9;background:#dfe6ec;overflow:hidden}.hv-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.hv-post-card:hover .hv-card-media img{transform:scale(1.025)}.hv-card-media .hv-label{position:absolute;bottom:10px;right:10px}.hv-card-body{padding:15px 16px 17px}.hv-card-body h3{font-size:1.03rem;line-height:1.55;margin:0 0 8px}.hv-card-body p{font-size:.86rem;color:var(--hv-muted);margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hv-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#89939d;font-size:.75rem}.hv-sidebar{display:grid;gap:18px;position:sticky;top:96px}.hv-widget{padding:18px}.hv-widget h2,.hv-widget h3{font-size:1.1rem;margin:0 0 14px}.hv-pick{display:grid;grid-template-columns:36px 1fr 72px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--hv-line)}.hv-pick:last-child{border-bottom:0}.hv-pick-num{width:28px;height:28px;border-radius:7px;background:var(--hv-gold);display:grid;place-items:center;font-weight:800;font-size:.78rem}.hv-pick img{width:72px;height:54px;object-fit:cover;border-radius:7px}.hv-pick h4{font-size:.82rem;line-height:1.45;margin:0}.hv-dark-widget{background:var(--hv-navy);color:#fff;border-color:transparent}.hv-dark-widget h3{color:#fff}.hv-dark-widget p{color:#d3dde5;font-size:.88rem}.widget{margin:0}.widget ul{list-style:none;margin:0;padding:0}.widget li{padding:8px 0;border-bottom:1px solid var(--hv-line)}

/* Feature band */
.hv-feature-band{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.hv-feature-small{min-height:230px;position:relative;overflow:hidden;border-radius:14px;color:#fff;display:flex;align-items:end;padding:18px;isolation:isolate}.hv-feature-small:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,28,44,.88),rgba(7,28,44,.06));z-index:-1}.hv-feature-small img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hv-feature-small h3{margin:5px 0 0;color:#fff;line-height:1.5;font-size:1rem}


/* Interactive tools */
.hv-tools{background:linear-gradient(135deg,#f7f1e4,#fff);border:1px solid #eadfc8;border-radius:16px;padding:22px}.hv-tools-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.hv-tool-card{min-height:150px;padding:16px;background:#fff;border:1px solid var(--hv-line);border-radius:12px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.hv-tool-icon{font-size:1.8rem}.hv-tool-card strong{line-height:1.5}.hv-tool-card span:last-child{font-size:.78rem;color:#9d6f12;font-weight:800}.hv-dark .hv-tools{background:#0b1c28;border-color:#203341}.hv-dark .hv-tool-card{background:#0d1e2a}

/* Footer */
.hv-footer{margin-top:42px;background:var(--hv-navy);color:#cbd6df}.hv-footer-main{padding:42px 0;display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:30px}.hv-footer h3{color:#fff;font-size:1rem}.hv-footer p{font-size:.86rem}.hv-footer ul{list-style:none;margin:0;padding:0}.hv-footer li{margin:7px 0}.hv-footer a:hover{color:var(--hv-gold-2)}.hv-footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:14px 0;font-size:.78rem;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}

/* Single / pages */
.hv-breadcrumbs,.rank-math-breadcrumb{font-size:.78rem;color:var(--hv-muted);margin:18px 0}.rank-math-breadcrumb p{margin:0}.hv-article-shell{display:grid;grid-template-columns:minmax(0,820px) 300px;gap:30px;justify-content:center;align-items:start}.hv-article{background:#fff;border:1px solid var(--hv-line);border-radius:16px;padding:clamp(20px,4vw,42px)}.hv-article-header h1{font-size:clamp(1.9rem,4vw,3rem);line-height:1.35;margin:8px 0 12px}.hv-article-excerpt{font-size:1.08rem;color:var(--hv-muted);margin:0 0 16px}.hv-article-featured{margin:24px -10px 30px;border-radius:14px;overflow:hidden}.hv-article-featured img{width:100%;height:auto}.hv-content{font-size:1.06rem;line-height:2}.hv-content>:first-child{margin-top:0}.hv-content h2{font-size:1.55rem;line-height:1.5;margin-top:2em}.hv-content h3{font-size:1.25rem;margin-top:1.6em}.hv-content a{color:#0e6ea8;text-decoration:underline;text-underline-offset:3px}.hv-content blockquote{margin:24px 0;padding:18px 22px;border-inline-start:4px solid var(--hv-gold);background:#fff8e9;border-radius:8px}.hv-content table{width:100%;border-collapse:collapse;display:block;overflow:auto}.hv-content th,.hv-content td{border:1px solid var(--hv-line);padding:10px}.hv-content pre{overflow:auto;padding:15px;background:#0d1f2d;color:#fff;border-radius:10px}.hv-author-box{margin-top:28px;padding:18px;display:flex;gap:14px;align-items:center}.hv-author-box img{border-radius:50%}.hv-related{margin-top:28px}.hv-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

/* Archives / search / pagination */
.hv-archive-head{padding:28px 0 8px}.hv-archive-head h1{margin:0;font-size:2rem}.hv-pagination{margin:28px 0;display:flex;justify-content:center}.hv-pagination .nav-links{display:flex;gap:7px;flex-wrap:wrap}.hv-pagination .page-numbers{min-width:40px;height:40px;padding:0 12px;display:grid;place-items:center;background:#fff;border:1px solid var(--hv-line);border-radius:8px}.hv-pagination .current{background:var(--hv-navy);color:#fff;border-color:var(--hv-navy)}

/* Comments */
.comments-area{margin-top:28px;background:#fff;border:1px solid var(--hv-line);border-radius:14px;padding:24px}.comment-list{list-style:none;padding:0}.comment-body{padding:16px 0;border-bottom:1px solid var(--hv-line)}.comment-meta{font-size:.82rem}.comment-content{margin-top:10px}.comment-form input:not([type=submit]),.comment-form textarea{width:100%;border:1px solid var(--hv-line);border-radius:8px;padding:10px}.comment-form .submit{border:0;background:var(--hv-navy);color:#fff;border-radius:8px;padding:10px 18px}

/* Dark mode */
body.hv-dark{--hv-bg:#07121b;--hv-card:#0d1e2a;--hv-ink:#ecf3f8;--hv-muted:#a8b5c0;--hv-line:#203341}.hv-dark .hv-site-header,.hv-dark .hv-icon-btn,.hv-dark .hv-search-form input,.hv-dark .hv-article,.hv-dark .comments-area,.hv-dark .hv-categories{background:#0d1e2a}.hv-dark .hv-brand-text strong{color:#fff}.hv-dark .hv-nav a{color:#e4ebf0}.hv-dark .hv-nav .current-menu-item>a,.hv-dark .hv-nav a:hover{background:#142a3a;color:var(--hv-gold-2)}.hv-dark .hv-cat,.hv-dark .hv-card-body{color:#ecf3f8}.hv-dark .hv-content blockquote{background:#152a37}.hv-dark .hv-content a{color:#7fc8ff}

/* Responsive */
@media(max-width:1050px){.hv-tools-grid{grid-template-columns:repeat(3,1fr)}.hv-hero,.hv-layout{grid-template-columns:1fr}.hv-hero-side{grid-template-columns:repeat(2,1fr)}.hv-sidebar{position:static;grid-template-columns:repeat(2,1fr)}.hv-categories{grid-template-columns:repeat(4,1fr)}.hv-cat{border-bottom:1px solid var(--hv-line)}.hv-footer-main{grid-template-columns:repeat(2,1fr)}.hv-article-shell{grid-template-columns:1fr}.hv-article-shell>.hv-sidebar{display:none}}
@media(max-width:820px){.admin-bar .hv-site-header{top:46px}.hv-topbar{display:none}.hv-header-main{grid-template-columns:1fr auto;min-height:68px}.hv-mobile-toggle{display:grid}.hv-nav{grid-column:1/-1;display:none;padding-bottom:12px}.hv-nav.is-open{display:block}.hv-nav ul{display:block}.hv-nav a{padding:10px}.hv-grid{grid-template-columns:repeat(2,1fr)}.hv-feature-band{grid-template-columns:repeat(2,1fr)}.hv-categories{grid-template-columns:repeat(3,1fr)}.hv-header-actions .hv-mode-text{display:none}.hv-hero-main{min-height:390px}.hv-hero-side{display:none}}
@media(max-width:580px){.hv-tools-grid{grid-template-columns:1fr 1fr}.hv-container{width:min(calc(100% - 20px),var(--hv-container))}.hv-grid,.hv-feature-band,.hv-sidebar,.hv-footer-main,.hv-related-grid{grid-template-columns:1fr}.hv-categories{grid-template-columns:repeat(2,1fr)}.hv-hero-main{min-height:420px;padding:24px}.hv-hero h1{font-size:2rem}.hv-article{padding:20px}.hv-title-row{align-items:end}.hv-card-body h3{font-size:.98rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* =========================================================
   Horus Valley Ultra Premium 2.1
   ========================================================= */
body:not(.hvu-sticky-header) .hv-site-header{position:relative;top:auto}.hvu-sticky-header .hv-site-header{position:sticky}.hv-site-header{transition:box-shadow .2s ease}.hv-site-header.is-scrolled{box-shadow:0 8px 24px rgba(7,28,44,.08)}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid color-mix(in srgb,var(--hv-gold) 72%,#fff);outline-offset:3px}.hv-social-icons{display:flex;align-items:center;gap:7px}.hv-social-icons a{width:28px;height:28px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:800;opacity:.86}.hv-topbar .hv-social-icons a{width:23px;height:23px}

/* Live search */
.hv-search-panel{position:relative}.hv-live-results{display:none;margin-top:8px;background:var(--hv-card);border:1px solid var(--hv-line);border-radius:12px;box-shadow:var(--hv-shadow);overflow:hidden}.hv-live-results.is-open{display:block}.hv-live-results a{display:block;padding:10px 13px;border-bottom:1px solid var(--hv-line);font-size:.9rem}.hv-live-results a:last-child{border-bottom:0}.hv-live-results a:hover{background:#fff8e9}.hv-live-empty{padding:10px 13px;color:var(--hv-muted);font-size:.85rem}

/* Reading progress */
.hv-reading-progress{position:fixed;z-index:250;top:0;left:0;right:0;height:3px;background:transparent;pointer-events:none}.admin-bar .hv-reading-progress{top:32px}.hv-reading-progress span{display:block;width:0;height:100%;background:var(--hv-gold);transform-origin:right center}.hvu-sticky-header .hv-reading-progress{z-index:350}

/* Article premium modules */
.hv-article-meta{margin-bottom:4px}.hv-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0}.hv-share-title{font-weight:800;font-size:.85rem;color:var(--hv-muted)}.hv-share>a,.hv-share>button{min-width:36px;height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--hv-line);background:var(--hv-card);display:grid;place-items:center;font-weight:800;color:var(--hv-ink)}.hv-share>a:hover,.hv-share>button:hover{border-color:var(--hv-gold);color:#8a6417}.hv-share .hv-copy-link,.hv-share .hv-native-share{display:flex;min-width:auto}.hv-toc{margin:0 0 28px;background:#f8fafb;border:1px solid var(--hv-line);border-radius:12px;padding:0 16px}.hv-toc summary{font-weight:800;padding:14px 0;cursor:pointer}.hv-toc ol{margin:0 0 16px;padding-inline-start:22px}.hv-toc li{margin:7px 0}.hv-toc li.is-sub{margin-inline-start:18px;font-size:.93em}.hv-toc a{color:var(--hv-ink)}.hv-toc a:hover{color:#9d6f12}.hv-inline-related{margin:26px 0;padding:14px 16px;border-inline-start:4px solid var(--hv-gold);background:#fff8e9;border-radius:10px;display:flex;gap:10px;align-items:flex-start}.hv-inline-related span{font-size:.78rem;font-weight:800;color:#916914;white-space:nowrap}.hv-inline-related a{font-weight:800;text-decoration:none}.hv-author-mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--hv-navy);color:#fff;font-size:1.25rem;font-weight:800;flex:0 0 48px}.hv-author-box p{margin:5px 0 0}.hv-tool-shell{grid-template-columns:minmax(0,1080px);}.hv-tool-shell .hv-article{padding:clamp(20px,3vw,38px)}.hv-page-article{max-width:920px;margin-inline:auto}.hv-tool-page-article{max-width:1180px;margin-inline:auto}.hvu-tool-layout .hv-article-featured{max-height:560px}.hvu-tool-layout .hv-article-featured img{max-height:560px;object-fit:cover}

/* Ads - reserve layout space to limit CLS */
.hv-ad-slot{width:100%;min-height:var(--hv-ad-min-height);display:grid;align-content:center;position:relative;margin-block:20px}.hv-ad-slot .widget{width:100%;box-shadow:none;border:0;background:transparent;padding:0;overflow:visible}.hv-ad-label{position:absolute;top:2px;right:50%;transform:translateX(50%);font-size:.65rem;color:#9aa3aa;letter-spacing:.04em}.hv-ad-header{margin-top:14px;margin-bottom:14px}.hv-ad-inline{margin:28px 0;border-block:1px solid var(--hv-line);padding-block:12px}.hv-ad-after-content{margin-top:28px}

/* Homepage premium promos */
.hv-layout.hv-no-sidebar{grid-template-columns:1fr}.hv-promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hv-promo-grid.hv-one{grid-template-columns:1fr}.hv-radio-promo,.hv-newsletter{min-height:210px;border-radius:16px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden}.hv-radio-promo{background:linear-gradient(135deg,#071c2c,#0d3b5a);color:#fff}.hv-radio-promo h2,.hv-newsletter h2{margin:5px 0 8px;font-size:1.35rem}.hv-radio-promo p,.hv-newsletter p{margin:0;opacity:.86}.hv-radio-promo small{color:var(--hv-gold-2);font-weight:800}.hv-promo-icon{font-size:2rem;display:inline-block;margin-bottom:5px}.hv-newsletter{background:linear-gradient(135deg,#fff8e9,#fff);border:1px solid #eadfc8;box-shadow:var(--hv-shadow)}.hv-newsletter-action{min-width:210px}.hv-newsletter-action form{display:flex;gap:8px;flex-wrap:wrap}.hv-newsletter-action input[type=email],.hv-newsletter-action input[type=text]{min-height:44px;border:1px solid var(--hv-line);border-radius:9px;padding:8px 11px;max-width:100%}.hv-newsletter-action input[type=submit],.hv-newsletter-action button{min-height:44px;border:0;border-radius:9px;background:var(--hv-gold);font-weight:800;padding:8px 14px}

/* Tools hub */
.hv-tools-hub-head{padding:clamp(28px,5vw,58px);margin-top:24px;background:linear-gradient(135deg,var(--hv-navy),#0c3b5a);color:#fff}.hv-tools-hub-head h1{font-size:clamp(2rem,5vw,3.6rem);margin:4px 0 10px;color:#fff}.hv-tools-hub-head p{max-width:70ch;margin:0;color:#d9e4eb}.hv-tools-intro{max-width:100%}.hv-tools-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hv-tool-hub-card{padding:20px;display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:start;min-height:190px}.hv-tool-hub-card .hv-tool-icon{width:46px;height:46px;border-radius:12px;background:#fff5dc;display:grid;place-items:center}.hv-tool-hub-card strong{font-size:1.05rem}.hv-tool-hub-card p{color:var(--hv-muted);font-size:.86rem;margin:8px 0}.hv-tool-hub-card .hv-more{grid-column:2}

/* Smart 404 */
.hv-404{text-align:center;padding:clamp(42px,8vw,82px) 20px}.hv-404-icon{font-size:4.4rem;line-height:1}.hv-404 .hv-search-form{max-width:620px;margin:24px auto 16px}.hv-404 .hv-btn{margin-top:8px}

/* Toast */
.hv-toast{position:fixed;z-index:9999;left:20px;bottom:20px;background:var(--hv-navy);color:#fff;padding:10px 14px;border-radius:10px;box-shadow:var(--hv-shadow);font-size:.85rem;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.hv-toast.is-visible{opacity:1;transform:none}

/* Dark additions */
.hv-dark .hv-live-results,.hv-dark .hv-share>a,.hv-dark .hv-share>button,.hv-dark .hv-toc,.hv-dark .hv-newsletter{background:#0d1e2a;color:#ecf3f8;border-color:#203341}.hv-dark .hv-live-results a:hover{background:#142a3a}.hv-dark .hv-inline-related{background:#142a3a}.hv-dark .hv-tool-hub-card .hv-tool-icon{background:#142a3a}.hv-dark .hv-newsletter{background:linear-gradient(135deg,#0d1e2a,#10293a)}

/* Performance mode trims motion while keeping interactions usable */
.hvu-performance .hv-card-media img{transition:none}.hvu-performance .hv-site-header{transition:none}

@media(max-width:1050px){.hv-promo-grid{grid-template-columns:1fr}.hv-tools-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hv-radio-promo,.hv-newsletter{min-height:180px}}
@media(max-width:820px){.admin-bar .hv-reading-progress{top:46px}.hv-share{gap:6px}.hv-share .hv-native-share{display:flex}.hv-toc{padding-inline:14px}.hv-promo-grid{grid-template-columns:1fr}.hv-radio-promo,.hv-newsletter{align-items:flex-start;flex-direction:column}.hv-newsletter-action{min-width:0;width:100%}}
@media(max-width:580px){.hv-tools-hub-grid{grid-template-columns:1fr}.hv-tool-hub-card{min-height:160px}.hv-share-title{width:100%}.hv-share>a,.hv-share>button{min-width:38px}.hv-inline-related{display:block}.hv-inline-related span{display:block;margin-bottom:4px}.hv-ad-slot{min-height:min(var(--hv-ad-min-height),280px)}}

/* =========================================================
   Horus Valley Ultra Premium 2.1 — Mobile & Tools Update
   ========================================================= */

/* Stronger intrinsic sizing: grid/flex children must be allowed to shrink. */
.hv-header-main,.hv-brand,.hv-nav,.hv-header-actions,.hv-article-shell,.hv-article,.hv-content,.hv-layout,.hv-grid,.hv-tools-grid,.hv-feature-band,.hv-related-grid,.hv-sidebar{min-width:0}
.hv-content{max-width:100%;overflow-wrap:break-word;word-break:normal}
.hv-content :where(img,video,iframe,embed,object,canvas,svg){max-width:100%}
.hv-content :where(table,pre,.wp-block-table){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.hv-content :where(fieldset,form){min-width:0;max-width:100%}
.hv-content :where(input,select,textarea,button){max-width:100%}
.hv-ad-slot,.hv-ad-slot iframe,.hv-ad-slot ins{max-width:100%}
.hvu-tool-layout .hv-page-article{max-width:1180px}

@media(max-width:820px){
	/* Compact, collision-proof mobile header. */
	.hvu-mobile-compact-header .hv-header-main{grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:62px}
	.hvu-mobile-compact-header .hv-brand{min-width:0;max-width:calc(100vw - 170px);overflow:hidden}
	.hvu-mobile-compact-header .hv-brand .custom-logo-link{display:block;min-width:0;max-width:100%}
	.hvu-mobile-compact-header .hv-brand img{display:block;max-width:100%;width:auto;height:auto;max-height:48px;object-fit:contain;object-position:right center}
	.hvu-mobile-compact-header .hv-header-actions{flex:0 0 auto;gap:6px}
	.hvu-mobile-compact-header .hv-icon-btn{width:42px;height:42px;min-width:42px;border-radius:10px}
	.hvu-mobile-compact-header .hv-nav{min-width:0;width:100%}

	/* Arabic reading rhythm tuned for phones. */
	.hv-article-header h1{font-size:clamp(1.58rem,7vw,2rem);line-height:1.45;margin-block:7px 10px}
	.hv-article-excerpt{font-size:1rem;line-height:1.85}
	.hv-content{font-size:var(--hv-mobile-font-size);line-height:1.95}
	.hv-content h2{font-size:1.38rem;line-height:1.6;margin-top:1.7em}
	.hv-content h3{font-size:1.16rem;line-height:1.65;margin-top:1.45em}
	.hv-article-meta{gap:6px;font-size:.72rem}
	.hv-breadcrumbs,.rank-math-breadcrumb{white-space:normal;overflow-wrap:anywhere;line-height:1.75}
	.hv-share>a,.hv-share>button{min-height:42px;min-width:42px}
	.hv-toc{margin-bottom:20px}
	.hv-toc summary{min-height:48px;display:flex;align-items:center}

	/* Mobile Safe Mode: repair fixed-width custom HTML/plugins instead of clipping content. */
	body.hvu-mobile-safe{max-width:100%;overflow-x:clip}
	body.hvu-mobile-safe{max-width:100%}
	.hvu-mobile-safe :where(.hv-container,.hv-article-shell,.hv-article,.hv-content,.hv-tool-shell,.hv-tool-page-article,.hv-layout,.hv-grid,.hv-sidebar,.hv-card){min-width:0;max-width:100%}
	.hvu-mobile-safe .hv-content > :where(div,section,article,aside,main,form,fieldset){min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
	.hvu-mobile-safe .hv-content :where(div,section,article,aside,main,header,footer,nav,form,fieldset,ul,ol,li){min-width:0}
	.hvu-mobile-safe .hv-content :where(iframe,video,embed,object,canvas){display:block;max-width:100%!important;width:100%!important}
	.hvu-mobile-safe .hv-content :where(img,svg){max-width:100%!important}
	.hvu-mobile-safe .hv-content :where(table,.wp-block-table,pre){max-width:100%!important;overflow-x:auto!important}
	.hvu-mobile-safe .hv-content [style*="min-width"]{min-width:0!important}
	.hvu-mobile-safe .hv-content [style*="width:"]{max-width:100%!important}
	.hvu-mobile-safe .hv-content :where(input[type="text"],input[type="email"],input[type="search"],input[type="url"],input[type="tel"],input[type="number"],input[type="password"],select,textarea){font-size:16px;max-width:100%!important}
	.hvu-mobile-safe .hv-content .wp-block-columns{min-width:0;max-width:100%}
	.hvu-mobile-safe .hv-content .wp-block-column{min-width:0}
	.hvu-mobile-safe .hv-ad-slot :where(iframe,ins,div){max-width:100%!important}

	/* Tools behave more like lightweight web apps on phones. */
	.hvu-mobile-full-tools.hvu-tool-layout .hv-article-shell{display:block;width:100%;max-width:100%}
	.hvu-mobile-full-tools.hvu-tool-layout .hv-article{max-width:100%;width:100%}
	.hvu-mobile-full-tools.hvu-tool-layout .hv-content{max-width:100%}
}

@media(max-width:580px){
	.hvu-mobile-compact-header .hv-header-main{min-height:58px;gap:6px}
	.hvu-mobile-compact-header .hv-brand{max-width:calc(100vw - 158px)}
	.hvu-mobile-compact-header .hv-brand img{max-height:44px}
	.hvu-mobile-compact-header .hv-icon-btn{width:40px;height:40px;min-width:40px}

	.hv-container{width:min(calc(100% - 16px),var(--hv-container))}
	.hv-article{padding:16px;border-radius:12px}
	.hv-article-featured{margin:18px 0 22px;border-radius:10px}
	.hv-content blockquote{padding:14px 16px;margin-block:20px}
	.comments-area{padding:16px}
	.hv-author-box{align-items:flex-start}
	.hv-title-row{gap:10px;align-items:center}
	.hv-title-row h2{font-size:1.25rem}

	.hvu-mobile-full-tools.hvu-tool-layout #primary.hv-container,.hvu-mobile-full-tools.hvu-tool-layout main.hv-container{width:100%;max-width:100%;padding-inline:0}
	.hvu-mobile-full-tools.hvu-tool-layout .hv-breadcrumbs,.hvu-mobile-full-tools.hvu-tool-layout .rank-math-breadcrumb{margin-inline:12px}
	.hvu-mobile-full-tools.hvu-tool-layout .hv-article{border-inline:0;border-radius:0;padding-inline:14px}

	/* Swipeable premium sections without extra JS. */
	.hvu-mobile-card-scroll .hv-tools-grid,.hvu-mobile-card-scroll .hv-feature-band{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
	.hvu-mobile-card-scroll .hv-tools-grid>*{flex:0 0 min(82vw,320px);scroll-snap-align:start}
	.hvu-mobile-card-scroll .hv-feature-band>*{flex:0 0 min(84vw,340px);scroll-snap-align:start}
	.hvu-mobile-card-scroll .hv-tools-grid::-webkit-scrollbar,.hvu-mobile-card-scroll .hv-feature-band::-webkit-scrollbar{height:5px}

	.hvu-mobile-no-ads .hv-ad-slot{display:none!important}
}
@media(max-width:820px){.hvu-tool-layout .hv-content h3{font-size:1.08rem;line-height:1.7}.hvu-tool-layout .hv-content h4{font-size:1rem;line-height:1.7}}
@media(max-width:580px){
	/* Generic rescue for custom-coded price/test/card grids that were authored for desktop widths. */
	.hvu-mobile-safe .hv-content :where([class*="grid"],[class*="cards"],[class*="columns"],[class*="prices"]){grid-template-columns:minmax(0,1fr)!important;max-width:100%!important;min-width:0!important}
	.hvu-mobile-safe .hv-content [class*="row"]{flex-wrap:wrap!important;max-width:100%!important;min-width:0!important}
	.hvu-mobile-safe .hv-content :where([class*="grid"],[class*="cards"],[class*="row"],[class*="columns"])>*{max-width:100%;min-width:0}
}

/* =========================================================
   Horus Valley Ultra Premium 2.2 — All Articles Homepage
   ========================================================= */
.hv-home-banner{min-height:190px;border-radius:16px;overflow:hidden;position:relative;isolation:isolate;display:flex;align-items:center;padding:clamp(28px,5vw,54px);background:linear-gradient(110deg,#071c2c,#0d3855);color:#fff;box-shadow:var(--hv-shadow)}
.hv-home-banner:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--hv-home-banner-image);background-size:cover;background-position:center}
.hv-home-banner:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,28,44,.96) 0%,rgba(7,28,44,.78) 44%,rgba(7,28,44,.2) 100%)}
.hv-home-banner-copy{max-width:680px}.hv-home-banner h1{margin:0 0 8px;color:#fff;font-size:clamp(2rem,4.2vw,3.25rem);line-height:1.25}.hv-home-banner p{margin:0 0 18px;color:#edf4f8;font-size:1rem}.hv-home-banner .hv-kicker{margin-bottom:5px}
.hv-home-archive-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start}.hv-home-sidebar{display:grid;gap:16px;position:sticky;top:96px;min-width:0}.hv-home-posts{min-width:0}.hv-home-posts-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 15px;padding-bottom:12px;border-bottom:1px solid var(--hv-line)}.hv-home-posts-head h2{margin:0;font-size:clamp(1.45rem,2.3vw,1.9rem)}.hv-home-count{margin:4px 0 0;color:var(--hv-muted);font-size:.82rem}.hv-home-sort{display:flex;align-items:center;gap:8px;font-size:.82rem}.hv-home-sort select{height:42px;border:1px solid var(--hv-line);border-radius:9px;background:var(--hv-card);color:var(--hv-ink);padding:0 12px}.hv-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hv-home-grid>.hv-ad-slot{grid-column:1/-1}.hv-home-grid .hv-post-card{min-width:0}.hv-home-lead-card .hv-card-media{aspect-ratio:16/8.4}.hv-home-lead-card .hv-card-body h3{font-size:1.08rem}.hv-home-infeed{margin:2px 0 8px}
.hv-home-search-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px}.hv-home-search-row input{width:100%;height:44px;border:1px solid var(--hv-line);border-radius:9px;padding-inline:12px;background:var(--hv-card);color:var(--hv-ink);min-width:0}.hv-home-search-row button{border:0;border-radius:9px;background:var(--hv-navy);color:#fff;font-size:1.2rem}.hv-home-categories-widget ul{list-style:none;margin:0;padding:0}.hv-home-categories-widget li{padding:0;border-bottom:1px solid var(--hv-line)}.hv-home-categories-widget li:last-child{border-bottom:0}.hv-home-categories-widget a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 8px;border-radius:8px}.hv-home-categories-widget li.is-current a,.hv-home-categories-widget a:hover{background:#fff6df;color:#815b0f}.hv-home-categories-widget small{font-size:.72rem;color:var(--hv-muted)}
.hv-home-popular{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--hv-line)}.hv-home-popular:last-child{border-bottom:0}.hv-home-popular img{width:64px;height:52px;object-fit:cover;border-radius:8px}.hv-home-popular strong{display:block;font-size:.8rem;line-height:1.45}.hv-home-popular small{display:block;color:var(--hv-muted);font-size:.68rem;margin-top:3px}.hv-home-sidebar .hv-newsletter{min-height:0;display:block;padding:18px}.hv-home-sidebar .hv-newsletter h2{font-size:1.05rem}.hv-home-sidebar .hv-newsletter-action{min-width:0;width:100%;margin-top:12px}
.hv-mobile-home-filters{display:none;margin:0 0 14px;background:var(--hv-card);border:1px solid var(--hv-line);border-radius:12px;padding:0 12px}.hv-mobile-home-filters summary{font-weight:800;min-height:48px;display:flex;align-items:center;cursor:pointer}.hv-mobile-home-filters form{display:grid;gap:9px;padding:0 0 12px}.hv-mobile-home-filters input,.hv-mobile-home-filters select{width:100%;min-height:44px;border:1px solid var(--hv-line);border-radius:9px;padding-inline:10px;background:var(--hv-card);color:var(--hv-ink)}.hv-btn-light{background:#fff;border:1px solid var(--hv-line);color:var(--hv-ink)}
.hv-active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.hv-active-filters span,.hv-active-filters a{padding:6px 10px;border-radius:999px;background:#fff6df;font-size:.75rem}.hv-active-filters a{background:var(--hv-navy);color:#fff}.hv-home-empty{text-align:center;padding:clamp(30px,6vw,60px) 20px}.hv-home-empty>span{font-size:2.5rem}.hv-home-empty h3{margin:8px 0 4px}.hv-home-empty p{margin:0 0 16px;color:var(--hv-muted)}.hv-home-pagination-meta{text-align:center;color:var(--hv-muted);font-size:.78rem;margin-top:18px}
.hv-pagination-numbered .page-numbers,.hv-pagination .page-numbers{list-style:none;margin:0;padding:0;display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.hv-pagination-numbered .page-numbers li,.hv-pagination .page-numbers li{margin:0}.hv-pagination-numbered a.page-numbers,.hv-pagination-numbered span.page-numbers,.hv-pagination a.page-numbers,.hv-pagination span.page-numbers{min-width:40px;height:40px;padding:0 12px;display:grid;place-items:center;background:var(--hv-card);border:1px solid var(--hv-line);border-radius:8px}.hv-pagination-numbered span.current,.hv-pagination span.current{background:var(--hv-gold);color:#172331;border-color:var(--hv-gold);font-weight:800}.hv-pagination .dots{border-color:transparent!important;background:transparent!important}.hv-archive-layout-v22{margin-top:18px}
.hv-back-to-top{position:fixed;left:18px;bottom:18px;z-index:120;width:44px;height:44px;border:0;border-radius:50%;background:var(--hv-gold);color:#172331;display:grid;place-items:center;box-shadow:0 8px 24px rgba(7,28,44,.22);font-size:1.2rem;font-weight:900;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s}.hv-back-to-top.is-visible{opacity:1;visibility:visible;transform:none}
.hv-dark .hv-home-sort select,.hv-dark .hv-home-search-row input,.hv-dark .hv-mobile-home-filters,.hv-dark .hv-mobile-home-filters input,.hv-dark .hv-mobile-home-filters select,.hv-dark .hv-btn-light{background:#0d1e2a;color:#ecf3f8;border-color:#203341}.hv-dark .hv-home-categories-widget li.is-current a,.hv-dark .hv-home-categories-widget a:hover,.hv-dark .hv-active-filters span{background:#2d2a1d;color:#f0c66c}.hv-dark .hv-active-filters a{background:#173044}.hv-dark .hv-home-banner:after{background:linear-gradient(90deg,rgba(4,17,27,.98),rgba(4,17,27,.82),rgba(4,17,27,.35))}

@media(max-width:1050px){.hv-home-archive-layout{grid-template-columns:250px minmax(0,1fr)}.hv-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.hv-home-archive-layout{grid-template-columns:1fr}.hv-home-sidebar{display:none}.hv-mobile-home-filters{display:block}.hv-home-posts-head{align-items:flex-start}.hv-home-sort{display:none}.hv-home-banner{min-height:175px;padding:28px}.hv-home-banner h1{font-size:2.1rem}}
@media(max-width:700px){.hv-home-grid{grid-template-columns:1fr}.hv-home-lead-card .hv-card-media{aspect-ratio:16/9}.hv-home-posts-head{display:block}.hv-home-posts-head h2{font-size:1.42rem}.hv-home-count{font-size:.78rem}.hv-home-banner{min-height:160px;padding:24px 20px}.hv-home-banner h1{font-size:1.85rem}.hv-home-banner p{font-size:.92rem}.hv-pagination-numbered a.page-numbers,.hv-pagination-numbered span.page-numbers,.hv-pagination a.page-numbers,.hv-pagination span.page-numbers{min-width:38px;height:38px;padding:0 10px}.hv-pagination .prev,.hv-pagination .next{padding-inline:12px!important}.hv-back-to-top{width:42px;height:42px;left:12px;bottom:12px}.hv-home-archive-layout{gap:14px}}
.hv-home-banner-media{position:absolute;inset:0;z-index:-2}.hv-home-banner-media img{width:100%;height:100%;object-fit:cover}.hv-pagination>ul.page-numbers{height:auto;min-width:0;padding:0;background:transparent;border:0;border-radius:0}


/* =========================================================
   Horus Valley Ultra Premium 2.2.1 — Polish & Consistency
   ========================================================= */
.hvu-content-title{display:none}
@media(max-width:820px){
	.hv-site-header .hv-container{width:min(calc(100% - 20px),var(--hv-container))}
	.hvu-mobile-compact-header .hv-brand{display:flex;align-items:center}
	.hvu-mobile-compact-header .hv-brand img{max-width:100%;height:auto}
	.hv-nav a,.hv-mobile-home-filters summary,.hv-mobile-home-filters input,.hv-mobile-home-filters select,.hv-mobile-home-filters .hv-btn{min-height:44px}
	.hv-home-categories-widget a{min-height:44px}
	.hv-pagination-numbered a.page-numbers,.hv-pagination-numbered span.page-numbers,.hv-pagination a.page-numbers,.hv-pagination span.page-numbers{min-width:44px;height:44px}
	.hv-content :where(a,button,input,select,textarea){scroll-margin-top:90px}
}
@media(max-width:580px){
	.hv-home-banner{border-radius:12px;padding:22px 16px;min-height:150px}
	.hv-home-banner h1{font-size:clamp(1.65rem,8vw,1.9rem);line-height:1.3}
	.hv-home-banner p{line-height:1.7}
	.hv-home-posts-head{padding-bottom:10px;margin-bottom:12px}
	.hv-home-grid{gap:12px}
	.hv-card-body{padding:13px 14px 15px}
	.hv-card-body h3{font-size:1rem;line-height:1.6}
	.hv-card-body p{font-size:.84rem;line-height:1.7}
	.hv-home-pagination-meta{margin-top:14px}
	.hv-pagination-numbered .page-numbers,.hv-pagination .page-numbers{gap:6px}
	.hv-pagination-numbered a.page-numbers,.hv-pagination-numbered span.page-numbers,.hv-pagination a.page-numbers,.hv-pagination span.page-numbers{min-width:42px;height:42px;padding-inline:9px}
	.hv-article-header h1{font-size:clamp(1.48rem,7.2vw,1.88rem);line-height:1.48}
	.hv-article-meta{line-height:1.7}
	.hv-content{line-height:2}
}
