@charset "UTF-8";
/**
Theme Name: Ahmed Alshamsy
Author: Ahmed Alshamsy
Author URI: https://ahmedalshamsy.com/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ahmed-alshamsy
Template: astra
*/

/* ============================================================
   PHX BRIDGE — نظام الخطوط والألوان الموحد مع صفحات المنصة
   خطان فقط بست أدوار: Amiri للعناوين والاقتباس، وCairo للنص والواجهات.
   حمّل الخطين من functions.php (Amiri 400/700، Cairo 300-900) مع display=swap.
   ============================================================ */
:root{
  --f-display:Amiri,"Noto Naskh Arabic","Traditional Arabic","Times New Roman",serif;
  --f-heading:Amiri,"Noto Naskh Arabic","Traditional Arabic",serif;
  --f-body:Cairo,"Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif;
  --f-ui:Cairo,"Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif;
  --f-serif:Amiri,"Noto Naskh Arabic","Traditional Arabic",serif;
  --f-mono:Cairo,"Segoe UI",Tahoma,Arial,sans-serif;
  --f-latin:Georgia,"Times New Roman",serif;
  --ph-navy:#08123a;--ph-ink:#050b24;--ph-blue:#154193;--ph-blue-dk:#0f3478;--ph-sky:#6b97ee;
  --ph-red:#d00910;--ph-gold:#f5b301;--ph-gold-lt:#ffc933;--ph-mist:#eef3fb;--ph-line:#d3ddf0;
  --ph-mut:#4a5578;--ph-dm:#b9c5e8;--ph-ok:#0b6b3a;--ph-bad:#a3070d;
  --ph-r-card:4px 22px 4px 22px;--ph-r-btn:12px;--ph-r-in:10px;
  --fs-sm:clamp(.875rem,.85rem + .12vw,.9375rem);
  --fs-base:clamp(1rem,.95rem + .25vw,1.0625rem);
  --fs-lg:clamp(1.125rem,1.05rem + .35vw,1.25rem);
  --fs-h1:clamp(2rem,1.3rem + 3vw,3.4rem);
  --fs-h2:clamp(1.65rem,1.2rem + 1.9vw,2.5rem);
  --fs-h3:clamp(1.35rem,1.1rem + 1vw,1.8rem);
  --fs-h4:clamp(1.15rem,1.05rem + .5vw,1.35rem);
  --lh-body:1.9;--lh-head:1.45;
}

/* ============================================================
   DESIGN TOKEN REGISTRY
   Central CSS custom properties for the entire child theme.
   Canonical blue/gold/text tokens live in phy-global.css and
   are intentionally NOT re-declared here to avoid conflicts.
   All tokens declared here are safe to use site-wide.
   ============================================================ */
:root {
  /*
   * TOKEN NOTE: --teal-dark, --teal-mid, --gold, --gold-light, --text, --teal-text,
   * --primary-teal and --teal-rgb are the canonical design tokens declared in
   * phy-global.css (loads after this file). Do NOT re-declare them here — any
   * duplicate causes a silent conflict.
   *
   * PALETTE: Blue / Red / Gold. Variable names that still say "teal" are kept on
   * purpose so every selector keeps working — they now hold BLUE values.
   * Matching values for phy-global.css:
   *   --teal-dark: #154193;   --teal-mid: #1A4FAE;   --primary-teal: #154193;
   *   --teal-rgb: 21, 65, 147;  --gold: #F5B301;  --gold-light: #F4D06F;
   *   --text: #1B2748;  --teal-text: #154193;
   */

  /* Base blue for focus rings / Astra overrides */
  --teal:                  #154193;

  /* Third brand colour — red. Used for hover / interaction on light surfaces
     and as a tricolour accent (top line, H4 triangle, patron badge). */
  --phy-red:               #D00910;
  --phy-red-dk:            #A30710;

  /* Gold gradient for headings */
  --heading-gold-gradient: linear-gradient(180deg, #F5B301, rgba(245, 179, 1, 0.85));

  /* Sidebar component tokens */
  --sidebar-teal:          #154193;
  --sidebar-gold:          #F5B301;
  --sidebar-bg-light:      #F6F9FE;
  --sidebar-text:          #333333;
  --sidebar-transition:    all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Navigation component tokens */
  --nav-teal:              #154193;
  --nav-gold:              #F5B301;
  --nav-white:             #ffffff;
  --nav-shadow:            0 10px 30px rgba(21, 65, 147, 0.12);

  /* Legacy PHY component tokens */
  --phy-teal:              #154193;
  --phy-gold:              #F5B301;
  --phy-gold-bright:       #FFC933;
  --phy-white:             #ffffff;
  --phy-soft:              #f2f6fc;
  --phy-soft-teal:         #edf3fc;
  --phy-teal-soft:         #e3ecfb;
  --phy-text-white:        #ffffff;
  --phy-slow:              0.4s ease-in-out;
  --phy-royal-slow:        0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --phy-shadow:            0 20px 50px rgba(21, 65, 147, 0.2);
  --phy-footer-bg:         #08123A; /* Deep, grounded blue */

  /* Extended palette — used throughout style.css */
  --teal-hover:            #0F3480; /* button/active pressed state — darker than --teal */
  --footer-bg:             #08123A; /* site footer dark background */
  --footer-text:           #e4ecff; /* footer light body text on dark bg */
  --footer-link:           #8DB4FF; /* footer anchor links */
}

/* ============================================================
   ACCESSIBILITY — KEYBOARD FOCUS MANAGEMENT
   Suppresses the default browser focus ring on mouse/pointer
   interaction while preserving a clear, branded focus ring for
   keyboard-only navigation (uses :focus-visible).
   Covers all interactive element types including ARIA roles.
   ============================================================ */
/* keyboard-only focus ring (avoid persistent rings on mouse click) */
/* Scope keyboard focus to truly interactive controls (exclude tabindex="-1") */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[tabindex]:not([tabindex="-1"]):focus:not(:focus-visible) {
  outline: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb),0.16) !important;
  outline: none !important;
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION PREFERENCE
   Respects the OS-level "Reduce Motion" accessibility setting.
   Disables all CSS transitions, animations, and smooth scroll
   for users who have opted into reduced motion.
   ============================================================ */
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   CORE LAYOUT — POST / PAGE / FORUM ARTICLE CARDS
   Applies the white card surface, branded blue box-shadow,
   border-radius, and base spacing to all post-type containers.
   Also resets Astra's default padding overrides for the blog
   grid (layout-4) and the primary content column.
   ============================================================ */
.type-post,
.type-page,
.type-forum {
    background: #fff;
    padding: 0px !important;
    -webkit-box-shadow: 0px 8px 15px rgba(21, 65, 147, 0.08) !important;
    box-shadow: 0px 8px 15px rgba(21, 65, 147, 0.08) !important;
    margin: 0 0 1.5em;
    border-radius: 3px;
    position: relative;
    padding-left: 0.54em !important;
    padding-right: 0.54em !important;
}

.type-post,
.type-page { margin: 0 !important; }

.ast-separate-container .ast-blog-layout-4-grid .ast-article-post {
    padding: 0px !important;
}
.ast-separate-container #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary {
    margin: 0px !important;
    padding: 0px !important;
}
.ast-page-builder-template .entry-header {
    margin-top: 0px !important; 
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.ast-single-post-featured-section+article {
    margin-top: 0px !important;
}

/* ============================================================
   LAYOUT — FEATURED IMAGE WIDTH (NO SIDEBAR, DESKTOP)
   On screens wider than 922 px with no sidebar active, removes
   the default negative margins Astra applies to wide images so
   the featured image stays flush within the content column.
   ============================================================ */
/* Feature Image Width with No Siderbar */
@media (min-width: 922px) {
    .ast-no-sidebar .site-content .ast-article-image-container--wide {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
}

/* ============================================================
   TYPOGRAPHY — GLOBAL HEADING SCALE
   Establishes a consistent modular heading scale (h1–h6) using
   both px and rem values for cross-browser compatibility.
   These sizes are the base before any component-level overrides.
   ============================================================ */
h1 {
    font-size: 34px;
    font-size: 2.125rem;
}

h2 {
    font-size: 25.6px;
    font-size: 1.6rem;
}

h3 {
    font-size: 22.4px;
    font-size: 1.4rem;
}

h4 {
    font-size: 20.8px;
    font-size: 1.3rem;
}

h5 {
    font-size: 19.2px;
    font-size: 1.2rem;
}

h6 {
    font-size: 17.6px;
    font-size: 1.1rem;
} 

/* ============================================================
   SITE HEADER & MAIN CONTENT AREA — BRANDED BACKGROUND SYSTEM
   Creates the signature blue-to-gold radial gradient environment
   that wraps both the site header and the main #content area.
   Uses layered radial + linear gradients with a subtle diagonal
   texture overlay (::after) and a 3 px gold/blue accent line
   (::before). All child elements are lifted above the texture
   via z-index so no content is obscured.
   ============================================================ */
/* This creates the rich, branded environment around the white article */
.site-header, 
#content {
  position: relative;
  /* Header must be visible for dropdowns; Content can be hidden to clip textures */
  overflow: visible !important; 
  background:
    radial-gradient(ellipse at 0% 0%, rgba(26, 79, 174, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(245, 179, 1, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(21, 65, 147, 0.12) 0%, transparent 45%),
    linear-gradient(135deg, #e4ecfa 0%, #f2f6fd 40%, #fff8e6 100%) !important;
  box-shadow: 
    0 0 0 1px rgba(245, 179, 1, 0.2), 
    0 16px 48px rgba(21, 65, 147, 0.11);
}

#content {
  overflow: hidden !important;
  margin-top: 0px;
}

/* Branded Top Accent Line for both areas */
.site-header::before,
#content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--phy-red) 34%, #F5B301 68%, var(--teal-dark) 100%);
  z-index: 2;
}

/* Professional Diagonal Texture */
.site-header::after,
#content::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, 
    transparent, 
    transparent 28px, 
    rgba(21, 65, 147, 0.022) 28px, 
    rgba(21, 65, 147, 0.022) 29px
  );
  pointer-events: none;
  z-index: 0;
}

/* Ensure all children stay above the texture layers */
.site-header > *, 
#content > * {
  position: relative;
  z-index: 1;
}

.site-branding.ast-site-identity {padding: 0.35em 0px !important;}

/* ============================================================
   NAVIGATION — PHYSICS MENU SYSTEM (Astra · RTL)
   قائمة رئيسية بجوار الشعار، وقائمة كبيرة اختيارية بالكلاس ph-mega،
   وشارة «قريبًا» بالكلاس ph-soon، وزر ذهبي بالكلاس ph-cta.
   كل المواضع بخصائص منطقية (inline) فتعمل في RTL وLTR.
   ============================================================ */
