/* ==========================================================================
   الدرع المميز - Design System & Stylesheet
   ========================================================================== */

:root {
  /* Color Palette - Official Red & Black Identity (الهوية الرسمية الحمراء والسوداء) */
  --primary: #8b0000;
  --primary-light: #b91c1c;
  --primary-dark: #700000;
  --primary-gradient: linear-gradient(135deg, #700000 0%, #8b0000 50%, #dc2626 100%);
  --secondary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);

  --shield-glow: radial-gradient(circle at 50% 50%, rgba(185, 28, 28, 0.2) 0%, rgba(139, 0, 0, 0.05) 50%, transparent 70%);

  /* Neutrals (Light Mode) */
  --bg-body: #fbfbfb;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-nav: rgba(255, 255, 255, 0.85);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-glass: rgba(255, 255, 255, 0.6);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 35px rgba(185, 28, 28, 0.3);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #080a0f;
  --bg-surface: #0f131a;
  --bg-card: rgba(15, 19, 26, 0.8);
  --bg-nav: rgba(8, 10, 15, 0.88);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.1);

  --shield-glow: radial-gradient(circle at 50% 50%, rgba(185, 28, 28, 0.3) 0%, rgba(139, 0, 0, 0.1) 50%, transparent 70%);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 45px rgba(185, 28, 28, 0.45);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Glassmorphism Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(185, 28, 28, 0.4);
}

/* Gradient Text */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 0, 0, 0.5);
}

.btn-gold {
  background: var(--accent-gradient);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(139, 0, 0, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* Header & Top Bar */
.main-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  width: 100%;
  transition: all var(--transition-normal);
}

.top-bar {
  background-color: #8b0000;
  color: #ffffff;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  width: 100%;
  margin-top: 0;
  opacity: 1;
  transform: translateY(0);
  transition: margin-top 0.52s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  will-change: margin-top, opacity, transform;
}

/* Glassmorphism Sticky State on Scroll */
.main-header.header-scrolled {
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.1);
}

/* Ultra-Smooth Slide-Up & Fade-Out on Scroll Down */
.main-header.top-bar-hidden .top-bar {
  margin-top: -46px !important;
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  border-bottom-color: transparent !important;
  pointer-events: none !important;
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-bar-link i,
.top-bar-link svg {
  font-size: 0.95rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-social-link,
.top-bar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  text-decoration: none;
}

.top-bar-social-link:hover,
.top-bar-social-btn:hover {
  transform: translateY(-2px) scale(1.08);
  color: #ffffff;
}

.top-bar-social-btn.wa:hover, .top-bar-social-link.wa:hover { background: #25d366 !important; }
.top-bar-social-btn.fb:hover, .top-bar-social-link.fb:hover { background: #1877f2 !important; }
.top-bar-social-btn.ig:hover, .top-bar-social-link.ig:hover { background: #e1306c !important; }
.top-bar-social-btn.tt:hover, .top-bar-social-link.tt:hover { background: #000000 !important; }

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
  main {
    padding-top: 100px !important;
  }
}

/* Navbar with Glassmorphism */
.navbar {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header.header-scrolled .navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .main-header.header-scrolled .navbar {
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 66px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast), background var(--transition-fast), padding var(--transition-fast), border-radius var(--transition-fast);
}

/* Brand Logo in Dark Mode: Crisp white background, smooth padding and elegant border-radius */
[data-theme="dark"] .brand-logo-img {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 4px 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .footer .brand-logo-img {
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 3px 6px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35) !important;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding: 0.35rem 0.15rem;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: #8b0000;
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: #8b0000;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #8b0000 !important;
}

.nav-link.active::after {
  width: 100%;
  background: #8b0000;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Language Switcher Dropdown (Mini Glassmorphism Badge) */
.lang-switcher-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch-btn {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  height: 26px;
  padding: 0 7px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.76rem;
  transition: all 0.2s ease;
  outline: none;
}

[data-theme="dark"] .lang-switch-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.lang-switch-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

[data-theme="dark"] .lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-globe-icon {
  display: none !important;
}

.lang-current-code {
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.76rem;
  line-height: 1;
}

.lang-chevron-icon {
  font-size: 0.55rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.lang-switcher-wrapper.active .lang-chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu - Centered Directly Under Button */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(-4px) scale(0.95);
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 3px;
  width: 76px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="dark"] .lang-dropdown-menu {
  background: rgba(20, 24, 33, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.lang-switcher-wrapper.active .lang-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.lang-dropdown-item {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  text-align: center;
}

.lang-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown-item.active {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

[data-theme="dark"] .lang-dropdown-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Call Us Pill Button */
.btn-call-us {
  background-color: #8b0000;
  color: #ffffff !important;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.48rem 1.45rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(139, 0, 0, 0.35);
  transition: all var(--transition-normal);
}

.btn-call-icon {
  display: none;
}

.btn-call-text {
  display: inline;
}

.btn-call-us:hover {
  background-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 0, 0, 0.5);
}

/* Empty Page Layouts */
.page-empty-container {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 1.5rem 60px;
}

.page-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  background: rgba(139, 0, 0, 0.08);
  color: #8b0000;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

.page-empty-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-empty-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
}

/* Theme Toggle Switch */
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  border-color: #8b0000;
  color: #8b0000;
}

/* Mobile Nav Toggle & Responsive Drawer */
.mobile-toggle {
  display: none;
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.25);
  color: #dc143c;
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

[data-theme="dark"] .mobile-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mobile-toggle:hover, .mobile-toggle.active {
  background: #dc143c !important;
  color: #ffffff !important;
  border-color: #dc143c !important;
  transform: scale(1.04);
}

@media (max-width: 992px) {
  /* Floating Luxury Island Header with Equal Top, Right, Left Margins */
  .main-header {
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    border-radius: 20px !important;
    overflow: visible !important;
    transition: top 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                left 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                right 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                border-radius 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                box-shadow 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) !important;
    will-change: top, left, right, border-radius;
  }

  .navbar {
    padding: 0.9rem 1.1rem !important;
    min-height: 76px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    transition: padding 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                min-height 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                border-radius 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                border-color 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                background-color 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
                box-shadow 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) !important;
    will-change: padding, min-height, border-radius;
  }

  [data-theme="dark"] .navbar {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
  }

  /* When Scrolled: Margins smoothly collapse and header docks to full edges */
  .main-header.header-scrolled {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
  }

  .main-header.header-scrolled .navbar {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    padding: 0.6rem 1.1rem !important;
    min-height: 68px !important;
  }

  .main-header.header-scrolled .nav-links {
    border-radius: 0 0 20px 20px !important;
    top: 100% !important;
  }

  .mobile-toggle {
    display: inline-flex !important;
    order: -1; /* أقصى اليمين في الاتجاه العربي RTL */
    z-index: 20 !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.35rem !important;
    border-radius: 12px !important;
  }

  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Header Logo Perfectly Centered & Prominently Sized on Mobile (Scoped strictly to Header Navbar) */
  .navbar .brand-logo,
  .nav-container .brand-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .navbar .brand-logo-img,
  .nav-container .brand-logo-img {
    height: 58px !important;
    width: auto !important;
  }

  .footer .brand-logo {
    position: static !important;
    transform: none !important;
    margin-bottom: 0.8rem !important;
    display: inline-flex !important;
  }

  .footer .brand-logo-img {
    height: 48px !important;
    width: auto !important;
  }

  /* Mobile Drawer Container Floating under Header */
  .nav-links {
    display: none;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    inset-inline: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px !important;
    border: 1px solid rgba(139, 0, 0, 0.25) !important;
    padding: 0.85rem 1rem 1.5rem;
    flex-direction: column;
    gap: 0.35rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    z-index: 999999;
    list-style: none;
    margin: 0;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(17, 24, 39, 0.98);
    border-color: rgba(220, 20, 60, 0.35) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
  }

  .nav-links.active {
    display: flex !important;
    animation: deraaMenuFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes deraaMenuFade {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links li {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Theme Button in Mobile Menu Drawer (Placed at the VERY TOP above الرئيسية) */
  .mobile-theme-item {
    display: block !important;
    width: 100% !important;
    order: -1 !important; /* يظهر أول عنصر في الأعلى */
    margin-bottom: 6px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed rgba(139, 0, 0, 0.2) !important;
    border-top: none !important;
  }

  [data-theme="dark"] .mobile-theme-item {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  }

  .mobile-theme-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 15px !important;
    border-radius: 9px !important;
    background: rgba(139, 0, 0, 0.05) !important;
    color: #8b0000 !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    border: 1.5px solid rgba(139, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
  }

  [data-theme="dark"] .mobile-theme-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f3f6ff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  }

  .mobile-theme-btn:hover {
    background: #8b0000 !important;
    color: #ffffff !important;
    border-color: #8b0000 !important;
  }

  [data-theme="dark"] .mobile-theme-btn:hover {
    background: #dc143c !important;
    color: #ffffff !important;
    border-color: #dc143c !important;
  }

  /* Navigation Links - Compact & Sleek Size */
  .nav-links .nav-link {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 15px !important;
    border-radius: 9px !important;
    background: rgba(0, 0, 0, 0.03);
    color: #1e293b !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.22s ease !important;
    text-decoration: none !important;
  }

  [data-theme="dark"] .nav-links .nav-link {
    background: rgba(255, 255, 255, 0.04);
    color: #f3f6ff !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links .nav-link:hover, 
  .nav-links .nav-link.active {
    background: linear-gradient(135deg, #8b0000, #a10230) !important;
    color: #ffffff !important;
    transform: translateX(-4px) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.25) !important;
  }

  [data-theme="dark"] .nav-links .nav-link:hover,
  [data-theme="dark"] .nav-links .nav-link.active {
    background: linear-gradient(135deg, #dc143c, #a10230) !important;
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.35) !important;
  }

  .nav-actions .theme-btn {
    display: none !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 20 !important;
  }

  .nav-actions .lang-switcher-wrapper {
    display: inline-flex !important;
  }

  .nav-actions .lang-switch-btn {
    height: 26px !important;
    padding: 0 6px !important;
    font-size: 0.74rem !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
  }

  [data-theme="dark"] .nav-actions .lang-switch-btn {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
  }

  .lang-dropdown-menu {
    top: calc(100% + 4px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-4px) scale(0.95) !important;
  }

  .lang-switcher-wrapper.active .lang-dropdown-menu {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }

  /* Responsive Phone Call Button Icon */
  .btn-call-text {
    display: none !important;
  }

  .btn-call-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
  }

  .btn-call-us {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #8b0000, #dc143c) !important;
    box-shadow: 0 4px 14px rgba(220, 20, 60, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.22s ease !important;
  }

  .btn-call-us:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(220, 20, 60, 0.6) !important;
  }
}

.mobile-theme-item {
  display: none;
}

/* ==========================================================================
   DERAA HERO 3D CAROUSEL (معزول وفائق الثبات والأداء)
   ========================================================================== */
.hero-slider-section {
  padding-top: 140px;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
  direction: ltr !important;
}

.deraa-hero-3d {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 28px;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
  touch-action: pan-y;
  direction: ltr !important;
}

.deraa-hero-3d__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.deraa-hero-3d__card {
  position: absolute;
  width: 68%;
  height: 82%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1),
              opacity 0.65s cubic-bezier(0.25, 1, 0.35, 1),
              filter 0.65s cubic-bezier(0.25, 1, 0.35, 1),
              box-shadow 0.65s ease;
  will-change: transform, opacity;
}

.deraa-hero-3d__card.is-active {
  transform: translateX(0%) scale(1) translateZ(0px) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 0, 0, 0.3);
}

.deraa-hero-3d__card.is-next {
  transform: translateX(52%) scale(0.82) translateZ(-160px) rotateY(-20deg);
  opacity: 0.65;
  filter: brightness(0.7);
  z-index: 5;
  pointer-events: auto;
}

.deraa-hero-3d__card.is-prev {
  transform: translateX(-52%) scale(0.82) translateZ(-160px) rotateY(20deg);
  opacity: 0.65;
  filter: brightness(0.7);
  z-index: 5;
  pointer-events: auto;
}

.deraa-hero-3d__card.is-hidden {
  transform: translateX(0%) scale(0.6) translateZ(-350px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.deraa-hero-3d__card:hover.is-active .deraa-hero-3d__img {
  transform: scale(1.04);
}

.deraa-hero-3d__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.deraa-hero-3d__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.35, 1);
  display: block;
}

.deraa-hero-3d__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 35px;
  z-index: 3;
  pointer-events: none;
}

.deraa-hero-3d__title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 900;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}

