@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');



/* DRAHIM Fixed Professional CSS - No Conflicts */
/* ============================
   CSS Variables & Root Styles
   ============================ */
   
   
   /* ============================
   Kurdish (ku) - Full RTL Fix
   ============================ */

/* الأساس */
html[lang="ku"] {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ku"] body {
    direction: rtl !important;
    text-align: right !important;
}

/* الهيدر والناف */
html[lang="ku"] #main-header,
html[lang="ku"] nav,
html[lang="ku"] .container {
    direction: rtl !important;
}

/* الأزرار في الهيدر - تظهر على اليمين */
html[lang="ku"] nav .hidden.lg\:flex.items-center.gap-4:last-child {
    flex-direction: row !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Nav items اتجاه صح */
html[lang="ku"] .hidden.lg\:flex.items-center.gap-4 {
    flex-direction: row !important;
}

/* الـ Mega Menu */
html[lang="ku"] .mega-menu {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ku"] .mega-menu ul li a {
    flex-direction: row !important;
}

/* الـ Hero Section */
html[lang="ku"] #hero-expert {
    direction: rtl !important;
}

html[lang="ku"] #hero-expert .lg\:flex-row {
    flex-direction: row !important;
}

html[lang="ku"] .text-right {
    text-align: right !important;
}

html[lang="ku"] .animate-fade-in-right {
    text-align: right !important;
}

/* الأزرار */
html[lang="ku"] .flex.flex-col.sm\:flex-row.items-center.gap-6 {
    flex-direction: row !important;
    justify-content: flex-start !important;
}

/* الـ border الأيمن */
html[lang="ku"] .border-r-4 {
    border-right: 4px solid #10b981 !important;
    border-left: none !important;
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
}

/* Mobile Menu - ييجي من اليسار زي العربي */
html[lang="ku"] .mobile-menu-panel {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%) !important;
}

html[lang="ku"] .mobile-menu-panel.active {
    transform: translateX(0) !important;
}

html[lang="ku"] .mobile-submenu {
    padding-left: 0 !important;
    padding-right: 1rem !important;
    border-left: none !important;
    border-right: 3px solid #e5e7eb !important;
    margin-left: 0 !important;
    margin-right: 0.75rem !important;
}

/* الـ Footer */
html[lang="ku"] .footer-optimized,
html[lang="ku"] .footer-grid {
    direction: rtl !important;
    text-align: right !important;
}

/* إصلاح الأيقونات في الأزرار */
html[lang="ku"] .fas.fa-bolt,
html[lang="ku"] .fas.fa-chart-line {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* الـ lang-target sections */
html[lang="ku"] .lang-target {
    direction: rtl !important;
    text-align: right !important;
}

/* إصلاح الـ stat card */
html[lang="ku"] #stat-card {
    right: auto !important;
    left: -5px !important;
}

/* الـ tech-award section */
html[lang="ku"] #tech-content {
    text-align: right !important;
}

html[lang="ku"] .flex.items-center.justify-end {
    justify-content: flex-end !important;
}

/* إصلاح الـ grid cards */
html[lang="ku"] .grid.grid-cols-1.md\:grid-cols-3 {
    direction: rtl !important;
}
   
   
   
/* ✅ الكردي فقط - بدون تأثير على العربي أو الإنجليزي */
html[lang="ku"] body { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] p { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] h1 { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] h2 { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] h3 { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] h4 { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] span:not([class*="fa"]):not([class*="icon"]) { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] a { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] button { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }
html[lang="ku"] li { font-family: 'Vazirmatn', 'Tajawal', sans-serif !important; }

/* ✅ حماية Font Awesome */
html[lang="ku"] .fas,
html[lang="ku"] .fab,
html[lang="ku"] .far,
html[lang="ku"] .fa,
html[lang="ku"] [class*="fa-"],
html[lang="ku"] iconify-icon {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
}

/* ✅ العربي يفضل Tajawal */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] a,
html[lang="ar"] button,
html[lang="ar"] li {
    font-family: 'Tajawal', sans-serif !important;
}



/* ✅ عناصر النص اللي عندها text-right ثابتة */
html[lang="en"] .text-right {
    text-align: left !important;
}

/* ✅ الـ border اللي على اليمين يتحول لليسار */
html[lang="en"] .border-r-4 {
    border-right: none !important;
    border-left: 4px solid #10b981 !important;
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
}

/* ✅ المحتوى داخل الـ sections */
html[lang="en"] #hero-expert .text-right,
html[lang="en"] #expert-section .text-right,
html[lang="en"] #tech-award-section .text-right,
html[lang="en"] #features-section .text-right,
html[lang="en"] #content-side {
    text-align: left !important;
}

/* ✅ Hero Section - English LTR */
html[lang="en"] #hero-expert .lg\:flex-row {
    flex-direction: row-reverse !important;
}

/* ✅ على الموبايل يرجع عادي */
@media (max-width: 1023px) {
    html[lang="en"] #hero-expert .lg\:flex-row {
        flex-direction: column-reverse !important;
    }
}
/* ✅ Mobile menu direction */
html[lang="en"] .mobile-menu-panel {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
}

html[lang="en"] .mobile-menu-panel.active {
    transform: translateX(0) !important;
}

html[lang="en"] .mobile-submenu {
    padding-left: 1rem !important;
    padding-right: 0 !important;
    border-left: 3px solid #e5e7eb !important;
    border-right: none !important;
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}
   
   
   
