:root{
 --accent:#43727a;
 --dark:#0a1733;
 --muted:#6b7280;
 --card-bg: #ffffff;
 --radius: 14px;
 /* Dark Mode Variables */
 --dark-bg: #030810;
 --dark-card-bg: #0d1a2f;
 --dark-text: #f7f8fb;
 --dark-muted-text: #9ca3af;
 --dark-shadow: rgba(0,0,0,0.3);
}

/* ==================== Dark Mode Overrides ==================== */
body.dark-mode {
 color: var(--dark-text);
 background: var(--dark-bg);
}

/* LOGO FIX: Inverts dark logo to light in dark mode */
body.dark-mode .abumaizar-logo img {
    filter: invert(100%) hue-rotate(180deg) brightness(1.2); 
    transition: filter 0.3s ease;
}

body.dark-mode .abumaizar-content article,
body.dark-mode .abumaizar-menu li .sub-menu {
 background: var(--dark-card-bg);
 box-shadow: 0 10px 30px var(--dark-shadow);
}
body.dark-mode .abumaizar-header {
 background: var(--dark-card-bg); 
 box-shadow: 6px 26px 80px rgba(0,0,0,0.4);
}
body.dark-mode .abumaizar-header-container,
body.dark-mode .abumaizar-menu li a,
body.dark-mode .abumaizar-menu li .sub-menu li a,
body.dark-mode .abumaizar-hero h1,
body.dark-mode .post-category-box {
 color: var(--dark-text);
}
/* MOBILE FIX: Hamburger icon color switch */

body.dark-mode .abumaizar-hamburger {
     background: #0d1a2f ;
     border-radius: 8px;
     
}
body.dark-mode .abumaizar-hamburger span {
 background: var(--dark-text);
}
/* MOBILE FIX: Menu drawer background */
body.dark-mode .abumaizar-nav {
    background: var(--dark-card-bg); 
}
/* MOBILE FIX: Menu close button color */
body.dark-mode .close-canvas {
    color: black;
}


