/* Global Image & Layout Shift Stabilizers (Core Web Vitals CLS) */
img {
  max-width: 100%;
  height: auto;
}

/* تأثيرات إضافية مخصصة لقالب abozaidTheme */
@keyframes azPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes azFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.az-ambient-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: azPulse 6s ease-in-out infinite;
}

/* شريط التمرير المخصص Dark SaaS */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22C55E;
}

/* تحسينات القائمة العلوية Navigation والتنقل */
.wp-block-navigation .wp-block-navigation-item a {
  color: #b3b3b3 !important;
  transition: color 0.25s ease;
  font-family: var(--wp--preset--font-family--tajawal), sans-serif;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
  color: #22C55E !important;
}

/* بطاقات المكونات وأطر الأمان */
.az-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.az-card-hover:hover {
  border-color: #22C55E !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(34, 197, 94, 0.25);
}

/* استجابة الشبكة للأجهزة المحمولة */
@media (max-width: 768px) {
  .wp-block-columns {
    gap: 1.5rem !important;
  }
}

/* تنسيقات باقات الكورس الثلاث (Course Pricing Tiers) */
.az-tier-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.az-tier-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7) !important;
}

.az-tier-card.is-featured:hover {
  border-color: rgba(34, 197, 94, 0.8) !important;
  box-shadow: 0 0 45px -5px rgba(34, 197, 94, 0.35) !important;
}

.az-btn-tier {
  position: relative;
  overflow: hidden;
}

.az-btn-tier:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.az-student-tier-banner {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  animation: azFloat 5s ease-in-out infinite;
}

/* ==========================================================================
   HEADER & NAVIGATION RESPONSIVE STYLES
   ========================================================================== */
.az-main-header,
header.wp-block-group {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
}

@media (max-width: 768px) {
  .az-main-header,
  header.wp-block-group.sticky {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
    gap: 0.75rem !important;
  }

  .az-main-header .wp-block-site-logo img,
  header.wp-block-group .wp-block-site-logo img,
  header.wp-block-group .custom-logo {
    /* Keep the wide logo shape readable on small screens instead of cropping it. */
    max-width: 118px !important;
    height: 64px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
  }

  .az-header-brand .wp-block-site-title,
  header.wp-block-group .wp-block-site-title {
    font-size: 1.2rem !important;
    white-space: nowrap !important;
  }

  /* إخفاء زر CTA الكبير في شريط الهيدر على الموبايل لمنع تدفق الشاشة */
  .az-header-cta,
  header.wp-block-group .az-header-cta,
  header.wp-block-group .wp-block-buttons {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .az-main-header,
  header.wp-block-group.sticky {
    padding-right: 0.85rem !important;
    padding-left: 0.85rem !important;
  }

  .az-header-brand .wp-block-site-title,
  header.wp-block-group .wp-block-site-title {
    font-size: 1.05rem !important;
  }
}

/* ==========================================================================
   FOOTER RESPONSIVE STYLES
   ========================================================================== */
.az-main-footer,
footer.wp-block-group {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.az-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1.5fr !important;
  gap: 2.5rem !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.az-footer-col {
  box-sizing: border-box !important;
}

.az-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.az-footer-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.az-footer-links a {
  color: #a3a3a3 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  transition: color 0.2s ease !important;
}

.az-footer-links a:hover {
  color: #22c55e !important;
}

@media (max-width: 768px) {
  .az-main-footer,
  footer.wp-block-group {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }

  .az-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: right !important;
  }

  .az-footer-columns,
  footer .wp-block-columns,
  footer .wp-block-columns.alignwide {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.25rem !important;
    margin: 0 !important;
    width: 100% !important;
  }

  footer .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   SINGLE POST, SIDEBAR & TABLE OF CONTENTS (TOC)
   ========================================================================== */

/* شريط تقدم القراءة في أعلى الصفحة */
.az-reading-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #10b981, #3b82f6);
  z-index: 999999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

/* تخطيط الحاوية العامة للمقال */
.az-single-main-wrapper {
  background-color: #050505;
  color: #e5e7eb;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.az-single-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
  box-sizing: border-box;
}

/* هيدر المقال */
.az-single-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2.5rem;
}

.az-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.az-post-category-badge a,
.az-post-category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.az-post-category-badge a:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
}

