/* =====================================================
   PAGE NHÀ TÀI TRỢ — page-sponsor.css
   Override / bổ sung cho page-hoinghi.css
   ===================================================== */

/* Đảm bảo mọi .hn-reveal trên page này luôn hiển thị
   (không phụ thuộc vào JS IntersectionObserver) */
.hn-reveal,
.hn-reveal-stagger,
.hn-reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Section: bg #fff, padding 64px 0 */
.hn-sponsors {
  background: #ffffff;
  padding: 64px 0;
}

/* Container: max-width 1466px, padding 0 24px, column, gap 64px */
.hn-sponsors__container {
  max-width: 1466px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* Heading: Montserrat Bold 700 / 24px / letter-spacing 5% / capitalize / #013467 */
.hn-sponsors__heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  color: #013467;
  text-align: center;
  margin: 0;
}

/* Tiers wrapper: column, gap 64px, full width */
.hn-sponsors__tiers {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 64px;
  width: 100%;
}

/* Row top: flex-end align, gap 20px */
.hn-sponsors__row-top {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

/* Tier label: Montserrat SemiBold 600 / 16px / uppercase / #565E71 / center */
.hn-sponsor-tier__label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  color: #565e71;
  text-align: center;
  margin: 0 0 0 0;
}

/* Logos row: wrap cho nhiều logo từ Gallery ACF */
.hn-sponsor-tier__logos {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* ---- Kích thước card theo Figma ---- */

/* Kim cương: 1 logo, 348×160px, border-radius 12px, padding 10px */
.hn-sponsor-logo--diamond {
  width: 348px;
  height: 160px;
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}

/* Bạch kim: 222×130px, border-radius 12px, padding 10px */
.hn-sponsor-logo--platinum {
  width: 222px;
  height: 130px;
  border-radius: 12px;
  padding: 10px;
}

/* Vàng: 182.76×77.98px, border-radius 8px, padding 8px */
.hn-sponsor-logo--gold {
  width: 182.76px;
  height: 77.98px;
  border-radius: 8px;
  padding: 8px;
}

/* Bạc / Đồng / HTVT: 137×78px, border-radius 8px, padding 10px */
.hn-sponsor-logo--silver {
  width: 137px;
  height: 78px;
  border-radius: 8px;
  padding: 10px;
}

/* Ảnh từ ACF: fill đầy card, object-fit contain */
.hn-sponsor-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Logo card: bg #fff, border 1px #C3C6D1 */
.hn-sponsor-logo {
  background: #ffffff;
  border: 1px solid #c3c6d1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.hn-sponsor-logo:hover {
  box-shadow: 0 6px 20px rgba(1, 52, 103, 0.12);
  transform: translateY(-3px);
  border-color: #013467;
}

/* Gap theo tier */
.hn-sponsor-tier--diamond .hn-sponsor-tier__logos {
  justify-content: center;
  gap: 0;
}
.hn-sponsor-tier--platinum .hn-sponsor-tier__logos {
  gap: 20px;
  justify-content: center;
}
.hn-sponsor-tier--gold .hn-sponsor-tier__logos {
  gap: 20px;
  justify-content: flex-start;
}
.hn-sponsor-tier--silver .hn-sponsor-tier__logos {
  gap: 10px;
  justify-content: center;
}

/* Tier sizing */
.hn-sponsor-tier--diamond {
  flex-shrink: 0;
}
.hn-sponsor-tier--platinum {
  flex-shrink: 0;
}
.hn-sponsor-tier--gold {
  flex: 1 1 0;
  min-width: 0;
}
.hn-sponsor-tier--silver {
  width: 100%;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  .hn-sponsors__row-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hn-sponsor-tier--diamond,
  .hn-sponsor-tier--platinum,
  .hn-sponsor-tier--gold {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .hn-sponsors__container {
    padding: 0 16px;
    gap: 40px;
  }
  .hn-sponsors__tiers {
    gap: 40px;
  }

  .hn-sponsors__row-top {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hn-sponsor-tier--diamond,
  .hn-sponsor-tier--platinum,
  .hn-sponsor-tier--gold {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .hn-sponsor-tier--diamond .hn-sponsor-tier__logos,
  .hn-sponsor-tier--platinum .hn-sponsor-tier__logos,
  .hn-sponsor-tier--gold .hn-sponsor-tier__logos {
    justify-content: center;
  }

  .hn-sponsor-logo--diamond {
    width: 100%;
    max-width: 348px;
    height: 110px;
  }

  .hn-sponsor-logo--platinum {
    width: 130px;
    height: 80px;
  }

  .hn-sponsor-logo--gold {
    width: 150px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .hn-sponsor-logo--silver {
    width: 80px;
    height: 50px;
  }
  .hn-sponsor-logo--gold {
    width: 130px;
    height: 56px;
  }
  .hn-sponsors__tiers {
    gap: 32px;
  }

  .hn-sponsors__heading {
    font-size: 20px;
  }
}