:root {
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #00743b;
  --primary-600: #00a855;
  --primary-700: #005a2d;
  --primary-800: #166534;
  --primary-900: #14532d;
  --gradient-primary: linear-gradient(135deg, #00743b 0%, #00a855 100%);
  --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-hero: linear-gradient(135deg, rgba(0, 116, 59, 0.1) 0%, rgba(0, 168, 85, 0.05) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-3xl: 1.875rem;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}
/* ============================
   Base Styles & Reset
   ============================ */
/* ============================
   Font Loading - Local Fonts
   ============================ */
/* ============================
   Font Loading - Local Fonts (Mobile Compatible)
   ============================ */

@font-face {
  font-family: 'Tajawal';
  src: url('/fonts/tajawal-v12-arabic_latin-regular.woff2') format('woff2'),
       url('/fonts/tajawal-v12-arabic_latin-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('/fonts/tajawal-v12-arabic_latin-800.woff2') format('woff2'),
       url('/fonts/tajawal-v12-arabic_latin-800.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================
   CRITICAL HEADER FIX
   ============================ */
#main-header {
  position: fixed!important;
  top: 0!important;
  left: 0!important;
  right: 0!important;
  z-index: 1000!important;
  width: 100%!important;
  transition: all 0.3s ease!important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.dark #main-header {
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* ✅ الـ Topbar - الحل الكامل */
#topbar {
  height: auto!important;
  min-height: auto!important;
  max-height: none!important;
  padding: 0.75rem 0!important;
  background: var(--gradient-primary);
  position: relative!important;
  overflow: visible!important;
  /* ✅ الانتقال السلس */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1)!important;
  /* ✅ الحالة الافتراضية */
  transform: translateY(0)!important;
  opacity: 1!important;
  visibility: visible!important;
}
.header-scrolled #topbar {
  transform: translateY(-100%)!important;
  opacity: 0!important;
  visibility: hidden!important;
  height: 0!important;
  padding: 0!important;
  min-height: 0!important;
  overflow: hidden!important;
}
.header-scrolled #main-header {
  background: rgba(255, 255, 255, 0.98)!important;
  box-shadow: var(--shadow-lg)!important;
}
.dark .header-scrolled #main-header {
  background: rgba(17, 24, 39, 0.98)!important;
}
/* ============================
   Hero Section Fix
   ============================ */
.hero-bg {
  margin-top: 0!important;
  padding-top: 140px!important;  /* ديسكتوب */
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-bg {
    padding-top: 160px!important;  /* تابلت - زيادة */
  }
}

@media (max-width: 640px) {
  .hero-bg {
    padding-top: 180px!important;  /* موبايل - أكبر شوية */
  }
}

@media (max-width: 480px) {
  .hero-bg {
    padding-top: 200px!important;  /* موبايل صغير - الأكبر */
  }
}
/* ============================
   RTL/LTR Direction Handling
   ============================ */
html[dir="rtl"] {
  text-align: right;
}
html[dir="ltr"] {
  text-align: left;
}
.text-center,
.hero-content h1,
.hero-content p,
.section-title h2,
.section-title p,
.text-center * {
  text-align: center!important;
}
/* ============================
   Typography & Text Effects
   ============================ */
/* Fix for Hero Title - النص الأسود والأخضر */
.hero-bg h1 span:first-child {
  color: #1f2937!important;
  -webkit-text-fill-color: #1f2937!important;
}
.dark .hero-bg h1 span:first-child {
  color: #f9fafb!important;
  -webkit-text-fill-color: #f9fafb!important;
}
.hero-bg h1 .text-gradient {
  background: linear-gradient(135deg, #00743b 0%, #00a855 100%)!important;
  -webkit-background-clip: text!important;
  -webkit-text-fill-color: transparent!important;
  background-clip: text!important;
  color: transparent!important;
  display: inline!important;
  white-space: nowrap!important;
  word-spacing: 0!important;
  letter-spacing: normal!important;
}
@media (max-width: 640px) {
  .hero-bg h1 .text-gradient {
    white-space: normal!important;
    display: inline-block!important;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
/* ============================
   Button Styles & Effects
   ============================ */
.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-xl);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  z-index: 1;
}
.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
  z-index: -1;
}
.btn-gradient:hover::before {
  left: 100%;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 116, 59, 0.3);
}
.btn-gradient:active {
  transform: translateY(0);
}
/* ============================
   Card Hover Effects
   ============================ */