.az-reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.az-single-post-title,
.az-single-header h1 {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.az-post-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.az-post-meta-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.az-meta-author-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.az-meta-author-name {
  font-weight: 600;
  color: #f3f4f6;
}

.az-meta-separator {
  color: #4b5563;
}

.az-post-meta-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* الشبكة الرئيسية: عمود المحتوى + عمود السايد بار */
.az-single-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3.5rem;
  align-items: start;
}

.az-single-content-col {
  min-width: 0;
  max-width: 100%;
}

/* تنسيق مقال المحتوى الداخلي */
.az-article-body-content {
  font-family: var(--wp--preset--font-family--tajawal), system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.95;
  color: #d1d5db;
}

.az-article-body-content p {
  margin-bottom: 1.65rem;
}

.az-article-body-content h2 {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  position: relative;
  scroll-margin-top: 110px;
}

.az-article-body-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 60px;
  height: 2px;
  background: #22c55e;
}

.az-article-body-content h3 {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #86efac;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 110px;
}

.az-article-body-content h4 {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 110px;
}

.az-article-body-content ul,
.az-article-body-content ol {
  margin-bottom: 1.75rem;
  padding-right: 1.5rem;
}

.az-article-body-content li {
  margin-bottom: 0.65rem;
  line-height: 1.85;
}

.az-article-body-content a {
  color: #22c55e;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.az-article-body-content a:hover {
  color: #4ade80;
}

.az-article-body-content blockquote {
  background: rgba(34, 197, 94, 0.05);
  border-inline-start: 4px solid #22c55e;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  color: #d1d5db;
  font-style: italic;
}

.az-article-body-content pre {
  background: #0d120e !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--wp--preset--font-family--jetbrains-mono), monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 2rem 0;
  direction: ltr;
  text-align: left;
}

.az-article-body-content code {
  font-family: var(--wp--preset--font-family--jetbrains-mono), monospace;
  background: rgba(255, 255, 255, 0.07);
  color: #86efac;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  direction: ltr;
  display: inline-block;
}

.az-article-body-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  display: block;
}

.az-article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.az-article-body-content th,
.az-article-body-content td {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.az-article-body-content th {
  background: #111713;
  color: #22c55e;
  font-weight: 700;
}

.az-article-body-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* تنسيق قسم الـ FAQ في أسفل المقال */
.az-faq-section {
  background: #0d120e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  padding: 2.25rem;
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
}

.az-faq-title {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.75rem;
  color: #ffffff;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: none !important;
}

.az-faq-title::after {
  display: none !important;
}

.az-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.az-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.az-faq-q {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 0.65rem;
}

.az-faq-a {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #9ca3af;
  margin: 0;
}

/* قسم المصادر المعتمدة */
.az-sources-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.az-sources-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none !important;
}

.az-sources-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.az-sources-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.az-sources-list li:last-child {
  border-bottom: none;
}

.az-sources-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

/* فهرس الموبايل القابل للطي (Mobile Collapsible TOC) */
.az-mobile-toc-container {
  display: none;
  margin-bottom: 2.5rem;
}

.az-mobile-toc-details {
  background: #0d120e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.az-mobile-toc-summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #86efac;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.az-mobile-toc-summary::-webkit-details-marker {
  display: none;
}

