/* ============================================
   Al Nisf Equipment - Brand Design System
   Based on art.svg and blue-1.jpg analysis
   ============================================ */

:root {
  /* Website1.html EXACT Design Colors */
  --alnisf-orange: #ffb12b;
  --alnisf-gray: #88898c;
  --alnisf-dark: #222;
  --alnisf-text-primary: #333;
  --alnisf-text-secondary: #222;
  --alnisf-background-gray: #88898c;
  --alnisf-orange-accent: #ffb12b;
  --alnisf-orange-hover: #e09e1a;
  --alnisf-white: #ffffff;
  --alnisf-light-gray: #f6f6f6;
  --alnisf-border-gray: #bdbdbd;
  --alnisf-hero-bg: #222;
  
  /* Primary Theme Colors - Orange/Gray Only */
  --alnisf-primary: #ffb12b;
  --alnisf-primary-dark: #e09e1a;
  --alnisf-primary-light: #ffc555;
  --alnisf-secondary: #88898c;
  --alnisf-secondary-dark: #6d6e71;
  --alnisf-secondary-light: #a3a4a7;
  
  /* Neutral Colors for Consistency */
  --alnisf-gray-light: #f8f9fa;
  --alnisf-gray-100: #f5f5f5;
  --alnisf-gray-200: #eeeeee;
  --alnisf-gray-300: #e0e0e0;
  --alnisf-gray-400: #bdbdbd;
  --alnisf-gray-500: #8c8c8c;
  --alnisf-gray-600: #757575;
  --alnisf-gray-700: #606a70;
  --alnisf-gray-800: #424242;
  --alnisf-gray-900: #2c3033;
  --alnisf-black: #000000;
  
  /* Functional Colors - Orange/Gray Theme */
  --alnisf-success: #28a745;
  --alnisf-warning: #ffc107;
  --alnisf-danger: #dc3545;
  --alnisf-info: #ffb12b;
  
  /* Typography */
  --font-primary: 'Montserrat', 'Alexandria', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-secondary: 'Montserrat', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: 'Alexandria', 'Tajawal', 'Cairo', Arial, sans-serif;
  
  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-hero: 4.5rem;
  
  /* Font Weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-card: 0.75rem;
  --radius-button: 0.375rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(14, 49, 130, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================
   Brand Components
   ============================================ */

/* Primary Navigation Bar */
.alnisf-navbar {
  background: linear-gradient(135deg, var(--alnisf-primary) 0%, var(--alnisf-primary-dark) 100%);
  box-shadow: 0 2px 10px rgba(14, 49, 130, 0.2);
  font-family: var(--font-primary);
}

.alnisf-navbar .navbar-brand {
  color: var(--alnisf-white);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
}

.alnisf-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--fw-medium);
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
}

.alnisf-navbar .nav-link:hover {
  color: var(--alnisf-white);
  border-bottom-color: var(--alnisf-orange);
}

