.footerRoot {
  border-top-style: solid;
  border-top-width: 3px;
  border-image: linear-gradient(90deg, #ffd1de, #ff1b5a) 1;
  background-color: white; /* Light background */
  color: #333333;
  padding: 60px 0 40px;
}

.footerContainer {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Brand section - logo, social links, copyright */
.brandSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.copyrightWrapper {
  color: var(--ifm-navbar-link-color);
  font-size: 14px;
  margin-top: 10px;
}

/* Horizontal links below social icons */
.horizontalLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.horizLink {
  color: var(--ifm-navbar-link-color);
  font-size: 14px;
  text-decoration: none;
}

.horizLink:hover {
  color: var(--ifm-color-primary);
  text-decoration: none;
}

.divider {
  color: var(--ifm-navbar-link-color);
  opacity: 0.7;
}

/* Columns section */
.columnsSection {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footerColumn {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.columnTitle {
  font-weight: 700;
  font-size: 14px;
  color: var(--ifm-navbar-link-color);
}

.columnLinks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.columnLink {
  display: flex;
  gap: 6px;
  color: #333333; /* Darker text for light background */
  align-items: center;
  text-decoration: none;
  font-size: 15px;
}

.columnLink:hover {
  color: var(--ifm-color-primary);
  text-decoration: none;
}

/* Dark mode overrides */
[data-theme="dark"] .footerRoot {
  background-color: #000000;
  color: #ffffff;
}

[data-theme="dark"] .columnLink {
  color: #ffffff;
}

[data-theme="dark"] .columnLink:hover {
  color: var(--ifm-color-primary-lighter);
}

[data-theme="dark"] .horizLink {
  color: #ffffff;
}

[data-theme="dark"] .horizLink:hover {
  color: var(--ifm-color-primary-lighter);
}

/* Desktop view (3 columns side by side) */
@media (min-width: 996px) {
  .footerContainer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .brandSection {
    flex: 0 0 22%;
    align-items: flex-start;
    margin-right: 40px;
  }

  .columnsSection {
    flex: 0 0 70%;
    flex-direction: row;
    justify-content: space-between;
  }

  .footerColumn {
    flex: 1;
    padding-right: 15px;
  }

  .footerColumn:last-child {
    padding-right: 0;
  }

  .horizontalLinks {
    justify-content: flex-start;
  }
}

/* Tablet view (2 columns in columnsSection) */
@media (min-width: 768px) and (max-width: 995px) {
  .columnsSection {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footerColumn {
    flex: 0 0 calc(50% - 20px);
  }
}

/* Ensure container has proper padding for smaller screens */
@media (max-width: 1200px) {
  .footerContainer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