.az-mobile-toc-list {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.az-mobile-toc-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.az-mobile-toc-list li {
  margin: 0.5rem 0;
}

.az-mobile-toc-list a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.az-mobile-toc-list a:hover {
  color: #22c55e;
}

/* السايد بار الشريط الجانبي (Sidebar Column) */
.az-single-sidebar-col {
  box-sizing: border-box;
}

.az-sticky-sidebar-inner {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* بطاقات عناصر السايد بار */
.az-sidebar-widget {
  background: #0a0d0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.az-widget-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.az-widget-title {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.az-toc-reading-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.az-toc-reading-bar-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.1s ease-out;
}

/* قائمة الـ TOC في السايد بار */
.az-sidebar-toc-nav {
  max-height: calc(100vh - 420px);
  min-height: 120px;
  overflow-y: auto;
  padding-inline-end: 0.5rem;
}

.az-sidebar-toc-nav::-webkit-scrollbar {
  width: 4px;
}

.az-sidebar-toc-nav::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 2px;
}

.az-sidebar-toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.az-toc-item {
  margin: 0.4rem 0;
}

.az-toc-item.is-h3 {
  padding-inline-start: 1rem;
}

.az-toc-link {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #9ca3af;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border-inline-start: 2px solid transparent;
  transition: all 0.2s ease;
}

.az-toc-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.az-toc-link.is-active {
  color: #22c55e !important;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.08);
  border-inline-start-color: #22c55e;
}

/* بطاقة الكاتب بالسايد بار */
.az-author-widget-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.az-author-widget-avatar img {
  border-radius: 9999px;
  border: 2px solid #22c55e;
}

.az-author-widget-name {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem;
}

.az-author-widget-tag {
  font-size: 0.8rem;
  color: #22c55e;
}

.az-author-widget-desc {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.az-btn-sidebar-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.az-btn-sidebar-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.4);
}

/* بطاقة الدبلومة بالسايد بار */
.az-diploma-widget {
  background: radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12) 0%, #0a0d0a 60%);
  border-color: rgba(34, 197, 94, 0.3);
}

.az-diploma-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.az-diploma-widget-title {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.az-diploma-widget-desc {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.az-btn-sidebar-diploma {
  display: block;
  text-align: center;
  background: #22c55e;
  color: #050505 !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.az-btn-sidebar-diploma:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -6px rgba(34, 197, 94, 0.5);
}

/* صندوق الكاتب أسفل المقال */
.az-author-box {
  display: flex;
  gap: 1.5rem;
  background: #0d120e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin: 3.5rem 0 2.5rem;
  align-items: center;
}

.az-author-avatar-wrap img {
  border-radius: 9999px;
  border: 3px solid #22c55e;
}

.az-author-header {
  margin-bottom: 0.5rem;
}

.az-author-name {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.az-author-role {
  font-size: 0.88rem;
  color: #22c55e;
}

.az-author-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.az-author-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.az-author-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366 !important;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.az-author-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.22);
}

.az-author-diploma-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.az-author-diploma-btn:hover {
  background: rgba(34, 197, 94, 0.22);
}

/* التنقل بين المقال السابق والتالي */
.az-post-navigation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.az-nav-prev a,
.az-nav-next a {
  display: block;
  background: #0a0d0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  color: #e5e7eb !important;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.98rem;
  line-height: 1.5;
}

.az-nav-prev a:hover,
.az-nav-next a:hover {
  border-color: #22c55e;
  background: #0f1610;
  transform: translateY(-2px);
}

/* استجابة الشاشات الصغيرة (Responsive Media Queries) */
@media (max-width: 1024px) {
  .az-single-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .az-mobile-toc-container {
    display: block;
  }

  .az-toc-widget {
    display: none !important;
  }

  .az-sticky-sidebar-inner {
    position: static;
  }
}

@media (max-width: 768px) {
  .az-single-container {
    padding: 1.5rem 1rem 4rem;
  }

  .az-single-post-title,
  .az-single-header h1 {
    font-size: 1.85rem;
  }

  .az-author-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .az-author-actions {
    justify-content: center;
  }

  .az-post-navigation-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AboZaid Theme - 3D Immersive Architecture & Micro-interactions
   ========================================================================== */

/* 1. Hero 3D Canvas Layering & CLS Stabilization */
#hero,
.az-hero-dark-wrap {
  position: relative !important;
  overflow: hidden !important;
  min-height: 80vh;
  contain: layout style;
}

.custom-logo,
.wp-block-site-logo img {
  aspect-ratio: 1 / 1;
  max-width: 118px;
  height: auto;
}

.az-hero-3d-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  transition: opacity 0.5s ease-in-out;
  contain: strict;
}

.az-hero-3d-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Ensure all interactive content in hero sits cleanly above 3D canvas */
#hero > *:not(.az-hero-3d-wrapper),
.az-hero-dark-wrap > *:not(.az-hero-3d-wrapper) {
  position: relative;
  z-index: 2;
}

/* 2. 3D Card Tilt & Holographic Specular Glare */
.az-tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
}

