/* eunbs.com — assets/nbsx/pages/international-students.css
   Page CSS for templates/international-students.php (pages 59 / 61).
   Loaded last (core → pages → sections → pages/<template>), so nothing here has
   to fight a section. Every class is namespaced .nbsx-intl__* — no shared class
   is restyled, no !important, and the only animated properties are transform,
   opacity and filter (§3.9). Breakpoints: ≤1024 tablet, ≤700 mobile. */

/* ── 1. hero ────────────────────────────────────────────────────────────────
   The legacy bundle (main.min.css) styles the bare element: `h1{color:var(--clr-white);text-transform:uppercase}`
   beats the colour .nbsx-sec passes down by inheritance, so the page's <h1> came
   came out white on white AND all-caps (§3.1 forbids uppercase headings). Scoped to this page's own hero — the shared
   .nbsx-pagehero__h1 rule in pages.css is left untouched (the same one-line fix
   belongs there for every rebuilt inner page). */
.nbsx-intl__hero .nbsx-pagehero__h1{color:var(--fg);text-transform:none}

/* "International students" / "Estudiantes internacionales" — the longest word of
   this page's title is 15 characters, and at the kit's 96px cap it is wider than
   the hero's text column, so the word spilled over the photo. One page-scoped
   step down the same fluid ramp keeps the H1 the largest type on the page and
   inside its column in both languages, at every width. */
.nbsx-intl__hero .nbsx-pagehero__h1{font-size:clamp(44px,5.6vw,76px)}

/* ── 3. the statement band ──────────────────────────────────────────────── */
.nbsx-intl__statement-body p{margin:0 0 20px;max-width:34ch}
.nbsx-intl__statement-body p:last-child{margin-bottom:0}
.nbsx-intl__statement-body strong{font-weight:400}

@media (max-width:700px){
  .nbsx-intl__statement-body p{max-width:none}
}

/* ── 4. benefits: four ruled rows, number · heading · text ───────────────── */
.nbsx-intl__benefits-head{grid-template-columns:minmax(0,1fr)}
.nbsx-intl__ben-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair)}
.nbsx-intl__ben{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:var(--gutter);
  padding:clamp(24px,3vw,40px) 0;
  border-bottom:1px solid var(--hair);
  margin:0;
}
.nbsx-intl__ben-n{
  font-size:var(--t-title);
  font-weight:200;
  line-height:1.2;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  padding-top:6px;
}
.nbsx-intl__ben-body{
  display:grid;
  grid-template-columns:minmax(0,320px) minmax(0,1fr);
  gap:var(--gutter);
  align-items:start;
  min-width:0;
}
.nbsx-intl__ben-h{margin:0;text-wrap:balance}
.nbsx-intl__ben-desc{margin:0;max-width:68ch;line-height:1.6;color:var(--muted);text-wrap:pretty}

@media (max-width:1024px){
  .nbsx-intl__ben-body{grid-template-columns:minmax(0,1fr);gap:12px}
}
@media (max-width:700px){
  .nbsx-intl__ben{grid-template-columns:40px minmax(0,1fr);gap:16px}
  .nbsx-intl__ben-n{font-size:var(--t-small);padding-top:4px}
}

/* ── 5. Barcelona: one mosaic per tab, then the city text ────────────────── */
.nbsx-intl__mosaic{margin-top:clamp(40px,5vw,64px)}
.nbsx-intl__mosaic:first-of-type{margin-top:0}
.nbsx-intl__mosaic-h{margin:0 0 24px;text-wrap:balance}
.nbsx-intl__grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--gutter);
}
.nbsx-intl__tile{margin:0;min-width:0}
.nbsx-intl__figure{margin:0;aspect-ratio:4/3;width:100%}
.nbsx-intl__tile-img{width:100%;height:100%;object-fit:cover}

.nbsx-intl__city{
  margin-top:clamp(48px,6vw,88px);
  padding-top:clamp(32px,4vw,48px);
  display:grid;
  grid-template-columns:minmax(0,320px) minmax(0,1fr);
  gap:var(--gutter) clamp(24px,4vw,64px);
  align-items:start;
}
.nbsx-intl__city-h{margin:0;text-wrap:balance}
/* body measure, exactly as the homepage campus section sets this same text */
.nbsx-intl__city-text{margin:0;font-size:var(--t-body);line-height:1.6;max-width:68ch;text-wrap:pretty}

@media (max-width:1024px){
  .nbsx-intl__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nbsx-intl__city{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:700px){
  .nbsx-intl__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nbsx-intl__mosaic-h{margin-bottom:16px}
}

/* ── 6. partner logos ───────────────────────────────────────────────────── */
.nbsx-intl__partners-head{grid-template-columns:minmax(0,1fr)}
.nbsx-intl__logos{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(24px,3vw,40px) var(--gutter);
}
.nbsx-intl__logo{margin:0;min-width:0}
.nbsx-intl__logo-link{
  display:grid;
  gap:12px;
  justify-items:center;
  text-decoration:none;
  color:inherit;
  border-radius:2px;
}
.nbsx-intl__logo-box{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:72px;
}
.nbsx-intl__logo-img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:grayscale(1);
  opacity:.75;
  transition:filter .25s var(--ease),opacity .25s var(--ease);
}
.nbsx-intl__logo-link:hover .nbsx-intl__logo-img,
.nbsx-intl__logo-link:focus-visible .nbsx-intl__logo-img{filter:none;opacity:1}
.nbsx-intl__logo-name{
  display:block;
  text-align:center;
  color:var(--muted);
  line-height:1.35;
  text-wrap:balance;
}
.nbsx-intl__logo-link:hover .nbsx-intl__logo-name,
.nbsx-intl__logo-link:focus-visible .nbsx-intl__logo-name{color:var(--ink)}

@media (max-width:1024px){
  .nbsx-intl__logos{grid-template-columns:repeat(4,minmax(0,1fr))}
  .nbsx-intl__logo-box{height:60px}
}
@media (max-width:700px){
  .nbsx-intl__logos{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── reduced motion: the filter swap and every transition stop ───────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-intl__logo-img{transition:none}
}
