/* Footer layout */
.ut-footer {
  width: 100%;
  color: #ffffff;
  background-color: #151036;
}

.ut-footer .ut-footer-logo {
  display: flex;
  flex-direction: column;
}
.ut-footer .ut-footer-logo section:has(.ut-footer-link-wrap) {
  display: flex;
  flex: 1;
}

.ut-footer-main {
  max-width: 1372px;
  padding-inline: 16px;
  padding: 80px 16px 32px;
  margin: 0 auto;
}

.ut-footer-top .ut-footer-container {
  display: grid;
  grid-template-columns: 320px 2fr 310px;
  gap: 64px;
  width: 100%;
}

/* Remove default widget spacing */
/* .ut-footer :is(.widget, .widget_block) {
  margin: 0 0 32px;
} */

.ut-footer .ut-footer-logo .gallery-icon a {
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 32px;

  & img {
    height: 34px !important;
    width: auto !important;
  }
}

.ut-footer .ut-footer-menu .widget_nav_menu > :is(h2, h3, h4, .widget-title) {
  margin: 0 0 16px;
  color: var(--text-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.ut-footer .level-1 > a {
  color: var(--color-B5B1E2);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ut-footer a:hover {
  color: var(--text-white);
}

.ut-footer-question-icon {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 12px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--primary-color);
}

/* Product Help: exactly 2 columns */
.ut-footer-product-help .ut-product-help-list,
.ut-footer-product-help ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ut-footer-product-help li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.ut-footer-product-help li a {
  display: block;
  overflow-wrap: anywhere;
}

/* Resources and Contact lists */
.ut-footer-resources ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  & a {
    display: block;
    overflow-wrap: anywhere;
  }
}

.ut-footer-contact {
  border-left: 1px solid #40358a;
  padding-left: 64px;
}

/* Bottom footer */
.ut-footer-bottom {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid #40358a;
}

.ut-footer-bottom .ut-footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ut-footer-copyright p {
  margin: 0;
  font-size: 13px;
}

.ut-footer-bottom-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ut-footer-bottom-links li {
  margin: 0;
}

@media (max-width: 1280px) {
    .ut-footer-top .ut-footer-container { 
        gap: 32px 24px;
    }

    .ut-footer-product-help .ut-product-help-list, .ut-footer-product-help ul {
        column-gap: 24px;
    }
    .ut-footer-contact {
       padding-left: 32px;
    }
}

@media (max-width: 1080px) { 
    .ut-footer-product-help{
        min-width: 100%;
    } 
    .ut-footer-bottom{
        margin-top: 32px;
    }
}

/* Tablet */
@media (max-width: 991px) {
  .ut-footer-top .ut-footer-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .ut-footer-contact {
    border: none;
    padding: 24px 0 0 0;
    border-top:1px solid  #40358a;
  }
  .ut-footer-bottom{
        margin-top: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
  .ut-footer-main {
    padding: 32px 20px;
  }

  .ut-footer-top .ut-footer-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ut-footer-product-help .ut-product-help-list,
  .ut-footer-product-help ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 10px;
  }

  .ut-footer-bottom .ut-footer-container {
    align-items: center;
    flex-direction: column;
    gap: 12px;
  }
  
  .ut-footer .ut-footer-logo{
    align-items: center;
  text-align: center;
  }
}
@media (max-width: 480px) {
    .ut-footer-product-help .ut-product-help-list, .ut-footer-product-help ul{
        grid-template-columns: 1fr;
    }
}