.az-tilt-card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle 350px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(34, 197, 94, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
  z-index: 5;
}

.az-tilt-card:hover .az-tilt-card-glare {
  opacity: 1;
}

/* 3. Reduced Motion & Mobile Fallback */
@media (prefers-reduced-motion: reduce) {
  .az-hero-3d-wrapper {
    display: none !important;
  }
  .az-tilt-card {
    transform: none !important;
  }
}

html.no-webgl .az-hero-3d-wrapper,
.no-webgl .az-hero-3d-wrapper {
  display: block !important;
  background: radial-gradient(circle 600px at 70% 30%, rgba(34, 197, 94, 0.12) 0%, rgba(132, 204, 22, 0.05) 40%, transparent 70%);
  animation: azGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes azGlowPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.08) translate(-20px, 15px); opacity: 0.95; }
}

/* ==========================================================================
   AboZaid Theme - Direction 1: Minimalist Centered Hero (Linear / Vercel)
   ========================================================================== */
.az-hero-minimal-section {
  position: relative !important;
  overflow: hidden !important;
  padding: 6.5rem 1.5rem 5rem !important;
  min-height: 82vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--wp--preset--color--brand-bg, #050505) !important;
  text-align: center !important;
}

.az-hero-minimal-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.az-hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 9999px;
  padding: 0.45rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #22C55E;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.az-hero-pill-badge:hover {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.az-hero-minimal-title {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  color: #ffffff !important;
  margin: 0 0 1.5rem !important;
  letter-spacing: -0.02em;
}