.card-hover {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-2xl);
}
.card-hover::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 116, 59, 0.05) 0%, transparent 70%);
  transform: scale(0);
  transition: transform var(--transition-slow);
  z-index: 1;
  pointer-events: none;
}
.card-hover:hover::before {
  transform: scale(1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}
.dark .card-hover:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
/* ============================
   Mega Menu Styles
   ============================ */
.nav-item {
  position: relative;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 50;
  margin-top: 0.5rem;
  width: 100vw;
  max-width: 1000px;
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.dark .mega-menu {
  background: #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu h3 {
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.dark .mega-menu h3 {
  color: #f9fafb;
}
.mega-menu ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #6b7280;
  text-decoration: none;
  transition: color var(--transition-fast);
  border-radius: var(--border-radius-md);
}
.mega-menu ul li a:hover {
  color: var(--primary-500);
  background-color: rgba(0, 116, 59, 0.05);
}
.dark .mega-menu ul li a {
  color: #9ca3af;
}
.dark .mega-menu ul li a:hover {
  color: var(--primary-400);
  background-color: rgba(0, 168, 85, 0.1);
}










/* ============================
   ENHANCED MOBILE MENU - PROFESSIONAL SIDEBAR
   ============================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

/* RTL Support */
html[dir="rtl"] .mobile-menu-panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
.dark .mobile-menu-panel {
  background: #1e293b;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
}

html[dir="rtl"].dark .mobile-menu-panel {
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4);
}

/* Active State */
.mobile-menu-panel.active {
  transform: translateX(0);
}

html[dir="rtl"] .mobile-menu-panel.active {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  background: linear-gradient(135deg, #00743b 0%, #00a855 100%);
  color: white;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.mobile-menu-header .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-header img {
  height: 32px;
  width: auto;
}

#mobile-menu-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

#mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

#mobile-menu-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Mobile Menu Content */
.mobile-menu-content {
  padding: 1.25rem 1rem;
  flex: 1;
  overflow-y: auto;
}

/* Custom Scrollbar for Mobile Menu */
.mobile-menu-content::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.dark .mobile-menu-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
  background: rgba(0, 116, 59, 0.3);
  border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 116, 59, 0.5);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.75rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1f2937;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}

.dark .mobile-nav-toggle {
  color: #f9fafb;
}

.mobile-nav-toggle:hover {
  background: rgba(0, 116, 59, 0.08);
  color: #00743b;
}

.dark .mobile-nav-toggle:hover {
  background: rgba(0, 168, 85, 0.15);
  color: #4ade80;
}

.mobile-nav-toggle:active {
  transform: scale(0.98);
}

/* Chevron Icon Animation */
.mobile-nav-toggle iconify-icon[icon="mdi:chevron-down"] {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  color: #6b7280;
}

.dark .mobile-nav-toggle iconify-icon[icon="mdi:chevron-down"] {
  color: #9ca3af;
}

/* Rotate Chevron When Open */
.mobile-nav-toggle.active iconify-icon[icon="mdi:chevron-down"] {
  transform: rotate(180deg);
  color: #00743b;
}

.dark .mobile-nav-toggle.active iconify-icon[icon="mdi:chevron-down"] {
  color: #4ade80;
}

/* Mobile Submenu */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 1rem;
  border-left: 3px solid #e5e7eb;
  margin-left: 0.75rem;
  margin-bottom: 0.5rem;
}

html[dir="rtl"] .mobile-submenu {
  padding-left: 0;
  padding-right: 1rem;
  border-left: none;
  border-right: 3px solid #e5e7eb;
  margin-left: 0;
  margin-right: 0.75rem;
}

.dark .mobile-submenu {
  border-left-color: #374151;
}

html[dir="rtl"].dark .mobile-submenu {
  border-right-color: #374151;
}

/* Show Submenu */
.mobile-submenu.show {
  max-height: 1000px;
}

/* Submenu Section Title */
.mobile-submenu h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 116, 59, 0.05);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .mobile-submenu h4 {
  color: #d1d5db;
  background: rgba(0, 168, 85, 0.1);
}

/* Submenu Links */
.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  margin: 0.125rem 0;
}

.dark .mobile-submenu a {
  color: #9ca3af;
}

.mobile-submenu a:hover {
  color: #00743b;
  background: rgba(0, 116, 59, 0.08);
  transform: translateX(4px);
}

html[dir="rtl"] .mobile-submenu a:hover {
  transform: translateX(-4px);
}

.dark .mobile-submenu a:hover {
  color: #4ade80;
  background: rgba(0, 168, 85, 0.15);
}

.mobile-submenu a:active {
  transform: scale(0.98);
}

/* Icon Styling in Submenu */
.mobile-submenu a i,
.mobile-submenu a iconify-icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
  color: #00743b;
  flex-shrink: 0;
}

.dark .mobile-submenu a i,
.dark .mobile-submenu a iconify-icon {
  color: #4ade80;
}

/* Badge Styling (قريباً - Soon) */
.mobile-submenu a .bg-green-500 {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background: #10b981;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

/* VIP Badge */
.mobile-submenu a .bg-yellow-600 {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background: #d97706;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

/* Language Switcher in Mobile Menu */
#mobile-lang-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  color: #1f2937;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dark #mobile-lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f9fafb;
}

#mobile-lang-toggle:hover {
  background: rgba(0, 116, 59, 0.08);
  border-color: rgba(0, 116, 59, 0.2);
}

.dark #mobile-lang-toggle:hover {
  background: rgba(0, 168, 85, 0.15);
  border-color: rgba(0, 168, 85, 0.3);
}

#mobile-lang-toggle:active {
  transform: scale(0.98);
}

/* Language Menu Dropdown */
#mobile-lang-menu {
  transform-origin: top;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-lang-option {
  transition: all 0.2s ease;
}

.mobile-lang-option:active {
  transform: scale(0.98);
}

.mobile-lang-option.active {
  background: rgba(0, 116, 59, 0.1);
  color: #00743b;
}

.dark .mobile-lang-option.active {
  background: rgba(0, 168, 85, 0.2);
  color: #4ade80;
}

/* Theme Toggle in Mobile Menu */
#mobile-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  color: #1f2937;
  transition: all 0.2s ease;
}

.dark #mobile-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f9fafb;
}

#mobile-theme-toggle:hover {
  background: rgba(0, 116, 59, 0.08);
  border-color: rgba(0, 116, 59, 0.2);
  transform: rotate(15deg);
}

.dark #mobile-theme-toggle:hover {
  background: rgba(0, 168, 85, 0.15);
  border-color: rgba(0, 168, 85, 0.3);
}

#mobile-theme-toggle:active {
  transform: scale(0.95);
}

/* Action Buttons in Mobile Menu */
.mobile-menu-content .space-y-3 a {
  transition: all 0.2s ease;
  font-weight: 600;
}