.main-header-menu{font-family:var(--f-ui)}
.main-header-menu>.menu-item>.menu-link{position:relative;padding-inline:14px;font-family:var(--f-ui)!important;font-size:1rem;font-weight:700;color:var(--ph-navy);transition:color .2s}
.main-header-menu>.menu-item>.menu-link::after{content:"";position:absolute;inset-inline:14px;bottom:8px;height:3px;border-radius:3px;background:var(--ph-gold);transform:scaleX(0);transition:transform .25s}
.main-header-menu>.menu-item:hover>.menu-link,.main-header-menu>.menu-item:focus-within>.menu-link,.main-header-menu>.menu-item.current-menu-item>.menu-link,.main-header-menu>.menu-item.current-menu-ancestor>.menu-link{color:var(--ph-blue)}
.main-header-menu>.menu-item:hover>.menu-link::after,.main-header-menu>.menu-item:focus-within>.menu-link::after,.main-header-menu>.menu-item.current-menu-item>.menu-link::after,.main-header-menu>.menu-item.current-menu-ancestor>.menu-link::after{transform:scaleX(1)}
.main-header-menu .menu-link:focus-visible{outline:3px solid var(--ph-blue);outline-offset:-3px;border-radius:8px}
.main-header-menu .ast-arrow-svg,.main-header-menu .dropdown-menu-toggle .icon-arrow{width:10px;height:10px;margin-inline-start:6px;opacity:.7}
/* القوائم المنسدلة — سطح المكتب */
@media (min-width:922px){
  .ast-desktop .main-header-menu .sub-menu{position:absolute;z-index:100000;left:auto!important;right:0!important;min-width:240px;width:max-content;max-width:340px;margin:0;padding:10px 0;background:#fff;border:1.5px solid var(--ph-line);border-top:4px solid var(--ph-gold);border-radius:0 0 14px 14px;box-shadow:0 24px 48px -24px rgba(8,18,58,.4);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s}
  .ast-desktop .main-header-menu .menu-item:hover>.sub-menu,.ast-desktop .main-header-menu .menu-item:focus-within>.sub-menu,.ast-desktop .main-header-menu .menu-item.ast-menu-hover>.sub-menu{opacity:1;visibility:visible;transform:none}
  .ast-desktop .main-header-menu .sub-menu .sub-menu{right:100%!important;top:-10px}
  .ast-desktop .main-header-menu .sub-menu li{width:100%;margin:0;padding:0}
  .ast-desktop .main-header-menu .sub-menu .menu-link{display:flex;align-items:center;gap:10px;width:100%;padding:10px 20px;border-inline-start:4px solid transparent;font-family:var(--f-ui)!important;font-size:.98rem;font-weight:600;color:var(--ph-navy);text-align:start;transition:background-color .2s,color .2s,border-color .2s}
  .ast-desktop .main-header-menu .sub-menu .menu-link:hover,.ast-desktop .main-header-menu .sub-menu .menu-link:focus-visible{background:var(--ph-mist);color:var(--ph-blue);border-inline-start-color:var(--ph-gold)}
  .ast-desktop .main-header-menu .sub-menu .current-menu-item>.menu-link{color:var(--ph-blue);background:var(--ph-mist)}
  /* القائمة الكبيرة */
  .ast-desktop .main-header-menu .ph-mega>.sub-menu{display:grid;grid-template-columns:repeat(2,minmax(230px,1fr));gap:0 12px;width:min(640px,92vw);max-width:none;padding:18px 14px}
  .ast-desktop .main-header-menu .ph-mega>.sub-menu>.menu-item>.menu-link{font-family:var(--f-display)!important;font-size:1.2rem;font-weight:700;color:var(--ph-blue);padding:6px 14px 8px;margin-bottom:6px;border:0;border-bottom:2px solid var(--ph-line);background:none}
  .ast-desktop .main-header-menu .ph-mega>.sub-menu>.menu-item.ph-col>.menu-link{pointer-events:none;cursor:default}
  .ast-desktop .main-header-menu .ph-mega>.sub-menu>.menu-item>.menu-link .ast-arrow-svg,.ast-desktop .main-header-menu .ph-mega>.sub-menu>.menu-item>.ast-menu-toggle,.ast-desktop .main-header-menu .ph-mega>.sub-menu>.menu-item>.menu-link .dropdown-menu-toggle{display:none}
  .ast-desktop .main-header-menu .ph-mega>.sub-menu>.menu-item>.sub-menu{position:static;display:block;opacity:1;visibility:visible;transform:none;min-width:0;width:auto;max-width:none;padding:0;border:0;box-shadow:none;background:none}
}
/* شارة «قريبًا» */
.main-header-menu .ph-soon>.menu-link::after{content:"قريبًا";margin-inline-start:auto;padding:0 10px;border-radius:99px;background:var(--ph-gold);color:var(--ph-navy);font-size:.78rem;font-weight:700;line-height:1.7;position:static;height:auto;transform:none}
/* الهاتف: قائمة تنزلق للأسفل */
@media (max-width:921px){
  .main-header-menu .menu-link{display:flex;align-items:center;min-height:48px;font-family:var(--f-ui)!important;font-size:1.05rem;font-weight:700;color:var(--ph-navy);text-align:start}
  .main-header-menu .sub-menu{position:static!important;float:none;width:100%;margin:0;padding:0;background:var(--ph-mist);border:0;border-inline-start:3px solid var(--ph-gold);box-shadow:none;opacity:1;visibility:visible;transform:none;display:none}
  .ast-submenu-expanded>.sub-menu,.menu-item-has-children.ast-submenu-expanded>.sub-menu{display:block!important}
  .main-header-menu .sub-menu .menu-link{padding-inline:24px 16px;font-weight:600;font-size:1rem}
  .main-header-menu .ph-mega>.sub-menu>.menu-item>.menu-link{font-family:var(--f-display)!important;color:var(--ph-blue);font-size:1.15rem}
  .ast-header-break-point .ast-submenu-toggle{display:inline-block!important;visibility:visible!important;opacity:1!important}
  .ast-mobile-menu-buttons .menu-toggle{min-width:44px;min-height:44px;border-radius:12px;color:var(--ph-navy)}
}

/* ============================================================
   COMPLIANZ BANNER - MASTER Z-INDEX OVERRIDE & Box Shadow 
   ============================================================ */
#cmplz-cookiebanner-container,
.cmplz-cookiebanner {
    z-index: 999999 !important; /* Defeats the 100000 menu and 99999 header */
    position: fixed !important; /* Ensures it locks to the viewport, not the document */
}

/* Ensure the dark overlay background (if enabled) also covers the header */
#cmplz-document,
.cmplz-document {
    z-index: 999998 !important; 
}

/* --- Complianz Soft Wall: Glassmorphism Design --- */

/* The Wall Overlay */
.cmplz-cookiebanner.cmplz-bottom-right, 
.cmplz-cookiebanner.cmplz-center {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(21, 65, 147, 0.15) !important; /* Soft Blue Shadow */
    border-radius: 12px !important;
    padding: 30px !important;
}

/* Close Button Styling */
.cmplz-cookiebanner .cmplz-close {
    color: var(--primary-teal) !important;
    transition: transform 0.2s ease;
}

.cmplz-cookiebanner .cmplz-close:hover {
    transform: scale(1.2);
}

/* Soft Wall Backdrop (The actual 'Wall' effect) */
.cmplz-backdrop {
    background-color: rgba(8, 18, 58, 0.4) !important; /* Semi-transparent Blue */
    backdrop-filter: blur(2px);
}

/* Button Alignment (Blue/Red/Gold Theme) */
.cmplz-cookiebanner .cmplz-btn {
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0;
}

.cmplz-cookiebanner .cmplz-btn-accept {
    background-color: var(--primary-teal) !important;
    color: white !important;
}

.cmplz-cookiebanner .cmplz-btn-deny {
    background-color: transparent !important;
    color: var(--primary-teal) !important;
    border: 1px solid var(--primary-teal) !important;
}

/* ============================================================
   NAVIGATION — SITE HEADER BAR & BELOW-HEADER BAR
   شريط الرأس الأبيض، وتحته الشريط الذهبي الكريمي: عبارة القيمة
   + أيقونة البحث + زر «ابدأ مجانًا» الذهبي (كلاس ph-btn-gold متاح لأي زر).
   ============================================================ */
.site-header,.main-header-bar{z-index:99999;border-bottom:1px solid var(--ph-gold)}
.main-header-bar.ast-header-breadcrumb{z-index:9999}
.ast-below-header-bar,.ast-below-header-wrap .ast-below-header-bar{background:#fdf3d6;border-bottom:1px solid var(--ph-gold);padding-block:6px}
.ast-below-header-bar .ast-builder-grid-row{align-items:center;gap:8px 16px}
.ast-below-header-bar :is(p,span,.ast-builder-html-element){margin:0;font-family:var(--f-ui)!important;font-size:clamp(.82rem,.7rem + .5vw,.98rem);font-weight:700;line-height:1.6;color:var(--ph-navy);text-align:start;text-transform:none}
.ast-below-header-bar .ast-search-icon,.ast-below-header-bar .ast-header-search .ast-search-icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--ph-navy);transition:background-color .2s,color .2s}
.ast-below-header-bar .ast-search-icon:hover{background:rgba(8,18,58,.08);color:var(--ph-blue)}
.ast-below-header-bar .astra-search-icon{font-size:1.15rem}
.ast-search-menu-icon .search-field{min-height:44px;padding-inline:1rem;border:1.5px solid var(--ph-line);border-radius:99px;background:#fff;color:var(--ph-navy);font-family:var(--f-ui)}
.ast-header-button-1 .ast-custom-button,.ast-builder-button-wrap .ast-custom-button,.ph-cta>.menu-link,.ph-btn-gold{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 22px;border:2px solid var(--ph-gold)!important;border-radius:12px!important;background:var(--ph-gold)!important;color:var(--ph-navy)!important;font-family:var(--f-ui)!important;font-size:1rem;font-weight:700;line-height:1.3;text-decoration:none;box-shadow:0 8px 18px -10px rgba(8,18,58,.45);transition:background-color .2s,transform .2s,box-shadow .2s}
.ast-header-button-1 .ast-custom-button:hover,.ast-builder-button-wrap .ast-custom-button:hover,.ph-cta>.menu-link:hover,.ph-btn-gold:hover{background:var(--ph-gold-lt)!important;border-color:var(--ph-gold-lt)!important;transform:translateY(-1px);box-shadow:0 12px 22px -12px rgba(8,18,58,.55)}
.ast-header-button-1 .ast-custom-button:focus-visible,.ph-btn-gold:focus-visible{outline:3px solid var(--ph-navy);outline-offset:2px}
@media (max-width:768px){
  .ast-below-header-bar{padding-block:8px}
  .ast-below-header-bar .ast-builder-grid-row{display:flex;flex-wrap:wrap;justify-content:space-between}
  .ast-below-header-bar .ast-builder-html-element{flex:1 1 100%}
  .ast-header-button-1 .ast-custom-button{min-height:40px;padding:6px 18px;font-size:.95rem}
}

/* ============================================================
   NAVIGATION — RANK MATH BREADCRUMB
   Styles the breadcrumb trail rendered by Rank Math SEO.
   Applies a soft blue-tint container, gold separator/border,
   blue link colour with gold hover, and stacks the "current
   page" label on its own line on mobile for readability.
   ============================================================ */
/* Breadcrumb */
/* Container Styling */
.rank-math-breadcrumb {
    background-color: #edf3fc; /* Soft Blue Light Tint */
    padding: 12px 25px;
    border-bottom: 2px solid var(--gold-light); /* The Gold Borderline */
    font-family: var(--f-ui);
    letter-spacing: 0;
    margin-bottom: 20px;
}

/* Paragraph spacing reset */
.rank-math-breadcrumb p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--teal-dark); /* Deep Blue Dark */
    line-height: 1.5;
}

/* Link Styling (The Journey) */
.rank-math-breadcrumb a {
    color: #1D55C0; /* Blue Primary */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rank-math-breadcrumb a:hover {
    color: var(--phy-red); /* Transitions to Red on Hover */
    text-decoration: underline;
}

/* Separator Styling */
.rank-math-breadcrumb .separator {
    margin: 0 10px;
    color: var(--gold-light); /* Gold Separators */
    font-weight: bold;
    opacity: 0.8;
}