/* Hero Section - Blue Background Style */
.alnisf-hero {
  background: linear-gradient(135deg, var(--alnisf-primary) 0%, var(--alnisf-secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.alnisf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/blueprint-pattern.png');
  opacity: 0.1;
  background-size: 600px;
  background-repeat: repeat;
}

.alnisf-hero-title {
  color: var(--alnisf-white);
  font-size: var(--fs-hero);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.alnisf-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  font-family: var(--font-secondary);
}

/* Search Bar - Modern Style */
.alnisf-search {
  background: var(--alnisf-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.alnisf-search input {
  border: none;
  outline: none;
  flex: 1;
  padding: var(--space-md);
  font-size: var(--fs-lg);
  font-family: var(--font-secondary);
}

.alnisf-search button {
  background: var(--alnisf-primary);
  color: var(--alnisf-white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: var(--fw-medium);
  transition: all var(--transition-base);
}

.alnisf-search button:hover {
  background: var(--alnisf-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Product Cards */
.alnisf-card {
  background: var(--alnisf-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(14, 49, 130, 0.1);
}

.alnisf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(14, 49, 130, 0.2);
  border-color: var(--alnisf-orange);
}

.alnisf-card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: var(--alnisf-gray-100);
}

.alnisf-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.alnisf-card:hover .alnisf-card-image img {
  transform: scale(1.05);
}

.alnisf-card-body {
  padding: var(--space-lg);
}

.alnisf-card-title {
  color: var(--alnisf-text-primary);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  font-family: var(--font-primary);
}

.alnisf-card-description {
  color: var(--alnisf-text-secondary);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-family: var(--font-secondary);
}

/* Header Styles - Exact Website1 Design */
.header,
.topbar {
  background: #ffb12b !important;
  padding: 0 !important;
  min-height: 80px !important;
  box-shadow: none;
  position: relative;
  z-index: 100;
}

.header-content,
.topbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px !important;
  height: auto;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-section img,
.logo-img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: contain;
}

.logo-circle {
  display: none;
}

.company-info h1,
.company-title {
  font-weight: 700 !important;
  font-size: 22px !important;
  color: #333 !important;
  margin: 0;
  margin-bottom: 0 !important;
  line-height: 1.2;
  font-family: 'Montserrat', Arial, sans-serif;
}

.company-info h2,
.company-group {
  font-size: 14px !important;
  color: #333 !important;
  margin: 0;
  margin-top: -2px !important;
  line-height: 1.2;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Search Bar - Exact Website1 Design */
.search-section {
  flex: 1 !important;
  margin: 0 32px !important;
  max-width: 500px !important;
  position: relative !important;
}

.search-bar {
  position: relative !important;
  width: 100% !important;
}

.search-bar form,
.search-form {
  position: relative !important;
  width: 100% !important;
}

.search-bar input,
.search-bar .search-input,
.search-bar input[type="search"] {
  width: 100% !important;
  border-radius: 6px !important;
  border: none !important;
  padding: 8px 40px 8px 16px !important;
  font-size: 16px !important;
  background: #fff !important;
  color: #333 !important;
  outline: none !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.4 !important;
}

.search-bar input::placeholder {
  color: #999;
  opacity: 1;
}

.search-bar input::-webkit-search-cancel-button {
  display: none;
}

/* Search Icon - Exact Website1 Design with proper sizing */
.search-bar .fa-search,
.search-bar .search-btn i {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #bdbdbd !important;
  font-size: 18px !important;
  pointer-events: none !important;
}

.search-btn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer !important;
  color: #bdbdbd !important;
  font-size: 18px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.search-btn i,
.search-bar .fa-search {
  color: #bdbdbd !important;
  font-size: 18px !important;
}

/* Remove these conflicting rules - handled above */

/* Login Section - Exact Website1 Design */
.login-section,
.user-actions-section {
  display: flex !important;
  align-items: center !important;
  font-size: 16px !important;
  color: #333 !important;
  gap: 6px !important;
}

.login-section .fa-user {
  font-size: 18px !important;
  color: #333 !important;
  margin-right: 6px !important;
}

.login-section a,
.login-text {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.login-section a:hover {
  text-decoration: underline;
}

/* Hide profile image when not needed */
.login-section img[src*="image_6"] {
  display: none;
}

/* Navigation Styles - Website1 Design */
.navbar-custom,
.main-navbar {
  background: #88898c !important;
  padding: 0 !important;
  min-height: 45px !important;
  position: relative !important;
  z-index: 99 !important;
}

.navbar-content,
.nav-menu,
.main-navbar .nav {
  display: flex !important;
  align-items: center !important;
  padding-left: 32px !important;
  padding-right: 0 !important;
}

.nav-menu a,
.main-navbar .nav-link,
.main-navbar a {
  color: #fff !important;
  font-size: 16px !important;
  padding: 16px 24px 16px 0 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  display: inline-block !important;
  position: relative !important;
}

.nav-menu a:hover,
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active,
.main-navbar a:hover {
  color: #ffb12b !important;
}

/* Dropdown Menu - EXACT Website1.html Design */
/* Kill ALL Bootstrap dropdown styles and replace with website1.html exact styles */
.dropdown-menu-custom {
  /* Now apply website1.html exact styles */
  display: none;
  position: absolute !important;
  left: 0 !important;
  top: 100% !important;
  background: #fff !important;
  min-width: 420px !important;
  max-width: 420px !important;
  width: 420px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  z-index: 1000 !important;
  padding: 24px 32px 24px 24px !important;
  border-radius: 0 0 10px 10px !important;
  border: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Compact version for smaller menus */
.dropdown-menu-custom.compact {
  min-width: 300px !important;
  max-width: 300px !important;
  width: 300px !important;
  padding: 20px 26px 20px 20px !important;
}

/* Ensure dropdown parent has proper positioning context */
.nav-item.dropdown {
  position: relative !important;
}

/* Show dropdown on hover - EXACTLY like website1.html */
.nav-item.dropdown:hover > .dropdown-menu-custom {
  display: block !important;
}

/* Style the dropdown arrow but keep it simple */
.dropdown-toggle::after {
  margin-left: 0.255em !important;
  vertical-align: 0.255em !important;
  content: "" !important;
  border-top: 0.3em solid !important;
  border-right: 0.3em solid transparent !important;
  border-bottom: 0 !important;
  border-left: 0.3em solid transparent !important;
}

/* Clear float fix */
.dropdown-menu-custom:after {
  content: '' !important;
  display: block !important;
  clear: both !important;
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown:hover .dropdown-menu {
  display: block !important;
}

/* Dropdown with image */
.dropdown-menu.with-image {
  display: flex;
  min-width: 400px;
  padding: 20px;
}

.dropdown-menu .dropdown-content {
  flex: 1;
}

.dropdown-menu .dropdown-image {
  width: 150px;
  margin-left: 20px;
}

.dropdown-menu .dropdown-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Dropdown header - EXACT website1.html style */
.dropdown-menu-custom .dropdown-header {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #222 !important;
  border-bottom: 2px solid #88898c !important;
  margin-bottom: 10px !important;
  padding-bottom: 4px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.dropdown-menu .dropdown-item {
  color: #222 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
  display: block !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  border: none !important;
  background: transparent !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
  color: #ffb12b !important;
  background: transparent !important;
}

/* Dropdown list styling - EXACT website1.html match */
.dropdown-menu-custom ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  float: none !important;
  width: auto !important;
}

.dropdown-menu-custom ul li {
  font-size: 14px !important;
  color: #222 !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  list-style: none !important;
  display: block !important;
  line-height: 1.4 !important;
}

.dropdown-menu-custom ul li a {
  color: #222 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  display: block !important;
  padding: 2px 0 !important;
  background: transparent !important;
  border: none !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 400 !important;
  transition: color 0.2s ease !important;
}

.dropdown-menu-custom ul li a.active,
.dropdown-menu-custom ul li a:hover {
  color: #ffb12b !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* Dropdown image section - Website1.html exact match */
.dropdown-menu-custom .dropdown-img {
  float: right !important;
  width: 120px !important;
  margin-left: 24px !important;
}

.dropdown-menu-custom .dropdown-img img {
  width: 100% !important;
}

/* ========================================
   RTL Support for Dropdown Menu
   ======================================== */

/* Fix dropdown positioning in RTL - align to right edge */
[dir="rtl"] .dropdown-menu-custom {
  left: auto !important;
  right: 0 !important;
  text-align: right !important;
  direction: rtl !important;
}

/* Ensure dropdown doesn't overflow screen in RTL */
@media (max-width: 768px) {
  [dir="rtl"] .dropdown-menu-custom {
    right: -10px !important;
    max-width: calc(100vw - 20px) !important;
  }
  
  [dir="rtl"] .dropdown-menu-custom.compact {
    max-width: 280px !important;
  }
}

/* Fix dropdown image positioning in RTL */
[dir="rtl"] .dropdown-menu-custom .dropdown-img {
  float: left !important;
  margin-left: 0 !important;
  margin-right: 24px !important;
}

/* Fix text alignment in dropdown items for RTL */
[dir="rtl"] .dropdown-menu-custom ul li a {
  text-align: right !important;
  direction: rtl !important;
  /* Make Arabic text readable but compact */
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
  font-size: 15px !important;  /* Readable size for Arabic */
  line-height: 1.3 !important;  /* Compact but readable line height */
  font-weight: 600 !important;  /* Bold for better readability */
  padding: 2px 0 !important;  /* Slightly more padding for readability */
  letter-spacing: 0 !important;  /* Normal letter spacing for Arabic */
}

/* Fix dropdown list item spacing in RTL */
[dir="rtl"] .dropdown-menu-custom ul li {
  margin-bottom: 5px !important;  /* Balanced spacing */
  line-height: 1.3 !important;
}

/* Fix dropdown header alignment in RTL */
[dir="rtl"] .dropdown-menu-custom .dropdown-header {
  text-align: right !important;
  direction: rtl !important;
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
  font-size: 16px !important;  /* Clear header size */
  font-weight: 700 !important;  /* Bold header */
  line-height: 1.4 !important;
  margin-bottom: 10px !important;  /* Proper spacing */
  padding-bottom: 4px !important;
}

/* Make dropdown more compact in RTL */
[dir="rtl"] .dropdown-menu-custom {
  padding: 20px 28px 20px 20px !important;  /* Slightly less padding for Arabic */
  max-height: 400px !important;  /* Prevent dropdown from becoming too tall */
  overflow-y: auto !important;  /* Add scroll if needed */
}

[dir="rtl"] .dropdown-menu-custom.compact {
  padding: 16px 22px 16px 18px !important;  /* Even more compact for smaller menus */
  max-height: 350px !important;
}

/* Remove extra spacing between Arabic characters */
[dir="rtl"] .dropdown-menu-custom ul {
  letter-spacing: normal !important;  /* Normal spacing for readability */
}

/* Ensure consistent heights - adjusted for larger text */
[dir="rtl"] .dropdown-menu-custom ul li {
  min-height: auto !important;
  max-height: none !important;  /* Allow natural height */
  overflow: visible !important;
}

/* Better hover effect for bold Arabic text */
[dir="rtl"] .dropdown-menu-custom ul li a:hover,
[dir="rtl"] .dropdown-menu-custom ul li a.active {
  color: #ffb12b !important;
  font-weight: 700 !important;  /* Even bolder on hover */
  background: transparent !important;
}

/* Fix dropdown arrow position in RTL */
[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0 !important;
  margin-right: 0.255em !important;
}

/* Fix nav link padding in RTL */
[dir="rtl"] .main-navbar .nav-link,
[dir="rtl"] .main-navbar a {
  padding: 16px 0 16px 24px !important;
}

/* Fix nav alignment in RTL */
[dir="rtl"] .main-navbar .nav {
  padding-left: 0 !important;
  padding-right: 32px !important;
}

/* ========================================
   Fix ONLY Main Hero Banner Arrows in RTL 
   ======================================== */

/* Hero arrows now positioned individually on left/right - no RTL override needed for container */

/* Keep the arrows pointing in same visual direction in RTL */
/* Only affect the main hero banner, not other arrows on the site */
body[dir="rtl"] .main-hero .hero-prev i.fa-chevron-left:before {
  content: "\f053" !important; /* Keep left chevron */
}

body[dir="rtl"] .main-hero .hero-next i.fa-chevron-right:before {
  content: "\f054" !important; /* Keep right chevron */
}

/* Prevent last dropdown from being cut off in RTL */
[dir="rtl"] .nav-item.dropdown:last-child .dropdown-menu-custom {
  right: 0 !important;
  left: auto !important;
}

/* For very right-most dropdowns in RTL, shift them left a bit */
[dir="rtl"] .nav-item.dropdown:nth-last-child(-n+2) .dropdown-menu-custom {
  right: 0 !important;
  left: auto !important;
  transform: translateX(0) !important;
}

/* Ensure dropdowns near screen edge don't overflow */
@media (min-width: 769px) {
  [dir="rtl"] .nav-item.dropdown:nth-last-child(-n+2) .dropdown-menu-custom {
    right: -20px !important;
  }
}

.dropdown-menu .dropdown-item i {
  display: none;
}

.news-ticker {
  color: var(--alnisf-white);
  font-size: var(--fs-sm);
  font-style: italic;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Hero Slider - Final 1 Design */
.hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: var(--space-3xl);
}

.hero-slider .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.slider-controls:hover {
  background: var(--alnisf-white);
  box-shadow: var(--shadow-lg);
}

.slider-controls.left {
  left: var(--space-lg);
}

.slider-controls.right {
  right: var(--space-lg);
}

.slider-controls img {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .hero-slider {
    height: 300px;
  }
  
  .slider-controls {
    width: 40px;
    height: 40px;
  }
  
  .slider-controls img {
    width: 20px;
    height: 20px;
  }
}

/* Brand Logo Cards - Final 1 Design */
.alnisf-brand-card {
  background: var(--alnisf-white);
  border: none;
  border-radius: 10px;
  padding: 0;
  display: block;
  text-align: center;
  transition: all var(--transition-base);
  height: auto;
  overflow: hidden;
}

.alnisf-brand-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.alnisf-brand-card img {
  width: 100%;
  height: auto;
  max-width: 716px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--transition-base);
  filter: none;
}

.alnisf-brand-card:hover img {
  transform: scale(1.02);
  filter: none;
}

/* Buttons */
.btn-alnisf-primary {
  background: var(--alnisf-primary);
  color: var(--alnisf-white);
  border: none;
  border-radius: var(--radius-button);
  padding: var(--space-md) var(--space-xl);
  font-weight: var(--fw-medium);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

.btn-alnisf-primary:hover {
  background: var(--alnisf-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--alnisf-white);
}

.btn-alnisf-outline {
  background: transparent;
  color: var(--alnisf-primary);
  border: 2px solid var(--alnisf-primary);
  border-radius: var(--radius-button);
  padding: var(--space-md) var(--space-xl);
  font-weight: var(--fw-medium);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

.btn-alnisf-outline:hover {
  background: var(--alnisf-primary);
  color: var(--alnisf-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section Headers */
.alnisf-section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.alnisf-section-title {
  color: var(--alnisf-primary);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  margin-bottom: var(--space-md);
}

.alnisf-section-subtitle {
  color: var(--alnisf-gray-600);
  font-size: var(--fs-lg);
  font-family: var(--font-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer - Website1 Design */
.alnisf-footer,
.footer {
  background: var(--alnisf-gray);
  color: var(--alnisf-white);
  padding: 36px 0 0 0;
  font-size: 14px;
}

.alnisf-footer h5,
.footer h5 {
  color: var(--alnisf-white);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}

.alnisf-footer ul,
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alnisf-footer ul li,
.footer ul li {
  margin-bottom: 8px;
}

.alnisf-footer a,
.footer a {
  color: var(--alnisf-white);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-base);
}

.alnisf-footer a:hover,
.footer a:hover {
  text-decoration: underline;
  color: var(--alnisf-orange);
}

.footer-bottom {
  border-top: 1px solid #bdbdbd;
  margin-top: 24px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-bottom .social-icons {
  display: flex;
  gap: 20px;
}

.footer-bottom .social-icons a {
  color: var(--alnisf-white);
  font-size: 28px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom .social-icons a:hover {
  color: var(--alnisf-orange);
}

/* Arabic RTL Support */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] .alnisf-search {
  direction: rtl;
}

[dir="rtl"] .alnisf-search button {
  margin-left: 0;
  margin-right: var(--space-sm);
}

/* Category and Brand Card Styles - Final 1 Design */
.category-card-link {
  text-decoration: none;
  color: inherit;
}

.category-card {
  background: var(--alnisf-white);
  border: none;
  border-radius: 10px;
  padding: 0;
  text-align: center;
  transition: all var(--transition-base);
  height: auto;
  display: block;
  overflow: hidden;
}

.category-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.category-image {
  width: 100%;
  height: auto;
  max-width: 716px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
}

.category-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alnisf-gray-100);
  border-radius: 10px;
  margin-bottom: 0;
}

.category-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--alnisf-text-primary);
  margin: 0;
  text-align: center;
  font-family: var(--font-secondary);
  padding: 10px 0;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.9);
  border-radius: 0 0 10px 10px;
}

.brand-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--alnisf-text-primary);
  font-family: var(--font-secondary);
  padding: 10px 0;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.9);
  border-radius: 0 0 10px 10px;
}

.company-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  width: 100%;
  border-radius: 10px;
}

/* News Card Styles - Website1 Design */
.news-card,
.latest-news .news-card {
  background: var(--alnisf-light-gray);
  border-radius: 6px;
  overflow: hidden;
  width: 340px;
  min-height: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(14, 49, 130, 0.2);
}

.news-card img,
.latest-news .news-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.news-card-body,
.latest-news .news-card .news-body {
  padding: 18px 18px 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body h3,
.latest-news .news-card .news-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--alnisf-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card-body p,
.latest-news .news-card .news-desc {
  font-size: 13px;
  color: var(--alnisf-dark);
  margin-bottom: 8px;
  flex: 1;
}

.more-details,
.latest-news .news-card .news-link {
  font-size: 13px;
  color: #ffb12b;
  text-decoration: none;
  font-weight: 500;
}

.more-details:hover,
.latest-news .news-card .news-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.news-meta {
  font-size: var(--fs-sm);
  color: var(--alnisf-gray-500);
}

/* Brands and Products Section Styles - Website1 Design */
.brands-section,
.main-brands {
  background: var(--alnisf-white);
  padding: 0 0 32px 0;
}

.products-section,
.main-products {
  background: var(--alnisf-gray);
  padding: 32px 0 32px 0;
  margin: 0;
  position: relative;
}

/* Ensure product names are visible on gray background */
.products-section .product-name-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.95)) !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

.products-section .product-item:hover .product-name-overlay {
  background: linear-gradient(transparent, rgba(255, 171, 51, 0.9)) !important;
}

.products-section .category-name {
  color: white !important;
  font-weight: 700 !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.9) !important;
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 5px !important;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--alnisf-dark);
  text-align: center;
  margin: 36px 0 18px 0;
  font-family: var(--font-primary);
}

.section-title.white {
  color: var(--alnisf-white);
}

/* Join Team Section - Website1 Design */
.join-team-section,
.join-team {
  background: var(--alnisf-gray);
  padding: 32px 0 32px 0;
  color: var(--alnisf-white);
}

.join-team-content h2,
.join-team .join-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--alnisf-white);
  margin-bottom: 0;
}

.join-team-content p,
.join-team .join-desc {
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
  color: var(--alnisf-white);
}

.apply-btn,
.join-team .apply-btn {
  background: var(--alnisf-orange);
  color: var(--alnisf-white);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.apply-btn:hover,
.join-team .apply-btn:hover {
  background: #e09e1a;
  color: var(--alnisf-white);
}

/* Customer Feedback Section - Website1 Design */
.customer-feedback-section,
.customer-feedback {
  background: var(--alnisf-white);
  padding: 36px 0 36px 0;
}

.feedback-card,
.customer-feedback .feedback-card {
  background: var(--alnisf-light-gray);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 24px 18px 18px 18px;
  width: 340px;
  min-height: 140px;
  text-align: left;
}

.feedback-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(14, 49, 130, 0.2);
}

.feedback-logo {
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.feedback-logo img {
  max-height: 80px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.feedback-card:hover .feedback-logo img {
  filter: grayscale(0%);
}

.feedback-rating {
  margin-bottom: var(--space-lg);
}

.feedback-rating i {
  color: #ffc107;
  margin: 0 2px;
}

.feedback-text,
.customer-feedback .feedback-card .feedback-desc {
  font-size: 13px;
  color: var(--alnisf-dark);
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 0;
}

.feedback-author h5,
.customer-feedback .feedback-card .feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--alnisf-orange);
  margin-bottom: 8px;
  border-left: 4px solid var(--alnisf-orange);
  padding-left: 8px;
}

/* Enhanced Mobile and RTL Responsive Design */
@media (max-width: 768px) {
  :root {
    --fs-hero: 2.5rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
  }
  
  /* Prevent scroll on menu toggle */
  body.offcanvas-open {
    position: fixed;
    top: 0;
    width: 100%;
    overflow: hidden;
  }
  
  /* Enhanced Header Mobile Optimization */
  .header {
    min-height: auto;
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--alnisf-primary), var(--alnisf-secondary));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  /* Mobile Topbar Optimization */
  .topbar {
    min-height: 60px !important;
    padding: 0 !important;
  }

  .topbar .container-fluid {
    padding: 5px 12px !important;
    gap: 8px;
  }

  .logo-section {
    display: flex;
    align-items: center;
    gap: 8px !important;
    flex: 1;
    min-width: 0;
  }

  .logo-section img,
  .logo-img {
    width: 45px !important;
    height: 45px !important;
    flex-shrink: 0;
  }

  .company-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
  }

  .company-info h1,
  .company-title {
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .company-info h2,
  .company-group {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-section {
    display: none !important;
  }

  .login-section {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    flex-shrink: 0;
  }

  .login-section .fa-user {
    font-size: 14px;
  }

  .login-section .fa-globe {
    font-size: 12px;
  }

  .login-section a,
  .login-section button,
  .login-section form {
    font-size: 12px !important;
    white-space: nowrap;
  }

  .login-section .dropdown-toggle {
    font-size: 12px !important;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .logo-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  .logo-circle img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  
  .company-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .company-info h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
  }
  
  .company-info h2 {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.2;
  }
  
  .search-section {
    display: none; /* Hide search on mobile header, show in offcanvas */
  }
  
  .user-actions-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .language-switcher {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
  }
  
  .login-section {
    font-size: 0.85rem;
  }
  
  .login-text {
    color: white;
    text-decoration: none;
    font-weight: 500;
  }
  
  /* Enhanced Navigation Mobile */
  .navbar-custom {
    display: none; /* Hide main nav on mobile */
  }
  
  /* Professional Mobile Menu Button */
  .navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.6em;
    height: 1.6em;
    transition: transform 0.3s ease;
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
  }
  
  /* Fix search button mobile */
  .search-bar {
    height: 45px;
  }
  
  .search-btn {
    min-width: 45px;
    padding: 0 10px;
  }
  
  .search-btn img {
    width: 18px;
    height: 18px;
  }
  
  /* Professional Mobile Offcanvas Menu */
  .offcanvas {
    width: 320px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    border: none;
  }
  
  .offcanvas-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--alnisf-primary), var(--alnisf-secondary));
    color: white;
    border: none;
  }
  
  .offcanvas-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin: 0;
  }
  
  .offcanvas .btn-close {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    opacity: 1;
    width: 32px;
    height: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .offcanvas .btn-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
  }
  
  .offcanvas-body {
    padding: 1.5rem;
    overflow-y: auto;
  }
  
  /* Enhanced Mobile Search */
  .offcanvas .input-group {
    margin-bottom: 2rem;
  }
  
  .offcanvas .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }
  
  .offcanvas .form-control:focus {
    border-color: var(--alnisf-primary);
    box-shadow: 0 0 0 3px rgba(27, 103, 155, 0.15);
  }
  
  .offcanvas .btn-primary {
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  /* Professional Menu Items */
  .offcanvas .list-unstyled {
    margin: 0;
    padding: 0;
  }
  
  .offcanvas .list-unstyled li {
    margin-bottom: 0.5rem;
    border: none;
  }
  
  .offcanvas .list-unstyled > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: var(--alnisf-text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .offcanvas .list-unstyled > li > a:hover {
    background: linear-gradient(135deg, var(--alnisf-primary), var(--alnisf-secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: transparent;
  }
  
  /* Professional Chevron Icons */
  .offcanvas .fas.fa-chevron-down {
    transition: all 0.3s ease;
    font-size: 0.8rem;
    opacity: 0.7;
  }
  
  .offcanvas a[aria-expanded="true"] .fas.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--alnisf-primary);
    opacity: 1;
  }
  
  /* Submenu Styling */
  .offcanvas .collapse {
    margin-top: 0.5rem;
  }
  
  .offcanvas .collapse .list-unstyled {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    margin-left: 1rem;
  }
  
  .offcanvas .collapse .list-unstyled a {
    padding: 0.75rem 1rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 6px;
  }
  
  .offcanvas .collapse .list-unstyled a:hover {
    background: var(--alnisf-primary);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* Enhanced Icon Spacing */
  .offcanvas i.fas {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
  }
  
  /* General Mobile Content Adjustments */  
  .alnisf-hero {
    padding: 2rem 0;
    text-align: center;
  }
  
  .alnisf-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .alnisf-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .alnisf-card {
    margin-bottom: 1.5rem;
  }
  
  .alnisf-card-image {
    height: 200px;
    border-radius: 12px 12px 0 0;
  }
  
  .alnisf-brand-card {
    height: 120px;
    padding: 1rem;
    border-radius: 12px;
  }
  
  .feedback-card {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .feedback-logo img {
    max-height: 60px;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Button Improvements */
  .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
  }
  
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Card Improvements */
  .card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
}

/* RTL Specific Mobile Improvements */
[dir="rtl"] {
  /* RTL Company Info */
  .company-info {
    text-align: right;
    align-items: flex-end;
  }
  
  /* RTL Icon Spacing */
  .offcanvas i.fas {
    margin-right: 0;
    margin-left: 0.75rem;
  }
  
  /* RTL Chevron Positioning */
  .offcanvas .fas.fa-chevron-down {
    order: -1;
    margin-left: 0;
    margin-right: 0.75rem;
  }
  
  /* RTL Menu Item Layout */
  .offcanvas .list-unstyled > li > a {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  /* RTL Submenu Indentation */
  .offcanvas .collapse .list-unstyled {
    margin-left: 0;
    margin-right: 1rem;
  }
  
  .offcanvas .collapse .list-unstyled a:hover {
    transform: translateX(-4px);
  }
  
  /* RTL Search Button */
  .offcanvas .form-control {
    border-radius: 0 10px 10px 0;
  }
  
  .offcanvas .btn-primary {
    border-radius: 10px 0 0 10px;
  }
}

/* Enhanced Mobile RTL Responsive */
@media (max-width: 768px) {
  [dir="rtl"] {
    /* RTL Mobile Header */
    .logo-section {
      flex-direction: row-reverse;
    }
    
    .company-info {
      align-items: flex-end;
      text-align: right;
    }
    
    /* RTL Mobile Menu Animation - Fix slide direction */
    .offcanvas-start {
      right: -100%;
      left: auto;
      border-right: 1px solid rgba(0,0,0,.2);
      border-left: none;
      transform: translateX(100%);
    }
    
    .offcanvas-start.showing {
      transform: translateX(0);
    }
    
    .offcanvas-start.show {
      right: 0;
      transform: translateX(0);
    }
    
    .offcanvas-start.hiding {
      transform: translateX(100%);
    }
    
    /* RTL Enhanced Icon Spacing */
    .offcanvas i.fas {
      margin-right: 0;
      margin-left: 0.75rem;
      text-align: center;
    }
    
    /* RTL Professional Chevron Icons */
    .offcanvas .fas.fa-chevron-down {
      order: -1;
      margin-left: 0;
      margin-right: 0.75rem;
    }
  }
}

/* Mobile Menu Animations */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Apply animations to mobile menu items */
.offcanvas.show .list-unstyled > li > a {
  animation: fadeInUp 0.3s ease-out forwards;
  opacity: 0;
}

/* Stagger animation delays */
.offcanvas.show .list-unstyled > li:nth-child(1) > a { animation-delay: 0.1s; }
.offcanvas.show .list-unstyled > li:nth-child(2) > a { animation-delay: 0.2s; }
.offcanvas.show .list-unstyled > li:nth-child(3) > a { animation-delay: 0.3s; }
.offcanvas.show .list-unstyled > li:nth-child(4) > a { animation-delay: 0.4s; }
.offcanvas.show .list-unstyled > li:nth-child(5) > a { animation-delay: 0.5s; }
.offcanvas.show .list-unstyled > li:nth-child(6) > a { animation-delay: 0.6s; }
.offcanvas.show .list-unstyled > li:nth-child(7) > a { animation-delay: 0.7s; }
.offcanvas.show .list-unstyled > li:nth-child(8) > a { animation-delay: 0.8s; }

/* RTL Animation Overrides */
[dir="rtl"] .offcanvas-start {
  animation: slideInFromRight 0.3s ease-out;
}

[dir="ltr"] .offcanvas-start {
  animation: slideInFromLeft 0.3s ease-out;
}

/* Smooth collapse animations */
.collapse {
  transition: height 0.35s ease, opacity 0.35s ease;
  overflow: hidden;
}

.collapse.show {
  opacity: 1;
}

.collapse:not(.show) {
  opacity: 0;
  height: 0 !important;
}

/* Loading Animation */
@keyframes alnisf-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.alnisf-loading {
  animation: alnisf-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Blueprint Pattern Overlay */
.alnisf-blueprint-bg {
  position: relative;
  background: linear-gradient(135deg, var(--alnisf-primary) 0%, var(--alnisf-secondary) 100%);
}

.alnisf-blueprint-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px),
    repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
  pointer-events: none;
}

/* Swiper-based Carousel Design - Website1 Style */
.brand-swiper,
.product-swiper {
  width: 100%;
  padding: 0 60px;
  position: relative;
}

.brand-swiper .swiper-slide,
.product-swiper .swiper-slide {
  text-align: center;
  padding: 0 15px;
}

/* Arrow Controls for Brand and Product Carousels */
.brand-swiper .swiper-button-prev,
.brand-swiper .swiper-button-next {
  background: #ffb12b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
}

.brand-swiper .swiper-button-prev:after,
.brand-swiper .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}

.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #88898c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-swiper .swiper-button-prev:after,
.product-swiper .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}

/* Brand Items */
.brand-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.brand-item:hover {
  transform: scale(1.02);
}

.brand-image,
.product-image {
  width: 100%;
  height: 320px;
  max-width: 716px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  object-fit: cover;
  display: block;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.brand-item:hover .brand-image,
.product-item:hover .product-image {
  transform: scale(1.05);
}

/* Product Items */
.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: scale(1.02);
}

/* Force product names to show */
.product-item .product-name-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
}