.mobile-menu-content .space-y-3 a:active {
  transform: scale(0.98);
}

.mobile-menu-content .border-primary-500 {
  border-color: #00743b;
  color: #00743b;
}

.mobile-menu-content .border-primary-500:hover {
  background: rgba(0, 116, 59, 0.05);
}

.dark .mobile-menu-content .border-primary-500 {
  border-color: #4ade80;
  color: #4ade80;
}

.dark .mobile-menu-content .border-primary-500:hover {
  background: rgba(0, 168, 85, 0.1);
}

.mobile-menu-content .btn-gradient {
  background: linear-gradient(135deg, #00743b 0%, #00a855 100%);
  box-shadow: 0 4px 10px rgba(0, 116, 59, 0.2);
}

.mobile-menu-content .btn-gradient:hover {
  box-shadow: 0 6px 15px rgba(0, 116, 59, 0.3);
  transform: translateY(-2px);
}

.mobile-menu-content .btn-gradient:active {
  transform: translateY(0) scale(0.98);
}

/* Divider Line */
.mobile-menu-content .border-t {
  border-top-width: 1px;
  border-top-color: #e5e7eb;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.dark .mobile-menu-content .border-t {
  border-top-color: #374151;
}

/* Body Scroll Lock when Menu Open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 374px) {
  .mobile-menu-panel {
    width: 90%;
  }
  
  .mobile-nav-toggle {
    font-size: 0.9375rem;
    padding: 0.875rem 0.625rem;
  }
  
  .mobile-submenu a {
    font-size: 0.875rem;
    padding: 0.625rem 0.625rem;
  }
}

@media (min-width: 375px) and (max-width: 639px) {
  .mobile-menu-panel {
    width: 85%;
    max-width: 340px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .mobile-menu-panel {
    max-width: 400px;
  }
}

/* Hide on Desktop */
@media (min-width: 1024px) {
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
}

/* Accessibility */
.mobile-nav-toggle:focus-visible,
#mobile-menu-close:focus-visible,
.mobile-submenu a:focus-visible {
  outline: 2px solid #00743b;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-overlay,
  .mobile-menu-panel,
  .mobile-nav-toggle,
  .mobile-submenu,
  #mobile-menu-close {
    transition: none !important;
    animation: none !important;
  }
}





/* ============================
   Currency Banner Enhanced
   ============================ */
#currency-banner {
  background: var(--gradient-secondary);
  border-bottom: 3px solid var(--primary-500);
  position: relative;
  overflow: hidden;
}
#currency-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 116, 59, 0.1) 88%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}
.ticker-content {
  display: flex;
  align-items: center;
  animation: scroll-ticker 60s linear infinite;
  gap: 1rem;
}
.ticker-content:hover {
  animation-play-state: paused;
}
@keyframes scroll-ticker {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}
.currency-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1rem;
  transition: all var(--transition-base);
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.currency-pair:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.currency-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}
.currency-rate {
  font-family: "Tajawal", monospace;
  font-weight: 700;
  color: #4ade80;
  font-size: 0.875rem;
}
.currency-change {
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.currency-change.positive {
  color: #10b981;
}
.currency-change.negative {
  color: #ef4444;
}
.currency-change.neutral {
  color: #6b7280;
}
.change-icon {
  font-size: 0.625rem;
}
.currency-loading {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ============================
   Feature Cards & Products
   ============================ */
.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-2xl);
  transition: all var(--transition-base);
}
.dark .feature-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.2);
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 116, 59, 0.2);
}
.dark .feature-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(0, 168, 85, 0.2);
}
/* Product Tabs */
.product-tab {
  transition: all var(--transition-base);
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}
.product-tab.active::before,
.product-tab:hover::before {
  opacity: 1;
}
.product-tab.active {
  color: white;
  border-color: var(--primary-500);
}
.product-item {
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  transform: translateY(20px);
}
.product-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ============================
   Partners & Sliders
   ============================ */
.partners-slider-container,
.payment-slider-container,
.recognition-slider-container {
  position: relative;
  overflow: hidden;
}
.partners-slider,
.payment-slider,
.recognition-slider {
  display: flex;
  transition: transform var(--transition-slow);
}
.partner-slide,
.payment-slide,
.recognition-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.partners-dot,
.payment-dot,
.recognition-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  background-color: #d1d5db;
}
.partners-dot.active,
.payment-dot.active,
.recognition-dot.active {
  background-color: var(--primary-500);
  transform: scale(1.2);
}
/* ============================
   Floating Animations
   ============================ */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}
.float-animation {
  animation: float 6s ease-in-out infinite;
}
.float-animation:nth-child(2) {
  animation-delay: -2s;
}
.float-animation:nth-child(3) {
  animation-delay: -4s;
}
/* Pulse Glow Effect */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 116, 59, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 116, 59, 0.6);
    transform: scale(1.02);
  }
}
.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}
/* ============================
   Back to Top Button
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition-base);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
html[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #005a2d 0%, #00743b 100%);
}
.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}
/* ============================
   Loading States & Animations
   ============================ */