/* The "Last" Element (The Current Destination) */
.rank-math-breadcrumb .last {
    color: #555; /* Neutral Dark Grey for readability */
    font-style: normal;
    font-weight: 400;
    display: inline; /* Keeps it in line with the path */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rank-math-breadcrumb {
        padding: 10px 15px;
    }
    .rank-math-breadcrumb .last {
        display: block; /* Stacks the long title on mobile for clarity */
        margin-top: 5px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   TYPOGRAPHY — ENTRY CONTENT HEADINGS (H2 / H3)
   Overrides Astra's default heading styles for content-area h2
   and h3 elements. H2 uses Cairo with a gold bottom
   border. H3 inherits but receives top padding for breathing
   room above sub-sections.
   ============================================================ */
/* Entry Headers */
.entry-content h2:not(.phx *) {
    font-family: var(--f-body);
    font-weight: 400;
    line-height: 1.41;
    letter-spacing: 0;
  /*  font-style: italic; */
    border-bottom: 2px solid var(--gold);
    padding-top: 1rem;
    padding-bottom: .825rem;
}

.entry-content h3:not(.phx *) {
    padding-top: 1rem;
}

/* ============================================================
   LAYOUT — SITE HEADER FOCUS ITEM & SINGLE POST OVERRIDES
   Forces the Astra primary header bar items onto a clean white
   surface with a subtle shadow. Also resets padding on the
   article that follows a single post featured image section,
   and re-establishes the post/page card appearance (duplicate
   block preserved from original).
   ============================================================ */
.ast-primary-header-bar .ast-primary-header .main-header-bar .site-header-focus-item {
    position: relative;
    z-index: 99;
    background: #fafbff;
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.ast-single-post-featured-section+article {
    padding: 0px !important;
}

/* ============================================================
   COMPONENTS — GLOBAL BUTTON BASE STYLES
   Defines the default pill-shaped, uppercase button style used
   across the site. Background uses the blue-to-teal-hover
   gradient. Applied to native HTML button elements, input
   submits, and .button class links.
   ============================================================ */
button, .button, input[type=button], input[type=reset], input[type=submit] {
    font-weight: 600;
    line-height: 48px;
    display: inline-block;
    padding: 0 1.5em;
    cursor: pointer;
    -webkit-transition: .2s all ease-in-out;
    transition: .2s all ease-in-out;
    text-decoration: none !important;
    text-transform: uppercase;
    color: #ffffff;
    border: 0;
    border-radius: 40px;
    background: linear-gradient(180deg,var(--teal),var(--teal-hover));
    background-repeat: no-repeat;
    font-size: 16px;
    font-size: 1rem;
}


/* ============================================================
   LAYOUT — HEADER BREADCRUMB BAR & MAIN CONTENT BOX-SHADOW
   Applies a light blue-grey background and a subtle shadow to
   the Astra breadcrumb header bar, and a matching shadow to the
   #main content wrapper for consistent depth layering.
   ============================================================ */
 .ast-header-breadcrumb {
    background-color: #d9e2ec;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
}
#main {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
}

/* ============================================================
   TYPOGRAPHY — POST / PAGE ENTRY TITLE (H1)
   Styles the main article title (.entry-title) and the
   equivalent Gutenberg h1 block (.wp-block-heading h1) with a
   deep blue background banner, white text, gold bottom border,
   and Georgia serif — the authoritative "title bar" look.
   ============================================================ */
h1.entry-title,
h1.wp-block-heading {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 2.125rem;
    line-height: 1.12;
    letter-spacing: 0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
    background-color: var(--teal);
    color: #ffffff;
    padding: 20px;
    border-bottom: 2px solid var(--gold);
}

/* ============================================================
   TYPOGRAPHY — ASTRA HEADER HTML ELEMENT (UTILITY BAR TEXT)
   Sets the font and tracking for any free HTML element placed
   inside Astra's header builder (e.g. phone numbers, taglines).
   ============================================================ */
.ast-header-html-1 .ast-builder-html-element {
  font-family: var(--f-ui) !important;
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* ============================================================
   TYPOGRAPHY — GENERIC GUTENBERG BLOCK HEADINGS (H2–H6)
   Base treatment for all .wp-block-heading elements that do NOT
   carry a specific heading level or alignment class. Applies the
   light blue-grey card surface with a faint gold bottom border,
   consistent padding, and a subtle shadow. Level-specific and
   alignment-specific rules further below take precedence.
   ============================================================ */
 .wp-block-heading {
     border-bottom: 2px solid rgba(245,179,1,0.20);
     background-color: #d9e2ec;
     box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
     padding: 20px;
     margin-bottom: 10px;
}

/* ============================================================
   PHY HEADING SYSTEM — GUTENBERG BLOCK HEADINGS (H2 – H6)
   A comprehensive, six-level decorative heading system for
   post content. Each level uses a distinct locally-hosted font,
   background treatment, border pattern, and ::before icon so
   that heading hierarchy is visually unambiguous at a glance.

   H2 — Amiri Bold · dark blue gradient card · gold diamond icon
   H3 — Amiri · frosted card · split blue/gold pillar
   H4 — Cairo · white card · blue top stripe · triangle icon
   H5 — Cairo · warm cream · gold double-rule
   H6 — Cairo SemiBold · minimal chip · blue left thread

   All fonts are served locally — no Google Fonts imports needed.
   Responsive adjustments are grouped at the bottom of this block.
   ============================================================ */
/* ================================================================
   PHY HEADING SYSTEM — Custom Post Headings
   Fonts: Amiri · Cairo
          Amiri · Cairo
   All fonts served locally — no imports needed.
   ================================================================ */


/* ── H2 — MAJOR SECTION MARKER ───────────────────────────────────────
   Font: Amiri Bold — عربية كلاسيكية رصينة
   Treatment: Deep blue card with animated gold bottom border +
              floating diamond icon. The headline of headlines.
   ──────────────────────────────────────────────────────────────────── */
h2.wp-block-heading {
  font-family: var(--f-display) !important;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;

  /* Layered blue-to-light gradient */
  background:
    radial-gradient(ellipse at 0% 50%, rgba(21,65,147,0.09) 0%, transparent 60%),
    linear-gradient(135deg, #eaf1fc 0%, #f5f8fe 55%, #fffcf2 100%);

  color: #08225F;
  border: 1px solid rgba(245,179,1,0.22);
  border-bottom: 4px solid #F5B301;
  border-left: none;
  padding: 22px 26px 20px 20px;
  margin: 32px 0 18px;
  border-radius: 10px;
  box-shadow:
    0 6px 24px rgba(21,65,147,0.07),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal texture inside */
h2.wp-block-heading::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(21,65,147,0.018) 18px,
    rgba(21,65,147,0.018) 19px
  );
  pointer-events: none;
  border-radius: inherit;
}

/* Rotating gold diamond */
h2.wp-block-heading::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 14px;
  margin-bottom: 2px;
  vertical-align: middle;
  background: linear-gradient(135deg, #F5B301, var(--gold-light));
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(245,179,1,0.4);
  flex-shrink: 0;
}


/* ── H3 — SUB-SECTION DIVIDER ────────────────────────────────────────
   Font: Amiri — عنوان محرري دافئ
   Treatment: Frosted white card, strong left blue pillar with
              gold gradient, soft bottom shadow line.
   ──────────────────────────────────────────────────────────────────── */
h3.wp-block-heading {
  font-family: var(--f-display) !important;
  font-weight: 700;
  font-size: clamp(1.22rem, 2.6vw, 1.52rem) !important;
  line-height: 1.22;
  letter-spacing: 0;

  background: linear-gradient(0deg, rgba(21,65,147,0.04) 0%, #f7f9fe 100%) !important;
  color: var(--text) !important;

  /* Left pillar: two-tone — blue top, gold bottom */
  border-left: 5px solid transparent;
  border-image: linear-gradient(to bottom, var(--teal-dark) 30%, #F5B301 100%) 1;
  border-bottom: 1px solid rgba(245,179,1,0.18);
  border-right: none;
  border-top: none;

  padding: 17px 22px 17px 20px;
  margin: 28px 0 14px;
  border-radius: 0 10px 10px 0;
  box-shadow:
    0 4px 16px rgba(21,65,147,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
  position: relative;
}

/* Round dot icon */
h3.wp-block-heading::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 13px;
  margin-bottom: 1px;
  vertical-align: middle;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(21,65,147,0.12);
  flex-shrink: 0;
}


/* ── H4 — TOPIC HEADING ──────────────────────────────────────────────
   Font: Cairo Bold — واضح ومقروء
   Treatment: Clean white card, blue top stripe, gold left inset shadow
   ──────────────────────────────────────────────────────────────────── */
h4.wp-block-heading {
  font-family: var(--f-display) !important;
  font-weight: 700;
  font-size: clamp(1.12rem, 2.3vw, 1.35rem) !important;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;

  background: #ffffff;
  color: #0f1f4d;

  border-top: 3px solid var(--teal-dark);
  border-bottom: 1px solid rgba(245,179,1,0.15);
  border-left: 1px solid rgba(245,179,1,0.15);
  border-right: 1px solid rgba(245,179,1,0.15);

  padding: 15px 20px 15px 18px;
  margin: 24px 0 12px;
  border-radius: 0 0 8px 8px;
  box-shadow:
    0 6px 20px rgba(21,65,147,0.055),
    -3px 0 0 rgba(245,179,1,0.25);
}

/* Upward triangle icon */
h4.wp-block-heading::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 11px;
  margin-bottom: 1px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--phy-red);
  flex-shrink: 0;
}


/* ── H5 — DETAIL HEADING ─────────────────────────────────────────────
   Font: Cairo SemiBold — واضح ومتين
   Treatment: Warm cream background, gold double-rule underline,
              with a small filled circle icon in blue.
   ──────────────────────────────────────────────────────────────────── */
h5.wp-block-heading {
  font-family: var(--f-display) !important;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem) !important;
  line-height: 1.3;
  letter-spacing: 0;

  background: linear-gradient(0deg, #fffdf5 0%, #fffaeb 100%);
  color: #16224a;

  border-bottom: 3px double rgba(245,179,1,0.35);
  border-left: none;
  border-right: none;
  border-top: none;

  padding: 13px 16px 12px;
  margin: 20px 0 10px;
  border-radius: 6px;
  box-shadow:
    0 2px 10px rgba(21,65,147,0.05),
    inset 0 0 0 1px rgba(245,179,1,0.1);
  position: relative;
}

/* Filled lozenge icon */
h5.wp-block-heading::before {
  content: "◆";
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  font-size: 0.45em;
  color: var(--gold);
  line-height: 1;
  transform: translateY(-1px);
}


/* ── H6 — LABEL / NOTE HEADING ───────────────────────────────────────
   Font: Cairo SemiBold — عملي وحديث
   Treatment: Minimal chip with blue left thread and soft grey surface.
              The "footnote" level — reads like a label.
   ──────────────────────────────────────────────────────────────────── */
h6.wp-block-heading {
  font-family: var(--f-ui) !important;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem) !important;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;

  background: rgba(21,65,147,0.04);
  color: #2b3f70;

  border-left: 3px solid rgba(21,65,147,0.25);
  border-bottom: none;
  border-top: none;
  border-right: none;

  padding: 9px 14px 9px 13px;
  margin: 16px 0 8px;
  border-radius: 0 6px 6px 0;
}

/* Dash icon */
h6.wp-block-heading::before {
  content: "—";
  display: inline-block;
  margin-right: 9px;
  color: rgba(21,65,147,0.45);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 0.9em;
}


/* ── RESPONSIVE ──────────────────────────────────────────────────────
   Mobile: tighten padding, reduce decorative icon sizes
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  h2.wp-block-heading {
    padding: 16px 16px 14px 14px;
    margin: 24px 0 14px;
    font-size: 1.2rem;
    letter-spacing: 0;
  }
  h2.wp-block-heading::before {
    width: 7px; height: 7px;
    margin-right: 10px;
  }

  h3.wp-block-heading {
    padding: 14px 16px 14px 16px;
    margin: 22px 0 12px;
  }
  h3.wp-block-heading::before {
    width: 7px; height: 7px;
    margin-right: 10px;
  }

  h4.wp-block-heading {
    padding: 12px 14px;
    margin: 18px 0 10px;
  }

  h5.wp-block-heading {
    padding: 11px 12px;
    margin: 16px 0 8px;
  }

  h6.wp-block-heading {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  h2.wp-block-heading { padding: 13px 12px 12px; }
  h3.wp-block-heading { padding: 12px 12px 12px 14px; }
  h4.wp-block-heading,
  h5.wp-block-heading { padding: 10px 12px; }
}

/* ============================================================
   TYPOGRAPHY — ENTRY CONTENT LINK STYLES
  Global (all pages):
     Blue colour + animated blue-to-gold underline bar that
     scales in from the left on hover/focus. Structural,
     button, phy-component, and media links are excluded from
     the animation via an explicit exclusion block.
   ============================================================ */
/* Smooth underline animation for all .entry-content links (hover + animated bar).
 * Restored to original scope — all pages with .entry-content get the hover effect.
 * Only the border-bottom is scoped to single posts (body.single) below. */
.entry-content a:not(.phx *) {
  position: relative;
  color: var(--teal);
  text-decoration: none;
  transition: color .16s ease;
}

/* Animated underline bar on hover — all pages */
.entry-content a:not(.phx *)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--teal), var(--phy-red), var(--gold));
  transition: transform .18s ease;
}

.entry-content a:not(.phx *):hover,
.entry-content a:not(.phx *):focus {
  color: var(--phy-red);
}
.entry-content a:not(.phx *):hover::after,
.entry-content a:not(.phx *):focus::after {
  transform: scaleX(1);
}

/* Exclude buttons and PHY component links from hover animation — all pages */
.entry-content .wp-block-button a,
.entry-content .wp-block-button a::after,
.entry-content a:not(.phx *).btn,
.entry-content a:not(.phx *).btn::after,
.entry-content .uagb-button__link,
.entry-content .uagb-button__link::after,
.entry-content .phy-sync-btn-outline a,
.entry-content .phy-sync-btn-outline a::after {
  border-bottom: none;
}

/* ============================================================
   LAYOUT — SIDEBAR & WIDGET AREA
   Applies a consistent box-shadow to the sidebar column and
   adds padding to every .widget_block within it, keeping
   widget content visually separate from the surface edges.
   Widget titles receive the same blue-grey card treatment
   used on generic block headings for visual unity.
   ============================================================ */
 .sidebar-main {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
}
 .widget_block {
   padding: 20px !important;
} 
 .widget-title {
     background-color: #d9e2ec;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
    padding:20px;
    margin-bottom: 10px;
}

/* ============================================================
   TYPOGRAPHY — CENTRED H2 BLOCK HEADING (DARK BANNER VARIANT)
   Targets h2 headings that have been centre-aligned in the
   Gutenberg editor. Replaces the default blue-gradient card
   with a near-black dark banner (matching the footer aesthetic),
   white text, a gold diamond ::before icon, and a subtle faint
   gold bottom border — used for section dividers on dark-bg
   pages and within membership/landing page layouts.
   ============================================================ */
h2.wp-block-heading.has-text-align-center {
  font-family: var(--f-body);
  background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%); 
  background-color: #060606;
  padding:20px;
  margin-bottom: 10px;
 /* margin-right: -20px !important; */
 /* margin-left: -20px !important; */
  color: var(--footer-text);
  border-bottom: 2px solid rgba(245,179,1,0.20);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
  border-radius: 8px;
  background-size: cover;
}
h2.wp-block-heading.has-text-align-center::before {
    content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--heading-gold-gradient);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(245,179,1,0.12);
}

/* ============================================================
   TYPOGRAPHY — CENTRED H3 BLOCK HEADING (BLUE BANNER VARIANT)
   Targets h3 headings that have been centre-aligned in the
   editor. Applies a solid blue background with white text and
   a faint gold bottom border — a lighter authority level than
   the dark h2 banner above.
   ============================================================ */