.product-item .category-name {
  display: block !important;
  text-align: center !important;
}

.product-placeholder {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alnisf-gray-100);
  border-radius: 10px;
}

.product-placeholder .product-image {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}

/* Name Overlays - Always Visible */
.brand-name-overlay,
.product-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: white;
  padding: 25px 15px 15px 15px;
  border-radius: 0 0 10px 10px;
  opacity: 1;
  transition: all 0.3s ease;
}

.brand-item:hover .brand-name-overlay,
.product-item:hover .product-name-overlay {
  background: linear-gradient(transparent, rgba(14, 49, 130, 0.9));
  transform: translateY(-2px);
}

.brand-name-overlay .brand-name,
.product-name-overlay .category-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  line-height: 1.3;
}

/* Swiper Navigation Buttons */
.brand-prev,
.brand-next,
.product-prev,
.product-next {
  width: 80px;
  height: 80px;
  margin-top: -40px;
}

.brand-prev:after,
.brand-next:after,
.product-prev:after,
.product-next:after {
  display: none;
}

.brand-prev img,
.brand-next img,
.product-prev img,
.product-next img {
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.brand-prev:hover img,
.brand-next:hover img,
.product-prev:hover img,
.product-next:hover img {
  opacity: 0.8;
}

.brand-prev {
  left: -40px;
}

.brand-next {
  right: -40px;
}

.product-prev {
  left: -40px;
}

.product-next {
  right: -40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
    margin: 40px 0;
  }
  
  .brand-swiper,
  .product-swiper {
    padding: 0 20px;
  }
  
  .brand-image,
  .product-image {
    height: 250px;
    object-fit: cover;
  }
  
  .brand-name-overlay .brand-name,
  .product-name-overlay .category-name {
    font-size: 0.95rem;
    padding: 0 5px;
  }
  
  .brand-prev,
  .brand-next,
  .product-prev,
  .product-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .brand-prev img,
  .brand-next img,
  .product-prev img,
  .product-next img {
    width: 40px;
    height: 40px;
  }
  
  .brand-prev {
    left: -10px;
  }
  
  .brand-next {
    right: -10px;
  }
  
  .product-prev {
    left: -10px;
  }
  
  .product-next {
    right: -10px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 20px;
  }

  /* Extra Small Screens - Topbar */
  .topbar {
    min-height: 55px !important;
  }

  .topbar .container-fluid {
    padding: 4px 8px !important;
    gap: 6px;
  }

  .logo-section img,
  .logo-img {
    width: 40px !important;
    height: 40px !important;
  }

  .company-info h1,
  .company-title {
    font-size: 13px !important;
  }

  .company-info h2,
  .company-group {
    font-size: 10px !important;
  }

  .login-section {
    gap: 3px !important;
    font-size: 11px !important;
  }

  .login-section .fa-user {
    font-size: 12px;
  }

  .login-section .fa-globe {
    font-size: 11px;
  }

  .login-section a,
  .login-section button,
  .login-section form {
    font-size: 11px !important;
  }

  .login-section .dropdown-toggle {
    font-size: 11px !important;
    max-width: 70px;
  }

  .brand-image,
  .product-image {
    height: 200px;
    object-fit: cover;
  }
  
  .brand-name-overlay,
  .product-name-overlay {
    padding: 15px 10px 10px 10px;
  }
  
  .brand-name-overlay .brand-name,
  .product-name-overlay .category-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }
}