.loading {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ============================
   Custom Scrollbar
   ============================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-track {
  background: #374151;
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: background var(--transition-base);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #005a2d 0%, #00743b 100%);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
/* ============================
   Print Styles
   ============================ */
@media print {
  .header-sticky, .back-to-top, #currency-banner, .mobile-menu-panel, .mobile-menu-overlay {
    display: none!important;
  }
  .card-hover {
    box-shadow: none!important;
    transform: none!important;
  }
  * {
    animation: none!important;
    transition: none!important;
  }
}
/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1024px) {
  .mega-menu {
    max-width: 90vw;
    padding: 1.5rem;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 768px) {
  .currency-pair {
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }
  html[dir="rtl"] .back-to-top {
    right: auto;
    left: 1rem;
  }
  .hero-bg {
    padding-top: 110px!important;
  }
  .card-hover:hover {
    transform: translateY(-4px);
  }
}
@media (max-width: 640px) {
  .mobile-menu-panel {
    width: 100%;
    max-width: none;
  }
  .currency-pair {
    min-width: 140px;
    gap: 0.25rem;
  }
  .currency-name, .currency-rate {
    font-size: 0.75rem;
  }
  .currency-change {
    font-size: 0.6875rem;
  }
}
/* ============================
   Accessibility Improvements
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: 0.01ms!important;
    scroll-behavior: auto!important;
  }
  .ticker-content {
    animation: none;
  }
  .float-animation {
    animation: none;
  }
}
@media (prefers-contrast: high) {
  .card-hover {
    border: 2px solid currentColor;
  }
  .btn-gradient {
    border: 2px solid white;
  }
}
/* Focus styles for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}
/* High contrast mode support */
@media (forced-colors: active) {
  .text-gradient {
    -webkit-text-fill-color: unset;
    background: unset;
    color: currentColor;
  }
  .btn-gradient {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
}
/* ============================
   Font Awesome Icons Fix
   ============================ */
.fas,
.fa-solid,
.fab,
.fa-brands,
.far,
.fa-regular {
  font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif!important;
}
.fas,
.fa-solid,
.fab,
.fa-brands {
  font-weight: 900!important;
}
.far,
.fa-regular {
  font-weight: 400!important;
}
/* إضافة هذا في بداية ملف CSS */
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
/* للتأكد من عدم تجاوز أي عنصر لعرض الشاشة */
* {
  max-width: 100%;
}
/* تطبيق خاص للصور */
img {
  max-width: 100%;
  height: auto;
}
/* ============================
   Accordion Styles
   ============================ */
.accordion-item {
  transition: all 0.3s ease;
}
.accordion-header {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* للموبايل */
  touch-action: manipulation;
  /* للموبايل */
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
.accordion-item.active .accordion-content {
  max-height: none;
  /* أو قيمة كبيرة */
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
/* Fix للموبايل */
@media (max-width: 768px) {
  .accordion-header {
    padding: 1.25rem!important;
    min-height: 60px;
  }
  .accordion-content {
    font-size: 0.9rem;
  }
}
/* ========================================
   Simple Sliders - Clean & Professional
   ======================================== */
/* Container */
.simple-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
/* Wrapper */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}
.dark .slider-wrapper {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.slider-wrapper:hover {
  box-shadow: 0 8px 30px rgba(0, 116, 59, 0.15);
}
.dark .slider-wrapper:hover {
  box-shadow: 0 8px 30px rgba(0, 168, 85, 0.2);
}
/* Content */
.slider-content {
  position: relative;
  width: 100%;
}
/* Slides */
.slide {
  display: none;
  animation: fadeIn 0.5s ease;
}
.slide.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Card Items */
.card-item {
  position: relative;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.dark .card-item {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.card-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 116, 59, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-item:hover::before {
  opacity: 1;
}
.card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 116, 59, 0.3);
  box-shadow: 0 8px 25px rgba(0, 116, 59, 0.15);
}
.dark .card-item:hover {
  border-color: rgba(0, 168, 85, 0.3);
  box-shadow: 0 8px 25px rgba(0, 168, 85, 0.2);
}
/* Small Cards */
.card-item.small {
  padding: 1rem;
  min-height: 70px;
}
/* Media Cards */
.card-item.media {
  flex-direction: column;
  gap: 0.5rem;
  min-height: 120px;
  position: relative;
}
.card-item.media span {
  font-size: 1.75rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}
.card-item.media:hover span {
  transform: scale(1.1);
}
.verify-icon {
  color: #00743b;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.card-item.media:hover .verify-icon {
  opacity: 1;
  transform: scale(1);
}
/* Images */
.card-item img {
  max-height: 100px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}
.card-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}
.card-item.small img {
  max-height: 100px;
}
/* Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
/* Buttons */
.slider-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1f2937;
}
.dark .slider-btn {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f9fafb;
}
.slider-btn:hover {
  background: #00743b;
  border-color: #00743b;
  color: white;
  transform: scale(1.1);
}
.slider-btn:active {
  transform: scale(0.95);
}
.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}
/* Dots */
.slider-dots {
  display: flex;
  gap: 0.5rem;
}
.slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dark .slider-dot {
  background: rgba(255, 255, 255, 0.2);
}
.slider-dot.active {
  background: #00743b;
  width: 24px;
  border-radius: 4px;
}
.slider-dot:hover {
  background: #00743b;
  transform: scale(1.2);
}
/* ========================================
Responsive Design
======================================== */
@media (max-width: 1024px) {
  .slider-wrapper {
    padding: 1.25rem;
  }
  .card-item {
    padding: 1.25rem;
    min-height: 90px;
  }
  .card-item.small {
    padding: 0.875rem;
    min-height: 65px;
  }
  .card-item.media {
    min-height: 110px;
  }
}
@media (max-width: 768px) {
  .slider-wrapper {
    padding: 1rem;
  }
  .card-item {
    padding: 1rem;
    min-height: 80px;
  }
  .card-item.small {
    padding: 0.75rem;
    min-height: 60px;
  }
  .card-item.media {
    min-height: 100px;
  }
  .card-item.media span {
    font-size: 1.5rem;
  }
  .card-item img {
    max-height: 100px;
  }
  .card-item.small img {
    max-height: 100px;
  }
  .slider-btn {
    width: 36px;
    height: 36px;
  }
  .slider-btn svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 640px) {
  .slider-wrapper {
    padding: 0.75rem;
  }
  .card-item {
    padding: 0.875rem;
    min-height: 70px;
  }
  .card-item.small {
    padding: 0.625rem;
    min-height: 55px;
  }
  .card-item.media {
    min-height: 90px;
    gap: 0.375rem;
  }
  .card-item.media span {
    font-size: 1.25rem;
  }
  .verify-icon {
    width: 16px;
    height: 16px;
  }
  .slider-controls {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .slider-btn {
    width: 32px;
    height: 32px;
  }
}
/* ========================================
Accessibility
======================================== */
.slider-btn:focus-visible,
.slider-dot:focus-visible {
  outline: 2px solid #00743b;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .slide, .card-item, .slider-btn, .slider-dot {
    animation: none;
    transition: none;
  }
}
/* ============================================
   Glassmorphism Card Effect
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  /* Semi-transparent white background */
  backdrop-filter: blur(16px);
  /* The blur effect */
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* Subtle border */
  border-radius: 1.5rem;
  /* rounded-3xl */
  padding: 1.5rem;
  /* p-6 */
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.dark .glass-card {
  background: rgba(30, 41, 59, 0.5);
  /* Semi-transparent dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.dark .glass-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}
/* Minify CSS - استخدم أداة مثل cssnano */
/* أو استخدم: npx csso styles.css -o styles.min.css */
/* حل بسيط باستخدام viewport scaling */
@media (min-width: 1280px) {
  html {
    font-size: 14px;
    /* تقليل من 16px */
  }
}
@media (min-width: 1536px) {
  html {
    font-size: 13px;
    /* تقليل أكثر للشاشات الكبيرة */
  }
}
@media (min-width: 1920px) {
  html {
    font-size: 12px;
    /* للشاشات الكبيرة جداً */
  }
}
/* ============================
   Professional Language Switcher
   ============================ */
.lang-switcher-pro {
  position: relative;
  z-index: 100;
}
/* Language Button */
.lang-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(243, 244, 246, 1);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  font-weight: 600;
  color: #374151;
}
.dark .lang-button {
  background: rgba(55, 65, 81, 1);
  color: #f9fafb;
}
.lang-button:hover {
  background: rgba(229, 231, 235, 1);
  border-color: rgba(0, 116, 59, 0.2);
  transform: translateY(-1px);
}
.dark .lang-button:hover {
  background: rgba(75, 85, 99, 1);
  border-color: rgba(0, 168, 85, 0.3);
}
.lang-button:active {
  transform: translateY(0);
}
/* Flag Icon in Button */
.lang-button .flag-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
/* Language Text */
.lang-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  min-width: 20px;
  text-align: center;
}
/* Chevron Icon */
.chevron-icon {
  font-size: 1rem;
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.lang-switcher-pro:hover .chevron-icon {
  opacity: 1;
}
/* Dropdown Menu */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 160px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 9999;
}
html[dir="rtl"] .lang-dropdown {
  left: auto;
  right: 0;
}
.dark .lang-dropdown {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}
/* Show Dropdown */
.lang-dropdown.show,
.lang-switcher-pro:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
/* Language Option */
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}
.dark .lang-option {
  color: #f9fafb;
}
.lang-option:hover {
  background: rgba(0, 116, 59, 0.08);
}
.dark .lang-option:hover {
  background: rgba(0, 168, 85, 0.15);
}
.lang-option:active {
  background: rgba(0, 116, 59, 0.15);
}
.dark .lang-option:active {
  background: rgba(0, 168, 85, 0.25);
}
/* Active Language Option */
.lang-option.active {
  background: rgba(0, 116, 59, 0.1);
  color: #00743b;
  font-weight: 600;
}
.dark .lang-option.active {
  background: rgba(0, 168, 85, 0.2);
  color: #4ade80;
}
/* Flag Icon in Option */
.lang-option .flag-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
/* Language Name */
.lang-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}
/* Check Icon */
.check-icon {
  font-size: 1rem;
  color: #00743b;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}
.dark .check-icon {
  color: #4ade80;
}
.lang-option.active .check-icon {
  opacity: 1;
  transform: scale(1);
}
/* Responsive */
@media (max-width: 1024px) {
  .lang-switcher-pro {
    display: none;
  }
}


















/* ============================
   تعديل المقاس للشاشات الكبيرة
   ============================ */

/* تقليل عرض الـ container */
.container {
    max-width: 1280px !important; /* كان 1536px */
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px !important;
    }
}