.az-hero-minimal-subtitle {
  font-family: var(--wp--preset--font-family--tajawal), sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: #b3b3b3;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.az-hero-minimal-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.az-btn-primary-glow {
  background: #22C55E;
  color: #050505 !important;
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
  border-radius: 9999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 30px -4px rgba(34, 197, 94, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.az-btn-primary-glow:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -2px rgba(34, 197, 94, 0.65);
}

.az-btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 2.2rem;
  border-radius: 9999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.az-btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.az-hero-minimal-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: #737373;
  font-size: 0.92rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.az-trust-dot {
  color: #22C55E;
  opacity: 0.6;
}

/* ==========================================================================
   AboZaid Theme - The 5 Distinct 3D Hero Pattern Styles
   ========================================================================== */

/* Style 1: 3D Developer Passport Card */
.az-passport-3d-wrap {
  background: linear-gradient(135deg, rgba(20, 28, 22, 0.9) 0%, rgba(10, 15, 11, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(34, 197, 94, 0.2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.az-passport-inner-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.az-passport-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.az-passport-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

.az-passport-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}

.az-passport-status {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  color: #22C55E;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.az-passport-avatar-box {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.az-passport-avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.35);
}

.az-passport-az-logo {
  font-family: var(--wp--preset--font-family--cairo);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.az-passport-details {
  text-align: center;
}

.az-passport-name {
  font-family: var(--wp--preset--font-family--cairo);
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.3rem;
  letter-spacing: 0.05em;
}

.az-passport-role {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8rem;
  color: #22C55E;
  margin: 0 0 1rem;
}

.az-passport-id-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  color: #737373;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.6rem;
}

.az-passport-barcode {
  text-align: center;
  margin-top: 1rem;
}

.az-barcode-lines {
  display: block;
  height: 24px;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 2px, transparent 2px, transparent 4px, #fff 4px, #fff 5px, transparent 5px, transparent 8px);
  opacity: 0.65;
  margin-bottom: 0.4rem;
}

.az-barcode-code {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.62rem;
  color: #525252;
  letter-spacing: 0.15em;
}

/* Style 2: Monolith crystal */
.az-hero-monolith-section {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.12) 0%, transparent 60%), #050505;
}

/* Style 3: Cyber Horizon */
.az-hero-horizon-section {
  background: radial-gradient(circle 800px at 50% 100%, rgba(34, 197, 94, 0.15) 0%, transparent 70%), #040805;
}

/* Style 4: Isometric Canvas */
.az-isometric-canvas-wrapper {
  transition: transform 0.2s ease-out;
}
.az-isometric-canvas-wrapper:hover {
  transform: perspective(1200px) rotateX(4deg) scale(1.02);
}

/* Style 5: Dot-Matrix Globe */
.az-3d-globe-container canvas {
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   AboZaid Theme - 3D Tracks Portal Block Styles
   ========================================================================== */
.az-tracks-portal-section {
  background: radial-gradient(circle 900px at 50% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 70%), #050805 !important;
}

.az-tracks-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .az-tracks-portal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.az-tracks-list-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.az-track-item-card {
  background: rgba(14, 20, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  outline: none;
}

.az-track-item-card:hover {
  background: rgba(20, 32, 22, 0.95);
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateX(-4px);
}

.az-track-item-card.is-active {
  background: linear-gradient(135deg, rgba(20, 35, 23, 0.95) 0%, rgba(12, 18, 13, 0.95) 100%);
  border-color: #22C55E;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(34, 197, 94, 0.2);
  transform: translateX(-6px);
}

.az-track-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.az-track-item-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.az-track-item-title {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  transition: color 0.2s ease;
}

.az-track-item-card.is-active .az-track-item-title {
  color: #22C55E;
}

.az-track-item-tag {
  font-family: var(--wp--preset--font-family--mono), monospace;
  font-size: 0.82rem;
  color: #8c8c8c;
  margin: 0;
}

.az-track-item-card.is-active .az-track-item-tag {
  color: #86efac;
}

/* Right Stage Card */
.az-tracks-stage-card {
  background: linear-gradient(145deg, rgba(16, 25, 18, 0.9) 0%, rgba(8, 12, 9, 0.98) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 197, 94, 0.15);
  position: relative;
  overflow: hidden;
}

.az-stage-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.az-stage-label {
  font-family: var(--wp--preset--font-family--mono), monospace;
  font-size: 0.78rem;
  color: #22C55E;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.az-stage-counter {
  font-family: var(--wp--preset--font-family--mono), monospace;
  font-size: 0.78rem;
  color: #737373;
}

.az-tracks-3d-canvas {
  width: 100%;
  height: 270px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.az-tracks-3d-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.az-tracks-info-stack {
  position: relative;
  min-height: 160px;
}

.az-track-info-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.az-track-info-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.az-tech-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22C55E;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-family: var(--wp--preset--font-family--mono), monospace;
  margin-bottom: 0.85rem;
}

.az-track-panel-title {
  font-family: var(--wp--preset--font-family--cairo), sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.6rem;
}

.az-track-panel-desc {
  font-family: var(--wp--preset--font-family--tajawal), sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #b3b3b3;
  margin: 0 0 1.25rem;
}

.az-track-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #22C55E;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.az-track-explore-link:hover {
  color: #86efac;
  transform: translateX(-4px);
}

/* ==========================================================================
   AboZaid Theme - 3D Projects Perspective Carousel Block Styles
   ========================================================================== */
.az-projects-3d-section {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(34, 197, 94, 0.1) 0%, transparent 60%), #050705 !important;
}

.az-carousel-live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 10, 6, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22C55E;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--wp--preset--font-family--mono), monospace;
  backdrop-filter: blur(8px);
}

.az-carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 32, 22, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22C55E;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.az-carousel-btn:hover {
  background: #22C55E;
  color: #050505;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
  transform: scale(1.08);
}

.az-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.az-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.az-carousel-dot.is-active {
  width: 24px;
  border-radius: 9999px;
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@media (max-width: 768px) {
  .az-carousel-card {
    width: 290px !important;
    height: 380px !important;
  }
  .az-carousel-deck {
    height: 410px !important;
  }
}

