/* Footer Container */
.footer {
  background: linear-gradient(135deg, #004e9b 0%, #0052a3 100%);
  color: white;
  padding: 60px 20px 20px;
  margin-top: 0px;
  display: block !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 40px;
  padding-bottom: 25px;
}

/* Footer Columns */
.footer-column h3,
.footer-about h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: white;
  text-decoration: underline;
}

/* About Section */
.footer-about p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 14px;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-column h3,
  .footer-about h3 {
    font-size: 18px;
  }
}

/* Toggle Icon - Ẩn trên desktop */
.toggle-icon {
  display: none;
}

/* Mobile Accordion Styles */
@media (max-width: 768px) {
  .footer {
    padding: 15px 20px 20px;  /* GIẢM PADDING */
  }

  .footer-container {
    gap: 0;  /* BỎ GAP GIỮA CÁC SECTION */
  }

  /* Heading có thể click */
  .footer-heading {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;  /* KHOẢNG CÁCH NHỎ HƠN */
    margin-bottom: 0 !important;
    user-select: none;
    border-bottom: none;  /* BỎ GẠCH NGANG */
  }

  /* Hiện toggle icon trên mobile */
  .toggle-icon {
    display: block;
    font-size: 28px;
    font-weight: 300;
  }

  /* ẨN TOGGLE ICON CHO ABOUT */
  .footer-about .toggle-icon {
    display: none;
  }

  /* ABOUT HEADING KHÔNG CÓ CURSOR */
  .footer-about .footer-heading {
    cursor: default;
  }

  /* Ẩn content mặc định */
  .footer-column ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* LUÔN HIỆN ABOUT */
  .footer-about > div {
    max-height: none !important;
    overflow: visible;
    padding-top: 0;
    margin-top: 0;
  }

  /* Hiện content khi open */
  .footer-column ul.open {
    max-height: 500px;
    padding-top: 5px;
    padding-bottom: 10px;
  }

  /* Padding cho items */
  .footer-column ul.open li {
    margin-bottom: 10px;
  }

  /* GIẢM FONT SIZE CHO ABOUT TEXT */
  .footer-about p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
  }
}

/* Ẩn footer của theme WordPress */
body > footer:not(.footer),
.site-footer,
#colophon,
#site-footer,
.footer-wrapper:not(.footer),
#footer-wrapper {
    display: none !important;
}

/* Đảm bảo custom footer luôn hiển thị */
footer.footer {
    display: block !important;
}