h3.wp-block-heading.has-text-align-center {
   font-family: var(--f-body);
   box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
   background: var(--teal) !important;   
   color: #ffffff !important;
   border-bottom: 2px solid rgba(245,179,1,0.20);
   padding:20px;
   margin-bottom: 10px;
}

/* ============================================================
   TYPOGRAPHY — CENTRED H4 BLOCK HEADING (DIVIDER LINE VARIANT)
   Targets h4 headings that have been centre-aligned. Renders as
   an uppercase gold text label flanked by left/right fading gold
   lines (via flex + ::before/::after pseudo-elements) — used as
   decorative section dividers within post content or landing
   page builder layouts.
   ============================================================ */
/* PHY SOVEREIGN H4 STYLING */

/* 1. The Text Container */
h4.wp-block-heading.has-text-align-center {
    display: flex;           /* Enables the lines on the sides */
    align-items: center;     /* Vertically centers the lines */
    justify-content: center;
    text-align: center;
    
    /* Typography */
    color: var(--gold-light) !important; /* PHY Gold */
    font-family: inherit;      /* Keeps your site font */
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0;       /* Wide, authoritative spacing */
    font-size: 1.1rem !important; /* Compact but readable */
    line-height: 1.4;
    
    /* Spacing */
    margin-top: 50px !important;
    margin-bottom: 30px !important;
    padding: 0 10px;
    
    /* Glow Effect */
    text-shadow: 0 0 15px rgba(245, 184, 0, 0.3);
}

/* 2. The Left Line (Fading In) */
h4.wp-block-heading.has-text-align-center::before {
    content: '';
    flex: 1;                 /* Takes up available space */
    height: 1px;             /* Thin elegant line */
    background: linear-gradient(90deg, transparent, var(--gold-light)); /* Fade in from transparent to gold */
    margin-right: 20px;      /* Space between line and text */
    opacity: 0.6;
}

/* 3. The Right Line (Fading Out) */
h4.wp-block-heading.has-text-align-center::after {
    content: '';
    flex: 1;                 /* Takes up available space */
    height: 1px;
    background: linear-gradient(90deg, var(--gold-light), transparent); /* Fade out from gold to transparent */
    margin-left: 20px;       /* Space between text and line */
    opacity: 0.6;
}

/* 4. Mobile Adjustment */
@media (max-width: 600px) {
    h4.wp-block-heading.has-text-align-center {
        font-size: 0.9rem !important;
        letter-spacing: 0;
    }
    h4.wp-block-heading.has-text-align-center::before,
    h4.wp-block-heading.has-text-align-center::after {
        margin: 0 10px; /* Tighter spacing on mobile */
    }
}

/* ============================================================
   UTILITIES — DECORATIVE DIVIDERS & PULL-QUOTE THREAD
   .phy-gold-divider: a 1 px hairline with a gold centre fade —
     used as a thematic section separator.
   .steel-thread: a gold left-border pull-quote / aside style
     with blue italic text.
   ============================================================ */
.phy-gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #F5B301, transparent);
    margin: 2rem 0;
}
.steel-thread {
    border-left: 3px solid #F5B301;
    padding-left: 15px;
    font-style: normal;
    color: var(--teal-dark);
}

/* ============================================================
   THIRD-PARTY INTEGRATION — JETPACK SEARCH FORM
   Adds a small bottom margin to the Jetpack search form widget
   so it doesn't sit flush against the next sidebar widget.
   ============================================================ */
.jetpack-search-form {
    margin-bottom: 10px;
}

/* ============================================================
   COMPONENTS — LEGACY READ MORE LINK (NON-ASTRA CONTEXTS)
   Basic blue pill styling for .read-more-link / .ast-read-more
   anchors rendered outside of the Astra blog grid context.
   ============================================================ */
.read-more-link .ast-read-more-container .read-more { 
    background-color: var(--teal); /* Button background color */
    color: #ffffff; /* Button text color */
    padding: 10px 20px; /* Padding inside the button */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Ensure it behaves like a block element */
}

/* ============================================================
   THIRD-PARTY INTEGRATION — SPECTRA (UAGB) IMAGE BLOCK
   Adds a standard box-shadow and bottom margin to Spectra image
   blocks to visually separate them from surrounding content.
   ============================================================ */
.wp-block-uagb-image {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(229, 229, 229, .004);
    margin-bottom: 20px;
}

/* ============================================================
   LAYOUT — GLOBAL PROSE PADDING
   Adds consistent left/right padding to paragraphs, unordered/
   ordered lists, the Rank Math FAQ block, and footnotes so that
   body text is never flush with its card container edges.
   ============================================================ */
p {
    padding-left: 25px;
    padding-right: 20px;
}
.wp-block-list {
    padding-left: 45px;
    padding-right: 20px;
}
#rank-math-faq {
    padding-left: 25px;
    padding-right: 20px;
}

/* =============================================================================
   GUEST GATE — Login prompt shown to unauthenticated users
   Uses existing .phy-protocol-card structure from phy-post.css.
   The phy-guest-gate class provides the text-alignment override only —
   no new structural CSS is introduced that could affect cached pages.
   ============================================================================= */

.phy-guest-gate {
  text-align: center;
  padding: 2rem 1rem;
}

.phy-guest-gate .phy-protocol-title {
  margin-bottom: 0.5rem;
}

.phy-guest-gate .phy-step-text {
  margin-bottom: 1.5rem;
}


/* ============================================================
   LAYOUT — SPECIFIC PAGE OVERRIDES (FRONT PAGE & DASHBOARD)
   Removes all margin and padding from the two specific post
   containers used for the front page (post-776) and the member
   account dashboard page (post-5813) to allow their inner
   blocks to control spacing with full precision.
   ============================================================ */
/* Front Page & Account Dashboard */
.post-776 {
    margin: 0px !important;
    padding: 0px !important;
}
.post-5813 {
    margin: 0px !important;
    padding: 0px !important;
}

/* ============================================================
   COMPONENTS — GUTENBERG BUTTON & FILE BLOCKS
   Overrides Astra's default line-height on Gutenberg button
   blocks and the native file download button so their text
   is vertically centred using relative units rather than
   the large fixed 48 px line-height set in the button base.
   ============================================================ */
/* WP Butons */
.wp-block-button .wp-block-button__link, .wp-block-search .wp-block-search__button, body .wp-block-file .wp-block-file__button {
    line-height: 1.5em !important;
}

/* ============================================================
   LAYOUT — FOOTER WIDGET AREA
   كان هنا هامش سالب يرفع التذييل ويقصّ أسفله؛ استُبدل بتصفير الهوامش والحشو
   (راجع قسم FOOTER RESET في نهاية الملف).
   ============================================================ */
/* Footer */
.footer-widget-area[data-section="sidebar-widgets-footer-widget-2"] { margin: 0 !important; padding: 0 !important; }

.site-below-footer-wrap[data-section="section-below-footer-builder"] { background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%) !important;
}
/* ============================================================
   LAYOUT — ABOVE-FOOTER BUILDER SECTION BACKGROUND
   Forces the Astra "above footer" section builder row to use
   the site's dark footer gradient, matching the footer bar
   that follows it for a seamless dark panel transition.
   ============================================================ */
.site-above-footer-wrap[data-section="section-above-footer-builder"] 
{
  background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%) !important;
  background-color: var(--footer-bg) !important;
}

/* ============================================================
   LAYOUT — WIDGET #block-8 MARGIN / PADDING RESET
   Applies a nuclear reset to a specific widget block (#block-8)
   that was generating excess spacing. Targets the block and all
   its inner wrappers, headings, and paragraphs, and also handles
   the Astra-specific widget margin added on separate container
   layouts.
   ============================================================ */
/* NUCLEAR OPTION: Force #block-8 to absolute zero */

/* 1. Target the main container and all its aliases */
#block-8,
.widget#block-8,
div#block-8,
aside#block-8 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* 2. Target the inner section/content directly */
#block-8 > section,
#block-8 > div,
#block-8 .widget-wrap,
#block-8 .wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Kill margins on any heading or paragraph inside it */
#block-8 h1, #block-8 h2, #block-8 h3, #block-8 h4, 
#block-8 p, #block-8 ul, #block-8 li {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* 4. ASTRA SPECIFIC: Remove the bottom margin Astra puts on widgets */
.ast-separate-container .ast-article-single .widget-area .widget#block-8,
.ast-separate-container .ast-archive-description .widget#block-8 {
    margin-bottom: 0 !important;
}

/* 5. If it's inside a flex container (Gutenberg), remove the gap */
#block-8 {
    display: block !important; /* Prevents flex gap issues */
}

/* ============================================================
   LAYOUT — FOOTER NAVIGATION & BLOCK-69 PADDING
   Sets the footer navigation wrapper to max-content width so
   it doesn't stretch unnecessarily across the dark footer bar.
   Adds horizontal padding to #block-69 (a specific footer
   widget) to keep its content away from the container edges.
   ============================================================ */
.footer-bar-navigation {
    width: max-content;
}

#block-11 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* ============================================================
   COMPONENTS — SITE FOOTER & BELOW-FOOTER BAR
   Applies the dark blue gradient background, white footer text,
   gold top border, and rounded card treatment to both the main
   .site-footer and the .site-below-footer bar. Also sets all
   footer and footer-navigation link colours: blue-light default,
   gold on hover, using separate :link/:visited/:hover rules for
   maximum cross-browser consistency.
   ============================================================ */
.site-footer {
  font-family: var(--f-body);
  background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%) !important; 
  background-color: var(--footer-bg) !important;
  color: var(--footer-text);
  border-top: 1px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
  transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
  border-radius: 8px;
  background-size: cover;
}
.site-below-footer {
  font-family: var(--f-body);
  background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%) !important;
  background-color: var(--footer-bg) !important;
  color: var(--footer-text);
}
.ast-footer-copyright a:link { color: var(--footer-link) !important; }
.ast-footer-copyright a:visited { color: var(--footer-link) !important; }
.ast-footer-copyright a:hover { color: var(--gold) !important; }
.footer-nav-wrap a:link { color: var(--footer-link) !important; }
.footer-nav-wrap a:visited { color: var(--footer-link) !important; }
.footer-nav-wrap a:hover { color: var(--gold) !important; }

    .phy-footer-cta {
        background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%) !important;
        background-color: #08123A !important;
        border-top: 3px solid var(--phy-gold); /* Top signature line */
        padding: 40px 20px !important;
        color: var(--phy-text-white);
        font-family: var(--f-ui);
      /*  margin-top: 50px;*/
    }

    .phy-footer-inner {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }

    .phy-footer-text {
        flex: 1;
    }

    .phy-footer-text h4 {
        font-family: var(--f-display);
        font-size: 1.6rem;
        margin: 0 0 10px 0;
        color: var(--phy-gold);
        letter-spacing: 0;
    }

    .phy-footer-text p {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        max-width: 600px;
    }

    .phy-footer-btns {
        display: flex;
        gap: 15px;
        flex-shrink: 0;
    }

    .footer-btn {
        padding: 14px 28px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 800;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        text-align: center;
        white-space: nowrap;
        display: inline-block;
    }

    /* patron Button */
    .f-btn-patron {
        border: 2px solid var(--phy-gold);
        color: var(--phy-gold);
        background: transparent;
    }

    .f-btn-patron:hover {
        background: var(--phy-gold);
        color: var(--phy-footer-bg) !important;
        transform: translateY(-2px);
    }

    /* Subscribe Button */
    .f-btn-sub {
        background: var(--phy-gold);
        color: var(--phy-footer-bg) !important;
        border: 2px solid var(--phy-gold);
        box-shadow: 0 4px 15px rgba(245, 179, 1, 0.2);
    }

    .f-btn-sub:hover {
        background: var(--phy-gold-bright);
        border-color: var(--phy-gold-bright);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(245, 179, 1, 0.3);
    }
    
    a.footer-btn.f-btn-patron {
    color: #ffffff;
    }

    /* Mobile View */
    @media (max-width: 900px) {
        .phy-footer-inner {
            flex-direction: column;
            text-align: center;
            gap: 30px;
        }
        .phy-footer-text p {
            margin: 0 auto;
        }
        .phy-footer-btns {
            width: 100%;
            flex-direction: column;
        }
        .footer-btn {
            width: 100%;
        }
    }


/* ============================================================
   Latest Footer Block
   ============================================================ */

