/* ============================================
   ENHANCED FEATURES STYLES
   Logo, Search, Trust Badges, Newsletter
   ============================================ */

/* Enhanced Logo */
.logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
}

.logo-container {
  position: relative;
  width: 55px;
  height: 55px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: -webkit-gradient(linear, left top, right bottom, from(#2339A3), to(#1B2A7A));
  background: -webkit-linear-gradient(top left, #2339A3 0%, #1B2A7A 100%);
  background: -o-linear-gradient(top left, #2339A3 0%, #1B2A7A 100%);
  background: linear-gradient(135deg, #2339A3 0%, #1B2A7A 100%);
  border-radius: 12px;
  padding: 8px;
  -webkit-box-shadow: 0 4px 15px rgba(35, 57, 163, 0.2);
  box-shadow: 0 4px 15px rgba(35, 57, 163, 0.2);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.logo-container:hover {
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 6px 20px rgba(35, 57, 163, 0.3);
  box-shadow: 0 6px 20px rgba(35, 57, 163, 0.3);
}

.logo-image {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.logo-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-size: 18px;
  font-weight: 700;
  color: #1B2A7A;
  line-height: 1.2;
}

.logo-sub {
  font-size: 12px;
  font-weight: 500;
  color: #2339A3;
  line-height: 1;
}

/* Header Actions */
.header-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-4);
}

.search-btn {
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #2339A3;
  border-radius: 50%;
  color: #2339A3;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #2339A3;
  color: white;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 42, 122, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 90%;
  max-width: 700px;
  position: relative;
}

.search-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

html[lang="ar"] .search-close {
  right: auto;
  left: 0;
}

.search-close:hover {
  background: white;
  color: #1B2A7A;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.search-form {
  position: relative;
  margin-bottom: 30px;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 25px;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  background: white;
  color: #1B2A7A;
  outline: none;
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

html[lang="ar"] .search-input {
  padding: 20px 25px 20px 60px;
}

.search-input::-webkit-input-placeholder {
  color: #999;
}

.search-input::-moz-placeholder {
  color: #999;
}

.search-input:-ms-input-placeholder {
  color: #999;
}

.search-input::-ms-input-placeholder {
  color: #999;
}

.search-input::placeholder {
  color: #999;
}

.search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: -webkit-gradient(linear, left top, right bottom, from(#2339A3), to(#1B2A7A));
  background: -webkit-linear-gradient(top left, #2339A3, #1B2A7A);
  background: -o-linear-gradient(top left, #2339A3, #1B2A7A);
  background: linear-gradient(135deg, #2339A3, #1B2A7A);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

html[lang="ar"] .search-submit {
  right: auto;
  left: 5px;
}

.search-submit:hover {
  -webkit-transform: translateY(-50%) scale(1.1);
  -ms-transform: translateY(-50%) scale(1.1);
  transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.suggestions-title {
  color: white;
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.suggestions-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
}

.suggestion-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.25);
  -webkit-transform: translateX(-5px);
  -ms-transform: translateX(-5px);
  transform: translateX(-5px);
}

html[lang="ar"] .suggestion-item:hover {
  -webkit-transform: translateX(5px);
  -ms-transform: translateX(5px);
  transform: translateX(5px);
}

.suggestion-item i {
  font-size: 18px;
  color: #2339A3;
  background: white;
  width: 35px;
  height: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 8px;
}

/* Trust Badges Section */
.trust-badges {
  background: -webkit-gradient(linear, left top, right bottom, from(#f8f9fa), to(#e9ecef));
  background: -webkit-linear-gradient(top left, #f8f9fa 0%, #e9ecef 100%);
  background: -o-linear-gradient(top left, #f8f9fa 0%, #e9ecef 100%);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: var(--spacing-12) 0;
  border-top: 3px solid #2339A3;
}

.badges-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(180px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-6);
}

.badge-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-4);
  background: white;
  padding: var(--spacing-6);
  border-radius: var(--radius-lg);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.badge-item:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 8px 25px rgba(35, 57, 163, 0.15);
  box-shadow: 0 8px 25px rgba(35, 57, 163, 0.15);
  border-color: #2339A3;
}

.badge-icon {
  width: 50px;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: -webkit-gradient(linear, left top, right bottom, from(#2339A3), to(#1B2A7A));
  background: -webkit-linear-gradient(top left, #2339A3, #1B2A7A);
  background: -o-linear-gradient(top left, #2339A3, #1B2A7A);
  background: linear-gradient(135deg, #2339A3, #1B2A7A);
  border-radius: 12px;
  color: white;
  font-size: 24px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.badge-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.badge-title {
  font-size: 14px;
  font-weight: 700;
  color: #1B2A7A;
  margin-bottom: 4px;
}

.badge-text {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* Newsletter Section */
.newsletter-section {
  background: -webkit-gradient(linear, left top, right bottom, from(#2339A3), to(#1B2A7A));
  background: -webkit-linear-gradient(top left, #2339A3 0%, #1B2A7A 100%);
  background: -o-linear-gradient(top left, #2339A3 0%, #1B2A7A 100%);
  background: linear-gradient(135deg, #2339A3 0%, #1B2A7A 100%);
  padding: var(--spacing-12) 0;
  margin-bottom: var(--spacing-8);
  border-radius: var(--radius-lg);
}

.newsletter-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: var(--spacing-8);
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.newsletter-text {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 280px;
}

.newsletter-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-3);
  color: white;
  font-size: var(--font-2xl);
  margin-bottom: var(--spacing-3);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter-title i {
  font-size: 32px;
  color: #FFD700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.newsletter-desc {
  color: rgba(255, 255, 255, 1);
  font-size: var(--font-base);
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.newsletter-form {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 320px;
}

.newsletter-input-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 8px;
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.newsletter-input-wrapper i {
  position: absolute;
  left: 25px;
  color: #999;
  font-size: 18px;
}

html[lang="ar"] .newsletter-input-wrapper i {
  left: auto;
  right: 25px;
}

.newsletter-input {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 12px 20px 12px 50px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #1B2A7A;
}

html[lang="ar"] .newsletter-input {
  padding: 12px 50px 12px 20px;
}

.newsletter-input::-webkit-input-placeholder {
  color: #999;
}

.newsletter-input::-moz-placeholder {
  color: #999;
}

.newsletter-input:-ms-input-placeholder {
  color: #999;
}

.newsletter-input::-ms-input-placeholder {
  color: #999;
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-btn {
  background: -webkit-gradient(linear, left top, right bottom, from(#2339A3), to(#1B2A7A));
  background: -webkit-linear-gradient(top left, #2339A3, #1B2A7A);
  background: -o-linear-gradient(top left, #2339A3, #1B2A7A);
  background: linear-gradient(135deg, #2339A3, #1B2A7A);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.newsletter-btn:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  -webkit-box-shadow: 0 5px 20px rgba(35, 57, 163, 0.4);
  box-shadow: 0 5px 20px rgba(35, 57, 163, 0.4);
}

.newsletter-btn i {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
  
  .logo-container {
    width: 45px;
    height: 45px;
  }
  
  .search-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .badges-grid {
    -ms-grid-columns: (minmax(150px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-4);
  }
  
  .badge-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-title {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  
  .newsletter-input-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 20px;
  }
  
  .newsletter-input {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
  }
  
  .newsletter-input-wrapper i {
    display: none;
  }
  
  .newsletter-btn {
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}
