.footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding: 0px 100px;
  position: relative;
  background-color: #eafafc;
  border-radius: 32px 32px 0px 0px;
}

.c-footer {
  width: 100%;
  background-color: #eafafc;
}

.five-col {
  width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid #d8d8d8;
}

.five-col .f-logo {
  display: inline-block;
  width: 180px;
  height: 44px;
  background-image: url("../img/logo/logo_black.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.five-col .f-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.five-col .f-section .f-row {
  padding: 8px;
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.five-col .f-section .f-row.title {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.f-section.f-accordion .f-accordion-toggle {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  border: none;
  background: none;
  text-align: left;
}

.five-col .f-section .f-row > a.title {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.two-col {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 1240px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid #d8d8d8;
}

.two-col .copyright {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.two-col .f-partner-logos {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.two-col .f-partner-logos .crea-logo {
  display: inline-block;
  width: 31px;
  height: 44px;
  background-image: url("../img/logo/crea.png"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.two-col .f-partner-logos .gf-logo {
  display: inline-block;
  width: 84px;
  height: 30px;
  background-image: url("../img/logo/gf-logo.png"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.two-col .f-partner-logos .qs-logo {
  display: inline-block;
  width: 46px;
  height: 46px;
  background-image: url("../img/logo/qs-logo.png"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (max-width: 640px) {
  .footer {
    width: 100%;
    padding: 0 30px;
    opacity: 1;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  /*
  .five-col {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #d8d8d8;
    width: 100%;
    gap: 32px;
    opacity: 1;
  }
  .two-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 375px;

    gap: 18px;
    angle: 0 deg;
    opacity: 1;
    border-top-width: 1px;
  }
  .two-col .copyright {
    font-family: Poppins;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    leading-trim: CAP_HEIGHT;
    line-height: 150%;
    letter-spacing: 0%;
  }
  .five-col .f-logo {
    display: inline-block;
    width: 180px;
    height: 44px;
    background-image: url("../img/logo/logo_black.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }*/
  /* Collapse 5-col layout to 1 column */
  .five-col {
    width: 100%;
    padding: 0;
    flex-direction: column;
    gap: 0;
  }

  .f-section {
    width: 100%;
  }

  /* Hide desktop title row when accordion is present */
  .f-section.f-accordion .f-row.title {
    display: none;
  }

  .f-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .f-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .f-accordion.active .f-chevron {
    transform: rotate(-135deg);
  }

  .f-submenu {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .f-accordion.active .f-submenu {
    display: flex;
  }

  .five-col .f-logo {
    display: inline-block;
    width: 169px;
    height: 43px;
    background-image: url("../img/logo/mobile-footer.svg"); /* adjust path if different */
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .f-section.f-accordion .f-accordion-toggle {
    padding: 24px 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .five-col .f-section .f-row {
    padding: 0;
  }

  .five-col .f-section .f-row.title {
    padding: 24px 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .five-col .f-section .f-row.joinus {
    display: none;
  }

  .five-col .f-section .f-row.accessibility {
    margin-top: 24px;
  }
  .five-col .f-section .f-row.privacy {
    margin-bottom: 24px;
  }

  /* Two-col section stacks */
  .two-col {
    flex-direction: column;
    width: 100%;
    padding: 32px 0;
    gap: 18px;
  }

  .f-partner-logos {
    justify-content: flex-start;
  }
}
