/**
 * SHB iThanks - Footer (Figma 330-2423)
 * 3 cột: Logo | Ngân hàng SHB (ngang hàng logo) + liên hệ dưới h4 | Links dưới
 */

.ithanks-footer {
  margin-top: auto;
  border-top: none;
}

.ithanks-footer__top {
  background: var(--ithanks-se-70, #5c6b9e);
  padding: 2.5rem 0;
}

.ithanks-footer__top .container {
  /* max-width: var(--ithanks-container-max, 1140px); */
  max-width: 1312px;
}

/* Hàng đầu: logo + h4 ngang hàng; contact + links nằm dưới */
.ithanks-footer__row {
  align-items: flex-start;
}

.ithanks-footer__col-logo,
.ithanks-footer__contact-head,
.ithanks-footer__links-head {
  min-height: 2.25rem; /* 36px – cùng hàng với logo */
  display: flex;
  align-items: center;
}

/* Cột 1: 2 logo */
.ithanks-footer__col-logo {
  display: flex;
  align-items: flex-start;
}

.ithanks-footer__brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 2.25rem;
}

.ithanks-footer__logo-shb {
  height: 36px;
  width: auto;
  display: block;
}

.ithanks-footer__logo-ilove {
  height: 32px;
  width: auto;
  display: block;
}

/* Cột 2: h4 ngang hàng logo, contact nằm dưới */
.ithanks-footer__contact-head {
  margin-bottom: 0.5rem;
}

.ithanks-footer h4.ithanks-footer__contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ithanks-white, #fff);
  margin: 0;
  line-height: 1.3;
}

.ithanks-footer__links-head {
  min-height: 2.25rem;
  margin-bottom: 0.25rem;
}

.ithanks-footer .ithanks-footer__contact p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ithanks-se-17, #d7dbe8);
  margin: 0 0 0.4rem 0;
  line-height: 1.5;
}

.ithanks-footer .ithanks-footer__contact p:last-child {
  margin-bottom: 0;
}

/* Cột 3: Links */
.ithanks-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ithanks-footer__links li {
  margin-bottom: 0.5rem;
}

.ithanks-footer__links a {
  color: var(--ithanks-se-17, #d7dbe8);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
}

.ithanks-footer__links a:hover {
  color: var(--ithanks-pr-40, #fbc9a6);
}

/* Bottom: copyright */
.ithanks-footer__bottom {
  background: var(--ithanks-se-100, #162b75);
  padding: 0.875rem 0;
}

/* Bản quyền (ghi đè common .ithanks-wrapper p) */
.ithanks-footer .ithanks-footer__copyright {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ithanks-se-40, #a2aac8);
}

/* ===== Responsive: tablet & mobile ===== */
@media (max-width: 991.98px) {
  .ithanks-footer__brand {
    flex-direction: column;
  }
}

/* Responsive: mobile & tablet – stack columns, spacing, alignment */
@media (max-width: 767.98px) {
  .ithanks-footer__top {
    padding: 1.5rem 0;
  }
  .ithanks-footer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ithanks-footer__col-logo,
  .ithanks-footer__col-contact,
  .ithanks-footer__col-links {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }
  .ithanks-footer__col-links:last-child {
    margin-bottom: 0;
  }
  .ithanks-footer__col-logo {
    justify-content: center;
  }
  .ithanks-footer__brand {
    justify-content: center;
    flex-direction: row !important;
  }
  .ithanks-footer__contact-head,
  .ithanks-footer__links-head {
    justify-content: center;
  }
  .ithanks-footer .ithanks-footer__contact {
    text-align: center;
  }
  .ithanks-footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ithanks-footer .ithanks-footer__copyright {
    text-align: center;
  }
}