body.dark-mode .toc,
body.dark-mode .author-box {
 background: var(--dark-card-bg);
 border-color: rgba(255,255,255,0.08);
 box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
body.dark-mode .toc h4,
body.dark-mode .author-box .meta h5 {
 color: var(--dark-text);
}
body.dark-mode .toc a,
body.dark-mode .abumaizar-hero .post-meta,
body.dark-mode .author-box .meta p,
body.dark-mode .site-footer p {
 color: var(--dark-muted-text);
}
body.dark-mode .abumaizar-menu li .sub-menu li a { color: var(--dark-text); }
body.dark-mode .abumaizar-menu li .sub-menu li a:hover { background: rgba(255, 92, 117, 0.1); color: var(--accent); }


/* General Styles & Reset */
*{box-sizing:border-box}
body{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:#222; background: #f7f8fb; margin:0;}

/* Fix for conflicting button styles (Bootstrap/General) */
.abumaizar-btn, .abumaizar-hamburger, .close-canvas {
  cursor: pointer !important;
}
/* Accessibility focus fix */
a:focus, button:focus, input:focus, textarea:focus {
  outline:3px solid rgba(17,24,39,0.2); 
  outline-offset:3px;
  border-radius:6px;
}

/* ==================== Header Structure and Layout ==================== */
.abumaizar-header {
 background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
 padding: 12px 0;
 border-radius: 40px;
 max-width: 1250px;
 margin: 48px auto 18px auto; 
 box-shadow: 6px 26px 80px rgba(255,230,230,0.2);
 position: relative;
 z-index: 9999;
 transition: all 0.25s ease;
}

.abumaizar-header-container{
 display:flex; 
  align-items:center; 
  gap:20px; 
 max-width:1200px; 
  margin:0 auto; 
  padding:0 20px;
  overflow: visible; 
}
.abumaizar-logo img{ height:56px; width:auto; display:block; transition: filter 0.3s ease; }

/* Menu container for desktop */
.abumaizar-nav { 
  flex:1 1 auto; 
 min-width: 0; 
  /* CRITICAL FIX: Allows submenu (absolute position) to break out */
 overflow: visible !important; 
}
.abumaizar-menu {
 display:flex; 
 justify-content:center; 
 gap:28px; 
 list-style:none; 
 margin:0; 
 padding:0;
 flex-wrap: nowrap;
}
.abumaizar-menu li{ position:relative; }
.abumaizar-menu li a{
 text-decoration:none; color:var(--dark); font-weight:600; font-size:15px;
 padding:10px 6px; display:inline-flex; align-items:center; gap:3px;
 transition: color .25s ease;
 white-space: nowrap;
}
.abumaizar-menu li a:hover{ color:var(--accent); }
.abumaizar-menu li a::after{
 content:''; position:absolute; bottom:-6px; left:0; width:0%; height:3px; background:var(--accent); transition: width .28s ease;
}
.abumaizar-menu li a:hover::after{ width:100%; }

/* Submenu */
.abumaizar-menu li .sub-menu {
 opacity: 0; visibility: hidden; pointer-events: none; position:absolute; 
 top:calc(100% + 12px); left:0; right: auto; flex-direction:column;
 background:var(--card-bg); padding:8px 6px; 
 box-shadow:0 12px 30px rgba(12,14,20,0.1); 
 border-radius:10px; min-width:220px; z-index:10000; 
 transform-origin: top left; transform: translateY(5px) scale(0.98);
 transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.abumaizar-menu li:hover > .sub-menu{ 
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
}
.abumaizar-menu li .sub-menu li a{ 
    padding:8px 14px; font-size:14px; font-weight:500; color:#333; 
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.abumaizar-menu li .sub-menu li a:hover {
    background: rgba(255, 92, 117, 0.05); color: var(--accent); transform: translateX(3px); 
}
.submenu-indicator { font-size:.78rem; color:var(--muted); margin-left:6px; transition:transform .22s ease }

/* Contact Button Display Fix (Desktop) */
.abumaizar-btn {
    display: block !important; 
    flex-shrink: 0; 
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

/* hamburger */
.abumaizar-hamburger{ display:none; cursor:pointer; gap:6px; flex-direction:column; margin-left:12px; }
.abumaizar-hamburger span{ height:3px; width:28px; background:#111; border-radius:3px; transition:all .25s ease; display:block; }
.abumaizar-hamburger.open span:nth-child(1) { 
    transform: rotate(45deg) translate(6px, 6px); 
}
.abumaizar-hamburger.open span:nth-child(2) { 
    opacity: 0; 
    transform: translateX(-10px); 
}
.abumaizar-hamburger.open span:nth-child(3) { 
    transform: rotate(-45deg) translate(6px, -6px); 
}
.close-canvas { display: none; }


/* ==================== Dark Mode Toggle (Fixed Desktop vs. Block Mobile) ==================== */

/* 1. Desktop Fixed Button Styles (Applies to the fixed button element) */
/* Assuming you added a button with the class 'abumaizar-fixed-dark-toggle' outside the header */
.abumaizar-fixed-dark-toggle {
    position: fixed; 
    bottom: 20px;
    right: 20px;
    z-index: 99999; 
    
    /* Small and circular */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    /* Center the icon */
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    padding: 0;
    
    /* General styles */
   background: var(--dark);
   color: #fff;
   border: none;
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   cursor: pointer;
   transition: background 0.2s ease, transform 0.2s ease;
    
    /* Show fixed button by default (desktop) */
    display: flex; 
}
.abumaizar-fixed-dark-toggle span:last-child {
    /* Hide the 'Dark Mode' text label when the button is fixed (desktop) */
    display: none;
}
body.dark-mode .abumaizar-fixed-dark-toggle {
 background: var(--accent);
}
/* RTL adjustment for fixed button */
[dir="rtl"] .abumaizar-fixed-dark-toggle {
 right: unset;
 left: 20px;
}


/* 2. Styles for the button inside the mobile NAV (using the ID #dark-mode-toggle from the PHP) */

/* Hide the block button inside the nav on desktop */
@media (min-width: 993px) {
    .abumaizar-nav #dark-mode-toggle {
        display: none !important;
    }
}


/* ==================== Mobile Menu Styles (Media Query) ==================== */
@media (max-width: 992px){
 .abumaizar-menu{ display:flex; gap:0; align-items:stretch; }
 .abumaizar-hamburger{ display:flex; margin-left:auto; } 
  .abumaizar-btn { display: none !important; } /* Hide the contact button when mobile menu is active */
 
 .close-canvas { display: block; color: rgb(0 0 0); } 
  body.dark-mode .close-canvas { color: rgb(0 0 0); }

 /* nav drawer */
 .nav-overlay{ position:fixed; inset:0; background:rgba(0,0,0,0.32); opacity:0; pointer-events:none; transition:opacity .3s ease; z-index:9998; }
 .nav-overlay.active{ opacity:1; pointer-events:auto; }
 .abumaizar-nav {
  position:fixed; top:0; right:-100%; width:320px; height:100vh; background:var(--card-bg);
  flex-direction:column; padding:20px; box-shadow:-8px 0 40px rgba(2,6,23,0.08);
  transition:right .32s ease; z-index:9999; overflow-y:auto;
 }
 .abumaizar-nav.active{ right:0; }
 .close-canvas{ font-size:1.8rem; cursor:pointer; align-self:flex-end; }
  
  /* HIDE the Fixed Button on Mobile (Assuming it exists) */
  .abumaizar-fixed-dark-toggle {
      display: none !important;
  }
  
  /* Mobile Dark Mode Toggle (Block-level inside the drawer - using the original button) */
  .abumaizar-nav #dark-mode-toggle {
        position: static; /* Important: removes fixed position */
        width: 100%;
        height: 50px;
        border-radius: 10px;
        font-size: 1rem;
        padding: 0 10px;
        margin-top: 20px;
        display: flex !important; /* Force display in mobile nav */
        justify-content: center;
        background: var(--dark);
        color: #fff;
        border: none;
        box-shadow: none; 
    }
    /* Show the 'Dark Mode' text label in the mobile drawer */
    .abumaizar-nav #dark-mode-toggle span:last-child {
        display: inline;
        /* Match RTL style */
        margin-right: 8px;
        margin-left: 0;
    }
    /* RTL adjustment for the text label inside the nav */
    [dir="rtl"] .abumaizar-nav #dark-mode-toggle span:last-child {
        margin-left: 0; 
        margin-right: 8px;
    }

  /* Mobile Link Styling */
 .abumaizar-menu{ flex-direction:column; gap:6px; padding:0; margin-top:8px; }
 .abumaizar-menu li a{ 
    padding:12px 6px; display:flex; justify-content:space-between; 
    align-items:center; font-size:16px; border-radius: 6px; 
    transition: background 0.15s ease;
}
  /* Mobile Hover/Active state for premium feel */
  .abumaizar-menu li a:hover, .abumaizar-menu li.active > a {
      background: rgba(255, 92, 117, 0.08); 
  }
 .abumaizar-menu li a::after{ content:none; } 
 
  /* Mobile Submenu Fixes */
 .abumaizar-menu li .sub-menu{ 
    opacity: 1; visibility: visible; transform: none; transition: none;
    display: flex; pointer-events: auto; position:static; top:unset; left:unset; 
    min-width:unset; box-shadow:none; padding-left:12px; 
    max-height:0; overflow:hidden; transition:max-height .28s ease; 
  }
 .abumaizar-menu li.active > .sub-menu{ max-height:1600px; }
 .abumaizar-menu li.active > a .submenu-indicator{ transform:rotate(90deg); }
}

/* ==================== RTL (Right-to-Left) Support ==================== */
[dir="rtl"] .abumaizar-header-container{ flex-direction:row-reverse; }
[dir="rtl"] .abumaizar-hamburger{ margin-left:12px; margin-right:auto; }

/* Desktop Submenu RTL */
[dir="rtl"] .abumaizar-menu li .sub-menu { 
  left:unset; right:0; transform-origin: top right; 
}
[dir="rtl"] .submenu-indicator { margin-left:unset; margin-right:6px; transform: rotate(180deg); }
[dir="rtl"] .abumaizar-menu li .sub-menu li a:hover {
    transform: translateX(-3px); 
}

/* Mobile Menu RTL */
@media (max-width: 992px){
 [dir="rtl"] .abumaizar-nav { right:unset; left:-100%; box-shadow:8px 0 40px rgba(2,6,23,0.08); transition:left .32s ease; }
 [dir="rtl"] .abumaizar-nav.active{ left:0; right:unset; }
 [dir="rtl"] .close-canvas{ align-self:flex-start; }
 [dir="rtl"] .abumaizar-menu li a{ justify-content:space-between; flex-direction:row-reverse; }
 [dir="rtl"] .abumaizar-menu li .sub-menu{ 
    padding-left:unset; padding-right:12px; 
  }
 [dir="rtl"] .abumaizar-menu li.active > a .submenu-indicator{ transform:rotate(-90deg); }
}

/* Content RTL - (Partial Content styles included, ensure all content elements are covered) */
/* Apply RTL flow but do NOT override all elements */
[dir="rtl"] body {
  direction: rtl;
}

/* Only affect post/page content */
[dir="rtl"] .abumaizar-content,
[dir="rtl"] .abumaizar-content article,
[dir="rtl"] .abumaizar-content p {
  text-align: right;
}

/* Unordered & ordered lists */
[dir="rtl"] .abumaizar-content ul,
[dir="rtl"] .abumaizar-content ol {
  padding-left: unset;
  padding-right: 20px;
}

[dir="rtl"] .abumaizar-content ul li,
[dir="rtl"] .abumaizar-content ol li {
  padding-left: unset;
  padding-right: 38px;
}

/* Bullet/number position */
[dir="rtl"] .abumaizar-content ul li::before,
[dir="rtl"] .abumaizar-content ol li::before {
  left: unset;
  right: 12px;
}

[dir="rtl"] .author-box{ flex-direction:row-reverse; }
[dir="rtl"] .author-box .meta { text-align: right; }
[dir="rtl"] .author-box .meta .author-socials { justify-content: flex-end; }
[dir="rtl"] .site-footer{ flex-direction: row-reverse; }
[dir="rtl"] .toc a:hover{ transform:translateX(-6px); }

/* ... (Remaining Content, Hero, Footer Styles - Ensure these are in your full file) ... */

/* ... (Remaining Content, Hero, Footer Styles - Omitted for brevity, but ensure they are included in your full file) ... */

/* Author Box RTL */
[dir="rtl"] .author-box{ flex-direction:row-reverse; }
[dir="rtl"] .author-box .meta { text-align: right; }
[dir="rtl"] .author-box .meta .author-socials { justify-content: flex-end; }
@media (max-width:768px){
 [dir="rtl"] .author-box{ flex-direction:row-reverse; }
}

/* Footer RTL */
[dir="rtl"] .site-footer{ flex-direction: row-reverse; }
[dir="rtl"] .flex-between{ flex-direction: row-reverse; }
[dir="rtl"] .center{ text-align:right; } /* Center elements in an RTL context */
[dir="rtl"] .toc a:hover{ transform:translateX(-6px); } 


/* ==================== Dark Mode Toggle Button ==================== */
/* Remove ALL previous #dark-mode-toggle CSS except for background/color/hover */

#dark-mode-toggle {
    position: static; /* Remove fixed position inside the drawer */
        width: 100%;
        height: 50px;
        border-radius: 10px;
        font-size: 1rem;
        padding: 0 10px;
        margin-top: 20px;
        display: flex; /* Display the block version */
        justify-content: center;

    /* Keep color/background styles */
   background: var(--dark);
   color: #fff;
   border: none;
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   cursor: pointer;
   transition: background 0.2s ease, transform 0.2s ease;
    
    /* Ensure it is visible if you used a fixed position before */
    position: static; 
}

/* Ensure the mobile hover/dark mode styles work */
#dark-mode-toggle:hover {
 background: var(--accent);
 transform: scale(1.01); /* Subtle hover effect */
}
body.dark-mode #dark-mode-toggle {
 background: var(--accent);
}