/* تعديل الـ mega menu */
.mega-menu {
    max-width: 700px !important; /* كان 1000px */
    font-size: 0.9rem; /* تقليل حجم الخط قليلاً */
}

.mega-menu h3 {
    font-size: 1rem !important; /* كان 1.125rem */
}

.mega-menu ul li a {
    padding: 0.625rem !important; /* كان 0.75rem */
    font-size: 0.875rem;
}

/* تقليل المسافات في الهيدر */
.nav-item {
    margin: 0 0.5rem;
}

#main-header nav .hidden.lg\\:flex {
    gap: 1.5rem !important; /* تقليل المسافة بين عناصر القائمة */
}

/* تعديل حجم الأزرار في الهيدر */
#main-header .px-6 {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
}

/* تقليل مقاس الـ Hero Section */
.hero-bg {
    padding-top: 160px !important;
}

.hero-bg h1 {
    font-size: 3rem !important; /* تقليل من 4rem */
}

@media (min-width: 768px) {
    .hero-bg h1 {
        font-size: 3.5rem !important; /* تقليل من 6rem */
    }
}

@media (min-width: 1024px) {
    .hero-bg h1 {
        font-size: 4rem !important; /* تقليل من 7rem */
    }
}

.hero-bg p {
    font-size: 1.125rem !important; /* تقليل من 1.25rem */
}

