/* Cross-page layout fixes. Loaded last in <head> on every page so it wins over the inline page styles. */

/* Nothing may push the page wider than the viewport (hero collages overflowed at 1025–1280px). */
html{overflow-x:clip}
.hero{overflow-x:clip}

/* Logo icon after a title follows the font size, so it never outgrows the text on small screens. */
.title-icon{height:.78em;width:auto;margin-left:.2em;vertical-align:baseline}
.display-96 .title-icon,.hero h1 img{height:.6em;width:auto;margin-left:.16em}

/* Small phones: keep the nav CTA from running into the logo. */
@media (max-width:420px){
  .nav-inner{gap:8px}
  .nav-links{gap:6px}
  .nav-links .btn,.nav-links a.btn-light{height:30px;min-width:0;padding:0 10px;font-size:11.5px;border-radius:9999px;white-space:nowrap}
  .lang-switch button{padding:0 8px;font-size:11px}
}

/* ---------- partnership.html ---------- */
/* Checklist: keep each tick next to its own label. */
.aud-check{display:flex;flex-wrap:wrap;gap:8px 28px}
.aud-check img:not(:first-child){margin-left:0}
.aud-check .ck{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}

/* 4 steps: cards size to their content instead of a fixed 360px with the list pinned to the bottom. */
.step-card{height:auto;min-height:230px;display:flex;flex-direction:column}
.step-card ul{position:static;margin-top:auto;padding-top:28px}

/* Partner FAQ: list aligned with its title, answers not indented for a missing icon. */
.partner-faq .faq-list{max-width:none;margin:32px 0 0}
.partner-faq .acc-body{padding:0 20px 18px}
.partner-faq .acc-head .t{white-space:normal}
@media (max-width:1024px){
  .partner-faq .acc-body{padding:0 18px 16px}
  .aud-check{gap:8px 18px}
}

/* Desktop widths between 1281px and 1440px: fixed 1440 columns must shrink instead of overflowing. */
@media (min-width:1281px){
  .mb-grid{grid-template-columns:repeat(2,minmax(0,550px));column-gap:20px}
  .value{height:auto;min-height:512px}
  .pt-grid{grid-template-columns:repeat(2,minmax(0,401px))}
}


/* =========================================================================
   PARTNER INFINITE MARQUEE SECTION (ĐƯỢC TIN DÙNG & ĐỒNG HÀNH CÙNG)
   ========================================================================= */
.partner-section {
  padding: 72px 0;
  overflow: hidden;
  background: #ffffff;
  text-align: center;
}
.partner-section-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.partner-section-header h2 {
  font-family: var(--font-display, 'Imbue', Georgia, serif);
  font-size: clamp(22px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  color: #0e0c0c;
  white-space: nowrap;
}
.partner-section-header p {
  color: #666666;
  font-size: 14.5px;
  margin-top: 10px;
  font-family: var(--font-body, 'Libre Franklin', sans-serif);
}
.pt-marquee {
  position: relative;
  margin-top: 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pt-track {
  --gap: 16px;
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 6px 0 14px;
  animation: pt-scroll 50s linear infinite;
}
.pt-marquee:hover .pt-track {
  animation-play-state: paused;
}
.pt-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 116px;
  padding: 18px 22px;
  border: 1px solid #e2e4da;
  border-radius: 18px;
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s;
  --lw: 160px;
  --lh: 60px;
}
.pt-logo:hover {
  border-color: rgba(14,12,12,.3);
  box-shadow: 0 14px 30px -20px rgba(14,12,12,.45);
}
.pt-logo img {
  max-width: 100%;
  max-height: var(--lh);
  object-fit: contain;
}
.pt-crop {
  display: block;
  width: auto;
  background-repeat: no-repeat;
}
@keyframes pt-scroll {
  100% {
    transform: translateX(calc(-50% - var(--gap) / 2));
  }
}
@media (max-width: 768px) {
  .partner-section { padding: 48px 0; }
  .partner-section-header h2 { font-size: clamp(20px, 5vw, 32px); }
  .pt-marquee { margin-top: 24px; }
  .pt-track { --gap: 10px; animation-duration: 40s; }
  .pt-logo { width: 150px; height: 88px; padding: 12px 14px; border-radius: 14px; --lw: 118px; --lh: 46px; }
}
