:root {
  --primary-color: #4A90E2;
  --primary-light: #6BA5E7;
  --secondary-color: #F6F9FC;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --border-color: #E0E6ED;
  --footer-bg: #F6F9FC;
  --footer-bottom-bg: #EBF2FA;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#footer {
  background-color: var(--footer-bg);
  padding: 40px 0 0 0;
  color: var(--text-medium);
  border-top: 1px solid var(--border-color);
  width: 100%;
}

#footer-container, #footer-container-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

#footer-logo-section {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  justify-content: flex-start; /* Align content at the top, adjust if vertical centering is needed */
  text-align: center; /* Center text content */
  padding: 0; /* Remove any padding that might offset content */
  margin: 0 auto; /* Ensure the section itself is centered */
}

#footer-logo {
  margin: 0 0 15px 0; /* Only bottom margin, no left/right to avoid offset */
}

#footer-logo img {
     width: 120px;
    height: 120px;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

#footer-description {
  line-height: 1.5;
  color: var(--text-light);
  margin: 0 auto; /* Center text horizontally */
  max-width: 320px;
}
#footer-nav {
  flex: 1;
  min-width: 200px;
}

#footer-nav-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

#footer-nav-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

#footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer-nav-item-1, #footer-nav-item-2, #footer-nav-item-3, #footer-nav-item-4 {
  margin-bottom: 10px;
}

#footer-nav-link-1, #footer-nav-link-2, #footer-nav-link-3, #footer-nav-link-4 {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  position: relative;
}

#footer-nav-link-1::after, #footer-nav-link-2::after, #footer-nav-link-3::after, #footer-nav-link-4::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#footer-nav-link-1:hover, #footer-nav-link-2:hover, #footer-nav-link-3:hover, #footer-nav-link-4:hover {
  color: var(--primary-color);
}

#footer-nav-link-1:hover::after, #footer-nav-link-2:hover::after, #footer-nav-link-3:hover::after, #footer-nav-link-4:hover::after {
  width: 100%;
}

#footer-contact {
  flex: 1;
  min-width: 250px;
}

#contact-item, #contact-item-address, #contact-item-phone, #contact-item-email {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

#contact-text, #contact-text-address, #contact-text-phone, #contact-text-email {
  line-height: 1.4;
}

#contact-text-strong, #contact-phone-link, #contact-email-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

#contact-text-strong:hover, #contact-phone-link:hover, #contact-email-link:hover {
  color: var(--primary-color);
}

#footer-bottom {
  background-color: var(--footer-bottom-bg);
  padding: 15px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

#footer-bottom-text {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  #footer-main {
    flex-direction: column;
    gap: 25px;
  }
  
  #footer-logo-section, #footer-nav, #footer-contact {
    min-width: 100%;
  }
  
  #footer-description {
    max-width: 100%;
  }
}