@media (min-width: 768px) {
    .hero-bg p {
        font-size: 1.25rem !important; /* تقليل من 2rem */
    }
}

/* تعديل zoom افتراضي للصفحة */
body {
    zoom: 0.9; /* يعادل 90% */
    -moz-transform: scale(0.9);
    -moz-transform-origin: 0 0;
}

@media (min-width: 1920px) {
    body {
        zoom: 0.85; /* للشاشات الكبيرة جداً */
    }
}









footer img[src*="logofooter"] {
    max-height: 48px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain;
}






/* ============================
   CTA Section - Background Fix
   ============================ */

.cta-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: hidden !important; /* منع أي محتوى من الخروج */
}

/* Background Image Wrapper - بدون تجاوز */
.cta-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important; /* مهم جداً */
    overflow: hidden !important;
    z-index: 1;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Dark Overlay - نفس الحجم بالضبط */
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
    overflow: hidden !important;
}

/* Container */
.cta-section .container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Main Card */
.cta-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
}

/* Hero Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;  /* كان 0.8s */
}

/* Fast Animations */
.cta-content-animate {
    animation: ctaFadeInUp 0.3s ease-out forwards;
}

.cta-image-animate {
    animation: ctaFadeInUp 0.4s ease-out forwards;
    animation-delay: 0.05s;
}

@keyframes ctaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Content */
.cta-card > div:first-child {
    width: 100%;
    text-align: center;
}

/* Title */
.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Subtitle */
.cta-subtitle {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Buttons Container */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Button Base */
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

/* Primary Button */
.cta-btn-primary {
    background: #dc2626;
    color: white;
}

.cta-btn-primary:active {
    background: #b91c1c;
    transform: scale(0.98);
}

/* Secondary Button */
.cta-btn-secondary {
    background: #16a34a;
    color: white;
}

.cta-btn-secondary:active {
    background: #15803d;
    transform: scale(0.98);
}

/* Hide Image on Mobile */
.cta-image-wrapper {
    display: none;
}

/* ========== EXTRA SMALL PHONES (max 374px) ========== */
@media (max-width: 374px) {
    .cta-section {
        min-height: 420px;
        padding: 1.75rem 0;
    }
    
    .cta-card {
        padding: 1.25rem;
    }
    
    .cta-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }
    
    .cta-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ========== SMALL PHONES (375px - 639px) ========== */
@media (min-width: 375px) and (max-width: 639px) {
    .cta-section {
        min-height: 400px;
    }
}

/* ========== TABLET (640px+) ========== */
@media (min-width: 640px) {
    .cta-section {
        min-height: 380px;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .cta-btn {
        width: auto;
        min-width: 170px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ========== DESKTOP SMALL (768px+) ========== */
@media (min-width: 768px) {
    .cta-section {
        min-height: 360px;
        padding: 2.5rem 0;
    }
    
    .cta-section .container {
        padding: 0 1.5rem;
    }
    
    .cta-card {
        padding: 2.5rem;
    }
    
    .cta-card > div:first-child {
        text-align: right;
    }
    
    html[dir="ltr"] .cta-card > div:first-child {
        text-align: left;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }
    
    .cta-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        justify-content: flex-start;
    }
    
    .cta-btn {
        min-width: 180px;
        padding: 1rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .cta-btn:hover {
        transform: translateY(-2px);
    }
}

/* ========== DESKTOP MEDIUM (1024px+) ========== */
@media (min-width: 1024px) {
    .cta-section {
        min-height: 320px;
        padding: 2rem 0;
    }
    
    .cta-section .container {
        max-width: 1280px;
    }
    
    .cta-card {
        display: grid;
        grid-template-columns: 1.5fr 0.5fr;
        gap: 2rem;
        align-items: center;
        padding: 2rem 2.5rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
        min-width: 170px;
    }
    
    /* Show Image on Desktop */
    .cta-image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        min-height: 220px;
    }
    
    .cta-phone-image {
        max-width: 100%;
        max-height: 240px;
        height: auto;
        width: auto;
        transform: rotate(-8deg);
        transition: transform 0.3s ease;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    }
    
    .cta-phone-image:hover {
        transform: rotate(-10deg) scale(1.05);
    }
    
    html[dir="rtl"] .cta-phone-image {
        transform: rotate(8deg);
    }
    
    html[dir="rtl"] .cta-phone-image:hover {
        transform: rotate(10deg) scale(1.05);
    }
}

/* ========== DESKTOP LARGE (1280px+) ========== */
@media (min-width: 1280px) {
    .cta-section {
        min-height: 340px;
        padding: 2.5rem 0;
    }
    
    .cta-card {
        padding: 2.5rem 3.5rem;
        gap: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }
    
    .cta-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-btn {
        padding: 0.9375rem 1.75rem;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .cta-image-wrapper {
        min-height: 250px;
    }
    
    .cta-phone-image {
        max-height: 270px;
        transform: rotate(-10deg);
    }
    
    .cta-phone-image:hover {
        transform: rotate(-12deg) scale(1.05);
    }
    
    html[dir="rtl"] .cta-phone-image {
        transform: rotate(10deg);
    }
    
    html[dir="rtl"] .cta-phone-image:hover {
        transform: rotate(12deg) scale(1.05);
    }
}

/* ========== EXTRA LARGE DESKTOP (1536px+) ========== */
@media (min-width: 1536px) {
    .cta-section {
        min-height: 360px;
    }
    
    .cta-card {
        padding: 3rem 4rem;
        gap: 3rem;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .cta-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.0625rem;
    }
    
    .cta-image-wrapper {
        min-height: 280px;
    }
    
    .cta-phone-image {
        max-height: 300px;
    }
}

/* ========== ULTRA WIDE (1920px+) ========== */
@media (min-width: 1920px) {
    .cta-section {
        min-height: 380px;
    }
    
    .cta-section .container {
        max-width: 1400px;
    }
    
    .cta-card {
        padding: 3rem 4.5rem;
    }
    
    .cta-title {
        font-size: 2.375rem;
    }
    
    .cta-subtitle {
        font-size: 1.1875rem;
    }
    
    .cta-image-wrapper {
        min-height: 300px;
    }
    
    .cta-phone-image {
        max-height: 320px;
    }
}

/* Disable animations on reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cta-content-animate,
    .cta-image-animate {
        animation: none;
    }
}

/* Fallback Background */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Force Visibility & Proper Box Model */
.cta-section,
.cta-section *,
.cta-card,
.cta-card * {
    visibility: visible !important;
    box-sizing: border-box;
}

/* ❌ إزالة أي min-height إضافي - هذا كان السبب! */
@media (max-width: 767px) {
    .cta-bg-wrapper,
    .cta-overlay {
        min-height: 0 !important;
        height: 100% !important;
    }
}

/* Ensure no overflow on any device */
@media (max-width: 1023px) {
    .cta-section,
    .cta-bg-wrapper,
    .cta-overlay {
        overflow: hidden !important;
        max-height: none !important;
    }
}

/* تسريع الـ Icons */
.glass-card iconify-icon {
  animation: iconBounce 0.4s ease-out;
}

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* تسريع Glass Cards */
.glass-card {
  animation: glassCardAppear 0.4s ease-out; /* جديد */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* كان 0.3s */
}

@keyframes glassCardAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.glass-card:hover {
  transform: translateY(-8px);
}






/* Mobile Language Switcher Styles */
#mobile-lang-menu {
    max-height: 300px;
    overflow-y: auto;
}

#mobile-lang-menu.scale-y-100 {
    transform: scaleY(1);
}

#mobile-lang-menu.scale-y-0 {
    transform: scaleY(0);
}

.mobile-lang-option:active {
    transform: scale(0.98);
}

.mobile-lang-option.active {
    font-weight: 600;
}

/* Ensure proper z-index */
.mobile-menu-panel {
    z-index: 9999;
}

#mobile-lang-menu {
    z-index: 10000;
}







