/* ==========================================================================
   SHB Star 2026 – Footer
   ========================================================================== */

.star-footer {
  padding: 81px 0 53px;
  background: var(--star-white);
}

.star-footer__card {
  padding: 44px 40px 29px;
  border-radius: 24px;
  background: var(--star-navy) url("../images/footer-bg.png") no-repeat center /
    cover;
  color: var(--star-white);
}

/* --- Logo ------------------------------------------------------------------ */
.star-footer__brand {
  display: flex;
  align-items: center;
  gap: 32px;
}

.star-footer__logo--shb,
.star-footer__logo--star {
  flex: 0 0 auto;
  max-width: none;
}

.star-footer__logo--shb {
  width: 113px;
  height: 33px;
}

.star-footer__logo--star {
  width: 92px;
  height: 45px;
}

.star-footer__rule {
  height: 1px;
  margin: 31px 0 0;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
}

/* --- Liên hệ --------------------------------------------------------------- */
.star-footer__contacts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 47px;
  row-gap: 8px;
  margin: 53px 0 0;
  padding: 0;
  list-style: none;
}

.star-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.star-footer__col-title {
  margin: 0;
  font-family: var(--star-font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  color: var(--star-white);
  text-transform: uppercase;
}

.star-footer__person {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.star-footer__name {
  margin: 0;
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--pr-70);
  min-height: calc(2 * var(--body-line));
}

.star-footer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--star-white);
}

.star-footer__meta img {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}

.star-footer__meta--dept img {
  width: 20px;
  height: 18px;
}

@supports (grid-template-rows: subgrid) {
  .star-footer__contacts {
    grid-template-rows: auto auto auto auto;
  }

  .star-footer__col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    gap: 0;
    row-gap: 8px;
  }

  .star-footer__person {
    display: contents;
  }

  .star-footer__col-title {
    /* + row-gap 8px = 16px tới tên (giữ khoảng cách cũ) */
    padding-bottom: 8px;
  }

  .star-footer__name {
    min-height: 0;
  }
}

/* --- Bản quyền ------------------------------------------------------------- */
.star-footer__copyright {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
  .star-footer {
    padding-bottom: 48px;
  }

  .star-footer__card {
    padding: 32px 24px 24px;
  }

  .star-footer__contacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    margin-top: 32px;
  }

  .star-footer__rule {
    margin-top: 24px;
  }
}

@media (max-width: 767.98px) {
  .star-footer {
    padding-bottom: 32px;
  }

  .star-footer__card {
    border-radius: 16px;
  }

  .star-footer__contacts {
    grid-template-columns: 1fr;
  }

  .star-footer__name {
    min-height: 0;
  }

  .star-footer__brand {
    gap: 20px;
  }

  .star-footer__logo--shb {
    width: 90px;
    height: 26px;
  }

  .star-footer__logo--star {
    width: 73px;
    height: 36px;
  }
}