html[lang="ar"] .deraa-hero-3d__overlay,
html[dir="rtl"] .deraa-hero-3d__overlay {
  direction: rtl;
  text-align: right;
}

html[lang="en"] .deraa-hero-3d__overlay,
html[dir="ltr"] .deraa-hero-3d__overlay {
  direction: ltr;
  text-align: left;
}

/* Floating Link Badge on Hover */
.deraa-hero-3d__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 74px;
  height: 74px;
  background: rgba(139, 0, 0, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 35px rgba(139, 0, 0, 0.6);
  pointer-events: none;
  z-index: 5;
}

.deraa-hero-3d__card:hover.is-active .deraa-hero-3d__badge {
  transform: translate(-50%, -50%) scale(1);
}

/* Navigation Buttons */
.deraa-hero-3d__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.deraa-hero-3d__btn:hover {
  background: #8b0000;
  border-color: #8b0000;
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.deraa-hero-3d__btn--prev {
  left: 25px;
}

.deraa-hero-3d__btn--next {
  right: 25px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-slider-section {
    padding-top: 130px;
    padding-bottom: 30px;
  }
  .deraa-hero-3d {
    height: 380px;
    border-radius: 20px;
  }
  .deraa-hero-3d__card {
    width: 90%;
    height: 90%;
  }
  .deraa-hero-3d__card.is-next {
    transform: translateX(105%) scale(0.85);
    opacity: 0;
  }
  .deraa-hero-3d__card.is-prev {
    transform: translateX(-105%) scale(0.85);
    opacity: 0;
  }
  .deraa-hero-3d__title {
    font-size: 1.25rem;
  }
  .deraa-hero-3d__overlay {
    padding: 20px;
  }
  .deraa-hero-3d__btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .deraa-hero-3d__btn--prev { left: 10px; }
  .deraa-hero-3d__btn--next { right: 10px; }
}

/* Sections Common */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Services / Features Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Company Sections (كلمة المدير والدرع المميز) */
.company-sections {
  width: 100%;
  max-width: 1240px;
  margin: 40px auto 20px;
  padding: 0 1.5rem;
}

.company-sections-wrapper {
  background: var(--bg-surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.manager-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.manager-row.reverse {
  direction: ltr;
}

.manager-row.reverse .manager-text {
  direction: rtl;
}

.manager-text {
  background: var(--bg-surface);
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  min-height: 480px;
}

[data-theme="dark"] .manager-text {
  background: #0f131a;
}

.manager-text h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 900;
}

.manager-text h4 {
  font-size: 1.3rem;
  margin-bottom: 1.35rem;
  color: var(--text-primary);
  font-weight: 700;
}

.manager-text p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-secondary);
}

.manager-signature {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
  margin-top: 1rem;
}

.manager-image {
  overflow: hidden;
  position: relative;
  min-height: 480px;
  background: #000;
}

.manager-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.manager-row:hover .manager-image img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .manager-row, .manager-row.reverse {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .manager-text {
    padding: 35px 25px;
    min-height: auto;
  }

  .manager-image {
    min-height: 340px;
  }
}

/* BrandWave 3D Animated Title Component */
.brandwave {
  font-family: var(--font-en), sans-serif;
  position: relative;
  isolation: isolate;
  background: transparent;
  width: 100%;
  padding: 10px 0 35px;
  /* alternating colors matching brand */
  --c1: #0f172a;    /* first letter: obsidian black */
  --c2: #8b0000;    /* second letter: brand red */
}

[data-theme="dark"] .brandwave {
  --c1: #f8fafc;
  --c2: #dc2626;
}

.brandwave, .brandwave * { 
  box-sizing: border-box; 
}

.brandwave__hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  background: transparent;
  overflow: hidden;
}

.brandwave__title {
  font-weight: 900;
  font-size: clamp(32px, 6.5vw, 82px);
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
}