/* ── RESET SCOPE ────────────────────────────────────────────────────── */
.phy-sv-ftr-container,
.phy-sv-ftr-container * { box-sizing: border-box !important; }

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────────────── */
.phy-sv-ftr-container {
  --phy-gold:       #F5B301;
  --phy-gold-lt:    #F4D06F;
  --phy-gold-dk:    #9C6F0B;
  --phy-teal:       #050B24;
  --phy-teal-md:    #0C1B52;
  --phy-white:      #F3F7FF;
  --phy-white-dim:  rgba(243,247,255,0.78);

  --f-display:  Amiri, 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --f-body:     Cairo, 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
  --f-serif:    Amiri, 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --f-mono:     Cairo, 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ── ROOT CONTAINER ─────────────────────────────────────────────────── */
.phy-sv-ftr-container {
  position: relative !important;
  background: linear-gradient(135deg, #0C1B52 0%, #050B24 100%) !important;
  color: var(--phy-white) !important;
  padding: 80px 24px 56px !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: block !important;
  isolation: isolate !important;
}

/* ── GRAIN TEXTURE ──────────────────────────────────────────────────── */
.phy-sv-ftr-container::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
  background-size: 200px 200px !important;
  pointer-events: none !important;
  z-index: 1 !important;
  mix-blend-mode: overlay !important;
}

/* ── ANIMATED TOP SEAL LINE ─────────────────────────────────────────── */
.phy-sv-ftr-container::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 5px !important;
  background: linear-gradient(90deg, transparent 0%, var(--phy-gold-dk) 8%, var(--phy-gold) 30%, var(--phy-gold-lt) 50%, var(--phy-gold) 70%, var(--phy-gold-dk) 92%, transparent 100%) !important;
  animation: phy-border-shimmer 6s ease-in-out infinite !important;
  z-index: 3 !important;
}

@keyframes phy-border-shimmer {
  0%,100% { box-shadow: 0 0 28px rgba(245,179,1,.55), 0 0 70px rgba(245,179,1,.15); opacity: 1; }
  50%      { box-shadow: 0 0 55px rgba(244,208,111,.75), 0 0 110px rgba(245,179,1,.28); opacity: .9; }
}

/* ══════════════════════════════════════════════════════════════════
   CSS STAR FIELD
══════════════════════════════════════════════════════════════════ */
.phy-sv-ftr-stars {
  position: absolute !important; inset: 0 !important;
  pointer-events: none !important; z-index: 0 !important; overflow: hidden !important;
}
.phy-sv-ftr-stars::before {
  content: '' !important; position: absolute !important;
  width: 2px !important; height: 2px !important; border-radius: 50% !important;
  background: transparent !important;
  box-shadow:
    120px 45px rgba(245,179,1,0.18), 230px 112px rgba(245,179,1,0.12),
    380px 28px rgba(243,247,255,0.08), 500px 95px rgba(245,179,1,0.15),
    640px 55px rgba(243,247,255,0.07), 780px 130px rgba(245,179,1,0.10),
    920px 40px rgba(243,247,255,0.09), 1060px 88px rgba(245,179,1,0.14),
    1200px 22px rgba(243,247,255,0.06), 75px 210px rgba(245,179,1,0.08),
    310px 180px rgba(243,247,255,0.10), 455px 250px rgba(245,179,1,0.12),
    600px 195px rgba(243,247,255,0.07), 750px 270px rgba(245,179,1,0.09),
    890px 230px rgba(243,247,255,0.08), 1050px 310px rgba(245,179,1,0.11),
    160px 380px rgba(243,247,255,0.06), 340px 420px rgba(245,179,1,0.08),
    520px 360px rgba(243,247,255,0.09), 700px 410px rgba(245,179,1,0.07),
    870px 390px rgba(243,247,255,0.10), 1100px 440px rgba(245,179,1,0.08),
    55px 520px rgba(243,247,255,0.07), 290px 560px rgba(245,179,1,0.09),
    480px 490px rgba(243,247,255,0.06), 660px 540px rgba(245,179,1,0.08),
    840px 510px rgba(243,247,255,0.07), 1020px 570px rgba(245,179,1,0.09) !important;
  animation: phy-stars-drift 90s linear infinite !important;
}
.phy-sv-ftr-stars::after {
  content: '' !important; position: absolute !important;
  width: 1px !important; height: 1px !important; border-radius: 50% !important;
  background: transparent !important;
  box-shadow:
    200px 60px rgba(244,208,111,0.20), 450px 35px rgba(244,208,111,0.15),
    690px 75px rgba(244,208,111,0.12), 900px 50px rgba(244,208,111,0.18),
    1150px 65px rgba(244,208,111,0.10), 180px 300px rgba(244,208,111,0.12),
    420px 330px rgba(244,208,111,0.08), 680px 290px rgba(244,208,111,0.14),
    950px 340px rgba(244,208,111,0.10), 1180px 310px rgba(244,208,111,0.09),
    100px 470px rgba(244,208,111,0.08), 360px 500px rgba(244,208,111,0.12),
    610px 455px rgba(244,208,111,0.07), 820px 485px rgba(244,208,111,0.10) !important;
  animation: phy-stars-drift 60s linear infinite reverse !important;
  opacity: 0.7 !important;
}
@keyframes phy-stars-drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* ── CSS WATERMARK ──────────────────────────────────────────────────── */
.phy-sv-ftr-bg-mark {
  position: absolute !important; inset: 0 !important;
  pointer-events: none !important; z-index: 0 !important; overflow: hidden !important;
}
.phy-sv-ftr-bg-mark::before {
  content: 'PHY' !important;
  font-family: var(--f-display) !important; font-weight: 900 !important;
  font-size: clamp(130px, 24vw, 300px) !important; letter-spacing: 0;
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(245,179,1,0.07) !important;
  text-stroke: 1px rgba(245,179,1,0.07) !important;
  background: linear-gradient(180deg, rgba(245,179,1,0.10) 0%, rgba(245,179,1,0.04) 55%, rgba(245,179,1,0.01) 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  position: absolute !important; top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  white-space: nowrap !important; user-select: none !important; line-height: 1 !important;
}
.phy-sv-ftr-bg-mark::after {
  content: 'Framework' !important;
  font-family: var(--f-body) !important; font-weight: 300 !important; font-style: normal !important;
  font-size: clamp(30px, 6vw, 78px) !important; letter-spacing: 0;
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(245,179,1,0.05) !important;
  position: absolute !important;
  top: calc(50% + clamp(65px, 12vw, 150px)) !important; left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important; user-select: none !important; text-transform: uppercase !important;
}

/* ── WATERMARK PRECISION — pinned to tagline ──────────────────────── */
.phy-sv-ftr-tagline-wrap { position: relative !important; display: block !important; z-index: 2 !important; }
.phy-sv-ftr-tagline-wrap .phy-sv-ftr-bg-mark {
  inset: unset !important; top: 50% !important; left: 50% !important;
  width: 0 !important; height: 0 !important; overflow: visible !important;
}
.phy-sv-ftr-tagline-wrap .phy-sv-ftr-bg-mark::before {
  top: 0 !important; left: 0 !important; transform: translate(-50%, -50%) !important;
}
.phy-sv-ftr-tagline-wrap .phy-sv-ftr-bg-mark::after {
  top: clamp(65px, 12vw, 150px) !important; left: 0 !important; transform: translateX(-50%) !important;
}

/* ── GEOMETRIC GRID OVERLAY ─────────────────────────────────────────── */
.phy-sv-ftr-grid-tex {
  position: absolute !important; inset: 0 !important; pointer-events: none !important; z-index: 0 !important;
  background-image: linear-gradient(rgba(245,179,1,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(245,179,1,0.028) 1px, transparent 1px) !important;
  background-size: 56px 56px !important;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 30%, transparent 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 30%, transparent 100%) !important;
}

/* ── ATMOSPHERIC GLOW ORBS ──────────────────────────────────────────── */
.phy-sv-ftr-glow-l {
  position: absolute !important; width: 560px !important; height: 560px !important;
  border-radius: 50% !important; pointer-events: none !important; z-index: 0 !important;
  background: radial-gradient(circle, rgba(245,179,1,0.065) 0%, transparent 68%) !important;
  top: -140px !important; left: -180px !important;
}
.phy-sv-ftr-glow-r {
  position: absolute !important; width: 560px !important; height: 560px !important;
  border-radius: 50% !important; pointer-events: none !important; z-index: 0 !important;
  background: radial-gradient(circle, rgba(43,95,194,0.10) 0%, transparent 68%) !important;
  bottom: -140px !important; right: -180px !important;
}

.phy-sv-ftr-inner { position: relative !important; z-index: 2 !important; }

/* ══════════════════════════════════════════════════════════════════
   ★ NEW: AURORA ROTATING BORDER WRAP
   Classic spinning-conic-gradient border technique:
   ::before = large rotating conic gradient (the "aurora")
   ::after  = dark inset mask leaving only a 2px ring visible
══════════════════════════════════════════════════════════════════ */
.phy-sv-ftr-card-wrap {
  position: relative !important;
  max-width: 784px !important;
  margin: 0 auto 60px !important;
  padding: 2px !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

.phy-sv-ftr-card-wrap::before {
  content: '' !important;
  position: absolute !important;
  width: 200% !important; height: 200% !important;
  top: -50% !important; left: -50% !important;
  background: conic-gradient(
    rgba(245,179,1,0) 0deg,
    rgba(208,9,16,0.5) 55deg,
    rgba(245,179,1,0.85) 85deg,
    rgba(244,208,111,1) 100deg,
    rgba(245,179,1,0.85) 115deg,
    rgba(208,9,16,0.5) 145deg,
    rgba(245,179,1,0) 175deg,
    rgba(245,179,1,0) 360deg
  ) !important;
  animation: phy-aurora-spin 8s linear infinite !important;
  z-index: 0 !important;
}

.phy-sv-ftr-card-wrap::after {
  content: '' !important;
  position: absolute !important;
  inset: 2px !important;
  background: linear-gradient(155deg, #0b1a4e 0%, #0A1642 50%, #050B24 100%) !important;
  border-radius: 1px !important;
  z-index: 1 !important;
}

@keyframes phy-aurora-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Auth card sits above the aurora */
.phy-sv-ftr-card-wrap .phy-sv-ftr-auth-card {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
}

/* ════════════════════════════════════════════════════════
   AUTHOR CARD (unchanged except z-index when inside wrap)
════════════════════════════════════════════════════════ */
.phy-sv-ftr-auth-card {
  max-width: 780px !important;
  margin: 0 auto 60px !important;
  padding: 52px 40px 44px !important;
  background: linear-gradient(155deg, rgba(255,255,255,0.03) 0%, rgba(245,179,1,0.045) 60%, rgba(21,65,147,0.06) 100%) !important;
  border: 1px solid rgba(245,179,1,0.20) !important;
  border-radius: 1px !important;
  text-align: center !important;
  position: relative !important;
}

.phy-sv-ftr-auth-card::before {
  content: '' !important; position: absolute !important; inset: -1px !important;
  background:
    linear-gradient(var(--phy-gold), var(--phy-gold)) top    left  / 22px 2px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) top    left  / 2px 22px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) top    right / 22px 2px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) top    right / 2px 22px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) bottom left  / 22px 2px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) bottom left  / 2px 22px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--phy-gold), var(--phy-gold)) bottom right / 2px 22px no-repeat !important;
  pointer-events: none !important; opacity: 0.55 !important;
}

.phy-sv-ftr-auth-card::after {
  content: '' !important; position: absolute !important; inset: 0 !important; border-radius: 1px !important;
  box-shadow: inset 0 0 60px rgba(245,179,1,0.03), inset 0 1px 0 rgba(245,179,1,0.12) !important;
  pointer-events: none !important;
}

/* ★ Islamic geometric 8-pointed star tiled background on auth card */
.phy-sv-ftr-islamic-bg {
  position: absolute !important; inset: 0 !important; border-radius: 1px !important;
  pointer-events: none !important; z-index: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpolygon points='60,6 68,40 98,22 80,52 114,60 80,68 98,98 68,80 60,114 52,80 22,98 40,68 6,60 40,52 22,22 52,40' fill='none' stroke='rgba(221%2C166%2C36%2C0.09)' stroke-width='0.8'/%3E%3Crect x='38' y='38' width='44' height='44' transform='rotate(45 60 60)' fill='none' stroke='rgba(221%2C166%2C36%2C0.055)' stroke-width='0.5'/%3E%3Ccircle cx='60' cy='60' r='50' fill='none' stroke='rgba(221%2C166%2C36%2C0.03)' stroke-width='0.4'/%3E%3C/svg%3E") !important;
  background-size: 120px 120px !important;
  background-repeat: repeat !important;
  opacity: 1 !important;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%) !important;
}

/* Author name — shimmer sweep */
.phy-sv-ftr-author-name {
  font-family: var(--f-display) !important;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem) !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  letter-spacing: 0;
  line-height: 1.2 !important;
  position: relative !important;
  display: inline-block !important;
  z-index: 1 !important;
  background: linear-gradient(90deg,
    var(--phy-gold) 0%, var(--phy-gold-lt) 40%, #FFF3C4 50%,
    var(--phy-gold-lt) 60%, var(--phy-gold) 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: phy-name-shimmer 5s linear infinite !important;
}
@keyframes phy-name-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.phy-sv-ftr-author-name::after {
  content: '' !important; display: block !important;
  width: 48px !important; height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--phy-gold), transparent) !important;
  margin: 11px auto 0 !important;
}