/* ============================
   الحل السريع والمباشر - Simple Fix
   ============================ */

/* الحل الأول: تصغير القائمة تلقائياً على الشاشات الصغيرة */
@media (max-width: 1366px) {
  .mega-menu {
    width: 50vw !important;
    max-width: 1000px !important;
    left: 40% !important;
    transform: translateX(-70%) translateY(22px) !important;
  }
}

@media (max-width: 1024px) {
  .mega-menu {
    display: none !important; /* إخفاء القائمة المنسدلة */
  }
  
  /* التأكد من ظهور زر القائمة على الموبايل/التابلت */
  .lg\\:hidden {
    display: flex !important;
  }
}






/* ============================
   الحل السريع - تصغير المسافات بين الـ Sections
   ============================ */

/* تطبيق على جميع الـ Sections */
section {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* تقليل المسافة بين العنوان والمحتوى */
.section-title {
  margin-bottom: 2rem !important;
}

/* ============================
   للموبايل - مسافات أصغر
   ============================ */

@media (max-width: 768px) {
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .section-title {
    margin-bottom: 1.5rem !important;
  }
}

/* ============================
   ملاحظة: إذا أردت مسافات أصغر أكثر
   ============================ */

/* استبدل 3rem بـ 2rem أو 2.5rem حسب رغبتك:

section {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
*/

















/* ========== Arabic ========== */
html[lang="ar"] .lang-en  { display: none !important; }
html[lang="ar"] .lang-ku  { display: none !important; }
html[lang="ar"] .lang-ar  { display: block !important; }

/* ========== English ========== */
html[lang="en"] .lang-ar  { display: none !important; }
html[lang="en"] .lang-ku  { display: none !important; }
html[lang="en"] .lang-en  { display: block !important; }

html[lang="ku"] .lang-ku { display: inline !important; }
html[lang="ku"] .lang-ar { display: none !important; }
html[lang="ku"] .lang-en { display: none !important; }

/* Fallback - افتراضي عند غياب lang */
html:not([lang="en"]):not([lang="ku"]) .lang-en { display: none !important; }
html:not([lang="en"]):not([lang="ku"]) .lang-ku { display: none !important; }
html:not([lang="ar"]):not([lang="ku"]) .lang-ar { display: none !important; }




/* ✅ إصلاح الـ inline elements للكردي */
html[lang="ku"] .lang-ku {
    display: inline !important;
}

/* للعناصر اللي لازم تكون block */
html[lang="ku"] .lang-ar.block,
html[lang="ku"] .lang-en.block {
    display: none !important;
}




/* أضف هذا مع قواعد اللغة الموجودة */
html[lang="ku"] .lang-ku { display: inline !important; }
html[lang="ku"] .lang-ar { display: none !important; }
html[lang="ku"] .lang-en { display: none !important; }