.brandwave__word {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.brandwave__char {
  display: inline-block;
  opacity: 0;
  animation: brandwaveReveal 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-origin: bottom center;
  will-change: transform, opacity, filter;
  color: var(--c1);
}

@keyframes brandwaveReveal {
  0% {
    opacity: 0;
    transform: translateY(110%) rotateX(-40deg);
    filter: blur(10px);
  }
  15% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
  60% {
    opacity: 0;
    transform: translateY(-110%) rotateX(40deg);
    filter: blur(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(-110%);
    filter: blur(10px);
  }
}

@media (max-width: 600px) {
  .brandwave__title {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brandwave__char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .brandwave__word { overflow: visible; }
}

/* Services Grid for Real Safety & Security Systems */
.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card-real {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-card-real .service-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(139, 0, 0, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card-real:hover .service-icon-wrap {
  background: var(--primary-gradient);
  color: #fff;
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.service-card-real h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.service-card-real p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* ================= KP Showcase Gallery Slider (Modular & Isolated) ================= */
#kpSliderRoot {
  background: transparent;
  position: relative;
  isolation: isolate;
  margin: 30px auto 50px;
  width: 100%;
  direction: ltr !important;
}

#kpSliderRoot .kp-slider-wrap {
  width: 100%;
  overflow: hidden;
  background: #0b0f19;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
}

.kp-gallery {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 440px;
  user-select: none;
  touch-action: pan-y;
  direction: ltr !important;
}

@media (min-width: 1024px) {
  .kp-gallery {
    height: 80vh;
    max-height: 780px;
    min-height: 580px;
  }
}

@media (max-width: 768px) {
  #kpSliderRoot {
    margin: 20px auto 35px;
  }
  .kp-gallery {
    height: 52vh;
    min-height: 320px;
  }
}

.kp-gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.kp-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.kp-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.kp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  transition: transform 6s ease-out;
}

.kp-slide.is-active img {
  transform: scale(1.03);
}

.kp-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  z-index: 20;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.kp-btn:hover {
  background: #8b0000;
  border-color: #8b0000;
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.kp-btn--prev {
  left: 24px;
}

.kp-btn--next {
  right: 24px;
}

@media (max-width: 768px) {
  .kp-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .kp-btn--prev { left: 12px; }
  .kp-btn--next { right: 12px; }
}

/* Indicators Dots */
.kp-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 14px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.kp-dot.is-active {
  background: #8b0000;
  width: 28px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

/* ================= PLEDGEW (بطاقة العهد التفاعلية) ================= */
.pledgew {
  --primary: #8B0000;
  --bg-page: transparent;
  --card-dark: rgba(23, 26, 35, 0.88);
  font-family: var(--font-family);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 10px auto 40px;
  width: 100%;
}

.pledgew, .pledgew * { 
  box-sizing: border-box; 
}

.pledgew__stage {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1000px;
  background: var(--bg-page);
}

.pledgew__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(139, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  z-index: 0;
  opacity: 0.6;
}

.pledgew__ambient {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.22), transparent 70%);
  filter: blur(60px);
  z-index: 1;
  animation: pledgewBreathe 8s infinite alternate;
}

.pledgew__card-container {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform .1s ease;
  width: 100%;
  max-width: 920px;
  display: flex;
  justify-content: center;
}

.pledgew__glass-card {
  background: var(--card-dark);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 70px 45px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  border-radius: 36px 36px 16px 16px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35), 0 0 30px rgba(139, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.pledgew__hero-text,
.pledgew__sub-text {
  margin: 0;
  font-weight: 900;
  line-height: 1.7;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #dc2626, #ffffff);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: pledgewTextShine 3.5s linear infinite;
  position: relative;
  z-index: 2;
  transform: translateZ(60px);
}

.pledgew__hero-text {
  font-size: 2.35rem;
}

.pledgew__sub-text {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 20px;
  transform: translateZ(40px);
}

.pledgew__glow-spot {
  position: absolute;
  width: 220px;
  height: 220px;
  background: var(--primary);
  filter: blur(90px);
  opacity: 0.25;
  border-radius: 50%;
  animation: pledgewMoveSpot 10s infinite alternate;
}

@keyframes pledgewTextShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pledgewBreathe {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes pledgewMoveSpot {
  0% { top: -50px; left: -50px; }
  100% { top: 100%; left: 100%; }
}

@media (max-width: 768px) {
  .pledgew__hero-text { font-size: 1.45rem; }
  .pledgew__sub-text { font-size: 1rem; }
  .pledgew__glass-card { padding: 45px 20px; border-radius: 24px; }
  .pledgew__stage { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .pledgew * { animation: none !important; transition: none !important; }
}

/* ================= ORGFLOWX (الهيكل التنظيمي والتشغيلي) ================= */
.orgflowx {
  --bg-dark: #11151e;
  --bg-panel: #1a1f2c;
  --bg-card: #202636;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --accent-red: #8B0000;
  --accent-glow: rgba(139, 0, 0, 0.4);
  --line-color: #334155;
  --grid-line: rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  font-family: var(--font-family);
  background: var(--bg-dark);
  color: var(--text-main);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: start;
  border-radius: 28px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  margin: 30px auto 60px;
  width: 100%;
}

.orgflowx, .orgflowx * { 
  box-sizing: border-box; 
}

.orgflowx__bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 45px 45px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
}

.orgflowx__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 55px 25px 80px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.orgflowx__header {
  text-align: center;
  margin-bottom: 10px;
}

.orgflowx__h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #fff;
  line-height: 1.2;
}

.orgflowx__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.orgflowx__timeline {
  position: relative;
  padding: 20px 0;
  width: 100%;
}

.orgflowx__track-line {
  position: absolute;
  top: 45px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: var(--line-color);
  z-index: 0;
}

.orgflowx__track-arrow {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: none;
  border-left: none;
  border-right: 2.5px solid var(--accent-red);
  border-bottom: 2.5px solid var(--accent-red);
  margin-top: -4.5px;
  transform: rotate(135deg);
  pointer-events: none;
}

.orgflowx__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 10px;
}

.orgflowx__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  opacity: .65;
  user-select: none;
}

.orgflowx__step:hover { 
  opacity: 1; 
}

.orgflowx__step--active { 
  opacity: 1; 
  transform: translateY(-5px); 
}

.orgflowx__step-square {
  width: 52px;
  height: 52px;
  background: var(--bg-panel);
  border: 1.5px solid var(--line-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
}

.orgflowx__step-square svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
  transition: fill .3s;
}

.orgflowx__step--active .orgflowx__step-square {
  border-color: var(--accent-red);
  background: rgba(139, 0, 0, 0.2);
  box-shadow: 0 0 0 1.5px var(--accent-red), 0 0 25px var(--accent-glow);
}

.orgflowx__step--active .orgflowx__step-square svg { 
  fill: #fff; 
}

.orgflowx__step-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  transition: color .3s;
}

.orgflowx__step--active .orgflowx__step-label {
  color: #fff;
  font-weight: 800;
}

.orgflowx__detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0;
  display: flex;
  align-items: stretch;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-top: 15px;
}

.orgflowx__card-icon-box {
  width: 140px;
  background: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orgflowx__card-icon-box svg {
  width: 60px;
  height: 60px;
  fill: #fff;
}

.orgflowx__card-content {
  flex: 1;
  padding: 35px;
  text-align: start;
}

.orgflowx__card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.orgflowx__card-stage {
  font-size: 0.95rem;
  color: var(--accent-red);
  font-weight: 800;
  background: rgba(139, 0, 0, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(139, 0, 0, 0.3);
}

.orgflowx__card-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 5px 0 0 0;
  color: #fff;
}

.orgflowx__card-role {
  font-style: italic;
  color: #fbbf24;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.orgflowx__card-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #cbd5e1;
  margin: 0;
  max-width: 850px;
  white-space: pre-line;
}

.orgflowx__fade-in {
  animation: orgflowxFadeIn .4s var(--ease) forwards;
}

@keyframes orgflowxFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  #organization-flow {
    padding-inline: 0 !important;
  }

  #organization-flow > .container {
    padding-inline: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .orgflowx {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0 !important;
    border-inline: none !important;
    margin-top: 15px !important;
    margin-bottom: 35px !important;
  }

  .orgflowx__container {
    padding: 40px 18px 50px !important;
    width: 100% !important;
  }

  .orgflowx__timeline { padding: 0 10px; }
  .orgflowx__track-arrow { display: none; }

  .orgflowx__track-line {
    top: 25px;
    bottom: 25px;
    width: 2px;
    height: auto;
    left: auto;
    right: 35px;
  }

  .orgflowx__steps {
    flex-direction: column;
    gap: 25px;
    padding-right: 10px;
  }

  .orgflowx__step {
    flex-direction: row;
    align-items: center;
    opacity: .7;
    transform: none !important;
  }

  .orgflowx__step--active { opacity: 1; }

  .orgflowx__step-square {
    margin-bottom: 0;
    margin-left: 20px;
    z-index: 2;
  }

  .orgflowx__step-label { 
    font-size: 0.95rem; 
    text-align: start; 
  }

  .orgflowx__detail-card { 
    flex-direction: column; 
    border-radius: 20px;
    width: 100%;
  }

  .orgflowx__card-icon-box {
    width: 100%;
    height: 80px;
    justify-content: flex-start;
    padding-right: 30px;
  }

  .orgflowx__card-icon-box svg { width: 34px; height: 34px; }
  .orgflowx__card-content { padding: 25px; }
  .orgflowx__card-title { font-size: 1.35rem; }
}

/* ================= AGENCY BANNER & PARTNERS CAROUSEL ================= */
.agency-banner-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
}

[data-theme="dark"] .agency-banner-wrapper {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.agency-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
  transition: transform 0.4s ease;
}

.agency-banner-wrapper:hover .agency-banner-img {
  transform: scale(1.02);
}

.alderaa-carousel {
  direction: ltr !important;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 15;
  padding: 8px 0 0;
  margin-top: -65px;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.alderaa-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  animation: alderaaInfiniteScroll 25s linear infinite !important;
  will-change: transform;
}

.alderaa-carousel:hover .alderaa-carousel-track {
  animation-play-state: paused;
}

.alderaa-carousel-item {
  flex: 0 0 auto;
  width: 220px;
  margin: 0 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alderaa-carousel-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(220, 20, 60, 0.35);
  border-color: rgba(220, 20, 60, 0.6);
}