/* Hero Section - Website1 Design */
.hero-section,
.main-hero {
  position: relative;
  width: 100%;
  height: 400px;
  background: #222;
  overflow: hidden;
}

.hero-slider .swiper-slide {
  position: relative;
}

.hero-slider img,
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* Hero Arrows */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
  background: #ffb12b;
  border-color: #ffb12b;
}

.hero-slider .swiper-button-prev:after,
.hero-slider .swiper-button-next:after {
  font-size: 16px;
  font-weight: bold;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
}

.hero-content,
.main-hero .hero-content {
  position: absolute;
  left: 60px;
  bottom: 60px;
  color: white;
  z-index: 2;
  text-align: left;
}

.hero-title,
.main-hero .hero-content .spare {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

.hero-description,
.main-hero .hero-content .parts {
  font-size: 72px;
  font-weight: 700;
  color: #ffb12b;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
}

.btn-hero {
  background: var(--alnisf-orange-accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 171, 51, 0.3);
}

.btn-hero:hover {
  background: #e6941f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 171, 51, 0.4);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .btn-hero {
    font-size: 16px;
    padding: 12px 24px;
  }
}

/* Enhanced Arabic Typography - CRITICAL FIX for Readability */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Cairo', 'Amiri', Arial, sans-serif !important;
    font-weight: 500 !important;
}

