/* Add these at the top of your footer.css file */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Roboto;
}

/* Footer styling */
footer {
  margin-top: 0;
  border-top: none;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-right: 0;
  margin-right: 0;
  /* position: fixed; */
  position: relative;
  z-index: 10;
}
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0; 
  height: 2px;
  background-color: #000;
  width: 100%;
  opacity: 0.3;
  z-index: 5;
}

.disclaimer a {
  color: #494949;
}

.footer-container {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  padding: 0 ;
  padding-top: 0;
  overflow: visible;
  box-sizing: border-box;
  background-color: white;
}

.footer-main {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-top: none;
}

/* Add specific spacing for each section */
.footer-section:first-child {
  flex: 2;
  max-width: 50%;
  padding-right: 20px;
}

.footer-section:nth-child(2) {
  flex: 1;
  padding: 0 20px;
}

.footer-section:nth-child(3) {
  flex: 1;
  padding-left: 20px;
  padding-top: 8px;
}

/* Adjust the disclaimer text alignment */
.disclaimer {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  text-align: left;
}

/* Remove the left margin and make text centered */
.footer-section:nth-child(2) h4 {
  text-align: left;
  align-self: flex-start;
  margin-left: 0;
}

/* Center the links in the Learn section */
.footer-section:nth-child(2) .footer-links {
  text-align: left;
  padding-top: 10px;
  padding-left: 0;
  align-self: flex-start;
  margin-left: 0;
  width: auto;
}

.footer-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-section h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 18px;
}

.footer-section:nth-child(3) h4 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.contact-person {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 3px 0;
}

.contact-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 3px;
}

.contact-info a {
  color: #333;
  font-weight: 400;
  font-size: 14px;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer-social {
  width: 100%;
  margin-left: 40px;
}

.footer-social p {
  font-size: 16px;
  margin-bottom: 12px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: #333;
  font-size: 24px;
}

.social-icons a:hover {
  opacity: 0.7;
}

.footer-bottom {
  position: relative;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-policy {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  margin-left: 0;
}

.footer-policy a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.footer-policy span {
  color: #333;
}

.footer-copyright {
  padding-bottom: 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-top: 1px solid #494949;
  padding-top: 10px;
}

.footer-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Fix for mobile footer copyright that has negative margins */
  FOOTER .footer-copyright {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-main {
    flex-direction: column;
    margin-left: 0px;
    padding-right: 10px;
    margin-right: 10px;
  }

  .footer-section div {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
  }

  .footer-section:first-child,
  .footer-section:nth-child(2),
  .footer-section:nth-child(3) {
    padding-left: 0;
    max-width: 100%;
  }

  .footer-section{
    margin-left: 20px;
  }

  .footer-social{
    margin-left: 20px;
  }
}

/* Print styles */
@media print {
  footer {
    display: none !important;
  }
}

/* Increase spacing between footer links in section 2 */
.footer-section:nth-child(2) .footer-links li {
  margin-bottom: 15px;
}

/* If needed, we can also add more specific styling */
.footer-section:nth-child(2) .footer-links a {
  padding: 3px 0;
  display: inline-block;
}
.footer-social {
  font-weight: 600;
}

/* Footer policy section spacing */
.footer-policy {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Footer container adjustments */
.footer-container {
  margin-top: 0;
  padding-top: 0;
  overflow: visible;
}

/* First footer section adjustments */
.footer-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Disclaimer text styling */
.disclaimer {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #555;
}

/* Footer bottom section */
.footer-bottom {
  padding-bottom: 15px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure all footer elements respect container boundaries */
footer,
.footer-container,
.footer-main,
.footer-section,
.footer-bottom {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Fix for ADDRESS min-width that could cause overflow */
FOOTER ADDRESS {
  min-width: 0; /* Override the 400px min-width */
}

/* Add padding to the copyright section */
.footer-copyright {
  padding-bottom: 6px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-copyright span {
  font-size: 16px;
}
/* Ensure the footer bottom has enough space */
.footer-bottom {
  padding-bottom: 6px;
  width: 100%;
}

/* Add more padding on mobile devices */
@media (max-width: 768px) {
  .footer-copyright {
    padding-bottom: 40px;
  }

  .footer-logo {
    margin-left: 20px;
    margin-bottom: 15px;
  }
}

/* Ensure all containers respect viewport width */
.container,
.container-fluid,
.row,
.footer-container,
.footer-main,
.footer-section,
.footer-bottom {
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 0px;
  margin-right: 0;
}

/* Fix negative margins in rows that might cause overflow */
.row {
  margin-right: 0;
  margin-left: 0;
}

/* Adjust copyright section */
.footer-copyright {
  padding-bottom: 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.dark-theme .footer-container {
  background-color: #434343;
}

.dark-theme .footer-section h4 {
  color: #E0E0E0;
}

.dark-theme .disclaimer {
  color: #B3B3B3;
}

.disclaimer a {
  color: #B3B3B3;
}


.dark-theme .footer-links a {
  color: #E0E0E0;
}

.dark-theme .contact-info p{
  color: #E0E0E0;
}

.dark-theme .contact-info a{
  color: #B3B3B3;
}

.dark-theme .footer-social p{
  color: #E0E0E0;
}

.dark-theme .footer-policy a{
  color: #E0E0E0;
}

.dark-theme .footer-policy span{
  color: #E0E0E0;
}

.dark-theme .footer-copyright {
  color: #FFFFFF;
  font-weight: 400;
}

.dark-theme .social-icons path {
  fill: #FFFFFF;
}

.dark-theme .footer-copyright {
  border-top: 1px solid #B3B3B3;
}