.alderaa-carousel-item img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  padding: 14px;
  background: transparent;
}

@keyframes alderaaInfiniteScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .agency-banner-wrapper {
    border-radius: 18px;
  }
  .alderaa-carousel {
    padding: 0;
    margin-top: -55px !important;
  }
  .alderaa-carousel-item {
    width: 145px;
    margin: 0 8px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }
  .alderaa-carousel-item img {
    height: 75px;
    padding: 8px;
  }
}

/* ================= DERAACONTACT (صفحة اتصل بنا الاحترافية) ================= */
.contact-page-layout {
  padding-top: 140px;
  padding-bottom: 70px;
}

#deraaContact-1 {
  --dc-bg: #10141f;
  --dc-surface: rgba(255, 255, 255, 0.05);
  --dc-surface-2: rgba(255, 255, 255, 0.09);
  --dc-border: rgba(255, 255, 255, 0.10);
  --dc-text: #ffffff;
  --dc-muted: #cbd5e1;
  --dc-dim: #94a3b8;
  --dc-accent: #8B0000;
  --dc-accent-2: #dc2626;
  --dc-glow: rgba(139, 0, 0, 0.35);
  --dc-radius: 20px;
  --dc-radius-lg: 28px;
  --dc-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  --dc-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);

  font-family: var(--font-family);
  background: transparent;
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  width: 100%;
}

#deraaContact-1, #deraaContact-1 * { 
  box-sizing: border-box; 
}

#deraaContact-1 .deraaContact__section {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 30px;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(220, 38, 38, 0.12), transparent 60%),
    radial-gradient(900px 380px at 80% 0%, rgba(139, 0, 0, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--dc-bg);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-lg);
  box-shadow: var(--dc-shadow);
  overflow: hidden;
  position: relative;
}

#deraaContact-1 .deraaContact__section::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px) 0 0 / 26px 26px;
  opacity: .35;
  pointer-events: none;
}

#deraaContact-1 .deraaContact__header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

#deraaContact-1 .deraaContact__badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.45), rgba(220, 38, 38, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 6px rgba(139, 0, 0, 0.15), 0 0 25px rgba(139, 0, 0, 0.35);
}

#deraaContact-1 .deraaContact__badge i {
  font-size: 24px;
  color: #ffffff;
}

#deraaContact-1 .deraaContact__title {
  margin: 0 0 10px 0;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--dc-text);
  letter-spacing: .2px;
}

#deraaContact-1 .deraaContact__desc {
  margin: 0 auto;
  max-width: 720px;
  color: var(--dc-muted);
  font-size: 1.1rem;
  line-height: 1.9;
}

/* Grid */
#deraaContact-1 .deraaContact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

/* Card */
#deraaContact-1 .deraaContact__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  border-radius: var(--dc-radius);
  background: linear-gradient(180deg, var(--dc-surface), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--dc-shadow-soft);
  text-decoration: none;
  color: var(--dc-text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}

#deraaContact-1 .deraaContact__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3.5px;
  background: linear-gradient(90deg, transparent, var(--dc-accent), var(--dc-accent-2), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

#deraaContact-1 .deraaContact__card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 0, 0, 0.25);
  background: linear-gradient(180deg, var(--dc-surface-2), rgba(255, 255, 255, 0.05));
}

#deraaContact-1 .deraaContact__card:hover::after { 
  opacity: 1; 
}

#deraaContact-1 .deraaContact__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(139, 0, 0, 0.25);
  flex: 0 0 auto;
  transition: all .25s ease;
}

#deraaContact-1 .deraaContact__icon i {
  font-size: 22px;
  color: #ffffff;
}

#deraaContact-1 .deraaContact__card:hover .deraaContact__icon {
  background: var(--primary-gradient);
  transform: scale(1.08) rotate(5deg);
}

#deraaContact-1 .deraaContact__text { 
  flex: 1 1 auto; 
  min-width: 0; 
}

#deraaContact-1 .deraaContact__cardTitle {
  margin: 0 0 6px 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--dc-text);
  line-height: 1.35;
}

#deraaContact-1 .deraaContact__cardDetail {
  margin: 0;
  color: var(--dc-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  word-break: break-word;
  font-weight: 600;
}

#deraaContact-1 .deraaContact__mono {
  font-family: var(--font-en), monospace;
  letter-spacing: .5px;
}

#deraaContact-1 .deraaContact__note {
  margin: 6px 0 0 0;
  color: #fbbf24;
  font-size: .92rem;
  font-weight: 600;
}

#deraaContact-1 .deraaContact__cta {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--dc-text);
  flex: 0 0 auto;
  transition: transform .25s ease, background .25s ease;
}

#deraaContact-1 .deraaContact__card:hover .deraaContact__cta {
  transform: translateX(-5px);
  background: var(--primary-gradient);
  color: #fff;
}

/* Social */
#deraaContact-1 .deraaContact__social {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  z-index: 1;
  text-align: center;
}

#deraaContact-1 .deraaContact__socialTitle {
  margin: 0 0 16px 0;
  color: var(--dc-muted);
  font-size: 1.1rem;
  font-weight: 700;
}

#deraaContact-1 .deraaContact__socialRow {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

#deraaContact-1 .deraaContact__socialBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--dc-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  min-width: 170px;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

#deraaContact-1 .deraaContact__socialBtn:hover { 
  transform: translateY(-4px); 
}

#deraaContact-1 .deraaContact__ig:hover { 
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.35);
}

#deraaContact-1 .deraaContact__fb:hover { 
  background: #1877f2; 
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
}

#deraaContact-1 .deraaContact__tt:hover { 
  background: #000000; 
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Interactive Consultation / Contact Form in Contact Page */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.contact-map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

@media (max-width: 980px) {
  .contact-page-layout {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  #deraaContact-1 {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }

  #deraaContact-1 .deraaContact__section {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 35px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #deraaContact-1 .deraaContact__title {
    font-size: 1.65rem !important;
  }

  #deraaContact-1 .deraaContact__desc {
    font-size: 0.92rem !important;
  }

  #deraaContact-1 .deraaContact__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  #deraaContact-1 .deraaContact__socialBtn {
    width: 100%;
    min-width: 0;
  }
}

/* ================= ORG-SAJAD-SCOPE (أعضاء الشركة والهيكل القيادي) ================= */
.team-page-layout {
  padding-top: 130px;
  padding-bottom: 70px;
}

.org-sajad-scope {
  --org-bg: var(--bg-surface);
  --org-card: var(--bg-card);
  --org-text: var(--text-primary);
  --org-muted: var(--text-secondary);
  --org-red: #8B0000;
  --org-red-dark: #700000;
  --org-line: #8B0000;
  --org-border: var(--border-glass);
  --org-shadow: var(--shadow-lg);
  --org-soft-shadow: var(--shadow-sm);

  font-family: var(--font-family);
  direction: rtl;
  color: var(--org-text);
  background: transparent;
  padding: 10px 0 30px;
  border-radius: 28px;
  width: 100%;
}

.org-sajad-scope .org-shell {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--org-border);
  border-radius: 28px;
  box-shadow: var(--org-shadow);
  padding: 40px 25px;
  overflow: hidden;
}

.org-sajad-scope .org-head {
  text-align: center;
  margin-bottom: 40px;
}

.org-sajad-scope .org-kicker {
  display: inline-flex;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(139, 0, 0, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 0, 0, 0.25);
}

.org-sajad-scope .org-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 900;
  color: var(--org-text);
  line-height: 1.35;
}

.org-sajad-scope .org-subtitle {
  margin: 12px auto 0;
  max-width: 720px;
  color: var(--org-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.org-sajad-scope .org-canvas {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 10px 30px;
  -webkit-overflow-scrolling: touch;
}

.org-sajad-scope .org-chart {
  min-width: 1060px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding-bottom: 15px;
}

.org-sajad-scope .org-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

.org-sajad-scope .org-level-top {
  padding-bottom: 46px;
}

.org-sajad-scope .org-level-top::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 46px;
  background: linear-gradient(180deg, var(--org-line), rgba(139, 0, 0, 0.25));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.org-sajad-scope .org-branches {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  justify-content: center;
  gap: 20px;
  padding-top: 54px;
  position: relative;
  width: 100%;
  max-width: 1100px;
}

.org-sajad-scope .org-branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(10%);
  right: calc(10%);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--org-line) 15%, var(--org-line) 85%, transparent);
  border-radius: 999px;
}

.org-sajad-scope .org-branch {
  position: relative;
  display: flex;
  justify-content: center;
}

.org-sajad-scope .org-branch::before {
  content: "";
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 54px;
  background: linear-gradient(180deg, var(--org-line), rgba(139, 0, 0, 0.25));
  border-radius: 999px;
}

