/* Footer navigation and link lists */
.footer-navbar .nav .nav-item a.nav-link {
  padding: 0.375rem 0;
  color: #475569;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
/* Arrow icon spacing */
.footer-navbar .nav .nav-item a.nav-link .me-2 {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}
/* Hover - Slide right with color change */
.footer-navbar .nav .nav-item a.nav-link:hover {
  color: #667eea;
  background: transparent;
  padding-left: 0.25rem;
}
.footer-navbar .nav .nav-item a.nav-link:hover .me-2 {
  transform: translateX(3px);
}
/* Focus - Accessibility outline for keyboard navigation */
.footer-navbar .nav .nav-item a.nav-link:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Footer Description Text */
.footer-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Footer Social Navigation */
.footer-social-nav {
  margin-top: 1.5rem;
}
.footer-social-title {
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

/* Footer Section Headings */
.footer-top .link-heading {
  padding: 0 0 0.5rem;
  position: relative;
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}
/* Gradient underline decoration */
.footer-top .link-heading:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  bottom: 0;
  left: 0;
  border-radius: 999px;
}

/* Social Media Icons */
.social-icons .nav-item {
  margin: 0;
}
/* Base circular button style */
.social-icons .nav-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}
/* Hover - Purple gradient with lift effect */
.social-icons .nav-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
/* Focus - Keyboard navigation accessibility */
.social-icons .nav-link:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Contact Information Display */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-list .nav-link {
  color: #475569;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  transition: color 0.2s ease;
  padding: 0;
}
/* Hover - Purple accent color for links only */
.footer-contact-list a.nav-link:hover {
  color: #667eea;
}
/* Icons - Fixed width for alignment, purple color */
.footer-contact-list .nav-link i {
  width: 20px;
  text-align: center;
  color: #667eea;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
/* Text wrapper for multiline content */
.footer-contact-list .nav-link span {
  flex: 1;
  line-height: 1.5;
}

/* Footer Modals - Enhanced Styling */
.modal-title-full {
  width: 90%;
  flex: 1;
}

/* Search Modal - Custom padding and table layout */
.modal-search-body {
  padding: 1.5rem;
}
.modal-search-body .table-responsive {
  margin: -0.5rem;
}

/* Ajax Modal - Minimum height for loading states */
.modal-ajax-body {
  min-height: 200px;
  position: relative;
}

@media (max-width: 991.98px) {
  .modal-ajax .modal-dialog {
    width: 100vw;
    max-width: none;
    margin: 0;
    height: 100vh;
  }

  .modal-ajax .modal-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
  }

  .modal-ajax-body {
    min-height: 70vh;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) {
  .modal-ajax .modal-dialog {
    max-width: 960px;
  }

  .modal-ajax-body {
    min-height: 60vh;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
}

/* Advertisement Modal - Full-screen overlay style */
.modal-advertisement {
  z-index: 1055;
}
.modal-advertisement-dialog {
  max-width: 650px;
}
.modal-advertisement-content {
  overflow: hidden;
  border-radius: 18px;
}

/* Legacy social color override (moved from theme.css) */
.twitter a {
  color: white;
}
/* Close button - Overlays ad content in top-right */
.modal-advertisement-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-advertisement-close:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Modal body - Centered content with minimum height */
.modal-advertisement-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  min-height: 600px;
}
.modal-advertisement-inner {
  padding: 3rem;
  width: 100%;
}

/* Responsive Design - Mobile-First Approach */
@media (max-width: 991.98px) {
  .footer-top {
    padding: 2rem 0 1.5rem;
  }
  .footer-top .link-heading {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
  }
  /* Add spacing between stacked columns */
  .footer-top .col-lg-4 {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .footer-top .col-lg-4:last-child {
    margin-bottom: 0;
  }
  .footer-description {
    margin-bottom: 1rem;
  }
}

/* Mobile Only (≤575.98px) */
@media (max-width: 575.98px) {
  .footer-top {
    padding: 1.5rem 0 1.25rem;
  }
  .footer-top .col-lg-4 {
    margin-bottom: 1.5rem;
  }
  /* Smaller text for mobile */
  .footer-navbar .nav .nav-item a.nav-link {
    font-size: 0.8125rem;
  }
  .footer-contact-list .nav-link {
    font-size: 0.8125rem;
  }
  .footer-description {
    font-size: 0.8125rem;
  }
  /* Reduced modal heights for mobile */
  .modal-advertisement-body {
    min-height: 400px;
  }
  .modal-advertisement-inner {
    padding: 2rem 1rem;
  }
}

/* Legacy Compatibility & Cleanup */
footer .dropdown-toggle::after {
  display: none;
}