.phy-sv-ftr-author-role {
  font-family: var(--f-mono) !important; font-size: 0.82rem !important;
  color: rgba(245,179,1,0.60) !important; text-transform: uppercase !important;
  letter-spacing: 0; margin: 16px 0 24px !important;
  display: block !important; text-align: center; font-weight: bold;
  position: relative !important; z-index: 1 !important;
}

.phy-sv-ftr-author-bio {
  font-family: var(--f-body) !important; font-size: 1.08rem !important;
  font-weight: 300 !important; font-style: normal !important;
  color: rgba(243,247,255,0.80) !important; line-height: 1.85 !important;
  margin: 0 auto 28px !important; max-width: 580px !important;
  position: relative !important; z-index: 1 !important;
}

/* ══════════════════════════════════════════════════════════════════
   ★ NEW: STATS STRIP — 25+ / 4 dimensions / N=1 / OSF
══════════════════════════════════════════════════════════════════ */
.phy-sv-ftr-stats {
  display: flex !important; justify-content: center !important;
  gap: 0 !important; flex-wrap: wrap !important;
  max-width: 620px !important; margin: 0 auto 28px !important;
  border-top: 1px solid rgba(245,179,1,0.12) !important;
  border-bottom: 1px solid rgba(245,179,1,0.12) !important;
  padding: 18px 0 !important;
  position: relative !important; z-index: 1 !important;
}

.phy-sv-ftr-stat {
  flex: 1 1 120px !important; text-align: center !important;
  padding: 8px 12px !important;
  border-right: 1px solid rgba(245,179,1,0.10) !important;
}
.phy-sv-ftr-stat:last-child { border-right: none !important; }

.phy-sv-ftr-stat-num {
  display: block !important;
  font-family: var(--f-display) !important;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem) !important;
  font-weight: 900 !important;
  color: var(--phy-gold) !important;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(245,179,1,0.35) !important;
  animation: phy-stat-in 0.7s ease-out both !important;
}
.phy-sv-ftr-stat:nth-child(1) .phy-sv-ftr-stat-num { animation-delay: 0.1s !important; }
.phy-sv-ftr-stat:nth-child(2) .phy-sv-ftr-stat-num { animation-delay: 0.25s !important; }
.phy-sv-ftr-stat:nth-child(3) .phy-sv-ftr-stat-num { animation-delay: 0.4s !important; }
.phy-sv-ftr-stat:nth-child(4) .phy-sv-ftr-stat-num { animation-delay: 0.55s !important; }

@keyframes phy-stat-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.phy-sv-ftr-stat-lbl {
  display: block !important;
  font-family: var(--f-mono) !important;
  font-size: 0.82rem !important;
  color: rgba(245,179,1,0.50) !important;
  text-transform: uppercase !important;
  letter-spacing: 0;
  margin-top: 4px !important;
}

/* ── TRUST LINKS ────────────────────────────────────────────────────── */
.phy-sv-ftr-trust-wrap {
  display: flex !important; justify-content: center !important;
  gap: 12px !important; flex-wrap: wrap !important;
  max-width: 680px !important; margin: 0 auto 30px auto !important;
  width: 100% !important; position: relative !important; z-index: 1 !important;
}

.phy-sv-ftr-trust-item {
  background: rgba(245,179,1,0.04) !important;
  border: 1px solid rgba(245,179,1,0.20) !important;
  padding: 14px 16px !important;
  flex: 1 1 175px !important; max-width: 210px !important;
  border-radius: 1px !important;
  display: flex !important; flex-direction: column !important; align-items: center !important;
  text-decoration: none !important;
  transition: all 0.38s cubic-bezier(0.165,0.84,0.44,1) !important;
  position: relative !important; overflow: hidden !important;
}
.phy-sv-ftr-trust-item::before {
  content: '' !important; position: absolute !important;
  top: 0 !important; left: -100% !important;
  width: 60% !important; height: 100% !important;
  background: linear-gradient(105deg, transparent, rgba(245,179,1,0.10), transparent) !important;
  transition: left 0.55s ease !important;
}
.phy-sv-ftr-trust-item:hover {
  border-color: var(--phy-gold) !important; transform: translateY(-5px) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,0.45), 0 4px 18px rgba(245,179,1,0.12) !important;
  background: rgba(245,179,1,0.06) !important;
}
.phy-sv-ftr-trust-item:hover::before { left: 130% !important; }

.phy-sv-ftr-label {
  display: block !important; font-family: var(--f-mono) !important;
  color: rgba(245,179,1,0.68) !important; font-weight: 500 !important;
  font-size: 0.82rem !important; text-transform: uppercase !important;
  letter-spacing: 0; margin-bottom: 10px !important;
}
.phy-sv-ftr-trust-titl {
  color: var(--phy-white) !important; text-decoration: none !important;
  font-family: var(--f-serif) !important; font-size: 0.82rem !important;
  font-weight: 700 !important; display: flex !important; align-items: center !important; gap: 8px !important;
}
.phy-sv-ftr-trust-item svg { width: 17px !important; height: 17px !important; fill: var(--phy-gold) !important; flex-shrink: 0 !important; }

.phy-sv-ftr-cred-btn {
  font-family: var(--f-mono) !important; font-size: 0.82rem !important;
  color: var(--phy-gold) !important; text-decoration: none !important;
  font-weight: 700 !important; text-transform: uppercase !important;
  letter-spacing: 0;
  border: 1px solid rgba(245,179,1,0.38) !important;
  padding: 11px 28px !important; border-radius: 0 !important;
  display: inline-block !important; transition: all 0.32s !important;
  background: transparent !important; position: relative !important;
  overflow: hidden !important; z-index: 1 !important;
}
.phy-sv-ftr-cred-btn::before {
  content: '' !important; position: absolute !important; inset: 0 !important;
  background: rgba(245,179,1,0.09) !important; transform: scaleX(0) !important;
  transform-origin: left !important; transition: transform 0.38s cubic-bezier(0.165,0.84,0.44,1) !important;
}
.phy-sv-ftr-cred-btn:hover { border-color: var(--phy-gold) !important; color: var(--phy-gold-lt) !important; }
.phy-sv-ftr-cred-btn:hover::before { transform: scaleX(1) !important; }

/* ── DIVIDER ────────────────────────────────────────────────────────── */
.phy-sv-ftr-divider {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 10px !important; max-width: 600px !important; margin: 0 auto 50px !important;
}
.phy-sv-ftr-divider-line {
  flex: 1 !important; height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(245,179,1,0.35), transparent) !important;
}
.phy-sv-ftr-divider-gem {
  background: var(--phy-gold) !important; transform: rotate(45deg) !important; flex-shrink: 0 !important;
  animation: phy-gem-float 3s ease-in-out infinite !important;
}
.phy-sv-ftr-divider-gem:nth-child(2) { animation-delay: 0.2s !important; }
.phy-sv-ftr-divider-gem:nth-child(3) { animation-delay: 0.4s !important; }
.phy-sv-ftr-divider-gem:nth-child(4) { animation-delay: 0.6s !important; }
.phy-sv-ftr-divider-gem:nth-child(5) { animation-delay: 0.4s !important; }
.phy-sv-ftr-divider-gem:nth-child(6) { animation-delay: 0.2s !important; }
@keyframes phy-gem-float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(-3px); }
}

/* ══════════════════════════════════════════════════════════════════
   ★ NEW: PULSE RINGS — expand outward from center gem
══════════════════════════════════════════════════════════════════ */
.phy-sv-ftr-gem-c {
  position: relative !important; display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  flex-shrink: 0 !important;
}
.phy-sv-ftr-gem-c::before,
.phy-sv-ftr-gem-c::after {
  content: '' !important; position: absolute !important;
  width: 9px !important; height: 9px !important;
  border: 1px solid rgba(245,179,1,0.7) !important;
  transform: rotate(45deg) scale(1) !important;
  animation: phy-pulse-ring 2.8s ease-out infinite !important;
}
.phy-sv-ftr-gem-c::after { animation-delay: 1.4s !important; }
@keyframes phy-pulse-ring {
  0%   { transform: rotate(45deg) scale(1);   opacity: 0.8; }
  100% { transform: rotate(45deg) scale(4.5); opacity: 0; }
}

/* ── BRAND ──────────────────────────────────────────────────────────── */
.phy-sv-ftr-main-title {
  font-family: var(--f-display) !important; color: var(--phy-gold) !important;
  font-size: clamp(1.05rem, 3.2vw, 1.60rem) !important;
  font-weight: 900 !important; letter-spacing: 0;
  text-transform: uppercase !important; margin-bottom: 14px !important;
  width: 100% !important; text-shadow: 0 0 50px rgba(245,179,1,0.28) !important;
  position: relative !important; z-index: 2 !important;
}

/* ★ Tagline wipe-reveal on load */
.phy-sv-ftr-tagline {
  font-family: var(--f-body) !important; font-style: normal !important;
  font-size: 1.02rem !important;
  opacity: 0.60 !important; margin-bottom: 52px !important;
  display: block !important; letter-spacing: 0;
  color: rgba(245,179,1,0.88) !important;
  position: relative !important; z-index: 2 !important;
  animation: phy-tagline-wipe 1.6s cubic-bezier(0.77,0,0.175,1) 0.3s both !important;
}
@keyframes phy-tagline-wipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 0.60; }
}

/* ── LICENSE ────────────────────────────────────────────────────────── */
.phy-sv-ftr-lic-grid {
  display: flex !important; justify-content: center !important;
  gap: 14px !important; flex-wrap: wrap !important;
  max-width: 1080px !important; margin: 0 auto 60px auto !important; width: 100% !important;
}
.phy-sv-ftr-lic-item {
  background: rgba(255,255,255,0.024) !important;
  border: 1px solid rgba(245,179,1,0.18) !important;
  padding: 28px 22px !important; flex: 1 1 275px !important; max-width: 335px !important;
  border-radius: 1px !important;
  display: flex !important; flex-direction: column !important; align-items: center !important;
  transition: all 0.42s cubic-bezier(0.165,0.84,0.44,1) !important;
  position: relative !important; overflow: hidden !important;
  /* ★ 3D perspective depth */
  transform-style: preserve-3d !important;
  perspective: 800px !important;
}
.phy-sv-ftr-lic-item::before {
  content: '' !important; position: absolute !important;
  top: 0 !important; left: 20% !important; right: 20% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(245,179,1,0.5), transparent) !important;
  transition: left 0.4s, right 0.4s !important;
}
.phy-sv-ftr-lic-item:hover::before { left: 5% !important; right: 5% !important; }
.phy-sv-ftr-lic-item:hover {
  border-color: rgba(245,179,1,0.55) !important;
  background: rgba(245,179,1,0.065) !important;
  transform: translateY(-8px) rotateX(3deg) !important;
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 6px 24px rgba(245,179,1,0.12), 0 0 0 1px rgba(245,179,1,0.15) !important;
}

.phy-sv-ftr-lnk {
  font-family: var(--f-serif) !important; color: var(--phy-white) !important;
  text-decoration: underline !important; text-decoration-color: rgba(245,179,1,0.38) !important;
  font-size: 0.87rem !important; transition: color 0.3s, text-decoration-color 0.3s !important;
}
.phy-sv-ftr-lnk:hover { color: var(--phy-gold) !important; text-decoration-color: var(--phy-gold) !important; }