.org-sajad-scope .org-card {
  width: 100%;
  max-width: 200px;
  min-height: 210px;
  border: 1px solid var(--org-border);
  background: var(--bg-surface);
  border-radius: 24px;
  box-shadow: var(--org-soft-shadow);
  padding: 22px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .25s var(--transition-bounce), box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.org-sajad-scope .org-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px -30px;
  height: 90px;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.15), transparent 70%);
  pointer-events: none;
}

.org-sajad-scope .org-card:hover,
.org-sajad-scope .org-card:focus {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
  outline: none;
}

.org-sajad-scope .org-card.is-main {
  max-width: 290px;
  width: 100%;
  min-height: 180px;
  border: 1.5px solid rgba(139, 0, 0, 0.35);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(139, 0, 0, 0.06) 100%);
  box-shadow: var(--shadow-md);
}

.org-sajad-scope .org-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(139, 0, 0, 0.35);
  margin-bottom: 12px;
}

.org-sajad-scope .org-card.is-main .org-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 32px;
}

.org-sajad-scope .org-role {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

.org-sajad-scope .org-name {
  color: var(--org-text);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.org-sajad-scope .org-dept {
  color: var(--org-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.org-sajad-scope .org-hint-badge {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--primary);
  background: rgba(139, 0, 0, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* Modal Dialog */
.org-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
}

.org-modal.is-open {
  display: flex;
}

.org-modal-box {
  width: min(720px, 100%);
  max-height: 86vh;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  animation: orgPop .25s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes orgPop {
  from { transform: translateY(15px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.org-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(139, 0, 0, 0.1);
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.org-close:hover {
  background: var(--primary);
  color: #fff;
}

.org-modal-header {
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--border-glass);
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.08), transparent);
}

.org-modal-title {
  margin: 0;
  padding-left: 54px;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.5;
}

.org-modal-body {
  padding: 26px 30px;
  overflow-y: auto;
  max-height: 60vh;
  color: var(--text-secondary);
  line-height: 2;
  font-size: 1.05rem;
}

.org-modal-body p {
  margin: 0 0 14px;
}

.org-modal-body strong {
  color: var(--text-primary);
  font-weight: 800;
}

.org-modal-body hr {
  border: 0;
  height: 1px;
  background: var(--border-glass);
  margin: 18px 0;
}

@media (max-width: 860px) {
  .org-sajad-scope .org-canvas {
    overflow: visible;
    padding: 0;
  }
  .org-sajad-scope .org-chart {
    min-width: 0;
    width: 100%;
  }
  .org-sajad-scope .org-branches {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 25px;
  }
  .org-sajad-scope .org-branches::before {
    display: none;
  }
  .org-sajad-scope .org-branch::before {
    top: -15px;
    height: 15px;
  }
  .org-sajad-scope .org-card,
  .org-sajad-scope .org-card.is-main {
    max-width: 100%;
    min-height: auto;
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: start;
    gap: 16px;
    padding: 18px;
  }
  .org-sajad-scope .org-avatar,
  .org-sajad-scope .org-card.is-main .org-avatar {
    margin-bottom: 0;
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 24px;
  }
}

/* ================= ORGX (صفحة الأقسام الشاملة) ================= */
#orgx-1 {
  --primary: #8B0000;
  --dark: #171A23;
  --light-bg: #f4f6f8;
  --white: var(--bg-card);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --radius: 18px;

  font-family: var(--font-family);
  background: transparent;
  position: relative;
  isolation: isolate;
  width: 100%;
}

#orgx-1, #orgx-1 * { 
  box-sizing: border-box; 
}

#orgx-1 .orgx__container {
  max-width: 1400px;
  margin: 10px auto 40px;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Menu */
#orgx-1 .orgx__menu {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
  max-height: 85vh;
  overflow-y: auto;
}

#orgx-1 .orgx__menu::-webkit-scrollbar { 
  width: 5px; 
}

#orgx-1 .orgx__menu::-webkit-scrollbar-thumb { 
  background: rgba(139, 0, 0, 0.3); 
  border-radius: 10px; 
}

#orgx-1 .orgx__menuTitle {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-glass);
  text-align: center;
}

#orgx-1 .orgx__tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all .25s ease;
  text-align: right;
  margin-bottom: 6px;
  line-height: 1.2;
}

#orgx-1 .orgx__tab i {
  font-size: 1.15rem;
  width: 26px;
  text-align: center;
  transition: .25s;
  color: var(--primary);
}

#orgx-1 .orgx__tab:hover { 
  background: rgba(139, 0, 0, 0.08); 
  color: var(--primary); 
}

#orgx-1 .orgx__tab.is-active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
}

#orgx-1 .orgx__tab.is-active i { 
  color: #ffffff; 
}

#orgx-1 .orgx__tab span { 
  white-space: nowrap; 
}

/* Content */
#orgx-1 .orgx__content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  min-height: 550px;
  width: 100%;
}

#orgx-1 .orgx__dept { 
  display: none; 
  animation: orgxFade .45s ease; 
}

#orgx-1 .orgx__dept.is-active { 
  display: block; 
}

#orgx-1 .orgx__deptHeader {
  border-bottom: 2px solid var(--border-glass);
  padding-bottom: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

#orgx-1 .orgx__deptHeader h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
}

#orgx-1 .orgx__deptHeader i {
  font-size: 2.3rem;
  color: var(--primary);
}

#orgx-1 .orgx__mission {
  background: rgba(139, 0, 0, 0.06);
  border-right: 4px solid var(--primary);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

#orgx-1 .orgx__mission strong {
  color: var(--primary);
  font-weight: 900;
}

#orgx-1 .orgx__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

#orgx-1 .orgx__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 25px;
  transition: .25s ease;
  height: 100%;
}

#orgx-1 .orgx__card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 0, 0, 0.4);
  transform: translateY(-4px);
}

#orgx-1 .orgx__card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#orgx-1 .orgx__card ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

#orgx-1 .orgx__card li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}

#orgx-1 .orgx__card li::before {
  content: "•";
  color: var(--primary);
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
}

#orgx-1 .orgx__docs {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 25px;
  border-radius: 16px;
  margin-top: 30px;
}

#orgx-1 .orgx__docs h3 {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin: 0 0 16px 0;
  font-weight: 800;
}

#orgx-1 .orgx__tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
}

#orgx-1 .orgx__tag {
  background: rgba(139, 0, 0, 0.08);
  border: 1px solid rgba(139, 0, 0, 0.2);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .25s ease;
}

#orgx-1 .orgx__tag:hover { 
  background: var(--primary); 
  color: #fff;
}

#orgx-1 .orgx__tag i { 
  color: var(--primary); 
}
#orgx-1 .orgx__tag:hover i {
  color: #fff;
}

@keyframes orgxFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  #orgx-1 .orgx__container {
    flex-direction: column;
    margin: 0;
    padding: 0 15px;
    gap: 20px;
  }
  #orgx-1 .orgx__menu {
    width: 100%;
    border-radius: 16px;
    position: static;
    padding: 10px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  #orgx-1 .orgx__menu::-webkit-scrollbar { display: none; }
  #orgx-1 .orgx__menuTitle { display: none; }

  #orgx-1 .orgx__tab {
    flex-shrink: 0;
    width: auto;
    margin: 0 6px 0 0;
    background: var(--bg-surface);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.92rem;
    justify-content: center;
  }
  #orgx-1 .orgx__tab.is-active {
    background: var(--primary-gradient);
    transform: scale(1.03);
  }

  #orgx-1 .orgx__content {
    border-radius: 16px;
    padding: 25px 20px;
    min-height: auto;
  }

  #orgx-1 .orgx__deptHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  #orgx-1 .orgx__deptHeader h2 { font-size: 1.5rem; }
  #orgx-1 .orgx__deptHeader i { font-size: 2rem; }

  #orgx-1 .orgx__mission {
    font-size: 1rem;
    padding: 15px;
  }

  #orgx-1 .orgx__grid { grid-template-columns: 1fr; gap: 20px; }
  #orgx-1 .orgx__card { padding: 20px; }
  #orgx-1 .orgx__docs { padding: 20px; }
  #orgx-1 .orgx__tag { width: 100%; }
}

/* ================= FC-SHOWCASE (صفحة الشهادات والاعتمادات) ================= */
#fc-showcase {
  font-family: var(--font-family);
  color: #fff;
  width: 100%;
}

#fc-showcase * { 
  box-sizing: border-box; 
}

#fc-showcase .wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#fc-showcase .hero {
  padding: 45px 20px;
  text-align: center;
  background: var(--primary-gradient);
  color: #ffffff;
}

#fc-showcase .fc-inner-container {
  max-width: 1180px;
  margin: auto;
  padding: 35px 20px 50px;
}

#fc-showcase .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

#fc-showcase .fbtn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all .25s ease;
}

#fc-showcase .fbtn:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

#fc-showcase .fbtn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

#fc-showcase .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 25px;
}

#fc-showcase .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--transition-bounce), box-shadow .3s ease, border-color .3s ease;
  box-shadow: var(--shadow-sm);
}