/* Hide it from view on desktop if it looks out of place */
@media (min-width: 993px) {
    .abumaizar-nav #dark-mode-toggle {
        /* Hide the button when the menu is wide (desktop) to rely on the fixed version */
        display: none !important;
    }
}

/* Remove the old fixed positioning from global scope if the button is now in the drawer */
/* If you keep the button outside the nav for desktop, only apply the mobile style changes */
body.dark-mode #dark-mode-toggle {
 background: var(--accent);
}
[dir="rtl"] #dark-mode-toggle {
 right: unset;
 left: 20px;
}

/* Remaining original CSS follows... (Omitted here but included in the full replacement) */

/* ... (Remaining Content, Hero, Footer Styles) ... */
.abumaizar-hero-wrapper{ width:100%; overflow:hidden; }
.abumaizar-hero{
 position:relative; text-align:center; padding:80px 20px 36px; z-index:1;
}
.abumaizar-hero .hero-overlay{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.abumaizar-hero .hero-content{ position:relative; z-index:2; max-width:1200px; margin:0 auto; }
.post-category {
 display:inline-block; padding:8px 14px; border-radius:999px; font-weight:700; font-size:13px;
 background: linear-gradient(90deg, rgba(255,92,117,0.12), rgba(255,180,180,0.06));
 color:var(--accent); letter-spacing:0.6px;
 border: 1px solid rgba(255,92,117,0.08);
 box-shadow: 0 6px 18px rgba(255,92,117,0.03);
 margin-bottom:14px;
}
.post-category-box{
 display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:20px;
 background: linear-gradient(90deg, rgba(255,92,117,0.12), rgba(10,23,51,0.04));
 border:1px solid rgba(10,23,51,0.04); font-weight:700; color:var(--dark);
 box-shadow: 0 10px 30px rgba(10,23,51,0.03);
}
.abumaizar-hero h1{ font-size:40px; color:var(--dark); margin:14px 0 8px; line-height:1.06; }
.abumaizar-hero .post-meta{ font-size:14px; color:var(--muted); display:flex; gap:8px; justify-content:center; align-items:center; flex-wrap:wrap; }
.abumaizar-featured-img{ width:85%; max-height:520px; overflow:hidden; margin:28px auto 0 auto; border-radius:20px; position:relative; }
.abumaizar-featured-img img{ width:100%; height:auto; display:block; object-fit:cover; border-radius:20px; }
.abumaizar-featured-img .abumaizar-featured-gradient{
 position:absolute; inset:0; border-radius:20px; pointer-events:none;
 background: linear-gradient(180deg, rgba(10,23,51,.06) 0%, rgba(255,92,117,0.06) 70%);
}
.main-wrap{ max-width:1100px; margin:26px auto 72px; padding:0 16px; display:grid; grid-template-columns: 1fr; gap:28px; }
.abumaizar-content article{ background:var(--card-bg); padding:28px; border-radius:16px; box-shadow: 0 10px 30px rgba(9,12,27,0.04); font-size:17px; line-height:1.78; color:#222; }
.toc {
 border-radius:12px; padding:12px; background:linear-gradient(180deg,#fff,#fbfbff); border:1px solid rgba(10,23,51,0.03);
 box-shadow: 0 8px 20px rgba(11,14,25,0.03); margin-bottom:14px;
}
.toc h4{ margin:0 0 8px 0; font-size:14px; color:var(--dark); }
.toc ul{ list-style:none; margin:0; padding-left:0; display:flex; flex-direction:column; gap:6px; }
.toc a{ text-decoration:none; color:var(--muted); font-size:14px; transition:color .18s; }
.toc a:hover{ color:var(--accent); transform:translateX(6px); }
.author-box{ display:flex; gap:16px; align-items:flex-start; padding:14px; border-radius:12px; border:1px solid rgba(10,23,51,0.04);
 background:linear-gradient(90deg,#fff,#fff); margin-top:18px;
}
.author-box .avatar{ width:72px; height:72px; border-radius:999px; overflow:hidden; flex:0 0 72px; box-shadow:0 6px 18px rgba(10,23,51,0.04); }
.author-box .meta{ flex:1; }
.author-box .meta h5{ margin:0 0 6px; font-size:16px; color:var(--dark); }
.author-box .meta p{ margin:0 0 8px; color:var(--muted); font-size:14px; line-height:1.45; }
.author-box .meta .author-socials{ display:flex; gap:8px; }
.share-row{ display:flex; gap:10px; flex-wrap:wrap; }
.share-btn{
 display:inline-flex; gap:8px; align-items:center; padding:8px 10px; border-radius:10px; font-weight:600; font-size:13px;
 background:linear-gradient(90deg, rgba(10,23,51,0.03), rgba(10,23,51,0.01)); border:1px solid rgba(10,23,51,0.03);
 text-decoration:none; color:var(--dark); transition:transform .15s ease, box-shadow .15s;
}
.share-btn:hover{ transform:translateY(-4px); box-shadow:0 8px 20px rgba(10,23,51,0.06); }
.abumaizar-content article ul{
 padding-left:20px; margin:12px 0 18px 0;
 list-style:none;
}
.abumaizar-content article ul li{
 position:relative; padding-left:38px; margin:10px 0; line-height:1.6;
 background: linear-gradient(90deg, rgba(255,92,117,0.02), rgba(10,23,51,0.01));
 border-radius:10px; padding-top:8px; padding-bottom:8px;
}
.abumaizar-content article ul li::before{
 content:'\2022'; font-size:22px; position:absolute; left:12px; top:8px; color:var(--accent);
 background:rgba(255,255,255,0.9); border-radius:8px; width:26px; height:26px; display:flex; align-items:center; justify-content:center;
 box-shadow: 0 6px 12px rgba(10,23,51,0.04);
}
.abumaizar-content article ol{ counter-reset: dent-counter; padding-left:20px; margin:12px 0 18px 0; list-style:none; }
.abumaizar-content article ol li{
 counter-increment: dent-counter; position:relative; padding-left:48px; margin:12px 0;
 background: linear-gradient(90deg, rgba(10,23,51,0.01), rgba(255,92,117,0.01)); border-radius:12px; padding-top:10px; padding-bottom:10px;
}
.abumaizar-content article ol li::before{
 content:counter(dent-counter); position:absolute; left:12px; top:10px; width:30px; height:30px; border-radius:8px;
 display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff; background:linear-gradient(180deg,var(--accent), #ff7a8a);
 box-shadow:0 6px 18px rgba(255,92,117,0.12);
}
@media (max-width:768px){
 .abumaizar-hero h1{ font-size:28px; }
 .abumaizar-featured-img{ width:94%; }
 .author-box{ flex-direction:row; gap:12px; }
}
.site-footer{
 max-width:1200px; margin:0 auto 32px; padding:18px; display:flex; justify-content:space-between; align-items:center;
 background:transparent; padding-left:20px; padding-right:20px;
}
.site-footer p{ color:var(--muted); margin:0; font-size:14px; }
.flex-between{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.center{ text-align:center; }

/* ==================== PREMIUM FEATURE STYLES ==================== */

/* 1. Contextual Sticky CTA (Fixed Footer Bar) */
#sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Below the hamburger menu, above content */
    background: var(--card-bg); /* Use light mode card background */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    padding: 15px 0;
    transform: translateY(100%); /* Start hidden off-screen */
    transition: transform 0.3s ease-out;
}

#sticky-cta.show {
    transform: translateY(0); /* Show when 'show' class is added by JavaScript */
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-right: 20px;
}

.sticky-cta-btn {
    /* Inherits general .abumaizar-btn styles, just ensure padding is generous */
    padding: 12px 25px !important;
    font-size: 1rem !important;
    flex-shrink: 0;
}

/* Dark Mode Overrides for Sticky CTA */
body.dark-mode #sticky-cta {
    background: var(--dark-card-bg);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
body.dark-mode .cta-message {
    color: var(--dark-text);
}

/* Hide on mobile for better UX (or simplify it) */
@media (max-width: 600px) {
    #sticky-cta {
        padding: 10px 0;
    }
    .cta-message {
        display: none;
    }
    .cta-inner {
        justify-content: center;
    }
    .sticky-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* 2. Verified Medical Authority & Review Box */
.specialist-box {
    background: #fdf6f7; /* Very light pink/accent background */
    border: 1px solid #ffe8eb;
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
}

.specialist-box .box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.specialist-box .box-title {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.review-badge {
    background: #e6ffed;
    color: #00873c;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.review-snippet {
    font-size: 0.9rem;
    color: var(--muted);
}
.rating-stars {
    color: gold;
    margin-right: 5px;
}

.specialist-meta {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.specialist-meta .avatar {
    flex-shrink: 0;
}

.specialist-meta img {
    border-radius: 50%;
    border: 3px solid var(--accent);
    padding: 2px;
}

.specialty-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    display: block;
    margin-top: 3px;
}

.specialist-box p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-top: 5px;
    margin-bottom: 15px;
}

.meet-btn {
    background: transparent !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    padding: 8px 15px !important;
    transition: all 0.2s ease;
}
.meet-btn:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

/* Dark Mode Overrides for Specialist Box */
body.dark-mode .specialist-box {
    background: var(--dark-card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .review-badge {
    background: #0d3b1e;
    color: #55f085;
}
body.dark-mode .specialist-box .box-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .specialist-box p {
    color: var(--dark-muted-text);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .specialist-meta {
        flex-direction: column;
        text-align: center;
    }
    .specialist-meta .meta {
        text-align: center;
    }
    .specialist-meta img {
        margin: 0 auto;
    }
    .specialist-box .box-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .review-badge {
        margin-left: 0;
    }
}

/* ----------------------------------------------------------------- */
/* --- PREMIUM FEATURE 5: READING PROGRESS INDICATOR --- */
/* ----------------------------------------------------------------- */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px; /* Thin bar height */
    width: 0%; /* Starts invisible, JS updates this */
    background: var(--accent);
    z-index: 10000; /* Must be higher than header and CTA */
    transition: width 0.1s linear; /* Smooth, quick update */
}
/* ----------------------------------------------------------------- */
/* --- PREMIUM FEATURE 6: ENHANCED IMAGE STYLING (CAPTIONS) --- */
/* ----------------------------------------------------------------- */
/* Targetting standard WordPress figures and captions */
.abumaizar-content figure {
    margin: 25px auto; /* Center figures in content */
    max-width: 100%;
    /* Add a subtle box shadow to images to make them pop */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    border-radius: 8px; /* Match theme radius */
    overflow: hidden;
}

.abumaizar-content figcaption,
.abumaizar-content .wp-caption-text {
    /* Style for the caption text */
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.02);
    /* Use a visual divider on top instead of a side border */
    border-top: 1px solid rgba(0, 0, 0, 0.08); 
    padding: 10px 15px;
    margin-top: 0; /* Remove top margin so it butts up against the image */
    line-height: 1.4;
    font-style: italic;
    text-align: center; /* Center caption text */
    display: block;
}

/* Dark Mode Overrides for Captions */
body.dark-mode .abumaizar-content figure {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
body.dark-mode .abumaizar-content figcaption,
body.dark-mode .abumaizar-content .wp-caption-text {
    background: rgba(255, 255, 255, 0.05);
    border-top-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-muted-text);
}

/* ----------------------------------------------------------------- */
/* --- PREMIUM FEATURE 7: HIGH-IMPACT CONVERSION BANNER --- */
/* ----------------------------------------------------------------- */
.abumaizar-conversion-banner {
    background: #f7f9fc; /* A very light, clean background */
    border-radius: var(--radius);
    padding: 40px 20px;
    margin: 40px auto 30px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* --- Main CTA Area --- */
.banner-cta {
    flex-basis: 40%; /* Takes up less than half the space */
    text-align: left;
    flex-shrink: 0;
}

.banner-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}

.banner-cta h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-main-btn {
    /* Large, attention-grabbing button */
    background: var(--accent) !important;
    color: #fff !important;
    padding: 14px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}

/* --- Details/Navigation Area --- */
.banner-details {
    flex-basis: 60%; /* Takes up more than half the space */
    display: flex;
    gap: 30px;
}

.detail-box {
    background: #ffffff; /* White background for contrast */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    flex: 1 1 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.detail-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.detail-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.detail-box h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0 0 5px 0;
}

.detail-box p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.detail-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

/* --- Dark Mode Overrides --- */
body.dark-mode .abumaizar-conversion-banner {
    background: var(--dark-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
body.dark-mode .banner-cta h3,
body.dark-mode .detail-box h4 {
    color: var(--dark-text);
}
body.dark-mode .detail-box {
    background: var(--dark-card-bg);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- MOBILE RESPONSIVENESS (Stack the two columns) --- */
@media (max-width: 900px) {
    .banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .banner-cta {
        flex-basis: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .banner-cta h3 {
        font-size: 1.6rem;
    }

    .banner-details {
        flex-basis: 100%;
        flex-direction: column; /* Stack the location and call boxes */
    }
    
    .detail-box {
        flex: auto; /* Allow boxes to take full width */
        text-align: center;
    }
}
/* ----------------------------------------------------------------- */
/* --- PREMIUM FEATURE 8: FLOATING TRUST BAR --- */
/* ----------------------------------------------------------------- */
#trust-bar {
    background-color: var(--light-gray); /* Subtle background */
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 990; /* Below sticky CTA, above main content */
    text-align: center;
}

.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.trust-item {
    white-space: nowrap; /* Keep items on a single line */
}

.trust-cta-mobile {
    display: none; /* Hide the mobile CTA by default */
}

.trust-cta-mobile a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

/* Dark Mode Overrides */
body.dark-mode #trust-bar {
    background-color: var(--dark-card-bg);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .trust-inner {
    color: var(--dark-muted-text);
}

/* Mobile Responsiveness for Trust Bar */
@media (max-width: 768px) {
    .trust-inner {
        justify-content: center;
    }
    .trust-item {
        display: none; /* Hide most items to save space */
    }
    .trust-cta-mobile {
        display: block; /* ONLY show the Call Now button on mobile */
    }
}

/* Update your CSS to handle hierarchy with the new dynamic classes */

/* Base style for all list items */
#toc-list li {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    line-height: 1.3;
}

/* Style for H2 items (Top-level) */
#toc-list .h2 {
    font-weight: 700;
    margin-top: 15px; /* Add space above new section */
}

/* Style for H3 items (Sub-level, indented) */
#toc-list .h3 {
    margin-left: 15px;
}

/* Style for H4 items (Sub-sub-level, further indented) */
#toc-list .h4 {
    margin-left: 30px;
    font-size: 0.9em;
}

/* Active state for all levels */
#toc-list .active > a {
    color: #007bff; 
    font-weight: 700;
    border-left: 2px solid #007bff;
    padding-left: 10px;
    margin-left: 0;
}

/* * TOC & Layout Styles 
 * Added for visual hierarchy, responsiveness, and sticky positioning
 */

:root {
    --text-color: #333;
    --link-color: #007bff;
    --toc-bg: #f8f8f8;
    --toc-active: #007bff;
    --muted: #6c757d;
}

body.dark-mode {
    --text-color: #f1f1f1;
    --link-color: #8ab4f8; /* Lighter blue for dark mode */
    --toc-bg: #2a2a2a;
    --toc-active: #8ab4f8;
}

/* 1. MAIN LAYOUT GRID for Content and Sidebar */
.main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* Enables side-by-side layout */
    gap: 30px;
}

/* Default content width is full width */
.content-area,
.abumaizar-content {
    width: 100%;
    margin-bottom: 30px;
}

/* 2. TOC SIDEBAR STYLES */
.toc-sidebar {
    /* Hide by default on mobile, show via JS toggle button */
    display: none; 
    
    /* Desktop styles for sidebar */
    position: sticky;
    top: 100px; /* Offset for sticky header */
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--toc-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 200px; /* Minimum width for readability */
}

/* Show the sidebar on larger screens */
@media (min-width: 1024px) {
    .toc-sidebar {
        display: block; /* Always visible on desktop */
        flex: 0 0 250px; /* Fixed width sidebar */
        order: 2; /* Place it after the content in the flex order */
    }
    .main-wrap {
        flex-direction: row;
    }
    .content-area {
        flex: 1; /* Content takes remaining space */
        order: 1;
    }
}

/* 3. TOC LIST HIERARCHY & SCROLLSPY VISUALS */
#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc-list li {
    margin: 4px 0;
    line-height: 1.4;
}

#toc-list a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 2px 5px;
    border-left: 2px solid transparent; /* Base for active indicator */
    transition: all 0.2s ease;
    font-size: 0.95em;
}

/* Indentation based on heading level */
#toc-list .h2 {
    font-weight: 600;
    margin-top: 10px;
    font-size: 1em;
}

#toc-list .h3 {
    margin-left: 15px;
}

#toc-list .h4 {
    margin-left: 30px;
    font-size: 0.85em;
}

/* Active State (ScrollSpy Highlight) */
#toc-list .active > a {
    color: var(--toc-active);
    font-weight: 700;
    border-left-color: var(--toc-active);
}