/* ── BADGES ─────────────────────────────────────────────────────────── */
.phy-sv-ftr-badge {
  display: inline-block !important; padding: 3px 10px !important; border-radius: 4px !important;
  font-family: var(--f-mono) !important; font-size: 0.82rem !important;
  font-weight: 700 !important; text-transform: uppercase !important;
  margin-top: 12px !important; letter-spacing: 0;
}
.phy-sv-ftr-badge-open { background-color: #E3ECFB !important; color: #154193 !important; border: 1px solid #154193 !important; }
.phy-sv-ftr-badge-member { background-color: #FFF3CC !important; color: #8A5A00 !important; border: 1px solid #F5B301 !important; }
.phy-sv-ftr-badge-patron { background-color: #FDE8E9 !important; color: #A30710 !important; border: 1px solid #D00910 !important; }
.phy-sv-ftr-badge-infra {
  background: rgba(245,179,1,0.1) !important; color: var(--phy-gold) !important;
  border: 1px solid rgba(245,179,1,0.3) !important; text-decoration: none !important;
  margin-top: 15px !important; transition: all 0.3s !important;
}
.phy-sv-ftr-badge-infra:hover { background: var(--phy-gold) !important; color: var(--phy-teal) !important; }

/* ── NAVIGATION ─────────────────────────────────────────────────────── */
.phy-sv-ftr-nav {
  margin-bottom: 44px !important; display: flex !important; flex-wrap: wrap !important;
  justify-content: center !important; align-items: center !important; gap: 8px 22px !important;
}
.phy-sv-ftr-nav a {
  font-family: var(--f-serif) !important; color: rgba(243,247,255,0.65) !important;
  text-decoration: none !important; white-space: nowrap !important;
  font-size: 0.80rem !important; transition: color 0.28s !important; position: relative !important;
}
.phy-sv-ftr-nav a:not(.phy-sv-ftr-nav-hi)::after {
  content: '' !important; position: absolute !important;
  bottom: -2px !important; left: 0 !important; right: 0 !important;
  height: 1px !important; background: var(--phy-gold) !important;
  transform: scaleX(0) !important; transition: transform 0.28s !important;
}
.phy-sv-ftr-nav a:not(.phy-sv-ftr-nav-hi):hover { color: var(--phy-gold) !important; }
.phy-sv-ftr-nav a:not(.phy-sv-ftr-nav-hi):hover::after { transform: scaleX(1) !important; }
.phy-sv-ftr-nav-hi {
  font-family: var(--f-display) !important; font-weight: 600 !important;
  font-size: 0.82rem !important; color: var(--phy-gold) !important;
  text-transform: uppercase !important; letter-spacing: 0;
  border-bottom: 1px solid transparent !important; transition: border-bottom-color 0.28s !important;
}
.phy-sv-ftr-nav-hi:hover { color: var(--phy-gold-lt) !important; border-bottom-color: var(--phy-gold-lt) !important; }
.phy-sv-ftr-sep { color: rgba(245,179,1,0.30) !important; user-select: none !important; font-size: 0.82rem !important; }

/* ── PGP ────────────────────────────────────────────────────────────── */
.phy-sv-ftr-pgp {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 18px !important;
  background: linear-gradient(130deg, rgba(245,179,1,0.055) 0%, rgba(21,65,147,0.07) 100%) !important;
  border: 1px solid rgba(245,179,1,0.22) !important; border-left: 3px solid var(--phy-gold) !important;
  padding: 18px 30px !important; border-radius: 1px !important;
  font-family: var(--f-mono) !important; font-size: 0.82rem !important;
  color: rgba(243,247,255,0.82) !important;
  margin: 0 auto 52px auto !important; max-width: 800px !important;
  letter-spacing: 0; line-height: 1.55 !important;
  position: relative !important; overflow: hidden !important;
}
.phy-sv-ftr-pgp::before {
  content: '' !important; position: absolute !important;
  top: 0 !important; left: -100% !important;
  width: 50% !important; height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(245,179,1,0.06), transparent) !important;
  animation: phy-pgp-scan 7s ease-in-out infinite !important; pointer-events: none !important;
}
@keyframes phy-pgp-scan {
  0%   { left: -60%; }
  100% { left: 160%; }
}
.phy-sv-ftr-pgp svg { width: 26px !important; height: 26px !important; fill: var(--phy-gold) !important; flex-shrink: 0 !important; opacity: 0.88 !important; }
.phy-sv-ftr-pgp span { text-align: left !important; }
.phy-sv-ftr-pgp a { color: var(--phy-gold) !important; text-decoration: underline !important; font-weight: 700 !important; }

/* ── LEGAL ──────────────────────────────────────────────────────────── */
.phy-sv-ftr-legal-wrap { padding-top: 34px !important; position: relative !important; }
.phy-sv-ftr-legal-wrap::before {
  content: '' !important; position: absolute !important; top: 0 !important; left: 50% !important;
  transform: translateX(-50%) !important; width: 100% !important; max-width: 900px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(245,179,1,0.12) 20%, rgba(245,179,1,0.28) 50%, rgba(245,179,1,0.12) 80%, transparent 100%) !important;
}
.phy-sv-ftr-legal-wrap::after {
  content: '◆' !important; position: absolute !important;
  top: -7px !important; left: 50% !important; transform: translateX(-50%) !important;
  font-size: 0.55rem !important; color: var(--phy-gold) !important;
  filter: drop-shadow(0 0 6px rgba(245,179,1,0.7)) !important; line-height: 1 !important;
}
.phy-sv-ftr-legal {
  font-family: var(--f-mono) !important; font-size: 0.82rem !important;
  max-width: 900px !important; margin: 0 auto !important;
  opacity: 0.42 !important; line-height: 1.75 !important; letter-spacing: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .phy-sv-ftr-container    { padding: 60px 0px 44px !important; }
  .phy-sv-ftr-auth-card    { padding: 38px 2px !important; }
  .phy-sv-ftr-card-wrap    { margin: 0 0 60px !important; }
  .phy-sv-ftr-stats        { gap: 0 !important; }
  .phy-sv-ftr-stat         { flex: 1 1 50% !important; border-bottom: 1px solid rgba(245,179,1,0.10) !important; }
  .phy-sv-ftr-stat:nth-child(2), .phy-sv-ftr-stat:nth-child(4) { border-right: none !important; }
  .phy-sv-ftr-lic-item, .phy-sv-ftr-trust-item { flex: 1 1 100% !important; max-width: 100% !important; }
  .phy-sv-ftr-nav          { flex-direction: column !important; gap: 16px !important; }
  .phy-sv-ftr-sep          { display: none !important; }
  .phy-sv-ftr-pgp          { flex-direction: column !important; text-align: center !important; padding: 20px 14px !important; border-left: 1px solid rgba(245,179,1,0.22) !important; border-top: 3px solid var(--phy-gold) !important; }
  .phy-sv-ftr-pgp span     { text-align: center !important; }
  .phy-sv-ftr-lic-item:hover { transform: translateY(-4px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .phy-sv-ftr-container::before, .phy-sv-ftr-author-name,
  .phy-sv-ftr-divider-gem, .phy-sv-ftr-pgp::before,
  .phy-sv-ftr-stars::before, .phy-sv-ftr-stars::after,
  .phy-sv-ftr-card-wrap::before, .phy-sv-ftr-gem-c::before,
  .phy-sv-ftr-gem-c::after, .phy-sv-ftr-tagline,
  .phy-sv-ftr-stat-num { animation: none !important; }
  .phy-sv-ftr-tagline { opacity: 0.60 !important; }
}

@media print {
  .phy-sv-ftr-bg-mark, .phy-sv-ftr-grid-tex, .phy-sv-ftr-glow-l,
  .phy-sv-ftr-glow-r, .phy-sv-ftr-stars, .phy-sv-ftr-container::after,
  .phy-sv-ftr-card-wrap::before, .phy-sv-ftr-islamic-bg { display: none !important; }
  .phy-sv-ftr-container { background: white !important; color: black !important; border-top: 1px solid #ccc; }
}

/* ============================================================
   ACCESSIBILITY — TAXONOMY CHIP FOCUS RING (APPENDED)
   Duplicate focus rule for .ast-terms-link added as an explicit
   append to guarantee the blue ring renders on both :focus and
   :focus-visible regardless of selector specificity ordering
   elsewhere in the file.
   ============================================================ */
/* Accessibility & small polish additions (append) */

/* Make sure inline tag-like buttons (p.ast-terms-link) show keyboard focus clearly */
p.ast-terms-link:focus,
p.ast-terms-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb),0.16) !important;
  outline: none !important;
}

/* ============================================================
   UTILITIES — GOLD AS ACCENT TOKEN (DOCUMENTATION COMMENT)
   Documents the site-wide convention that gold (#F5B301) is
   reserved for borders, accents, and decorative highlights
   only — never for body text colour. The enforcing rule is
   intentionally commented out but preserved here for reference.
   ============================================================ */
/* Keep gold used as accent/border only — if any body text accidentally uses gold, this makes that explicit */
body :where(p, li, dt, dd) {
  /* prefer dark blue for main text; uncomment the next line if you want to enforce */
  /* color: var(--teal-hover) !important; */
}

/* ============================================================
   PERFORMANCE — REDUCED SHADOW DEPTH ON MOBILE (≤ 680 px)
   Replaces the heavier multi-layer box-shadows on the footer,
   TOC, archive banner, block headings, and post/page cards with
   a single leaner shadow at narrow viewport widths. Reduces
   GPU composite cost on low-powered mobile devices.
   ============================================================ */
@media (max-width: 680px) {
  .site-footer,
  #rank-math-toc,
  .ast-archive-entry-banner,
  .wp-block-heading,
  .type-post,
  .type-page,
  .type-forum {
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
  }
}

/* ============================================================
   TYPOGRAPHY — RESPONSIVE BODY TEXT SCALE
   Scales entry-content prose font size and line-height across
   four named breakpoints. Uses px-precise values via rem to
   ensure legibility at all screen sizes:
     > 1440 px  → 18 px / 1.75 lh  (large desktop)
   922–1440 px  → 17 px / 1.70 lh  (laptop / tablet landscape)
   600–921 px   → 16.5 px / 1.65 lh (tablet portrait)
     ≤ 599 px   → 16 px / 1.60 lh  (mobile)
   ============================================================ */

/* LARGE DESKTOP (> 1440px) — Only here do we go to 18px */
@media (min-width: 1441px) {
  .entry-content,
  .ast-article-single .entry-content,
  .single .entry-content {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.75; /* Increased slightly for the larger text */
  }
}

/* LAPTOP & TABLET LANDSCAPE (922px - 1440px) — The sweet spot */
@media (min-width: 922px) and (max-width: 1440px) {
  .entry-content,
  .ast-article-single .entry-content,
  .single .entry-content {
    font-size: 1.0625rem !important; /* 17px */
    line-height: 1.7;
  }
}

/* TABLET PORTRAIT (600px - 921px) */
@media (min-width: 600px) and (max-width: 921px) {
  .entry-content,
  .ast-article-single .entry-content,
  .single .entry-content {
    font-size: 1.03125rem !important; /* 16.5px */
    line-height: 1.65;
  }
}

/* MOBILE (<= 599px) */
@media (max-width: 599px) {
  .entry-content,
  .ast-article-single .entry-content,
  .single .entry-content {
    font-size: 1rem !important; /* 17px */
    line-height: 1.6;
  }
}

/* ============================================================
   TYPOGRAPHY — الطباعة العربية على كل الشاشات
   ============================================================ */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:90px}
body.admin-bar{scroll-padding-top:122px}
body{font-family:var(--f-body)!important;font-size:var(--fs-base);line-height:var(--lh-body);color:var(--ph-navy);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-kerning:normal;overflow-wrap:break-word}
:lang(ar),:lang(ar) *{letter-spacing:0!important;word-spacing:normal;text-transform:none}
h1,h2,h3,h4,h5,h6{line-height:var(--lh-head);font-weight:700;text-wrap:balance}
p,li,dd,blockquote,figcaption{text-wrap:pretty}
.entry-title,.page-title,.ast-archive-title{font-family:var(--f-display)!important;font-size:var(--fs-h1)!important;line-height:1.4!important}
.entry-content{font-size:clamp(1.0625rem,1rem + .3vw,1.1875rem);line-height:2}
small,.small,.wp-caption-text,figcaption{font-size:var(--fs-sm);line-height:1.8}
input,select,textarea,button{font-family:var(--f-ui)!important}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:max(16px,1rem)}
::placeholder{font-family:var(--f-ui);opacity:.7}
code,kbd,samp,pre,.wp-block-code,.wp-block-preformatted{font-family:"Courier New",Consolas,monospace;direction:ltr;text-align:left}
sub,sup{line-height:0}
.has-drop-cap:not(:focus)::first-letter{float:none;font-size:inherit;font-weight:inherit;margin:0;line-height:inherit}
@media(max-width:600px){:root{--lh-body:1.85}.entry-content{line-height:1.95}}

/* ============================================================
   PHX ISOLATION — صفحات التصميم الموحد (.phx) داخل القالب
   ============================================================ */
.type-page:has(.phx),.page:has(.phx) .ast-article-single,.entry-content:has(.phx){background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding-inline:0!important;overflow:visible!important}
.phx,.phx *{font-family:var(--f-body)}
.phx :is(h1,h2,.phx-h1,.phx-h2,.phx-cap,.phx-acd h3,.phx-card h3,.phx-rmc h3,.phx-scc>b){font-family:var(--f-display)}

/* ============================================================
   CLOUDFLARE TURNSTILE — تنسيق ويدجت التحقق (صفحة التواصل وكل نموذج يحمله)
   في المنتصف تمامًا على كل الشاشات، وبنفس الشكل الذي كان عليه في صفحات الدخول.
   ============================================================ */