#fc-showcase .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(139, 0, 0, 0.25);
  border-color: rgba(139, 0, 0, 0.4);
}

#fc-showcase .media {
  aspect-ratio: 16/13;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

#fc-showcase .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

#fc-showcase .card:hover .media img {
  transform: scale(1.05);
}

#fc-showcase .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#fc-showcase .info {
  padding: 18px 20px;
  text-align: right;
}

#fc-showcase .title {
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

#fc-showcase .loc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

#fc-showcase .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

#fc-showcase .lightbox.active {
  display: flex;
}

#fc-showcase .lbImg {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#fc-showcase .menuToggle {
  display: none;
  margin: 0 auto 15px;
  width: fit-content;
}

#fc-showcase .menuToggle.pulsing {
  animation: fc_pulse 1.25s ease-in-out infinite;
  box-shadow: 0 10px 22px rgba(139, 0, 0, 0.3);
}

@keyframes fc_pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.03); }
}

@media (max-width: 900px) {
  #fc-showcase .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #fc-showcase .grid {
    grid-template-columns: 1fr;
  }
  #fc-showcase .filters { 
    display: none; 
  }
  #fc-showcase .filters.open { 
    display: flex; 
  }
  #fc-showcase .menuToggle {
    display: inline-flex;
    justify-content: center;
  }
  #fc-showcase .fbtn {
    width: calc(50% - 6px);
    justify-content: center;
    padding: 10px 10px;
    font-size: 0.9rem;
  }
  #fc-showcase .fbtn i { 
    display: none; 
  }
}

@media (max-width: 380px) {
  #fc-showcase .fbtn { 
    width: 100%; 
  }
}

/* ================= ALMPROJECTS_01 (صفحة المشاريع والإنجازات) ================= */
#almProjects_01 {
  --bg0: #0b1020;
  --bg1: #121a33;
  --panel: rgba(255, 255, 255, 0.07);
  --panel2: rgba(255, 255, 255, 0.10);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --brand: #8B0000;
  --brand2: #a10230;
  --cyan: #00d4ff;

  --r: 18px;
  --shadow: var(--shadow-lg);
  --shadow2: var(--shadow-md);

  font-family: var(--font-family);
  color: var(--text);
  isolation: isolate;
  position: relative;
  width: 100%;
}

#almProjects_01, #almProjects_01 * { 
  box-sizing: border-box; 
}
#almProjects_01 img { 
  max-width: 100%; 
  display: block; 
}

/* Outer shell */
#almProjects_01 .wrap {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

/* Hero */
#almProjects_01 .hero {
  position: relative;
  padding: 45px 18px 25px;
  text-align: center;
  background: var(--primary-gradient);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  color: #ffffff;
}

#almProjects_01 .hero:before {
  content: "";
  position: absolute; 
  inset: 0;
  background:
    radial-gradient(700px 180px at 50% -30%, rgba(255,255,255,0.20), transparent 65%),
    repeating-linear-gradient(to right, rgba(255,255,255,0.08) 0 1px, transparent 1px 70px);
  opacity: 0.25;
  pointer-events: none;
  transform: skewY(-2deg);
}

#almProjects_01 .hero .kicker {
  position: relative;
  margin: 0 0 8px;
  font-weight: 800;
  opacity: 0.98;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
}

#almProjects_01 .hero h1 {
  position: relative;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  text-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

#almProjects_01 .hero .sub {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  font-size: 1.08rem;
  opacity: 0.95;
  font-weight: 600;
  line-height: 1.9;
}

/* Quick stats */
#almProjects_01 .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}

#almProjects_01 .stat {
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  transition: transform .25s ease;
}

#almProjects_01 .stat:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 0, 0, 0.4);
}

#almProjects_01 .stat .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(139, 0, 0, 0.12);
  border: 1px solid rgba(139, 0, 0, 0.25);
  color: var(--primary);
  font-size: 1.25rem;
}

#almProjects_01 .stat .num {
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0;
  color: var(--text-primary);
}

#almProjects_01 .stat .lbl {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.92rem;
}

/* Filter */
#almProjects_01 .filter {
  margin-top: 25px;
  padding: 10px 0 6px;
  text-align: center;
}

#almProjects_01 .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#almProjects_01 .fbtn {
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all .2s ease;
  user-select: none;
}

#almProjects_01 .fbtn:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 0, 0, 0.4);
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
}

#almProjects_01 .fbtn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

/* Mobile menu toggle */
#almProjects_01 .menuToggle {
  display: none;
  margin: 0 auto 12px;
  width: fit-content;
}

#almProjects_01 .menuToggle.pulsing {
  animation: alm_pulse 1.25s ease-in-out infinite;
  box-shadow: 0 10px 22px rgba(139, 0, 0, 0.3);
}

@keyframes alm_pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.03); }
}

/* Grid */
#almProjects_01 .grid {
  display: grid;
  gap: 20px;
  padding: 20px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  animation: alm_fade .4s ease-out;
}

@keyframes alm_fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card */
#almProjects_01 .card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  position: relative;
  min-height: 100%;
}

#almProjects_01 .card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 0, 0, 0.5);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(139, 0, 0, 0.2);
}

#almProjects_01 .media {
  position: relative;
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#almProjects_01 .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#almProjects_01 .card:hover .media img { 
  transform: scale(1.08); 
}

#almProjects_01 .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

#almProjects_01 .info {
  padding: 18px 16px 20px;
  display: grid;
  gap: 8px;
}

#almProjects_01 .title {
  color: var(--text-primary);
  margin: 0;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.55;
}

#almProjects_01 .meta {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.7;
}

#almProjects_01 .meta i { 
  color: var(--primary); 
  margin-top: 3px; 
}

#almProjects_01 .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

#almProjects_01 .chip {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(139, 0, 0, 0.08);
  color: var(--text-primary);
}

#almProjects_01 .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: rgba(139, 0, 0, 0.08);
  border: 1px solid var(--border-glass);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  margin-top: 6px;
}

#almProjects_01 .card:hover .cta {
  transform: translateX(-4px);
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

/* Empty */
#almProjects_01 .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 12px;
  border-radius: 20px;
  border: 1px dashed var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-primary);
}

#almProjects_01 .empty i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: inline-block;
  animation: alm_float 2.6s ease-in-out infinite;
}

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

#almProjects_01 .empty h3 { 
  margin: 0 0 6px; 
  font-weight: 900; 
  font-size: 1.25rem; 
}
#almProjects_01 .empty p { 
  margin: 0; 
  color: var(--text-secondary); 
  font-weight: 800; 
}

/* Modal Gallery */
#almProjects_01 .modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#almProjects_01 .modal.active { 
  display: flex; 
}

#almProjects_01 .mInner {
  position: relative;
  width: min(1150px, 94vw);
  max-height: 90vh;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
}

#almProjects_01 .mMedia {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  min-height: 320px;
}

#almProjects_01 .mImg {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: contain;
  background: #000;
}

#almProjects_01 .navBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease;
  z-index: 2;
}

#almProjects_01 .navBtn:hover { 
  transform: translateY(-50%) scale(1.06); 
  background: var(--primary-gradient); 
}

#almProjects_01 .navPrev { right: 14px; }
#almProjects_01 .navNext { left: 14px; }

#almProjects_01 .mSide {
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

#almProjects_01 .mTitle {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
}

#almProjects_01 .mLine {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-weight: 800;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
}

#almProjects_01 .mLine i { 
  color: var(--primary); 
  margin-top: 3px; 
}

#almProjects_01 .mDesc {
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.9;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: pre-line;
}

#almProjects_01 .mList {
  margin: 14px 0 0;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.9;
  font-weight: 800;
  font-size: 0.95rem;
}

#almProjects_01 .mList li { 
  margin: 6px 0; 
}

#almProjects_01 .thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#almProjects_01 .thumb {
  width: 74px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0.85;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease;
}

#almProjects_01 .thumb:hover { 
  transform: translateY(-2px); 
  opacity: 1; 
}

#almProjects_01 .thumb.active { 
  border-color: var(--primary); 
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.4);
  opacity: 1; 
}

#almProjects_01 .thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

#almProjects_01 .mClose {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--primary-gradient);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform .18s ease;
  z-index: 10;
}

#almProjects_01 .mClose:hover { 
  transform: rotate(12deg) scale(1.06); 
}

#almProjects_01 .mClose i { 
  font-size: 18px; 
}

@media (max-width: 992px) {
  #almProjects_01 .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #almProjects_01 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #almProjects_01 .mInner { grid-template-columns: 1fr; }
  #almProjects_01 .mImg { height: min(58vh, 520px); }
}

@media (max-width: 600px) {
  #almProjects_01 .grid { grid-template-columns: 1fr; gap: 14px; }
  #almProjects_01 .stats { grid-template-columns: 1fr; }
  #almProjects_01 .filters { display: none; }
  #almProjects_01 .filters.open { display: flex; }
  #almProjects_01 .menuToggle { display: inline-flex; justify-content: center; }
  #almProjects_01 .fbtn {
    width: calc(50% - 6px);
    justify-content: center;
    padding: 10px 10px;
    font-size: 0.9rem;
  }
  #almProjects_01 .fbtn i { display: none; }
}