[dir="rtl"] .nav-link,
[dir="rtl"] .main-navbar .nav-link,
[dir="rtl"] .main-navbar a {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

[dir="rtl"] .company-title {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
}

[dir="rtl"] .company-group {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

[dir="rtl"] .section-title {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 26px !important;
}

/* Mobile Responsive Navigation - RESTORE HAMBURGER MENU */
@media (max-width: 991px) {
    .main-navbar .nav {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #88898c !important;
        padding: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    }
    
    .main-navbar .nav.show {
        display: flex !important;
    }
    
    .main-navbar .nav-link {
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        font-size: 16px !important;
    }
    
    /* Hamburger menu button */
    .navbar-toggler {
        display: block !important;
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 24px !important;
        padding: 10px !important;
        margin-right: 20px !important;
    }
    
    [dir="rtl"] .main-navbar .nav-link {
        font-size: 20px !important;
        font-weight: 700 !important;
    }
}

/* FOOTER COLOR OVERRIDE - CRITICAL FIX */
footer.alnisf-footer,
.alnisf-footer,
footer,
.footer {
    background: #88898c !important;
    background-color: #88898c !important;
    color: white !important;
}

/* COMPREHENSIVE BOOTSTRAP PRIMARY COLOR OVERRIDES */

/* Override Bootstrap CSS Variables */
:root {
    --bs-primary: #ffb12b !important;
    --bs-primary-rgb: 255, 177, 43 !important;
    --bs-primary-text: #fff !important;
    --bs-primary-bg-subtle: #fff4e6 !important;
    --bs-primary-border-subtle: #ffc555 !important;
    --bs-primary-text-emphasis: #cc8e22 !important;
}

/* Override all Bootstrap primary-related classes */
.bg-primary {
    background-color: var(--alnisf-primary) !important;
    color: white !important;
}

.text-primary {
    color: var(--alnisf-primary) !important;
}

.text-bg-primary {
    background-color: var(--alnisf-primary) !important;
    color: white !important;
}

.border-primary {
    border-color: var(--alnisf-primary) !important;
}

.btn-primary {
    background-color: var(--alnisf-primary) !important;
    border-color: var(--alnisf-primary) !important;
    color: white !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--alnisf-primary-dark) !important;
    border-color: var(--alnisf-primary-dark) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 177, 43, 0.25) !important;
}

