/* Footer styling */
:root {
  --footer-bg: #1A2332; /* Professional dark background */
  --footer-text: #E9ECEF; /* Light text for dark background */
  --footer-text-light: #ADB5BD; /* Lighter text */
  --footer-accent: #4A69BD; /* Blue accent color */
  --footer-hover: #6C7FCC; /* Light blue hover color */
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
  }
  
/* Add subtle pattern overlay */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.02) 35px,
      rgba(255, 255, 255, 0.02) 70px
    );
  pointer-events: none;
}
  
  .footer-heading {
    color: var(--footer-accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  /* Modern underline for headings */
  .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--footer-accent);
    border-radius: 2px;
  }
  
  html[lang="ar"] .footer-heading::after {
    left: auto;
    right: 0;
  }
  
  .footer-link {
    color: var(--footer-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 500;
    padding: 0.25rem 0;
  }
  
  .footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--footer-hover);
    transition: width 0.3s ease;
  }
  
  .footer-link:hover {
    color: var(--footer-hover);
    transform: translateX(5px);
  }
  
  .footer-link:hover::before {
    width: 100%;
  }
  
  html[lang="ar"] .footer-link:hover {
    transform: translateX(-5px);
  }
  
  .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid var(--footer-text-light);
    border-radius: 50%;
    color: var(--footer-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
  }
  
  .social-link:hover {
    background-color: var(--footer-accent);
    color: #FFFFFF;
    border-color: var(--footer-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 28, 84, 0.2);
  }
  
  .footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    position: relative;
  }
  
  /* Modern gradient divider */
  .footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      var(--footer-accent),
      transparent
    );
  }
  
  .copyright-text {
    color: var(--footer-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
  
  .map-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .map-container:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  }
  
  .contact-info {
    font-size: 0.9rem;
    color: var(--footer-text-light);
  }
  
  .contact-info p {
    color: var(--footer-text-light);
  }
  
  .contact-info i {
    color: var(--footer-accent);
    font-size: 1.1rem;
    margin-right: 0.5rem;
  }
  
  html[lang="ar"] .contact-info i {
    margin-right: 0;
    margin-left: 0.5rem;
  }
  
  /* Footer logo styling */
  .footer-logo {
    position: relative;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .footer-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--footer-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 105, 189, 0.15);
  }
  
  .footer-logo img {
    filter: brightness(1.8) contrast(1.2) saturate(1.1);
    transition: all 0.3s ease;
    max-height: 60px;
    width: auto;
  }
  
  .footer-logo:hover img {
    filter: brightness(2) contrast(1.3) saturate(1.2);
  }

  /* Footer slogan styling */
  .footer-slogan {
    color: var(--footer-text-light);
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 1rem;
  }
  
  .footer-slogan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--footer-accent), var(--footer-hover));
    border-radius: 2px;
  }
  
  html[lang="ar"] .footer-slogan {
    padding-left: 0;
    padding-right: 1rem;
  }
  
  html[lang="ar"] .footer-slogan::before {
    left: auto;
    right: 0;
  }
  
  /* Add hover effect for contact items */
  .contact-info a {
    color: var(--footer-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-info a:hover {
    color: var(--footer-hover);
  }
  
  /* RTL adjustments - Enhanced */
  html[lang="ar"] .me-2,
  html[dir="rtl"] .me-2,
  .rtl-layout .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
  }
  
  html[lang="ar"] .bi-chevron-right::before,
  html[dir="rtl"] .bi-chevron-right::before,
  .rtl-layout .bi-chevron-right::before {
    content: "\f284"; /* Bootstrap icon code for chevron-left */
  }
  
  /* RTL footer layout */
  html[lang="ar"] .footer,
  html[dir="rtl"] .footer,
  .rtl-layout .footer {
    text-align: right;
  }
  
  html[lang="ar"] .footer .social-links,
  html[dir="rtl"] .footer .social-links,
  .rtl-layout .footer .social-links {
    justify-content: flex-start;
  }
  
  /* Add modern animation on load */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .footer-content {
    animation: fadeInUp 0.6s ease-out;
  }
  
  /* Responsive improvements */
  @media (max-width: 768px) {
    .footer-heading {
      font-size: 1.1rem;
    }
    
    .social-link {
      width: 35px;
      height: 35px;
      font-size: 1rem;
    }
  }