/* Study Abroad Partner Counsellors page */
.agents-page {
  background:
    radial-gradient(circle at 10% 4%, rgba(108,198,208,.16), transparent 27rem),
    radial-gradient(circle at 90% 6%, rgba(145,0,72,.12), transparent 25rem),
    linear-gradient(180deg, #f7fbfc 0%, #fff 44%, #f4f8f9 100%);
  color: var(--ink);
}
.agents-page main { overflow: clip; }
.agents-shell { width: min(1180px, calc(100% - clamp(32px, 7vw, 96px))); margin: 0 auto; }
.agents-hero { position: relative; display: grid; align-items: center; min-height: clamp(560px, 72svh, 760px); padding: clamp(46px, 6vw, 78px) 0 clamp(34px, 4.4vw, 58px); }
.agents-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(244,248,249,.74)); pointer-events: none; }
.agents-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .98fr) minmax(340px, .56fr); gap: clamp(28px, 5vw, 66px); align-items: center; }
.agents-kicker, .agents-section-kicker { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(145,0,72,.16); background: rgba(145,0,72,.07); color: var(--magenta); font-size: .78rem; font-weight: 920; text-transform: uppercase; letter-spacing: .10em; }
.agents-hero h1 { margin: 20px 0 0; max-width: 900px; font-size: clamp(3.45rem, 7.1vw, 7.2rem); line-height: .88; letter-spacing: -.08em; }
.agents-hero h1 span, .agents-section h2 span { color: var(--magenta); }
.agents-lede { margin: 24px 0 0; max-width: 760px; color: var(--ink-2); font-size: clamp(1.04rem, 1.35vw, 1.22rem); line-height: 1.56; }
.agents-lede.secondary { margin-top: 12px; color: var(--muted); }
.agents-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.agents-hero-panel { display: grid; gap: 14px; }
.agents-panel-main { min-height: 210px; border-radius: 34px; padding: clamp(26px, 4vw, 42px); display: grid; align-content: end; overflow: hidden; position: relative; box-shadow: 0 26px 64px rgba(6,31,42,.17); background: radial-gradient(circle at 88% 12%, rgba(108,198,208,.30), transparent 16rem), linear-gradient(135deg, var(--ink), #0d4654); color: #fff; }
.agents-panel-main:after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -82px; top: -82px; background: rgba(255,255,255,.10); }
.agents-panel-main strong { position: relative; z-index: 1; font-size: clamp(3.5rem, 6.2vw, 5.6rem); line-height: .82; letter-spacing: -.08em; }
.agents-panel-main span { position: relative; z-index: 1; color: rgba(255,255,255,.78); font-size: 1.02rem; font-weight: 800; margin-top: 10px; }
.agents-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agents-mini-grid div { min-height: 130px; padding: 18px; border-radius: 26px; background: rgba(255,255,255,.92); border: 1px solid rgba(219,229,232,.9); box-shadow: 0 16px 42px rgba(6,31,42,.09); display: grid; align-content: space-between; }
.agents-mini-grid strong { color: var(--magenta); font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: .95; letter-spacing: -.055em; }
.agents-mini-grid span { color: var(--muted); font-weight: 720; font-size: .9rem; line-height: 1.34; }
.agents-section { padding: clamp(44px, 5vw, 66px) 0 clamp(30px, 3.2vw, 46px); border-top: 1px solid rgba(219,229,232,.84); }
.agents-page main > section.viewport-section[data-nav-section]:not(.agents-hero) { min-height: auto; }
.agents-section-head { display: grid; grid-template-columns: minmax(0, .92fr) minmax(280px, .55fr); gap: clamp(22px, 4vw, 48px); align-items: end; margin-bottom: 22px; }
.agents-section-head-stacked { grid-template-columns: 1fr; max-width: 920px; }
.agents-section h2 { margin: 14px 0 0; max-width: 940px; font-size: clamp(2.25rem, 4.5vw, 4.75rem); line-height: .96; letter-spacing: -.065em; }
.agents-section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.58; }
.agents-principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agents-info-card { border: 1px solid rgba(219,229,232,.92); background: rgba(255,255,255,.94); border-radius: 28px; box-shadow: 0 16px 42px rgba(6,31,42,.09); padding: clamp(20px, 2.4vw, 28px); }
.agents-info-card span { color: var(--magenta); font-weight: 920; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.agents-info-card h3 { margin: 12px 0 0; font-size: 1.35rem; line-height: 1.05; letter-spacing: -.04em; }
.agents-info-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.58; }
.country-letter-index { position: sticky; top: calc(var(--topbar-height, 96px) + 16px); z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 28px; padding: 12px; border: 1px solid rgba(219,229,232,.9); background: rgba(255,255,255,.90); backdrop-filter: blur(16px); border-radius: 999px; box-shadow: 0 14px 36px rgba(6,31,42,.09); }
.country-letter-index a { min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--ink); background: rgba(244,248,249,.9); border: 1px solid rgba(219,229,232,.82); font-weight: 890; text-decoration: none; }
.country-letter-index a:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.country-list { display: grid; gap: 18px; }
.country-letter { width: fit-content; margin: 16px 0 0; padding: 8px 13px; border-radius: 999px; color: #fff; background: var(--ink); font-weight: 920; letter-spacing: .08em; scroll-margin-top: 160px; }
.country-block { scroll-margin-top: 160px; border: 1px solid rgba(219,229,232,.92); border-radius: 34px; background: rgba(255,255,255,.95); box-shadow: 0 18px 48px rgba(6,31,42,.09); padding: clamp(18px, 2.7vw, 30px); }
.country-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.country-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.country-flag { width: 46px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #eef4f6; border: 1px solid rgba(219,229,232,.86); flex: 0 0 auto; }
.country-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.country-block h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1; letter-spacing: -.06em; }
.country-count { display: inline-flex; align-items: center; min-height: 32px; border-radius: 999px; padding: 6px 12px; background: rgba(145,0,72,.07); color: var(--magenta); border: 1px solid rgba(145,0,72,.16); font-weight: 840; font-size: .86rem; white-space: nowrap; }
.country-agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.agent-card, .south-asia-card { border: 1px solid rgba(219,229,232,.9); border-radius: 26px; background: #fff; box-shadow: 0 12px 30px rgba(6,31,42,.07); overflow: hidden; }
.agent-card { display: grid; grid-template-rows: 118px 1fr; min-height: 268px; }
.agent-logo { display: grid; place-items: center; padding: 18px; background: linear-gradient(180deg, #fff, #f4f8f9); border-bottom: 1px solid rgba(219,229,232,.72); }
.agent-logo img { max-width: 100%; max-height: 78px; object-fit: contain; display: block; }
.agent-logo-placeholder span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--magenta)); color: #fff; font-size: 1.2rem; font-weight: 950; letter-spacing: -.04em; }
.agent-card-body { display: grid; gap: 10px; padding: 16px; align-content: start; }
.agent-card-body h3 { font-size: 1.04rem; letter-spacing: -.03em; line-height: 1.12; }
.agent-card-body p { margin: 0; color: var(--muted); font-weight: 720; line-height: 1.36; overflow-wrap: anywhere; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.agent-actions a, .agent-link-muted { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 860; text-decoration: none; }
.agent-actions a:nth-child(2) { background: var(--magenta); }
.agent-link-muted { background: rgba(244,248,249,.92); color: var(--muted); border: 1px solid rgba(219,229,232,.86); }
.south-asia-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: clamp(18px, 2.4vw, 26px); background: radial-gradient(circle at 94% 10%, rgba(108,198,208,.22), transparent 18rem), linear-gradient(135deg, #fff, #f7fbfc); }
.south-asia-mark { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), #0d4654); color: #fff; font-weight: 950; letter-spacing: -.04em; box-shadow: 0 14px 32px rgba(6,31,42,.16); }
.south-asia-card h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.12; }
.south-asia-card h3 small { font-size: .72em; color: var(--muted); font-weight: 760; }
.south-asia-card p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.52; }
.south-asia-card ul { margin: 10px 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.south-asia-card a { color: var(--magenta); font-weight: 850; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.agents-charter-card { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 46px); padding: clamp(24px, 4.5vw, 54px); border-radius: 34px; background: linear-gradient(135deg, var(--ink), #0d4654); color: #fff; box-shadow: 0 24px 60px rgba(6,31,42,.22); }
.agents-charter-card .agents-section-kicker { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.agents-charter-card h2 { color: #fff; }
.agents-charter-card h2 span { color: var(--teal); }
.agents-charter-card p { color: rgba(255,255,255,.76); line-height: 1.58; }
.charter-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.charter-principles article { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); }
.charter-principles h3 { margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.12; letter-spacing: -.025em; }
.charter-principles p { margin: 10px 0 0; font-size: .94rem; }
.agents-final { padding-bottom: clamp(44px, 5vw, 70px); }
.agents-final-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(280px, .42fr); gap: clamp(22px, 4vw, 46px); align-items: center; padding: clamp(28px, 4.5vw, 52px); border-radius: 34px; background: rgba(255,255,255,.94); border: 1px solid rgba(219,229,232,.92); box-shadow: 0 18px 48px rgba(6,31,42,.09); }
.agents-final-grid p { color: var(--muted); font-size: 1.04rem; max-width: 760px; line-height: 1.58; margin: 18px 0 0; }
.agents-final-actions { display: grid; gap: 12px; }
.agents-final-actions .btn { width: 100%; justify-content: center; }

/* V122: darker logo bay for pale/white partner marks */
.agent-card--light-logo .agent-logo {
  background:
    radial-gradient(circle at 82% 18%, rgba(108,198,208,.20), transparent 10rem),
    linear-gradient(135deg, #061f2a, #0d4654);
  border-bottom-color: rgba(6,31,42,.18);
}
.agent-card--light-logo .agent-logo img {
  max-width: min(88%, 220px);
  max-height: 74px;
}
.agent-card--light-logo .agent-card-body {
  border-top: 1px solid rgba(219,229,232,.72);
}

@media (max-width: 1120px) { .country-agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .agents-hero-grid, .agents-section-head, .agents-charter-card, .agents-final-grid { grid-template-columns: 1fr; }
  .agents-hero { min-height: auto; padding-top: 62px; }
  .agents-hero-panel { max-width: 720px; }
  .agents-principle-grid { grid-template-columns: 1fr; }
  .country-letter-index { position: static; border-radius: 24px; }
  .charter-principles { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .agents-shell { width: min(100% - 32px, 1180px); }
  .agents-hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .agents-actions, .agents-final-actions { display: grid; }
  .agents-actions .btn { justify-content: center; }
  .agents-mini-grid, .country-agent-grid { grid-template-columns: 1fr; }
  .country-head { align-items: flex-start; flex-direction: column; }
  .country-count { white-space: normal; }
  .agent-card { grid-template-rows: 102px 1fr; min-height: 240px; }
  .south-asia-card { grid-template-columns: 1fr; }
  .agents-section { padding: 42px 0 32px; }
}

/* V168: locale-specific containment for translated Study Abroad Partner Counsellors content */
html[lang="fr"] .agents-page .agents-hero h1,
html[lang="es-MX"] .agents-page .agents-hero h1 {
  font-size: clamp(3.05rem, 6.35vw, 6.55rem);
  line-height: .9;
  max-width: 860px;
}
html[lang="fr"] .agents-page .agents-section h2,
html[lang="es-MX"] .agents-page .agents-section h2 {
  font-size: clamp(2.1rem, 4.15vw, 4.35rem);
  line-height: .98;
}
html[lang="fr"] .agents-page .agents-mini-grid span,
html[lang="es-MX"] .agents-page .agents-mini-grid span,
html[lang="fr"] .agents-page .charter-principles p,
html[lang="es-MX"] .agents-page .charter-principles p {
  overflow-wrap: anywhere;
}
html[lang="fr"] .agents-page .country-count,
html[lang="es-MX"] .agents-page .country-count {
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.18;
}
@media (max-width: 1180px) {
  html[lang="fr"] .agents-page .agents-hero-grid,
  html[lang="es-MX"] .agents-page .agents-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html[lang="fr"] .agents-page .agents-hero-panel,
  html[lang="es-MX"] .agents-page .agents-hero-panel {
    max-width: 760px;
  }
}
@media (max-width: 660px) {
  html[lang="fr"] .agents-page .agents-hero h1,
  html[lang="es-MX"] .agents-page .agents-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.45rem);
    letter-spacing: -.07em;
  }
  html[lang="fr"] .agents-page .agents-section h2,
  html[lang="es-MX"] .agents-page .agents-section h2 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }
}