body :is(.cf-turnstile,#cf-turnstile,.cf-turnstile-wrap,.cf-turnstile-container,.cf-turnstile-comment,[class*="turnstile"],[id*="turnstile"],[data-sitekey],div:has(>iframe[src*="challenges.cloudflare.com"]),div:has(>input[name="cf-turnstile-response"])){display:flex!important;justify-content:center!important;align-items:center;width:100%!important;max-width:100%!important;min-height:65px;margin:16px auto!important;padding:0!important;float:none!important;text-align:center!important;position:static!important}
body iframe[src*="challenges.cloudflare.com"]{display:block;margin-inline:auto!important;max-width:100%}
@media (max-width:374px){body :is(.cf-turnstile,#cf-turnstile,.cf-turnstile-wrap,[class*="turnstile"],[data-sitekey],div:has(>iframe[src*="challenges.cloudflare.com"])){transform:scale(.88);transform-origin:center center}}
@media (max-width:330px){body :is(.cf-turnstile,#cf-turnstile,.cf-turnstile-wrap,[class*="turnstile"],[data-sitekey],div:has(>iframe[src*="challenges.cloudflare.com"])){transform:scale(.78)}}

/* ============================================================
   WORDPRESS CORE — الكلاسات الأساسية ومكونات المحرر
   ============================================================ */
.alignleft{float:left;margin-inline:0 1.5rem;margin-block:.4rem 1rem}
.alignright{float:right;margin-inline:1.5rem 0;margin-block:.4rem 1rem}
.aligncenter,.wp-block-image .aligncenter{display:block;margin-inline:auto;text-align:center}
.alignwide{max-width:min(1180px,100%);margin-inline:auto}
.alignfull{width:100%;max-width:100%}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:var(--ph-gold);color:var(--ph-navy);clip:auto!important;clip-path:none;display:block;font-weight:700;height:auto;inset:8px 8px auto auto;padding:12px 20px;width:auto;z-index:100000;border-radius:10px}
.sticky .entry-title::before{content:"";display:inline-block;width:10px;height:10px;margin-inline-end:.6rem;background:var(--ph-gold);transform:rotate(45deg)}
.bypostauthor>.comment-body .fn::after{content:"المؤلف";margin-inline-start:.5rem;padding:0 .6rem;border-radius:99px;background:var(--ph-gold);color:var(--ph-navy);font-size:.8rem;font-weight:700}
.wp-caption{max-width:100%;margin-block:1rem}
.wp-caption img{display:block;border-radius:12px}
.wp-caption-text,.wp-element-caption,.wp-block-image figcaption,.gallery-caption{margin-top:.5rem;color:var(--ph-mut);font-size:var(--fs-sm);text-align:center}
.gallery{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.gallery-item{margin:0}.gallery img{border-radius:12px}
img,video,iframe{max-width:100%;height:auto}
.wp-smiley{height:1em;width:1em}
/* الأزرار */
.wp-block-button__link,.wp-element-button{font-family:var(--f-ui)!important;font-weight:700;border-radius:var(--ph-r-btn);background:var(--ph-blue);color:#fff;padding:.75rem 1.75rem;text-decoration:none;transition:background-color .2s,color .2s,border-color .2s}
.wp-block-button__link:hover,.wp-element-button:hover{background:var(--ph-blue-dk);color:#fff}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;border:2px solid var(--ph-blue);color:var(--ph-blue)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--ph-blue);color:#fff}
/* النصوص */
.wp-block-quote,blockquote{margin-block:1.5rem;padding:1.25rem 1.5rem;border-inline-start:6px solid var(--ph-gold);background:var(--ph-mist);border-radius:4px 22px 4px 22px;font-family:var(--f-display);font-size:1.2em;font-style:normal}
.wp-block-quote cite,blockquote cite{display:block;margin-top:.5rem;font-family:var(--f-ui);font-size:var(--fs-sm);font-style:normal;color:var(--ph-mut)}
.wp-block-pullquote{border-block:4px solid var(--ph-gold);padding-block:1.5rem;text-align:center;font-family:var(--f-display);font-size:1.5em}
.wp-block-verse,.wp-block-preformatted,.wp-block-code,pre{background:var(--ph-ink);color:#e8eeff;border-radius:14px;padding:1rem 1.25rem;overflow-x:auto}
.wp-block-separator,hr{border:0;border-top:2px solid var(--ph-line);margin-block:2rem}
.wp-block-separator.is-style-wide{border-top-color:var(--ph-gold)}
.wp-block-separator.is-style-dots::before{color:var(--ph-gold);letter-spacing:0}
.wp-block-list,.entry-content ul,.entry-content ol{padding-inline-start:1.5rem}
.has-text-align-center{text-align:center}.has-text-align-right{text-align:right}.has-text-align-left{text-align:left}
.has-small-font-size{font-size:var(--fs-sm)}.has-regular-font-size,.has-medium-font-size{font-size:var(--fs-base)}.has-large-font-size{font-size:var(--fs-lg)}.has-x-large-font-size{font-size:var(--fs-h3)}.has-xx-large-font-size,.has-huge-font-size{font-size:var(--fs-h2)}
.has-ph-navy-color{color:var(--ph-navy)}.has-ph-blue-color{color:var(--ph-blue)}.has-ph-gold-color{color:var(--ph-gold)}.has-ph-red-color{color:var(--ph-red)}.has-ph-mist-color{color:var(--ph-mist)}
.has-ph-navy-background-color{background-color:var(--ph-navy)}.has-ph-blue-background-color{background-color:var(--ph-blue)}.has-ph-gold-background-color{background-color:var(--ph-gold)}.has-ph-red-background-color{background-color:var(--ph-red)}.has-ph-mist-background-color{background-color:var(--ph-mist)}
/* الجداول والصور والتضمين */
.wp-block-table{overflow-x:auto}
.wp-block-table table,.entry-content table{border-collapse:collapse;width:100%;border:1.5px solid var(--ph-line)}
.wp-block-table th,.wp-block-table td,.entry-content th,.entry-content td{padding:.7rem 1rem;border:1px solid var(--ph-line);text-align:start}
.wp-block-table thead th,.entry-content thead th{background:var(--ph-navy);color:#fff}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:var(--ph-mist)}
.wp-block-image img,.wp-block-cover,.wp-block-media-text__media img{border-radius:14px}
.wp-block-image.is-style-rounded img{border-radius:999px}
.wp-block-embed iframe,.wp-block-embed__wrapper{border-radius:14px}
.wp-block-embed.is-type-video .wp-block-embed__wrapper{aspect-ratio:16/9}
.wp-block-embed.is-type-video iframe{width:100%;height:100%}
.wp-block-cover{color:#fff}.wp-block-cover .wp-block-cover__inner-container :is(h1,h2,h3,p){color:#fff}
.wp-block-columns{gap:clamp(16px,3vw,32px)}
@media(max-width:781px){.wp-block-columns{flex-wrap:wrap}.wp-block-column{flex-basis:100%!important}}
.wp-block-group.has-background{padding:clamp(16px,3vw,32px);border-radius:var(--ph-r-card)}
.wp-block-media-text{gap:clamp(16px,3vw,32px)}
.wp-block-file{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:1rem 1.25rem;border:1.5px solid var(--ph-line);border-radius:var(--ph-r-card);background:#fff}
.wp-block-file__button{background:var(--ph-blue);color:#fff;border-radius:var(--ph-r-btn);padding:.5rem 1.25rem;font-weight:700;text-decoration:none}
.wp-block-details{border:1.5px solid var(--ph-line);border-radius:14px;padding:.5rem 1.25rem;background:#fff}
.wp-block-details summary{font-weight:700;cursor:pointer;padding-block:.6rem}
.wp-block-spacer{pointer-events:none}
/* البحث والقوائم والودجات */
.wp-block-search__input,.search-field,.search-form input[type=search]{border:1.5px solid var(--ph-line);border-radius:var(--ph-r-in);min-height:46px;padding-inline:1rem;background:#fff;color:var(--ph-navy)}
.wp-block-search__button,.search-submit{background:var(--ph-blue);color:#fff;border:0;border-radius:var(--ph-r-btn);min-height:46px;padding-inline:1.25rem;font-weight:700}
.wp-block-search__button:hover,.search-submit:hover{background:var(--ph-blue-dk)}
.widget{margin-bottom:2rem}
.widget-title,.wp-block-heading.widget-title,.widget .wp-block-heading{font-family:var(--f-display);font-size:var(--fs-h4);color:var(--ph-navy)}
.widget ul,.wp-block-archives,.wp-block-categories,.wp-block-latest-posts,.wp-block-latest-comments{list-style:none;padding:0;margin:0}
.widget li,.wp-block-archives li,.wp-block-categories li,.wp-block-latest-posts li{padding-block:.5rem;border-bottom:1px solid var(--ph-line)}
.widget a,.wp-block-latest-posts__post-title{color:var(--ph-navy);text-decoration:none;font-weight:700}
.widget a:hover,.wp-block-latest-posts__post-title:hover{color:var(--ph-blue)}
.wp-block-latest-posts__post-date,.wp-block-latest-comments__comment-meta{color:var(--ph-mut);font-size:var(--fs-sm)}
.tagcloud a,.wp-block-tag-cloud a{display:inline-block;margin:0 0 6px 6px;padding:2px 12px;border:1.5px solid var(--ph-line);border-radius:99px;background:#fff;color:var(--ph-blue);font-size:.9rem!important;text-decoration:none}
.tagcloud a:hover,.wp-block-tag-cloud a:hover{background:var(--ph-blue);color:#fff}
#wp-calendar{width:100%}#wp-calendar caption{font-weight:700;margin-bottom:.5rem}#wp-calendar th,#wp-calendar td{text-align:center;padding:.4rem}
/* التعليقات */
.comment-list,.commentlist{list-style:none;padding:0}
.comment-body{padding:1.25rem;margin-bottom:1rem;background:#fff;border:1.5px solid var(--ph-line);border-radius:var(--ph-r-card)}
.comment-author .fn{font-family:var(--f-ui);font-weight:700}
.comment-metadata,.comment-meta{color:var(--ph-mut);font-size:var(--fs-sm)}
.comment-respond{margin-top:2rem}.comment-reply-title{font-family:var(--f-display);font-size:var(--fs-h3)}
.comment-form :is(input[type=text],input[type=email],input[type=url],textarea){width:100%;border:1.5px solid var(--ph-line);border-radius:var(--ph-r-in);padding:.7rem 1rem;background:#fff;color:var(--ph-navy)}
.comment-form .submit,.form-submit input[type=submit]{background:var(--ph-blue);color:#fff;border:0;border-radius:var(--ph-r-btn);min-height:46px;padding-inline:1.75rem;font-weight:700;cursor:pointer}
.comment-form .submit:hover{background:var(--ph-blue-dk)}
.post-password-form input[type=password]{border:1.5px solid var(--ph-line);border-radius:var(--ph-r-in);min-height:46px;padding-inline:1rem}
/* الترقيم والتنقل */
.nav-links,.pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.page-numbers,.nav-links a{display:inline-grid;place-items:center;min-width:42px;min-height:42px;padding-inline:.75rem;border:1.5px solid var(--ph-line);border-radius:10px;background:#fff;color:var(--ph-navy);font-family:var(--f-ui);font-weight:700;text-decoration:none}
.page-numbers.current,.page-numbers:hover,.nav-links a:hover{background:var(--ph-blue);border-color:var(--ph-blue);color:#fff}
.post-navigation .nav-title{font-family:var(--f-display);font-size:1.15rem}
.breadcrumbs,.rank-math-breadcrumb,#breadcrumbs{font-size:var(--fs-sm);color:var(--ph-mut)}
.rank-math-breadcrumb a,.breadcrumbs a{color:var(--ph-blue);text-decoration:underline;text-underline-offset:4px}
/* الأخطاء والحركة */
.error404 .page-title{font-family:var(--f-display)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* ============================================================
   STICKY FOOTER — التذييل ملتصق بأسفل الشاشة في الصفحات القصيرة
   (صفحتا الدخول والتسجيل): لا ارتفاع زائد ولا فراغ تحت التذييل
   ============================================================ */
html,body{overflow-x:clip}
#page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.admin-bar #page{min-height:calc(100vh - 32px);min-height:calc(100dvh - 32px)}
@media (max-width:782px){body.admin-bar #page{min-height:calc(100vh - 46px);min-height:calc(100dvh - 46px)}}
#content{flex:1 0 auto;overflow-x:clip!important;overflow-y:visible!important}
.site-footer{margin-top:auto;border-radius:0!important;box-shadow:0 -10px 28px -20px rgba(8,18,58,.45)!important}

/* ============================================================
   FOOTER RESET — إزالة الهوامش السالبة التي كانت ترفع التذييل
   (الهامش السالب كان يسحب التذييل لأعلى ويقصّ أسفله فيظهر فراغ تحته).
   الأصل: صفوف تذييل Astra تُصفَّر حشواتها، فيلتصق تذييلنا بالصفحة بلا فجوات.
   ============================================================ */
.site-footer :is(.site-above-footer-wrap,.site-primary-footer-wrap,.site-below-footer-wrap){padding-block:0!important;min-height:0!important}
.site-footer :is(.ast-builder-grid-row-container-inner,.ast-builder-footer-grid-columns){padding:0!important;row-gap:0!important}
.site-footer .ast-container{max-width:100%!important;padding-inline:0!important}
.site-footer .footer-widget-area{margin:0!important;padding:0!important}
.site-footer .footer-widget-area .widget{margin:0!important}

/* ============================================================
   Floating button in the middle right
    ============================================================ */
/* تثبيت الزر في منتصف اليمين */
a.ufw_btn.ufw_btn_48px.ufw_btn_type_icon.ufw_btn_p_tr {
    top: 20% !important;
    right: 0 !important;
    transform: translateY(-50%);
}

/* إخفاء الزر عندما لا توجد قائمة داخل الصندوق */
#ufw_1:not(:has(ul li)) .ufw_btn {
    display: none !important;
}