@media (max-width: 380px) {
  #almProjects_01 .fbtn { width: 100%; }
}

/* ================= FIREPROD (صفحة المنتجات وأنظمة السلامة) ================= */
.fireprod {
  --primary: #8B0000;
  --secondary: var(--text-primary);
  --bg: var(--bg-card);
  --card: var(--bg-surface);
  --muted: var(--text-secondary);
  --shadow: var(--shadow-sm);
  --hover-shadow: var(--shadow-lg);

  font-family: var(--font-family);
  background: var(--bg);
  color: var(--secondary);
  padding: 40px 24px;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fireprod, .fireprod * { 
  box-sizing: border-box; 
}

.fireprod__header {
  text-align: center;
  margin: 10px 0 45px;
}

.fireprod__logoIcon {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.12);
  border: 1px solid rgba(139, 0, 0, 0.25);
  transition: .3s;
}

.fireprod__logoIcon i {
  font-size: 44px;
  color: var(--primary);
}

.fireprod__title {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.3;
  font-weight: 900;
}

.fireprod__subtitle {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  font-weight: 700;
}

.fireprod__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
  max-width: 1240px;
  margin: 0 auto;
}

.fireprod__card {
  background: var(--card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 4px solid transparent;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.fireprod__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow), 0 0 25px rgba(139, 0, 0, 0.2);
  border-bottom-color: var(--primary);
  border-color: rgba(139, 0, 0, 0.4);
}

.fireprod__iconWrap {
  width: 76px;
  height: 76px;
  background: rgba(139, 0, 0, 0.10);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: .3s;
}

.fireprod__iconWrap i {
  font-size: 32px;
  color: var(--primary);
  transition: .3s;
}

.fireprod__card:hover .fireprod__iconWrap { 
  background: var(--primary-gradient); 
  border-color: transparent;
}
.fireprod__card:hover .fireprod__iconWrap i { 
  color: #fff; 
}

.fireprod__cardTitle {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Specification toggle fixes */
.fireprodv12__details {
  margin: 15px 0 20px;
  background: rgba(139, 0, 0, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: background 0.3s, border-color 0.3s;
  text-align: right;
}

.fireprodv12__details[open] {
  background: rgba(139, 0, 0, 0.08);
  border-color: rgba(139, 0, 0, 0.3);
}

.fireprodv12__summary {
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  padding: 11px 16px;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.fireprodv12__summary::-webkit-details-marker {
  display: none;
}

.fireprodv12__summary::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.fireprodv12__details[open] .fireprodv12__summary::after {
  content: '▲';
}

.fireprodv12__specList {
  margin: 0;
  padding: 12px 25px 15px 15px;
  border-top: 1px solid var(--border-glass);
  text-align: right;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  list-style-type: disc;
}

.fireprodv12__specList li {
  margin-bottom: 8px;
}

.fireprodv12__specList li:last-child {
  margin-bottom: 0;
}

.fireprod__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--primary-gradient);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 800;
  transition: .3s;
  margin-top: auto;
  line-height: 1;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.fireprod__btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 0, 0, 0.45);
  color: #fff;
}

.fireprod__btn i {
  font-size: 0.9em;
  transition: transform 0.2s;
}

.fireprod__btn:hover i {
  transform: translateX(-4px);
}

@media (max-width: 480px) {
  .fireprod { padding: 20px 14px; }
  .fireprod__title { font-size: 1.6rem; }
  .fireprod__subtitle { font-size: 0.95rem; }
}

/* Why Choose Us & Protection Matrix */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.2rem;
}

.feature-check {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(139, 0, 0, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Official Red & Black Shield Emblem */
.shield-container {
  position: relative;
  width: 320px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.shield-svg.official-emblem {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 35px rgba(139, 0, 0, 0.35));
  animation: floatShield 5s ease-in-out infinite;
}

@keyframes floatShield {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.floating-tag {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 10;
  animation: pulseGlow 4s infinite alternate;
}

.floating-tag.tag-top {
  top: -15px;
  inset-inline-start: -10px;
}

.floating-tag.tag-bottom {
  bottom: -15px;
  inset-inline-end: 10px;
}

@keyframes pulseGlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Pricing / Packages */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -15px;
  inset-inline-end: 25px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: var(--font-en);
  color: var(--text-primary);
  margin: 1.25rem 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: start;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.35rem;
}

/* Contact / CTA Banner */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: 30px;
  padding: 4rem 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

/* ================= RICH MODERN FOOTER ================= */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 25px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.6fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-btn.fb {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}
.footer-social-btn.fb:hover {
  background: #1877f2;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

.footer-social-btn.ig {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
}
.footer-social-btn.ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.35);
}

.footer-social-btn.tt {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}
[data-theme="dark"] .footer-social-btn.tt {
  background: rgba(255, 255, 255, 0.1);
}
.footer-social-btn.tt:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-inline-start: 4px;
}

.footer-branch-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 12px 14px;
  border-radius: 14px;
}

.footer-branch-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-branch-addr {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.45;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--primary);
}

.footer-phones-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-sep {
  color: var(--text-muted);
}

.footer-map-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-map-frame {
  width: 100%;
  height: 155px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy-en {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.footer-dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  white-space: nowrap;
}

.iw-maker-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}

.iw-maker-link:hover {
  color: #e1306c;
  border-color: #e1306c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.25);
}

.iw-maker-link i {
  color: #e1306c;
  font-size: 0.88rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-cta-group, .hero-stats {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Why Choose Us Section Refinements */
  #features {
    padding: 35px 0 50px !important;
  }

  .features-split {
    grid-template-columns: 1fr !important;
    gap: 2.2rem !important;
  }

  .features-text {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .features-text .section-badge {
    margin-bottom: 0.6rem !important;
    font-size: 0.85rem !important;
  }

  .features-text .section-title {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.85rem !important;
    text-align: center !important;
    max-width: 95% !important;
  }

  .features-text .section-desc {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    max-width: 92% !important;
  }

  .feature-list {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  .feature-item {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    text-align: right !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 1.15rem !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease !important;
  }

  [data-theme="dark"] .feature-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  }

  .feature-check {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(161, 2, 48, 0.15)) !important;
    color: #dc143c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
  }

  .feature-item h4 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.35rem !important;
    color: var(--text-primary) !important;
    line-height: 1.35 !important;
  }

  .feature-item p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
  }

  /* Shield Visual */
  .features-visual {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 0.75rem !important;
  }

  .shield-container {
    width: 260px !important;
    height: 300px !important;
    margin: 0 auto !important;
  }

  .floating-tag {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
    border-radius: 12px !important;
  }

  .floating-tag.tag-top {
    top: -12px !important;
    inset-inline-start: 5px !important;
  }

  .floating-tag.tag-bottom {
    bottom: -15px !important;
    inset-inline-end: 10px !important;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* =========================================================
   ALDERAA SCROLL-TO-TOP BUTTON (زر العودة للأعلى بشعار الدرع الصاعد)
   ========================================================= */
.alderaa-scroll-top {
  position: fixed;
  bottom: 30px;
  inset-inline-end: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(220, 20, 60, 0.15);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

[data-theme="dark"] .alderaa-scroll-top {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(220, 20, 60, 0.25);
}

.alderaa-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.alderaa-scroll-top:hover {
  transform: translateY(-6px) scale(1.1);
  border-color: #ff2a4b;
  box-shadow: 0 16px 40px rgba(220, 20, 60, 0.45), 0 0 25px rgba(255, 42, 75, 0.4);
}

.alderaa-scroll-top:active {
  transform: translateY(-2px) scale(0.96);
}

.scroll-top-inner {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.shield-border-svg {
  stroke: var(--text-primary);
  transition: stroke 0.3s ease;
}

.arrow-tip-top {
  fill: #dc2626;
  animation: deraaAscendPulse 2s ease-in-out infinite;
}

.arrow-tip-mid {
  fill: var(--text-primary);
}

.arrow-dot {
  fill: #dc2626;
  animation: deraaDotPulse 2s ease-in-out infinite;
}

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

@keyframes deraaDotPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.scroll-progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.15s linear;
  stroke: #dc2626;
  stroke-dasharray: 144.5;
  stroke-dashoffset: 144.5;
}

@media (max-width: 640px) {
  .alderaa-scroll-top {
    bottom: 22px;
    inset-inline-end: 20px;
    width: 46px;
    height: 46px;
  }
}

/* =========================================================
   LTR (ENGLISH) BIDIRECTIONAL LAYOUT & TYPOGRAPHY MIRRORING
   ========================================================= */
html[dir="ltr"],
html[lang="en"] {
  font-family: var(--font-en), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html[dir="ltr"] body,
html[lang="en"] body {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--font-en), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] .hero-title,
html[dir="ltr"] .section-title,
html[dir="ltr"] .nav-link,
html[dir="ltr"] .btn {
  font-family: var(--font-en), sans-serif !important;
  letter-spacing: -0.01em;
}

/* LTR Header & Navigation */
html[dir="ltr"] .nav-links {
  direction: ltr !important;
}

html[dir="ltr"] .top-bar-container,
html[dir="ltr"] .top-bar-contacts {
  direction: ltr !important;
}

html[dir="ltr"] .hero-slide-content,
html[dir="ltr"] .hero-text-content,
html[dir="ltr"] .manager-text,
html[dir="ltr"] .features-text,
html[dir="ltr"] .feature-item,
html[dir="ltr"] .service-card,
html[dir="ltr"] .footer-grid,
html[dir="ltr"] .footer-col,
html[dir="ltr"] .deraaContact__info,
html[dir="ltr"] .deraaContact__form-card {
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .faq-question {
  text-align: left !important;
  justify-content: space-between !important;
  direction: ltr !important;
}

html[dir="ltr"] .faq-answer {
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .section-header {
  text-align: center !important;
}

html[dir="ltr"] .footer-bottom {
  direction: ltr !important;
}

html[dir="ltr"] .feature-list .feature-item {
  flex-direction: row !important;
}

html[dir="ltr"] .feature-icon {
  margin-right: 1.25rem !important;
  margin-left: 0 !important;
}

html[dir="ltr"] .alderaa-scroll-top {
  right: 28px !important;
  left: auto !important;
}

@media (max-width: 640px) {
  html[dir="ltr"] .alderaa-scroll-top {
    right: 20px !important;
    left: auto !important;
  }
}


/* OrgFlowX LTR & Mirroring Support */
html[dir="ltr"] .orgflowx {
  text-align: left;
}
html[dir="ltr"] .orgflowx__card-content {
  text-align: left;
}
html[dir="ltr"] .orgflowx__track-arrow {
  border-top: none;
  border-left: none;
  border-right: 2.5px solid var(--accent-red);
  border-bottom: 2.5px solid var(--accent-red);
  transform: rotate(-45deg);
}

/* ==========================================================================
   FIRE & SAFETY CINEMATIC INTRO CURTAIN
   ========================================================================== */
#fire-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
  animation: safetyRemove 0.1s linear forwards 3.2s;
  pointer-events: auto;
}

.curtain-panel {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  background: linear-gradient(180deg, #0f0f0f 0%, #1a0505 60%, #2b0000 100%);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
  z-index: 2;
  will-change: transform;
}

.panel-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(255, 69, 0, 0.15);
  animation: curtainOpenLeft 0.8s cubic-bezier(0.86, 0, 0.07, 1) forwards 1.9s;
}

.panel-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(255, 69, 0, 0.15);
  animation: curtainOpenRight 0.8s cubic-bezier(0.86, 0, 0.07, 1) forwards 1.9s;
}

.curtain-content {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  animation: contentReveal 0.7s ease-out forwards 0.1s, contentHide 0.35s ease-in forwards 1.7s;
}

.premium-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #ffffff !important;
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.5), 0 0 50px rgba(139, 0, 0, 0.35);
  animation: firePulse 1.8s infinite alternate;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 69, 0, 0.4);
  padding: 14px;
}