.btn-outline-primary {
    color: var(--alnisf-primary) !important;
    border-color: var(--alnisf-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus, 
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    background-color: var(--alnisf-primary) !important;
    border-color: var(--alnisf-primary) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 177, 43, 0.25) !important;
}

.btn-secondary {
    background-color: var(--alnisf-secondary) !important;
    border-color: var(--alnisf-secondary) !important;
    color: white !important;
}

.btn-secondary:hover, 
.btn-secondary:focus, 
.btn-secondary:active,
.btn-secondary.active,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: var(--alnisf-secondary-dark) !important;
    border-color: var(--alnisf-secondary-dark) !important;
    color: white !important;
}

/* Links */
a {
    color: var(--alnisf-primary) !important;
}

a:hover, a:focus {
    color: var(--alnisf-primary-dark) !important;
}

/* Alert variants */
.alert-primary {
    background-color: var(--bs-primary-bg-subtle) !important;
    border-color: var(--bs-primary-border-subtle) !important;
    color: var(--bs-primary-text-emphasis) !important;
}

/* Form controls focus state */
.form-control:focus,
.form-select:focus {
    border-color: var(--alnisf-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 177, 43, 0.25) !important;
}

/* Progress bars */
.progress-bar {
    background-color: var(--alnisf-primary) !important;
}

/* List group active items */
.list-group-item.active {
    background-color: var(--alnisf-primary) !important;
    border-color: var(--alnisf-primary) !important;
}

/* Pagination */
.page-link {
    color: var(--alnisf-primary) !important;
}

.page-item.active .page-link {
    background-color: var(--alnisf-primary) !important;
    border-color: var(--alnisf-primary) !important;
}

.page-link:hover {
    color: var(--alnisf-primary-dark) !important;
    background-color: var(--bs-primary-bg-subtle) !important;
    border-color: var(--bs-primary-border-subtle) !important;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--alnisf-primary) !important;
}

/* Spinners */
.spinner-border.text-primary {
    color: var(--alnisf-primary) !important;
}

/* SWIPER THEME COLOR OVERRIDE */
:root {
    --swiper-theme-color: #ffb12b !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--alnisf-primary) !important;
}

.swiper-pagination-bullet-active {
    background: var(--alnisf-primary) !important;
}

/* REMOVED - Duplicate definition, using the one at line 484 */