.premium-logo img {
  width: 82%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
  z-index: 2;
}

.loading-container {
  margin-top: 35px;
  position: relative;
  height: 4px;
  width: 220px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.loading-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff4500 0%, #ff8c00 50%, #00c6ff 100%);
  animation: loadingAnim 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px #ff4500;
}

.status-text {
  color: #e2e8f0;
  font-family: var(--font-family);
  font-size: 15px;
  letter-spacing: 1px;
  margin-top: 20px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,1);
}

#particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: #ff4500;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff4500, 0 0 20px #ff8c00;
  opacity: 0;
  animation: riseUp linear forwards;
}

@keyframes curtainOpenLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes curtainOpenRight { 0% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes contentReveal { 0% { opacity: 0; transform: scale(0.85) translateY(15px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes contentHide { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes loadingAnim { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes firePulse { 0% { box-shadow: 0 0 15px rgba(255, 69, 0, 0.3), inset 0 0 10px rgba(255, 69, 0, 0.1); } 100% { box-shadow: 0 0 35px rgba(255, 69, 0, 0.6), inset 0 0 20px rgba(255, 69, 0, 0.2); border-color: rgba(255, 140, 0, 0.5); } }
@keyframes riseUp { 0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; } 50% { opacity: 0.8; } 100% { transform: translateY(-100vh) translateX(20px) scale(0); opacity: 0; } }

@keyframes safetyRemove {
  to {
    opacity: 0;
    visibility: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
  }
}

/* ==========================================================================
   EVENTS OFFICIAL PUBLICATIONS & SEO POSTS ARCHIVE
   ========================================================================== */
.events-posts-archive {
  padding: 40px 0 60px;
  position: relative;
}

.archive-collapse-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .archive-collapse-card {
  background: rgba(22, 22, 28, 0.95);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.archive-header-trigger {
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: background 0.3s;
  gap: 20px;
}

.archive-header-trigger:hover {
  background: rgba(230, 57, 70, 0.04);
}

.archive-trigger-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.archive-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
  border: 1px solid rgba(230, 57, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

.archive-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(230, 57, 70, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse 1.5s infinite;
}

.archive-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.archive-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.archive-trigger-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-btn-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-red);
}

.archive-chevron-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

.archive-collapse-card.open .archive-chevron-icon {
  transform: rotate(180deg);
  background: var(--accent-red);
  color: #fff;
}

.archive-body-panel {
  display: none;
  padding: 0 32px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.4s ease-out;
}

.archive-collapse-card.open .archive-body-panel {
  display: block;
}

.archive-meta-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  margin-bottom: 25px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.summary-metric i {
  color: var(--accent-red);
}

.archive-controls-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.archive-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.archive-search-input {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[dir="ltr"] .archive-search-input {
  padding: 12px 16px 12px 42px;
}

.archive-search-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.archive-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}

[dir="ltr"] .archive-search-icon {
  right: auto;
  left: 14px;
}

.archive-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.archive-chip:hover, .archive-chip.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.35);
}

.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.archive-post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.archive-post-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.15);
}

.post-card-img-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-post-card:hover .post-card-img {
  transform: scale(1.06);
}

.post-card-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ff6b6b;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

[dir="ltr"] .post-card-category-badge {
  right: auto;
  left: 12px;
}

.post-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.post-card-btn {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.25);
  color: var(--accent-red);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.post-card-btn:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

/* Post Detail Lightbox Modal */
.post-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.post-detail-modal.active {
  display: flex;
}

.post-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.post-modal-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow-y: auto;
  padding: 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-out;
  z-index: 10;
}

[data-theme="dark"] .post-modal-content {
  background: #14141a;
}

.post-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[dir="ltr"] .post-modal-close {
  left: auto;
  right: 18px;
}

.post-modal-close:hover {
  background: var(--accent-red);
  color: #fff;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATION FOR ARCHIVE
   ========================================================================== */
@media (max-width: 768px) {
  .events-posts-archive {
    padding: 15px 0 35px;
  }

  .archive-collapse-card {
    border-radius: 18px;
    margin: 0;
  }

  .archive-header-trigger {
    padding: 16px 14px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .archive-trigger-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
  }

  .archive-icon-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 14px;
    margin: 0 auto;
  }

  .archive-badge-pill {
    margin: 0 auto 8px;
    font-size: 11px;
    padding: 4px 12px;
    display: inline-flex;
    white-space: nowrap;
  }

  .archive-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
    text-align: center;
  }

  .archive-subtitle {
    font-size: 11.5px;
    line-height: 1.5;
    text-align: center;
  }

  .archive-trigger-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    padding: 10px 14px;
    border-radius: 12px;
    width: 100%;
  }

  .archive-btn-label {
    font-size: 13px;
    font-weight: 700;
  }

  .archive-chevron-icon {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .archive-body-panel {
    padding: 0 12px 18px;
  }

  .archive-meta-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 12px;
  }

  .summary-metric {
    justify-content: center;
    text-align: center;
  }

  .archive-controls-bar {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .archive-search-wrap {
    width: 100%;
    min-width: 100%;
  }

  .archive-search-input {
    font-size: 13px;
    padding: 10px 36px 10px 12px;
  }

  [dir="ltr"] .archive-search-input {
    padding: 10px 12px 10px 36px;
  }

  .archive-filter-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .archive-chip {
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 8px;
  }

  .archive-posts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card-img-wrap {
    height: 165px;
  }

  .post-card-content {
    padding: 14px;
  }

  .post-card-title {
    font-size: 14.5px;
    line-height: 1.4;
  }

  .post-card-excerpt {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .post-detail-modal {
    padding: 10px;
  }

  .post-modal-content {
    padding: 22px 14px;
    border-radius: 16px;
    max-height: 88vh;
  }
}


